Professional Documents
Culture Documents
Peter Way
www.ventimar.com
VentiMar, LLC
Outline
This application note is a tank level model that can be used in a variety of chemical processes. The nonlinear model for turbulent flow is developed first The model is then linearized about an operating point to allow frequency analysis. Finally, the tank example is extended to two tanks in series.
VentiMar, LLC
Radius 0.8 m
H [m]
Tank Capacitance C [m^2] (change in volume per change in H) Not tank capacity [m^3]
uL
fluid density
u fluid speed L - characteristic length (4 * Area of duct/Perimeter of duct) for a circular cross - section pipe L = diameter
VentiMar, LLC
Laminar : Qo = KH Turbulent : Qo = K H
Flow equation (examine the turbulent case in this example): Increase of volume as head (level) H changes equals inflow-outflow over time change. Capacitance of the tank is the cross-sectional area
. C H + K H = Qi . Q K H H= i C
Qi(l/s)
K 1000
H(m)
Qi (m^3/s)
. H
H
I
Reset Hold
SQRT
K(m^2.5/s)
P
Qo(l/s)
K 1000
H 0.01 TD 0 s
K 0.008944
Ti 2 s
VentiMar, LLC
Model features
Qo = K H . Q K H H= i C
First, integrate the derivative Each blocks name is the output For now, we can drive the system with 10 l/s flow
Qi(l/s)
K 1000
H(m)
Qi (m^3/s)
. H
H
I
Reset Hold
SQRT
K(m^2.5/s)
P
Qo(l/s)
K 1000
Qi 0.01 TD 0 s
K 0.008944
C 2 s
These probes are for plotting and scaling the output. In this case from m^3/s to l/s
VentiMar, LLC
Time response
You can now make a time response plot to the Qi input. Qo eventually reaches Qi (tank does not overflow or empty) At this flow rate the tank fills to 1.24 meters Source group 0
H(m)
10.5 10 9.5 9 8.5 8 7.5 7 6.5 6 5.5 5 4.5 4 3.5 3 2.5 2 1.5 1 0.5 0 -0.5 -200 0 200 400 600 800 1200 1600 2000 2400 2800 3200 3600 3900
1.2444 10 9.9771
Qi(l/s) Qo(l/s)
VentiMar, LLC
Hsp (x10m)
K 10
H(x10 m)
K 10
Plant
SQRT K(m^2.5/s)
P
K 1000
Ramp
H
I
Reset Hold
Qo(l/s)
K 1000
K 0.1
K 0.008944
C 2 s
VentiMar, LLC
VentiMar, LLC
10
VentiMar, LLC
11
h 2H 0 R= = q Q0
Re membering the input flow to head . Q K H equation H = i C The equation for small perturbations becomes (after substituting h/R for K H ) : . q h/ R h= i C
VentiMar, LLC
H
12.000 10.000 8.000 6.000 4.000 2.000 0.000 0 -2.000 -4.000 Q 5 10 15 20 25 30 H Nonlinear [m] h Linearized [m]
h q Q0,H0
12
Hsp (x10 m)
K 10
H ( x10 m)
K 10
K 1000
Ramp
H
I
Hold
1/R
P
Qo(l/s)
K 1000
K 0.1
K 0.002631
C2 s
VentiMar, LLC
13
0 0 0 7.893
VentiMar, LLC
14
Am plitude 1/R
Frequency
-55.088 -46.632
[ ]
-10 -20 -30 -40 -50 -60 -70 -80
Phase
0.01
0.02 0.03
0.05
0.1
0.2
0.3
0.5 0.7
4 5 6 7
10
VentiMar, LLC
15
H1 [m]
Q1
H2 [m]
Q2
H1 (x10 m)
K 10
Tank 1
SQRT K(m^2.5/s)
P
K 1000
Ramp
H1
I
Q1(l/s)
K 1000
K 0.08
Hold
K 0.008944
C2 s
Tank 2
SQRT K(m^2.5/s)
P
H2
K 10
Q2(l/s)
K 1000
Reset Hold
K 0.008944
C 2s
VentiMar, LLC
17
0 0 0 0 0 0
VentiMar, LLC
18
SimApp Summary
You can build simple models for understanding including nonlinear effects. In this example, the model works for any level and flow situation. Then you can simulate controllers of increasing sophistication
In the tank example, you could fill the tank to the desired H first, then make a linearized version of the model You could then perform frequency and stability analysis on linear models and... Design better controllers.
The block diagram method promotes understanding and lets you extend the model to new situations. See the tutorial and design spreadsheet at
www.simapp.com/simulation-tutorials
VentiMar, LLC
19