Question: Task 2 A storage tank (shown below) contains a liquid at depth y where y=0) when the tank is half full, Liquid is withdrawn at

Task 2 A storage tank (shown below) contains a liquid at depth y where y=0) when the tank is half full, Liquid is withdrawn at a constant flow rate Q to meet demands. The contents are resupplied at a sinusoidal rate 3Qsin"(t). a) The change in volume can be written as: d(Ay) = 3Q sin(t) - Q dt where A is the surface area and is assumed to be constant. Use Euler's method to solve for the depth y from t=0 to t=10 days with a step size of 0.1 days. The parameter values are A=1250 m2 and Q=450 m3/day. Assume that the initial condition is y=0. Plot the solution. b) For the same storage tank, suppose that the outflow is not constant but rather depends on the depth. For this case, the differential equation for the change in volume can be written as d(Ay) 3Q sin(t) - a(1 + y)1.5 dt Use Euler's method to solve for the depth y from t=0 to 10 days with a step size of 0.1 days. The parameter values are A=1250 m2, Q=450 m3/day and a=150. Assume that the initial condition is y=0. Plot this solution on the previous figure. Remember to include a legend and place it in the north-west corner of the figure
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
