Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

IN MATLAB Problem I recently replaced my hot water tank and needed to drain it through the tap on the bottom so I could lift

IN MATLAB

image text in transcribed

image text in transcribed

Problem I recently replaced my hot water tank and needed to drain it through the tap on the bottom so I could lift it out of the basementNaturally, I calculated how long this would take before I started so I knew how much homework I could grade while waiting. Draining Tank.png If you drain a tank of water through a tap at the bottom, the flow is given by Bernoulli's equation, and if we make lots of assumptions (the tank isn't really tall, the tap diameter is a lot smaller than the tank diameter, water has no viscosity), then the velocity of the water coming out the tap is: Vtap = V2gh t where h(tis the depth of the water in the tank as it drains and g is the acceleration due to gravity (9.81 m/s*2). This gives the velocity of the the water leaving the tank through the tap. Clearly, the velocity of the water flowing downward in the tank is slower because the tank has a larger diameter than the tap. Using conservation of mass, one can easily show that the product of velocities and cross-sectional areas is the same for the tank and the tap. Note that the velocity of water in the tank V_tank is the same as the rate of change of the water heightdh/dt. So we get dh Vtank D? = Vtand? Vtank = = Uta dt taps Substituting from above, we get the differential equation. 4 =- V2 (4) An (). (Eqn 1) Assuming the tank is a cylinder, and D is constant, this is a separable equation, and has the solution n () = [VE(S), + . J (Eqn 2) Note that h(t=0) = ho is the initial water depth, and h decreases as time increases. This is fine for a perfect cylindrical tank, but the reason I needed to replace the water tank is that it was starting to bulge in the middle so that D (h) = D, + B (h), (Ean 3) in Eqn (1). Let's let the tank be H meters tall and model the bulge, B(h), as a catenary (cosh(x) that gives B = 0 for h = 0 (bottom of the tank), increases to a maximum at the middle of the tank (h = H/2) of B=0.1*D0 and then decreases back to B=0 for h H (top of tank). Create the matlab function that does this. (Hint: Start with B = A* (cosh(1)-cosh((x/C-0.5)*2))/(cosh(1)-1) Problem I recently replaced my hot water tank and needed to drain it through the tap on the bottom so I could lift it out of the basementNaturally, I calculated how long this would take before I started so I knew how much homework I could grade while waiting. Draining Tank.png If you drain a tank of water through a tap at the bottom, the flow is given by Bernoulli's equation, and if we make lots of assumptions (the tank isn't really tall, the tap diameter is a lot smaller than the tank diameter, water has no viscosity), then the velocity of the water coming out the tap is: Vtap = V2gh t where h(tis the depth of the water in the tank as it drains and g is the acceleration due to gravity (9.81 m/s*2). This gives the velocity of the the water leaving the tank through the tap. Clearly, the velocity of the water flowing downward in the tank is slower because the tank has a larger diameter than the tap. Using conservation of mass, one can easily show that the product of velocities and cross-sectional areas is the same for the tank and the tap. Note that the velocity of water in the tank V_tank is the same as the rate of change of the water heightdh/dt. So we get dh Vtank D? = Vtand? Vtank = = Uta dt taps Substituting from above, we get the differential equation. 4 =- V2 (4) An (). (Eqn 1) Assuming the tank is a cylinder, and D is constant, this is a separable equation, and has the solution n () = [VE(S), + . J (Eqn 2) Note that h(t=0) = ho is the initial water depth, and h decreases as time increases. This is fine for a perfect cylindrical tank, but the reason I needed to replace the water tank is that it was starting to bulge in the middle so that D (h) = D, + B (h), (Ean 3) in Eqn (1). Let's let the tank be H meters tall and model the bulge, B(h), as a catenary (cosh(x) that gives B = 0 for h = 0 (bottom of the tank), increases to a maximum at the middle of the tank (h = H/2) of B=0.1*D0 and then decreases back to B=0 for h H (top of tank). Create the matlab function that does this. (Hint: Start with B = A* (cosh(1)-cosh((x/C-0.5)*2))/(cosh(1)-1)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Main Memory Database Systems

Authors: Frans Faerber, Alfons Kemper, Per-Åke Alfons

1st Edition

1680833243, 978-1680833249

More Books

Students also viewed these Databases questions

Question

3. Did you seek anyones advice?

Answered: 1 week ago

Question

7. What traps should she avoid?

Answered: 1 week ago

Question

5. What decision-making model would you advocate to this person?

Answered: 1 week ago