Академический Документы
Профессиональный Документы
Культура Документы
(PRC300S)
MATHEMATICAL MODELING
(DOF)
1.
Advantages:
Disadvantages:
Advantages:
easier to develop
Disadvantages:
Advantages:
2.
3.
output = f (inputs)
This model form is convenient for computer
simulation and subsequent analysis.
Definitions
Degrees of freedom
To simulate a process, model equations should be
solvable set of relations. In order for a model to
have a unique solution, number of degrees of
freedom should be zero.
Number of
degrees of
freedom
Number of
process
variables
Number of
independent
equations
2.
3.
4.
5.
Summary
if DOF=0
if DOF<0
The system is over specified, and in general no
solution to model exists. The likely cause is either :
(1) improperly designating a variable(s) as a parameter or
external variable or ,
(2) including an extra, dependent equation(s) in the model.
if DOF>0
The system is underspecified, and an infinite
number of solutions to the model exists. The likely cause is
either
(1) improperly designating a parameter or external variable
as a variable or ,
(2) not including in the model all equations that determine
the systems behavior.
Example 1
Consider a continuous stirred tank blending system where
two input systems are blended to produce an outlet stream
that has the desired composition.
Stream 1 is a mixture of two species A and B. We assume
that its mass flow rate is constant but the mass fraction of A
(x1) varies with time.
Stream 2 consists of pure A and thus x2=1. The mass flow
rate of stream 2 (w2) can be manipulated using a control
valve. The mass fraction of A in the exit stream is denoted by
x and the desired value by xsp.
X1, w1
X2, w2
X, w
Control Question:
Suppose that inlet concentration x1 varies with time. How can we
ensure that the outlet composition x remains at or near its desired
value.
Method 1.
X2, w2
X1, w1
X, w
AT
(Analyzer-Transmitter)
(Feedback Control)
Method 2
AT
X2, w2
X1, w1
X, w
Design Question:
If the nominal value of x1 is x1,s what nominal flow rate w2
is required to produce the desired outlet concentration xsp.
With a steady state material balance,
w1+ w2 w = 0
( overall balance)
(component A balance)
w1x1,s+w2(1.0)-(w1+w2)xsp=0
w2 = w1
xsp x1, s
1 xsp
X1, w1
X2, w2
X, w
rate of accumulation of
mass in the tank
rate of
rate of
mass in
mass out
assumptions:
1.
2.
w1t + w2 t wt = V t + t V t
Dividing by t and taking limit as t 0 gives
d
w1 + w2 w = (V )
dt
Component balance;
d
w1 x1 + w2 x2 wx = (Vx)
dt
Considering the constant density assumption
equations become;
w1 + w2 w =
dV
dt
d (Vx)
dx
dV
= V
+ x
w1 x1 + w2 x2 wx =
dt
dt
dt
Equation 1
Equation 2
dx w1 ( x1 x) w2 ( x2 x)
=
+
dt
V
V
dV 1
= ( w1 + w2 w)
dt
(x
vs
w2 and V
vs
w as the
Example 2
Goal: The dynamic response of
temperature of the liquid in the tank is to
be determined.
Fi, Ti
Assumptions:
1. tank is well mixed
F, T
Fi t Ft = Aht + t Aht
d
Fi F = ( Ah)
dt
dh
A
= Fi F
dt
with constant and cross-sectional area A
flow rates are given in units of volumetric flow rates
Q
d ( hT )
dT
dh
=A
= Ah
+ AT
FiTi FT +
c p
dt
dt
dt
dh
= Fi F
A
dt
dT
Q
= Fi (Ti T ) +
Ah
c p
dt
D.O.F Analysis
Parameter(s): ,cp
variables: V, T
equations: (dh/dt and dT/dt)
D.O.F = 2-2 = 0
outputs: V, T
inputs: Fi, Ti, Fst
disturbances: Fi, Ti,
manipulated variables: no control structures
Example 3
Consider the typical liquid storage process
qi
dh
A
= qi q
dt
2.
1
q=
h
Rv
1
dh
= qi
A
h
dt
Rv
3.
F = Cv *
Cv* is the valve constant
P Pa
Example 4
Fi, Ti, CAi
F, T, CA
r=kCA
r : rate of reaction
k : reaction rate constant,
k=k0exp(-E/RT)
Cooling
medium
CA : molar concentration
Assumptions;
1.
2.
3.
4.
5.
6.
7.
8.
d
Fi F = ( V )
dt
With constant and V, Fi=F
Component balance for species A (in molar units);
dC A
FC Ai FC A VkC A = V
dt
Energy balance;
dT
wC p (Ti T ) + (H R )VkC A + UA(Tc T ) = VC p
dt