Professional Documents
Culture Documents
Control
Hare Krishna Mohanta
BITS Pilani Department of Chemical Engineering
B.I.T.S-Pilani, Pilani Campus
Pilani Campus
CHAPTER 2
BITS Pilani CHE F342: PROCESS DYNAMICS AND CONTROL
Pilani Campus
Ch 2: Theoretical Models of Chemical Processes
23 January 2019 3
BITS Pilani, Pilani Campus
Unsteady State Models (Dynamic Models)
• Uses of Models
1. To understand the process
2. To train the plant operators
3. To develop the control system for the process
4. To optimize the plant operating conditions
Models
• Types of Models
Theoretical Models Empirical Models Semi-empirical
(Using the principles (Fitting the Models (Combination
of physics, chemistry experimental input of theoretical and
and biology) and output data) empirical models)
23 January 2019 4
BITS Pilani, Pilani Campus
Theoretical Models
• Advantages
1. Applicable over a wide range of process conditions
2. Provide physical insight into the behavior of the process
• Limitations
1. Time consuming to develop and expensive
2. Models for complex process typically include some model parameters
that are not readily available
e.g.-reaction rate constant, heat transfer coefficient, physical properties
23 January 2019 5
BITS Pilani, Pilani Campus
Empirical Models
• Advantages
– Easier to develop than theoretical models
• Limitations
– They don’t extrapolate well constrained to an operating
condition
23 January 2019 6
BITS Pilani, Pilani Campus
Semi-Empirical Models
• Advantages
• Incorporate theoretical knowledge
• They can extrapolate over a wide range of
operating conditions, than empirical models
• Require less development effort than theoretical
models, so mostly used in industries
23 January 2019 7
BITS Pilani, Pilani Campus
Theoretical Modeling
23 January 2019 8
BITS Pilani, Pilani Campus
Component Balance
23 January 2019 9
BITS Pilani, Pilani Campus
Energy Balance
23 January 2019 10
BITS Pilani, Pilani Campus
Special Case of Energy Balance
Equation
For chemical processes:
• ∆P,∆K can be neglected because they are very small compared to U
• Shaft work, Ws can be neglected for most of the chemical processes
Therefore Energy Balance Eq can be written as:
23 January 2019 11
BITS Pilani, Pilani Campus
Examples
Blending Process
Assumptions
• Mixing must be uniform, to prevent composition changes within and outside.
x is not a function of space
23 January 2019 12
BITS Pilani, Pilani Campus
Degree of Freedom Analysis
23 January 2019 13
BITS Pilani, Pilani Campus
Cases
23 January 2019 14
BITS Pilani, Pilani Campus
Steps for Degrees of Freedom Analysis
(DoFA)
1. List of all quantities in the model that are known constants (or parameters that can be specified) on
the basis of equipment dimensions, known physical properties and so on.
2. Determine number of equations(NE) and number of variables (Nv)
3. Calculate the number of degrees of freedom: NF=NV-NE
4. Identify NE number of output variables that will be obtained by solving the process model
5. Identify NF number of input variables that must be specified as DV’s of MV’s, in order to utilize NF
degrees of freedom.
6. Identify ND disturbance variables which are generally determined by upstream conditions
7. Calculate the control degrees of freedom (NFC) as:
NFC= NF-ND=NMV=NCV
8. Identify the MVs and make CV-MV pairing for the system from the process knowledge.
9. Define the control objectives (Nco) and calculate the net degrees of freedom.
NFN = NFC - NCO
If NFN = 0, the system is completely specified.
23 January 2019 15
BITS Pilani, Pilani Campus
DoFA (Examples)
NFC CVs:- V ,x
23 January 2019 16
BITS Pilani, Pilani Campus
DoFA (Blending Process) (Contd.)
NC = 2 LC
-
+
xsp
V
NFN = NFC – NCO = 2-2 = 0 AT
23 January 2019 17
BITS Pilani, Pilani Campus
Stirred-tank heating system (Constant
holdup)
Assumptions:
• Perfect Mixing
• Properties ,C are constant with temperature
• Heat losses are negligible
• Constant holdup (V= constant)
Energy Balance:
23 January 2019 18
BITS Pilani, Pilani Campus
CSTR (Constant Holdup)
Assumptions:
• Perfect Mixing
• Tc can be directly manipulated
• Cooling medium is at constant temperature Tc
• Properties ,Cp are constant with temperature
• Heat losses are negligible
• Heat of mixing is negligible compared to heat of reaction
• Heat transfer coefficient is constant
23 January 2019 19
BITS Pilani, Pilani Campus
Modeling of CSTR
No. of moles of A reacted per unit time = rAV (rA = moles of A/Vol. time)
Heat of reaction per unit mole of A reacted=∆HR (-Ve)
Heat generated per unit time=(-∆HR) rAV
Overall Material Balance:
qi = q or , qi = q
Component Balance:
Energy Balance:
23 January 2019 20
BITS Pilani, Pilani Campus
DOFA
• Parameters:
• Variables:
23 January 2019 21
BITS Pilani, Pilani Campus
CSTR (variable hold up)
23 January 2019 22
BITS Pilani, Pilani Campus
Double pipe heat exchanger
23 January 2019 23
BITS Pilani, Pilani Campus
Modeling of double pipe heat exchanger
23 January 2019 24
BITS Pilani, Pilani Campus
Energy balance for the fluid and metal
where
23 January 2019 25
BITS Pilani, Pilani Campus
Liquid Storage System
qi Case1: When q is constant, say q =
h q
Case2: When the valve has linear resistance q = h/R
• Mass balance
Case3: When the valve has nonlinear resistance (with turbulent flow)
23 January 2019 26
BITS Pilani, Pilani Campus
Solving Differential Eq with MATLAB
dy Dy
dt
2
d y
2 D2y
dt
n
d y
n Dny
dt
23 January 2019 27
BITS Pilani, Pilani Campus
Solving a 1st Order DE
The Matlab command used to solve differential equations is dsolve .
y (0) 9 C1 3
» ys=dsolve('Dy+2*y=12','y(0)=9')
ys =
6+3*exp(-2*t)
23 January 2019 29
BITS Pilani, Pilani Campus
Solving a 2nd Order DE
• Find the general solution of:
2
d y 2
2
c y 0
dt
» syms c y
» ys=dsolve('D2y = - c^2*y')
ys = C1*sin(c*t)+C2*cos (c*t)
y (t ) C1 sin( ct ) C2 cos( ct )
23 January 2019 30
BITS Pilani, Pilani Campus
Solving Simultaneous
Differential Equations
Given the equations: dx dy
3x 4 y 4 x 3 y
dt dt
General
x(t ) c1e3t cos(4t ) c2e3t sin( 4t )
solution is:
y(t ) c1e sin( 4t ) c2e cos(4t )
3t 3t
» syms x y t
» [x,y]=dsolve('Dx=3*x+4*y','Dy=-4*x+3*y')
x = exp(3*t)*(cos(4*t)*C1+sin(4*t)*C2)
y = -exp(3*t)*(sin(4*t)*C1-cos(4*t)*C2)
23 January 2019 31
BITS Pilani, Pilani Campus
Initial Conditions
Solve the previous system with the initial conditions:
x(0) 0 y (0) 1
» [x,y]=dsolve('Dx=3*x+4*y','Dy=-4*x+3*y',
'y(0)=1','x(0)=0')
x = exp(3*t)*sin(4*t) x e sin( 4t )
3t
23 January 2019 32
BITS Pilani, Pilani Campus
Solving DE with MATLAB
2
d y dy
2
3 2 y 24
dt dt
y(0) 10 y '(0) 0
>> syms y t
>> y = dsolve ('D2y + 3*Dy + 2*y = 24',
'y(0)=10', 'Dy(0)=0')
y = 12+2*exp(-2*t)-4*exp(-t)
>> ezplot(y, [0 6])
23 January 2019 33
BITS Pilani, Pilani Campus
23 January 2019 34
BITS Pilani, Pilani Campus