Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

A storage tank contains a liquid at depth y. The liquid is withdrawn at a rate dependent on the depth. The liquid is supplied

A storage tank contains a liquid at depth y. The l  

A storage tank contains a liquid at depth y. The liquid is withdrawn at a rate dependent on the depth. The liquid is supplied to the tank at a sinusoidal rate as a function of time. The differential equation governing the depth of the liquid is given by: dy a(1+ y)15 sin? (1) dt A The parameter values are tank cross-section A = 1200m?, maximum supply Q = 550 m?/day and coefficient a = 160. Assume that the coordinate y was chosen so as y = 1 at t = 0. 1. Use Euler method (described and discussed in Chapter 1 of the textbook), to manually calculate the depth y from t = 0 to 2 days using step size At = 1.0 and 0.5 (measured in days). List your result in a table and plot the elevation of y versus t for the above-listed step sizes, all in one graph. This will be used for verification with the computations below. 2. Write a MATLAB program to implement the Euler method (without using any pre- written MATLAB program/function of the Euler method) to solve the Equation (1) and use it to conduct computations for the depth y from t = 0 to 10 days using step size At = 1.0,0.5, 0.1 and 0.05 (measured in days). Generate printout of the computation results in tables. Plot the elevation of y versus t for the above-listed step sizes, all in one graph for comparison. 3. Please comment on the computation results with the comparison based on the different step sizes and verification with the manual calculation.

Step by Step Solution

3.50 Rating (153 Votes )

There are 3 Steps involved in it

Step: 1

An swer Given 36 sin 1 15 dy A Now Eules m... 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_2

Step: 3

blur-text-image_3

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

Numerical Methods For Engineers

Authors: Steven C. Chapra, Raymond P. Canale

5th Edition

978-0071244299, 0071244298

More Books

Students also viewed these Accounting questions