Back to Browse

Solve Differential Equations in Python

18.3K views
Oct 6, 2015
24:15

Cylindrical dual gravity drained tanks have a constant cross sectional area (Ac=2 m2) and maximum height of 1 m. If the tank overfills, the excess fluid is lost. There is an inlet flow qin, an intermediate outlet flow from tank 1 to tank 2 as qout1, and a final outlet flow as qout2. Calculate the h1 and h2 values as a function of time. Correct solution is posted to http://apmonitor.com/che263/index.php/Main/PythonDynamicSim - I had to pause the video to fix a bug but inadvertently stopped the recording. Please see the page link for the corrected program. Also, this is Euler's method as an introduction to solving ODEs in Python. Better methods exist to numerically solve ODEs if accuracy and speed are a consideration.

Download

0 formats

No download links available.

Solve Differential Equations in Python | NatokHD