Tank Change in Flow Process Modeling

5 replies · 3K views · last reply
PaxFinnica96
Messages
14
Reaction score
0
Hi All,
I'm really struggling with the below question - I'm not sure if I've taken the correct approach to determining the model as there may be an easier way to do this?

Any help in much appreciated, please let me know if I have submitted this template correctly as this if my first time!
Cheers

1. Homework Statement


a. FIGURE 2 shows two cylindrical tanks interconnected with a pipe which has a valve that creates a constant resistance to flow of Rf when fully open. The height of liquid (of density ρ) in the first tank is hin and the second tank hout. The cross-sectional area of the first tank is Ain m2 and the second tank Aout m2.
Schematic of two open cylindrical tanks joined by a pipe with a valve; left tank level marked h_in, right tank level marked h_out, with a black valve symbol on the connecting pipe.


Produce a mathematical model of the process to determine the change in height of fluid in the second tank when the valve is open.

b. Determine the time constant for the system.


Homework Equations



The flow rate of liquid through the valve is given by:[/B]

Q = 1/Rf (Pin - Pout)

Where; Q = flow rate in m^3 s^-1

Pin = pressure due to height of liquid in first tank (Pa)

Pout = pressure due to height of liquid in second tank (Pa)

The Attempt at a Solution


a[/B]
Handwritten derivation of a two-tank draining model: Q = (1/Rf)(Pin - Pout), flow via Q = rho A dh/dt, Pin - Pout = rho g (hin - hout), leading to dx/x = -(g/R)((Ain + Aout)/(Ain Aout)) dt with x = hin - hout.
Handwritten derivation of a tank level model: ln x evaluated from x0 to x equals minus (g/R) times (Ain + Aout)/(Ain Aout) times t, giving x = x0 e^(-t/tau), then dx/dt, the constraint Ain hin + Aout hout = constant, and a boxed result for dhout/dt in terms of x0 and tau, where x0 = hin0 - hout0.

b
Handwritten derivation: time constant tau = R A_in A_out / (g(A_in + A_out)) in a box, and simplified equation d h_out/dt = (g x_0 / A_out) e^(-t/tau) in a box.

Giving a time constant of 63.2% for the system.
 
Attachments
  • Schematic of two open cylindrical tanks joined by a pipe with a valve; left tank level marked h_in, right tank level marked h_out, with a black valve symbol on the connecting pipe.
    upload_2019-2-21_8-34-56.png
    1.5 KB · Views: 630
  • Handwritten derivation of a two-tank draining model: Q = (1/Rf)(Pin - Pout), flow via Q = rho A dh/dt, Pin - Pout = rho g (hin - hout), leading to dx/x = -(g/R)((Ain + Aout)/(Ain Aout)) dt with x = hin - hout.
    upload_2019-2-21_8-36-47.png
    27.3 KB · Views: 584
  • Handwritten derivation of a tank level model: ln x evaluated from x0 to x equals minus (g/R) times (Ain + Aout)/(Ain Aout) times t, giving x = x0 e^(-t/tau), then dx/dt, the constraint Ain hin + Aout hout = constant, and a boxed result for dhout/dt in terms of x0 and tau, where x0 = hin0 - hout0.
    upload_2019-2-21_8-37-8.png
    19.7 KB · Views: 616
  • Handwritten derivation: time constant tau = R A_in A_out / (g(A_in + A_out)) in a box, and simplified equation d h_out/dt = (g x_0 / A_out) e^(-t/tau) in a box.
    upload_2019-2-21_8-37-52.png
    9.3 KB · Views: 611
You don't need the final differential equation to determine ##h_{out}##. You have two algebraic equations in two unknowns:
$$A_{in}h_{in}+A_{out}h_{out}=A_{in}h_{in,0}+A_{out}h_{out,0}$$
and $$h_{in}-h_{out}=(h_{in,0}-h_{out,0})e^{-t/\tau}$$
 
So instead of differentiating at the end I should just leave the equations as they are like below?

Handwritten derivation on lined paper showing a mass balance for a tank, with a rate of accumulation equation and a boxed final expression involving inflow and outflow terms.
 
Attachments
  • Handwritten derivation: ln x from x0 to x equals minus g/R times (Ain + Aout)/(Ain Aout) times t, giving x = x0 e^(-t/tau), then boxed result hin - hout = (hin,0 - hout,0) e^(-t/tau), and boxed Ain hin + Aout hout = Ain hin,0 + Aout hout,0.
    1234.jpg
    33.3 KB · Views: 466
  • Handwritten derivation on lined paper showing a mass balance for a tank, with a rate of accumulation equation and a boxed final expression involving inflow and outflow terms.
    222195-b54ffaec0afbba6d5453a104228544fb.jpg
    1.3 KB · Views: 711
PaxFinnica96 said:
So instead of differentiating at the end I should just leave the equations as they are like below?

View attachment 239115
No. You solve the two equations in two unknowns for the change in height in the second tank.
 
Chestermiller said:
No. You solve the two equations in two unknowns for the change in height in the second tank.

Ok, that's great I think I've managed to solve the two equations and demonstrate the proof but I'm still struggling with how best to determine the time constant - would it just be a simple matter of rearranging the model equation (the one I've just solved from the two above equations) for tau?
 
PaxFinnica96 said:
Ok, that's great I think I've managed to solve the two equations and demonstrate the proof but I'm still struggling with how best to determine the time constant - would it just be a simple matter of rearranging the model equation (the one I've just solved from the two above equations) for tau?
You already provided an equation for tau.