Professional Documents
Culture Documents
U dQ dI D
Electricity R= C= U =L T=
I dU dt v
∆P dV A dF D
Liquid RL = C=
L = P = IL T
F dP ρ g dt v
∆P dM
Gas RG = CG =
W dP
∆T dH
Thermal RT = CΤ =
Q dT
Disturbances Disturbances
Manipulated Controlled Manipulated
Controlled
Variables Variables Variables
Variables
BLENDING BLENDING
PROCESS PROCESS
Process Fluid
Disturbances
Uncontrolled
Uncontrolle d
Variables
Va ria ble s
Coolant
Reflux
Feed
Gas
Gas
Top Product
Steam
Bottom Product
10/18/2017 Chapter 2: Theoretical Modeling HMS 2006-2016 17
Control Objectives Analyzing
Quality Assurance: maintain the top product composition
(xD) and the bottom one (xB) at a desired set point.
Productive Assurance: Assure top product flow rate (D) và
the bottom one (B) at a desired set point
Safety and stability operating ensuring: maintain the column’s
temperature and pressure, the liquid levels in the column
base and the reflux drum (MB) (MD) in allowed range.
Based on specific problem requirements, we need to choose
appropriate controlled
Manipulated Variables
u =[ L V ] T
D B W
Disturbance Variables
d =[ F ... ]
T
xF TF VF
∑ in ∑ out =
ω i
− ω i
0
Conservation of Component i
j j j
dM accumulation j
dM in j
dM out dM produced dM consumed
= − + −
dt dt dt dt dt
d ( ρV )
= ρ0 F0 − ρ F
dt
Assumption:
ρ0= ρ= const
dV
= F0 − F
dt
10/18/2017 Chapter 2: Theoretical Modeling HMS 2006-2016 22
Example: Stirred-tank Blending Process
Conservation of Mass:
dV
ρ = ω1 + ω2 − ω
dt
Conservation of Component :
d (Vx )
ρ =ω1 x1 + ω2 x2 − ω x
dt
dx dV
ρV + ρx =ω1 x1 + ω2 x2 − ω x
dt dt
dx
ρV = ω1 x1 + ω2 x2 − (ω1 + ω2 ) x
dt
dh 1
= (ω1 + ω2 − ω )
dt ρ A
dx 1 1
= (ω1 x1 + ω2 x2 ) − (ω1 + ω2 ) x
dt ρ Ah ρ Ah
Impurity
m n
dh
=∑ ωini hini − ∑ ωout
j j
hout +q
dt i 1 =j 1
=
∂h
Cp =
∂T P = const
h − href = C p ( T − Tref )
10/18/2017 Chapter 2: Theoretical Modeling HMS 2006-2016 26
Example: Heat Exchanger
Steam
Process Fluid
d ( ρVh )
= F0 ρ h0 − F ρ h
dt
dT F
= =
V const & F0 F = ( T0 − T )
dt V
10/18/2017 Chapter 2: Theoretical Modeling HMS 2006-2016 28
Constitutive equations
Heat transfer equations:
– Thermal conduction
– Convection
– Radiation
Chemical Thermodynamics equations
Phase equilibrium equations
…
Change symbols: ∆x → x , ∆u → u , ∆y → y
x =
Ax + Bu , x (0) =
x0 − x
=
y Cx + Du
dT F
= f ( F ,T=
,T0 ) ( T0 − T )
dt V
At working point:
F
=0 f ( F ,T=
,T 0 ) ( T 0 −T )
V
dT ∂f ∂f ∂f
= f ( F ,T ,T0 ) ≈ f ( F ,T ,T 0 ) + ∆F + ∆T + ∆T0
dt ∂F ∂T ∂T0 F ,T ,T 0
0
T 0 −T F F
= ∆F − ∆T + ∆T0
V V V
dT d ∆T d ∆T F T 0 −T F
= + ∆=
T ∆F + ∆T0
dt dt dt V V V
10/18/2017 Chapter 2: Theoretical Modeling HMS 2006-2016 36
We denote: y=
∆T , u =
∆F , d =
∆T0
V dy T 0 −T
= +y u+d
F dt F
Laplace transform for both side:
V T 0 −T
y ( s ) +=
s y( s ) u( s ) + d ( s )
F F
k 1
y( s )
= u( s ) + d( s )
τs +1 τs +1
Gp ( s ) Gd ( s )
V T 0 −T
τ =
= ,k
F F
ρ Ahs∆X ( s ) =
−w ∆X ( s ) + ( x1 − x )∆W1 ( s ) + ( x2 − x )∆W2 ( s ) + w1∆X1 ( s ) + w2 ∆X 2 ( s )
Denote parameters
ρ Ah x1 − x x2 − x w1 w2
=τ =
, kw1 x =, kw 2 x = , kx1 x = , kx 2 x
w w w w w
We have a familiar transfer function form:
kw1 x kw 2 x kx1 x kx 2 x
∆X ( s ) = ∆W1 ( s ) + ∆W2 ( s ) + ∆X ( s ) + ∆X ( s )
τ s +1 τ s +1 τ s +1 1 τ s +1 2
From two linearization differential equations, we can have the state space model
1 0 0 1 −h h
x = Ax + Bu +=
Ed A =
ρ Ah 0 −w , B
ρ Ah 0 x1 − x
y = Cx
1 h 0 0 1 0
= E = , C 0 1
ρ Ah 2
x − x w 1 w2
C( sI − A)−1 B, G d ( s ) =
G p ( s) = C( sI − A)−1 E
t i +1
Discretization: x i +=
1 xi + ∫ f ( x , u )dt
ti
Euler method: x i +1 ≈ x i + (t i +1 − t i )f ( x i , u i )
Trapezoid method
1
x i +1 ≈ x i + (t i +1 − t i )[ f ( x i , u i ) + f ( x i +1 , u i +1 ) ]
2
(1)
(1) depend on xi+ 1, but can be est imat ed using Euler Formula
(Runger-Kut t a for second degree equat ion)
Discretization:
kT +T A( kT +T −τ )
+ T ) e AT x ( kT ) + ∫
x ( kT= e Bu(τ )dτ
kT
kT +T A( kT +T −τ )
= e AT x ( kT ) + ∫ e dτ Bu( kT )
kT
T At
= e AT x ( kT ) + ∫ e dtBu( kT )
0
= Φx ( kT ) + Γu( kT )
Φ =e AT
T
Γ =∫ e At dtB
0
1. Express derivatives:
plot(t,y(:,1));
title('Step change in 10% feed rate \itw_1');
xlabel('Time (min)');
ylabel('Level h (m)');
grid on
figure(2);
plot(t,y(:,2));
title('Step change in 10% feed rate \itw_1');
xlabel('Time (min)');
ylabel('Composition x');
grid on