Question

Can you help me with this problem? This has to be done using Matlab and solving with runge-katta, euler method, and the built in function ode45

part1.PNG

part2.PNG

Consider a cylindrical storage tank with surface area A which contains a liquid at depth y:

At time t = 0, the tank is empty (y = 0 when t = 0). Liquid is supplied to the tank at a sinusoidal rate Qin =3Qsin2 (t) and withdrawn from the tank as: π‘„π‘œπ‘’π‘‘ = 3(𝑦 βˆ’ π‘¦π‘œπ‘’π‘‘) 1.5 if 𝑦 > π‘¦π‘œπ‘’π‘‘ π‘„π‘œπ‘’π‘‘ = 0 if 𝑦 ≀ π‘¦π‘œπ‘’π‘‘Β 

Please note that both 𝑄𝑖𝑛 and π‘„π‘œπ‘’π‘‘ have units m3 /h.Β 

The mass balance for this system can be written: (π‘β„Žπ‘Žπ‘›π‘”π‘’ 𝑖𝑛 π‘£π‘œπ‘™π‘’π‘šπ‘’) = (π‘–π‘›π‘“π‘™π‘œπ‘€) βˆ’ (π‘œπ‘’π‘‘π‘“π‘™π‘œπ‘€) or: 𝑑(𝐴𝑦) 𝑑𝑑 = 𝑄𝑖𝑛 βˆ’ π‘„π‘œπ‘’π‘‘ Assume that A = 1,250 m2 , Q = 450 m3 /h, yout = 10 m.

Write a program that solves the differential equation from t = 0 to t = 250 h using:Β 

β€’ the Classical 4th -order Runge-Kutta method using a step size of 1 hΒ 

β€’ the Euler’s method using a step size which closely approximates the solution found the Classical 4th -order Runge-Kutta method (you must find the step size which closely approximates the Runge-Kutte solution)Β 

β€’ the built-in method ode45Β 

β€’ Plots the liquid height y versus time t for all three solutions. Your plot should show each curve using a different color. Add a title, axes labels, and a legend.

0 0
Add a comment Improve this question Transcribed image text
Request Professional Answer

Request Answer!

We need at least 9 more requests to produce the answer.

1 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the answer will be notified once they are available.
Know the answer?
Add Answer to:
Can you help me with this problem? This has to be done using Matlab and solving with runge-katta, euler method, and the built in function ode45
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT