Question: Problem 3 . For a tank draining problem with a constant feed rate, the governing equation is d h d t = Q A t

Problem 3. For a tank draining problem with a constant feed rate, the governing equation is
dhdt=QAt-AhAt2gh2
Where Q is the flow rate in At is the tank area Ah is the hole area and h is the height in the tank. Lets say the hole diameter in 10 cm (watch your units), the tank diameter is 1m,Q is 0.05m3sec, and g is 9.8066ms2. We will assume the initial height in the tank is 10 m and we can assume the tank is very tall (it wont overflow). Now don't get spooked by the problem. We want to use Euler's method to generate a table of h vs time. You will find this very similar to some examples I provided under "Euler". It should be easy to modify.
a) Write a livescript program which asks the user for the flowrate in and the time duration., but has the other dimensions "built in"(that is just type dt=1, and dh=0.1, etc. Your livescript should generate an array of h vst. Have the script plot h vs t. Just use straight Euler for this... not modified.
 Problem 3. For a tank draining problem with a constant feed

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Chemical Engineering Questions!