Escolar Documentos
Profissional Documentos
Cultura Documentos
(FB)sp
Fresh A
LS R/F
Feed ×
Fresh B
Feed
5
LC
PC F/O
TC 4
PT
LC F/O
Steam 1 ×
TT TC
L/F
TT LC
F/C 2 Steam
F/C
3
C Product
F/O
Control Systems
• Feedback control
– The process variable of interest is measured and
used to adjust another process variable
• Feedforward control
– Measure disturbances and take corrective action
before they upset the process
Schematic of Feedback Loop General diagram
All control system contains: the
controller, the actuator, the
process, and the sensor .
Error Manipulated
variable
Controlled
variable Disturbance
Setpoint e c u
+ Controller Actuator Process
-
Controlled
Variable
Sensor
Chemical Process Control
ChE 462
Week 2
Yinjie Tang
Office: Cupples II, Room 201
E-mail: yinjie.tang@seas.wustl.edu
http://users.seas.wustl.edu/tang/
Classification of Models
• Lumped parameter models
– Assume that the dependent variable does not change with spatial location
within the process, e.g., a perfectly well mixed vessel.
– Macroscopic balances are typically applied for conservation of mass,
moles, or energy
– Result in ODE’s.
(F1)spec
FC
FT
F1 F2
T1 T2
TT
ODE dT
k1t 2 k2t
dt
Example of a Distributed Parameter Process
Heat exchanger
2
PDE T T
C k 2t
t X2
PC Steam
T outlet TT PT
Feed
Condensate
Solve ODE and PDE
1. Exact (closed-form) solutions
Laplace Transform or
http://eqworld.ipmnet.ru/
2. Numerical method.
2. Numerical method.
• The ODEs that represent the dynamic behavior of control
systems are not usually very stiff.
– Euler integrator or Runge-Kutta is usually the most effective integrator to
use (via MATLAB).
• Accuracy and stability are key issues. Reducing integration step
size improves accuracy and stability of explicit integrators
Example: solve dx SX
0.2 Initial Condition
dt 1 S
dP SX X(0)=0.05
0.04
dt 1 S
dS SX
S(0)=10
dS 0.8 SX
dt 0.8 1 S
dt 1 S P(0)=0
Euler integrator
y3 y4
y2
y1
y0 a
http://en.wikipedia.org/wiki/File:Euler_method.png
Solve ODEs using Excel
dP SX
0.04
dt 1 S
dS
dS SX
SX
dt 00..88 1 S
dt 1 S
Excel file will be provided online
Other consideration of dynamic modeling for process
control: the dynamics of the actuator, the sensor and
sensor noise, the transmitter.
– For example, all feedback control loops have a controller,
an actuator, a process, and a sensor where the controller
chooses control action based upon the error from set-point.
– The process responds dynamically to the change in the
manipulated variable; Control systems affect the process
through the actuator system which has its own dynamics;
The response of the process is measured by sensor system
which has its own dynamics.
Disturbance
Setpoint e c u
+ Controller Actuator Process
-
Controlled
Variable
Sensor
There are many control systems for which the dynamics of
the actuator and sensor systems are important.
c u y ys
Actuator Process Sensor
www.artblogbybob.blogspot.com/2007_07_01_archive.html
Dynamic Model for Sensors
Input Output
50 oC 4 mA
T=60 oC ? 5.6 mA
150 oC 20 mA
20mA 4mA o
mA
Tm o o
(T 50 C ) 4mA
150 C 50 C
mA T
(0.16 o )T ( o C ) 4mA
C
Km (the gain).
Control Model Examples
(Chapter 1 & 2)
1. Blending systems
2. Model for a Series Reaction
3. Stirred Tank
4. Bioreactor
Example 1: A Blending Process
X2,
Mixture of A and B W2
X1 and W1
Product
V, ρ X, W
???: X=Xsp
Overall balance:
d (V )
w1 w2 w
dt
Component A balance:
d ( xV )
w1 x1 w2 x2 wx
dt
Model Equations
X2, W2
Mixture of A and B
X1 and W1
Product
X, W
???: X=Xsp
X1
Product
X, W
???: X=Xsp
t
X SP X 1 (t )
W2 (t ) W1
1 X SP
A simple feedback control algorithm (proportional control)
Method 2
Mixture of A and B AC
X1 and W1
X2
W2
X1 AT
Product
X, W
???: X=Xsp
t
W2 (t ) W2 Kc[ X SP X (t )]
Unsteady State Blending Process
Considering the density of the liquid, ρ, is a constant
Overall balance: 0≠W1+W2-W
dV
w1 w2 w
dt
d (Vx)
w1 x1 w2 x2 wx
dt
How to simplify???
Equation below can be simplified by expanding the accumulation
term using the “chain rule” for differentiation of a product:
d Vx dx dV
V x (2-14)
dt dt dt
dV 1
Since ( w1 w2 w) we get the dynamic model
dt
dx w1 w2 (2-18)
( x1 x) ( x2 x)
dt V V
Degree of freedom
NF=NV-NE
NF: Degree of freedom
NV: Number of Process Variables (time is not process variable)
NE: Number of Independent Equation
NFC: the control degree of freedom (independent material/energy streams), e.g.,
Temp, Flow, Comp…
Controlled variable: V , x, w
Parameter: ρ Disturbance variable: x1, w1,
Eq=2 Manipulated variables: x2, w2
Variable: V, x, x1, x2, w, w1, w2
NF = 5
Calculation (Example 2.1)
A constant liquid holdup: V=2 m3 , ρ = 900kg/ m3
d (V ) AT
w1 w2 w Product
dt X, W
d ( xV )
w1 x1 w2 x2 wx
dt
Steady state: 0 w1 w2 w
Solve: x(0)=0.5
0 w1 x1 w2 x2 wx
0 w1 w2 w
Initial condition: x(0)=0.5
dx
V w1 x1 w2 x2 wx
dt
500 W1
400
300
W
200
100
0
0 5 10 15 20 25 30 35
T
0.52
0.516
X
0.512
0.508
0.504
0.5
0.496
0 5 10 15 20 25 30 35
X(t)=0.517-0.017exp (-t/3)
Example 2: Model for Product Composition for
CSTR with a Series Reaction
r1 r2
F: mass/time A B C
CAO , F, ρ, Vr r1 k1 CA2 r2 k 2 CB
FC
FT Component A:
Feed dCA F
Vr CA 0 CA Vr k1CA2
CA, CB, CC dt
Product
Component B:
AT
dCB FCB
Vr Vr k1CA2 Vr k 2CB
dt
Chapter 2: 2-3
Stirred-Tank Heating Process
Assumptions:
dT
V C wC Ti T Q (2-36)
dt
Degrees of Freedom Analysis for the Constant
Volume Stirred-Tank Model
parameters: V , ,C
dT variables: T , Ti , w, Q
V C wC Ti T Q (2-36)
dt equation: Eq. 2-36
The process variables are classified as:
Chemicals
Biosynthesis of high-value products
Carotenoids
Lycopene
C-40 Tetraterpene
1. Batch: A bioreactor is filled with fresh medium and then inoculated. At the end of
the fermentation, the contents are removed for down stream processing. The reactor is
then cleaned, sterilized and refilled for the next fermentation. (2nd most used)
Growth Rate
rg X (2-93)
Monod Equation
S
max (2-94)
Ks S
0 order
Reaction rate
1/2 umax
S
max (2-94)
Ks S
Ks
• Cells: d ( XV )
V rg (2-98)
dt
• Product:
d PV
Vrp (2-99)
dt
• Substrate:
d( SV ) 1 1
F Sf V rg V rP (2-100)
dt YX / S YP / S
To improve the
Cooling medium at temperature Tc production rate, should
we increase q?
dX q q
X X D vs
dt V V
If D > , Washout!!!
Process Control and Optimization
• Control has to do with adjusting flow rates to
maintain the controlled variables of the process at
specified setpoints.
• Optimization chooses the values for key setpoints
such that the process operates at the “best”
economic conditions.
– For example, Control has to do with maintaining
controlled variables at their setpoints, meanwhile adjust
the setpoints for certain controllers to optimize the
economic performance
Maximizing the Profit of a Plant
• Many times involves controlling against constraints.
• The closer that you are able to operate to these
constraints, the more profit you can make. For
example, maximizing the product production rate
usually involving controlling the process against one or
more process constraints.
– Consider a reactor temperature control example for which at
excessively high temperatures the reactor will experience a
temperature runaway and explode.
– But the higher the temperature the greater the product yield.
– Therefore, better reactor temperature control allows safe
operation at a higher reactor temperature and thus more profit.
Optimization and Control of a
CSTR
Temperature
Setpoint
Optimizer
FC
FT Feed
TT
Steam
Product
Economic parameters, operating
conditions, and reaction parameters
Q
E1 / R 5033K E2 / R 10,065 K
Q 10 L / s Vr 100 L
C AO 1.0 gmole / L VAF $0.15/ gmole
VA $0.10 / gmole VB $0.50 / gmole
VC $0.2 / gmole
Optimization Example
Mole balance on A :
Q C A0 Q CA k1 exp[ E1 / RT ] C A Vr = 0
Solving for C A
C A0
CA
k1 exp[ E1 / RT ]Vr
1
Q
Likewise, C B and CC are calculated from mole
balances.
Economic Objective Function
Q C A VA Q C B VB Q CC VC Q C A 0 V AF
3. Evaluate
2
Economic Objective
1.5
Function,
0.5 T*
0
250 275 300 325 350
-0.5
Reactor Temperature (K)
Process Optimization
• Typical optimization objective function, :
= Product values-Feed costs-Utility costs
• The steady-state solution of process models
is usually used to determine process
operating conditions which yields flow
rates of products, feed, and utilities.
• Unit costs of feed and sale price of products
are combined with flows to yield
• Optimization variables are adjusted until
is maximized (optimization solution).
Generalized Optimization
Procedure (Chapter 19)
Optimization Economic
Variables Function
Value
Model
Results Economic
Process Economic
Function
Model Parameters
Evaluation
Homework (Chapter 2 and 9)
• Problem 2.1, 2.3, 2.13, 2.17, 9.1 and 9.2
Chemical Process Control
ChE 462
(Week 3)
0 0<x≤1 Q(x)
Q(x)= 2(x-1) 1<x≤2
0 2<x
0 0<x<1
y= 2e–x+1+2(x-2) 1<x<2 y
2e e –x 2<x
An easier way to solve dynamics:
Laplace Transforms
• Laplace transform is one of the best known integral
transforms. It is commonly used to produce an easily solvable
algebraic equation from an ordinary differential equation.
• It has many important applications in control engineering:
provide valuable insight into process dynamics (a major
portion of the terminology of the process control profession)