Measuring Results and Behaviors: Overview Measuring Results Measuring Behaviors.
CHE302 LECTURE VII DYNAMIC BEHAVIORS OF … · CHE302 Process Dynamics and Control Korea University...
Transcript of CHE302 LECTURE VII DYNAMIC BEHAVIORS OF … · CHE302 Process Dynamics and Control Korea University...
CHE302 Process Dynamics and Control Korea University 7-1
CHE302 LECTURE VIIDYNAMIC BEHAVIORS OF
REPRESENTATIVE PROCESSES (II)
Professor Dae Ryook Yang
Fall 2001Dept. of Chemical and Biological Engineering
Korea University
CHE302 Process Dynamics and Control Korea University 7-2
INVERSE RESPONSE IN CHEMICAL PROCESSES
• Reboiler level to the change in boilup rate– If boilup rate is increase, more liquid will
vaporized and the inventory in the reboiler will be reduced and the level will be decreased.
– However, at the beginning of the boilup rate increase, more vapor is generated and the vapor will flow upward to the stage above. In that stage, more vapor will pass through the liquid and the density of liquid will decrease so that the more liquid will spill over the weir. This results a temporary increase in the level of reboiler.
– Eventually, the density of liquid settles down and overflow will reach at another steady state. Then the reboiler level will be decreased.
Steam Bottom Product
Seal pan
Weir
Downcomer
Reboiler level
Condensate
Boilup
CHE302 Process Dynamics and Control Korea University 7-3
• Outlet Temp of the exothermic packed bed reactor to feed temp change– An increase in feed temp will speed up the reaction rate and
the reactor outlet temp will increase due to the increased reaction heat generated.
– However, at the beginning of the feed temp increase, more reaction occurs in the inlet part of the reactor and more reactants are consumed. This causes a decrease of reactant concentration in the outlet part of the reactor, and the outlet temp will decrease due to temporary drop in reactant concentration.
– Eventually, increase in feed temp will enhance the reaction and generate more reaction heat and the outlet temp will increase slowly.
Packed-bed reactor
Feed Product
Tf, CAf T, CA
CHE302 Process Dynamics and Control Korea University 7-4
TIME DELAYS
• Fluid transportation through a pipe– Also, called distance-velocity lag, transportation lag, dead time
• Transfer function
• Many high-order system can be approximated by a first-order plus dead-time model (FOPDT)
length of pipe volume of pipefluidvelocity volumetric flowrate
θ = =
L
v
t
f(t)
θ
0 for ( )
( ) for t
y tx t t
θθ θ
<= ⇒
− ≥
( )( )
( )sY s
G s eX s
θ−= =
( )1
sKeG s
s
θ
τ
−
=+
But this transfer function cannot tell what the zeros are and what the poles are if it appears in denominator.
CHE302 Process Dynamics and Control Korea University 7-5
• Polynomial approximations to – Taylor series approximation
– 1/1 Pade approximation
– 2/2 Pade approximation
se θ−
2 2 3 3 4 4 5 5
12! 3! 4! 5!
s s s s se sθ θ θ θ θ
θ− = − + − + − +L
2 2 3 3 11
2! 3! 1s s s bs
e sas
θ θ θθ− +
= − + − + ≈+
L2 21 ( ) (0.5 ) 1a s a s bsθ θ θ+ − + − + ≈ +L
2, (0.5 ) 0 / 2, / 2a b a
a bθ θ θ
θ θ− = − =
⇒ = = − 1
1 ( /2)( )
1 ( / 2)s
G ss
θθ
−=
+
2 2 3 3 4 4 2
2
11
2! 3! 4! 1s s s s bs ds
e sas cs
θ θ θ θθ− + +
= − + − + − ≈+ +
L2 2 2 3 21 ( ) (0.5 ) ( / 2 / 6 ) 1a s a c s a c bs dsθ θ θ θ θ θ+ − + − + + − − + ≈ + +L
2 2
2 2 2
1 ( /2) ( /12)( )
1 ( /2) ( /12)s s
G ss s
θ θθ θ
− +=
+ +
2
2 3 4 3 2
2
, (0.5 ) ,
( / 2 /6 ) 0, ( /24 /6 /2) 0
/2, /2 , /12
a b a c d
a c a c
a b c d
θ θ θ
θ θ θ θ θ θ
θ θ θ
− = − + =
− − = − + =
⇒ = = − = =
CHE302 Process Dynamics and Control Korea University 7-6
• Taylor series approximation– Increase the order of numerator (physical realizability)– AR and phase angle are different from the exact– Low accuracy
• Pade approximation– Does not change the order of transfer function– Only phase angle is different– Higher accuracy– Oscillatory behavior (complex poles and zeros)
Pure delay FOPDT
CHE302 Process Dynamics and Control Korea University 7-7
APPROXIMATION OF HIGHER-ORDER SYSTEMS
• Approximation by FOPDT or SOPDT models
1 2
( )( 1)( 1) ( 1)n
KG s
s s sτ τ τ=
+ + +L
1 2 1If ( , , ), ( is the dominant time constant " ")nτ τ τ τ? L
21
( ) where ( 1)
s
nKe
G ss
θ
θ τ ττ
−
≈ = + ++
L
1 2 3 1 2If , ( , , ), ( and are dominant ti t mehe " constants")nτ τ τ τ τ τ? L
31 2
( ) where ( 1)( 1)
s
nKe
G ss s
θ
θ τ ττ τ
−
≈ = + ++ +
L
CHE302 Process Dynamics and Control Korea University 7-8
• nth-order system with equal time constants
– Step response
( )
1n n
KG s
snτ
= +
1/
0
( / )( ) 1
!
innt
i
nty t KM e
iτ τ−
−
=
= −
∑
1//0
lim ( ) lim limlim(1 )( 1) ( 1)
sn s sn n n xn n s
x
K K KG s Kes xs
n n
ττ τ
ττ τ
−
→∞ →∞ →∞
→
= = = = ++ +
1/
0By deinition, lim(1 ) 2.7182818285...x
xe x
→+ =@
CHE302 Process Dynamics and Control Korea University 7-9
FITTING DATA TO EMPIRICAL MODELS
• Fitting FOPDT model using step test– With a step response1. Obtain gain2. Estimated time delay by inspection
• Visual inspection• Use of tangent line at inflection point
3. Find time constant– Graphical method– Rearrange data: the slope is the reciprocal of time constant
– Sundaresan and Krishnaswamy (1977)
( ) (0)( ) (0)
y yK
u u∞ −
=∞ −
( ) ( )( ( ) (0)) ln
( ) (0)t i iy y tKM y t y
eKM y y
θ τ θτ
− − ∞ − −− −= ⇒ = − ∞ −
35.3% 85.3% 85.3% 35.3%1.3 0.29 0.67( )t t t tθ τ= − = −
(0) /y KM τ′ =
CHE302 Process Dynamics and Control Korea University 7-10
• Fitting SOPDT model using step test– Harriot’s Method for overdamped systems
– Smith’s method• Use t20% and t60%.• Read parameters from graph
• Nonlinear/Linear Regression
1 2 73% /1.3tτ τ+ =73% /2.6 1 1 2Calculate and read /( ) from graphty τ τ τ+
If graph is out of range, it is not applicable and possibly higher-order or underdamped.
Use of optimization to minimize the error between the data and calculated model value.
2
, , ,1
min ( ( ) ) where ( ) ( , , , , )N
i i i iKi
y t y y t f t Kτ ζ θ
τ ζ θ=
− =∑
CHE302 Process Dynamics and Control Korea University 7-11
INTERACTING AND NONINTERACTING PROCESSES
• Non interacting process– The first tank affects the second tank but second tank does not
affect the first tank and so on. This is called “noninteracting”.– Each tank can be modeled as
– For the whole system
cAi, qi
cAn, q
V1
V2
Vn
cA1, q
cA2, q
… .
( 1)
( )
( ) 1Aj j
A j j
C s K
C s sτ−
=+
1
( )( ) ( 1)
njAn
jAi j
KC sC s sτ=
=+∏
CHE302 Process Dynamics and Control Korea University 7-12
• Interacting process– Many chemical processes exhibit
interacting nature.
qi
q1 q2
R1 R2V1h1 V2
h2
1 1 21
1( )q h h
R= −
11 1i
dhA q q
dt= − 2
2 1 2dh
A q qdt
= −
2 22
1q h
R=
11 1 2
1
1 ( )idhA q h hdt R
= − − 22 1 2 2
1 2
1 1( )dhA h h hdt R R
= − −
1 1 1 1 2 1( ) ( ) ( ) ( )iA R sH s H s H s R Q s+ − = %% % %
2 1 2 2 2 2 1 22 2 1
1 2 1 2 1 2 1 2 1 2
( ) /( )( ) ( ) ( )
( ) /( ) 1A R R R H s R R R
sH s H s H sR R R R H s A R R R R s
++ = ⇒ =
+ + + +
%% % % %2 2
21 2 1 2 1 1 2 2 1 2
( )( ) 1( )i
H s RA A R R s A R A R A R sQ s
=+ + + +
%%
2 22 2
( )2 1( )i
H s Rs sQ s τ ζτ
=+ +
%%
1 1 2 2 1 21 2 1 2
1 2 1 2
( )where ,
2A R A R A R
A A R RA A R R
τ ζ+ +
= =
Since arithmetic mean geometric mean, >1 (overdamped)ζ≥
CHE302 Process Dynamics and Control Korea University 7-13
STAGED SYSTEM
• Three-stage absorber– Assumptions
• Constant liquid holdup (H)• Perfect mixing on each stage• Neglecting holdup of gas• Equilibrium:
– Definition:• The stage liquid residence time• The stripping factor• The gas-to-liquid ratio
i iy ax b= +
1 1( ) ( )ii i i i
dxH G y y L x x
dt − −= − + −
/H Lτ =/aG Lσ =
/K G L=
1 1( )ii i i
dxH aGx L aG x Lx
dt − += − + +
CHE302 Process Dynamics and Control Korea University 7-14
– With
11 2
21 2 3
32 3
( ) (1 )
(1 )
(1 )
f
f
dxK y b x x
dtdx
x x xdt
dxx x x
dt
τ σ
τ σ σ
τ σ σ
= − − + +
= − + +
= − + +
1 2
1 2 3
2 3
0 ( ) (1 )
0 (1 )0 (1 )
f
f
K y b x x
x x xx x x
σ
σ σσ σ
= − − + +
= − + += − + +
( )( )( )
21
2 22
23
( ) /(1 )
(1 ) ( ) /(1 )
(1 ) (1 ) ( ) /(1 )
f f
f f
f f
i i
x x K y b
x x K y b
x x K y b
y ax b
σ σ
σ σ σ σ
σ σ σ
= + − +
= + + + − + +
= − + + − +
= +
11 2
21 2 3
32 3
(1 )
(1 )
(1 )
f
f
dxKy x x
dtdx
x x xdt
dxx x x
dt
τ σ
τ σ σ
τ σ σ
= − + +
= − + +
= − + +
% % % %% % % %% % % %
1 2
2 1 3
3 2
( 1 ) ( ) ( ) ( )
( 1 ) ( ) ( ) ( ) 0( 1 ) ( ) ( ) ( )
( ) ( )
f
f
i i
s X s X s KY s
s X s X s X ss X s X s X s
Y s aX s
τ σ
τ σ στ σ σ
+ + − =
+ + − − =+ + − =
=
22
2 22
1 2 3 22
2 2
2 (1 )1
1 11( ) ( )
1 2 (1 )1 1
1 1 1
f
s sX s K Y s
s s s
τ τ σσ σ σ σσ σ
σ σ σ τ τ τ σσ σ σ
++ + + + + ++ + =
+ + + + + + + + + +
( ) 0fX s =%
CHE302 Process Dynamics and Control Korea University 7-15
– Step increase in gas feed composition
2 2 22
2 2
1( ) ( )
1 2 (1 )1
1 1
fX s K Y ss s
σσ τ τ σ
σ σ
=+ +
+ + + +
2
3 2 3 22
2 2
1( ) ( )
1 2 (1 )1 1
1 1 1
fX s K Y ss s s
σσ σ σ τ τ τ σ
σ σ σ
=+ + + + + + + + + +
3 31 1 2 2 ( ) ( )( ) ( ) ( ) ( ) ( )
( ) ( ) ( ) ( ) ( ) ( )f f f f f f
Y s aX sY s aX s Y s aX saK
Y s Y s Y s Y s Y s Y sσ= = = =
3rd order+two zeros
3rd order
2nd order
CHE302 Process Dynamics and Control Korea University 7-16
• Analysis using transfer function– Easy to develop– Types of response can be recognized very conveniently– Parameter effects can be analyzed through lumped parameter
– Linearization required when the system is nonlinear• If the effect of flow rate change, the previous example becomes
nonlinear.• Due to linearization, new model has to be obtained when the
operating condition changes widely.– For the nonlinear system analysis, numerical integration
should be considered• Utilize differential equation solvers
– Non-stiff case: explicit method– Stiff case: implicit methods– ODE– DAE– PDE
CHE302 Process Dynamics and Control Korea University 7-17
DISTRIBUTED PARAMETER SYSTEMS
• Lumped parameter system (ODE)– Dependent variables depend only on time, not on spatial
location– Perfect mixing assumption eliminates the dependency on– spatial coordinates and the analysis will be conducted in
averaging sense– All balances are valid around the boundary
• Distributed parameter system (PDE)– Dependent variables depend on time and also spatial location– Perfect mixing is not valid. (double pipe heat exchanger,
packed bed reactor
CHE302 Process Dynamics and Control Korea University 7-18
DPS EXAMPLE
• Double pipe heat exchanger
– Assumptions• Plug flow (no radial or angular variations in TL)• Neglect axial conduction• Heat transfer resistance of the inside tube metal is neglected• Steam jacket is well mixed
SL
AL
CHE302 Process Dynamics and Control Korea University 7-19
• For a control volume, from the energy balance for the liquid
(AL is a heat transfer area per unit length)
• For a control volume, from the energy balance for the wall
( , )( ( , ) ) ( ( , ) )
( ( , ) ( , ))
LL L L L L L L ref L L L L ref
L L W L
dT t zC S z v C S T t z T v C S T t z z T
dth A z T t z T t z
ρ ρ ρ∆ = − − + ∆ −
+ ∆ −
( , ) ( ( , ) ( , ))( ( , ) ( , ))L L L L L
W LL L L
dT t z v T t z z T t z h AT t z T t z
dt z C Sρ+ ∆ −
= − + −∆
1( ) where L L L L L
W L HLHL L L
dT T C Sv T T
dt z h Aρ
ττ
∂= − + − =
∂
As 0z∆ →
( ) ( )W S S L LS W W L
W W W L L L
dT h A h AT T T T
dt C S C Sρ ρ= − − −
1 1( ) ( )W
S W W LSW WL
dTT T T T
dt τ τ= − − −
CHE302 Process Dynamics and Control Korea University 7-20
• Discretization– PDE => ODE– Eliminate z-dependency– Replace
• Number of point N will decide the accuracy of solution
– Finite difference approximation (FDM)
– Other methods: method of characteristics, FEM, OC, etc.
( , ) ( ) for 0, ,
( , ) ( ) where (0) 0, , ( )
jL j L
jLW j W
T t z T t j N
T t z T t z z N L
= =
= = =
LL
( , ) ( , ) (forward difference approximation)
( , ) ( , ) (backward difference approximation)
( , ) ( , ) (central difference approximation)
2
L L L
L L L
L L L
T T t z z T t zz zT T t z T t z zz zT T t z z T t z zz z
∂ + ∆ −=
∂ ∆∂ − − ∆
=∂ ∆
∂ + ∆ − − ∆=
∂ ∆
CHE302 Process Dynamics and Control Korea University 7-21
• Using FDM with centered difference approx.
• Initial conditions and boundary conditions
• Inputs: Steam T (TS(t)) and Feed T (TF(t)) • Outputs: TL(t) and TW(t) at each location in z• 2 PDE’s become 2N ODE’s
0 0 0
0 0 0
0, , ,
0, , ,
0
0
(0, ) ( ) (0) (0), , (0) ( ) (I.C. for )
(0, ) ( ) (0) (0), , (0) ( ) (I.C. for )
( ,0) ( ) ( ) ( ) (B.C. for )
( ,0) ( ) ( ) (
NL L t L L t L L t N L
NW W t W W t W W t N W
L F L F L
W A W A
T z T z T T T T z T
T z T z T T T T z T
T t T t T t T t T
T t T t T t T
= ⇒ = =
= ⇒ = =
= ⇒ =
= ⇒ =
LL
) (B.C. for )Wt T
1 2 01 1
2 3 12 2
1
1( )
2
1( )
2
1( )
L L LW L
HL
L L LW L
HL
N N NN NL L L
W LHL
dT T Tv T T
dt z
dT T Tv T T
dt z
dT T Tv T T
dt z
τ
τ
τ
−
−= − + −
∆
−= − + −
∆
−= − + −
∆
M
11 1 1
22 2 2
1 1( ) ( )
1 1( ) ( )
1 1( ) ( )
WS W W L
SL HL
WS W W L
SL HL
NN N NW
S W W LSL HL
dTT T T T
dt
dTT T T T
dt
dTT T T T
dt
τ τ
τ τ
τ τ
= − − −
= − − −
= − − −
M
CHE302 Process Dynamics and Control Korea University 7-22
• Transfer function
– FDM usually generates tri-diagonal matrix.– Quite high order system if N is big.– May not be convenient to analyze.
111 1
1 1 2 22
2
1
1 1
1 0 0
10
( )0 0
00 0 1
LWL F
LWL
W F
N NNWL
N L
s bTT K
c s bTT
K T tcb
TTc s
ττ
τ−
−
+ + = + +
LO M
O O MM MM O O OL
1 11
2 22
1 0 0
0 1( )
0
0 0 1
W W SL
W W SLL S
N NWN W SL
s T KT
s T KTK T t
s T KT
τ
τ
τ
+
+ = + +
LO M
M O O M MML
Tri-diagonal matrix
CHE302 Process Dynamics and Control Korea University 7-23
MIMO systems
• Multi-Input Multi-Output System
– MISO (n=1) and SIMO (m=1) are possible.– 2x2 system
1 11 12 1 1
2 21 22 2 2
1 2
( ) ( ) ( ) ( ) ( )
( ) ( ) ( ) ( ) ( )
( ) ( ) ( ) ( ) ( )
m
m
n n n nm m
Y s G s G s G s U s
Y s G s G s G s U s
Y s G s G s G s U s
=
L
M M O M ML
Transfer function matrix
G11
G21
G12
G22
U1(s)
U2(s)
Y1(s)
Y2(s)
+
+
+
+
CHE302 Process Dynamics and Control Korea University 7-24
• From SS model to TF model for MIMO system– With deviation variables after linearization
– Generally for (pxm) system, A is (nxn), B is (nxm), C is (pxn) and D is (pxm) matrices, respectively.
– Then, G(s) is (pxm) transfer function matrix.
1 1 1
2 2 2
1 1 1
2 2 2
x x ux x u
y x uy x u
= + ⇒
= + ⇒
A B x = Ax + Bu
C D y = Cx + Du
& &&
1
( ) ( ) ( ) ( ) ( ) ( )
( ) ( ) ( ) ( ) ( ) ( )
s s s s s s s
s s s s s s−
= + ⇒ − =
= + ⇒ −
X AX BU I A X BU
Y CX DU Y = C I A B + D U
1 ( ) ( )s s − ∴ − G = C I A B + D