Euler's Method With Mass Balance o.d.e's

2 replies · 4K views · last reply
Sam223344
Messages
12
Reaction score
0
Hi

I'm doing a practice paper for a past mathematical modelling exam. I've attached the problem

What I'm having trouble with is simplifying the equations and variables into a differential equation that is solvable with Euler's Method.

What I have currently is the sqrt(h1-h2) in the equation which leads to an imaginary number so I don't think I have done it correctly. ( As h1<h2..I think the diagram is also misleading)

If someone could help me out with getting the right equation I should(hopefully) be able to do the next part.

Thanks

I'm posting this is another forum as well, need help asap.

P.S the second question doesn't need to be attached, it is:
Use Euler's method to make a single step to predict the levels in both tanks after 5 seconds.
 
Attachments
  • Diagram of two interacting tanks side by side with inflow F0 into tank 1, outflow F1 between tanks, and outflow F2 from tank 2, followed by the listed equations, parameters and initial conditions.
    Questionpart1.jpg
    31.4 KB · Views: 539
Last edited:
Euler's Method With Mass Balance o.d.es

I'm doing a practice paper for a past mathematical modelling exam. I've attached the problem

What I'm having trouble with is simplifying the equations and variables into a differential equation that is solvable with Euler's Method.

What I have currently is the sqrt(h1-h2) in the equation which leads to an imaginary number so I don't think I have done it correctly. ( As h1<h2..I think the diagram is also misleading)

If someone could help me out with getting the right equation I should(hopefully) be able to do the next part.

Thanks

I also posted this is the differential equation forum but with only 6 people viewing...
 
Attachments
  • Exam problem: two interacting tanks, with mass balance equations rho A1 dh1/dt = rho F0 - rho F1 and rho A2 dh2/dt = rho F1 - rho F2, flow laws F1 = k1 sqrt(h1 - h2) and F2 = k2 sqrt(h2), and given parameters.
    Quest1.jpg
    30.6 KB · Views: 600


This is what I have but its the square root of a negative number that is confusing me
 
Attachments
  • Two coupled differential equations for tank levels: dh1/dt = (F0 - k1 sqrt(h1 - h_2)) / A1 and dh2/dt = (k1 sqrt(h1 - h2) - k2 sqrt(h2)) / A2.
    Equations.jpg
    14 KB · Views: 532