Control Chapter 2 Modelling
Control Chapter 2 Modelling
Mathematical Modeling
Fall 2022
1
Outlines
2
Mathematical Modeling of Chemical Processes
Mathematical Modeling:
Mathematical representation of the essential aspects of an existing
process (or a process to be constructed) in a usable form.
3
Modeling inherently involves a compromise between model accuracy
and complexity on one hand, and the cost and effort required to
develop the model, on the other hand.
4
Classification of Models
Theoretical models
5
Theoretical Model
Material/energy balances
6
Theoretical Model:
7
Conservation Laws
Conservation of Mass
Conservation of Component i
8
Conservation of Energy
The general law of energy conservation is also called the First Law of
Thermodynamics. It can be expressed as:
9
Empirical Model
10
Dynamic Versus Steady-State Models
Steady-state model:
Steady state: No further changes in all variables with time.
Can be obtained by setting the time derivative term zero.
Steady-state model of chemical processes consist of:
Linear model:
12
Nonlinear Linear model:
13
Systematic Approach for Developing Dynamic Models
14
6. Introduce equilibrium relations and other algebraic equations (from
thermodynamics, transport phenomena, chemical kinetics, equipment
geometry, ..etc).
15
Degree of Freedom (NF) Analysis:
NF = NV – NE
16
A Systematic Approach for NF Analysis
1. List the model parameters: quantities in the model that are known
constants (or parameters that can be specified) on the basis of equipment
dimensions, known physical properties, etc.
2. Determine the number of equations NE and the number of process
variables, NV. Note that time t is not considered to be a process variable
because it is neither a process input nor a process output.
3. Calculate the number of degrees of freedom, NF = NV - NE.
4. Identify the NE output variables that will be obtained by solving the
process model.
5. Identify the NF input variables that must be specified as either
disturbance variables or manipulated variables, in order to utilize the
NF degrees of freedom.
17
Solution of Model
ODE model
Linear case: find the analytical solution via Laplace transform, or
other methods of calculus.
Nonlinear case: analytical solution is difficult or usually does not
exists.
Use a numerical integration, such as Runge-Kutta (RK)
method, by defining initial condition, time behavior of
input/disturbance.
Linearize around some condition (usually steady state) and
then find the analytical solution.
18
Linearization of non-linear term is performed using Taylor Series
expansion around equilibrium (steady state)
19
Example 1: Liquid storage tank
(a) Find the steady-state outlet
volumetric flow rate (q) and liquid
height (h)?
Assumptions:
The valve loss coefficient, Cv, does not vary with flow rate.
20
Example 1: Liquid storage tank
21
Example 1: Liquid storage tank
22
Example 1: Liquid storage tank
23
Example 1: Liquid storage tank
NF = NV - NE
NV = 3 (qi, q, h)
NE = 2 (MB, MEB)
Input variables: qi
24
Example 1: Liquid storage tank
25
Example 1: Liquid storage tank
(b) Suppose that inlet volumetric flow rate, qi, changes suddenly from 6 to
9 L/s and remains at this new value (step change in qi), how the liquid
height varies with time. How long does it take to reach the new steady
state value?
26
Example 1: Liquid storage tank
Remarks:
Note that t = 0 does NOT mean startup from rest, it mean the old
steady-state situation.
The above 1st–order nonlinear ODE can be solved analytically by
separation of variables.
27
Analytical solution:
28
Example 1: Liquid storage tank
Let us linearize the nonlinear term; ℎ
Let: 𝑓 ℎ = ℎ
Taylor series expansion around: ℎ = ℎ = 1.148𝑚
30
Example 1: Liquid storage tank
31
Example 1: Liquid storage tank
Remarks:
32
Example 2: Blending Process
Assumptions:
33
Example 2: Blending Process
where w1, w2, and w are mass flow rates and V is liquid volume in the
tank.
34
Example 2: Blending Process
35
Example 2: Blending Process
Note that this model is classified as: first order linear dynamic model
36
Example 2: Blending Process
Parameters:
37
Example 2
38
Example 2
39
Example 2
(b) Suppose w1 changes suddenly from 500 to 400 kg/min and remains at
this new value, how is the response of the composition x(t), plot it ?
Overall MB:
Component MB:
Analytical solution:
Integrate to have:
(c) Repeat part (b) for the case where w2 (instead of w1) changes
suddenly from 200 to 100 kg/min and remains at this new value, how
is the response of the composition x(t), plot it?
42
Example 2
(d) Repeat part (c) for the case where x1 changes suddenly from 0.4 to
0.6 and remains at this new value, how is the response of the
composition x(t), plot it ?
43
Example 2
44
Example 2
e) For part (b) to (d), plot the normalized response xN(t) defined as:
45
Example 2
Plot xN(t) versus t for different cases to see the dynamic response:
46
47
Example 3 : CSTR
A continuous stirred-tank reactor ( CSTR) is used to produce a compound R
in the liquid-phase elementary reaction A → R. Feed enters the reactor at
rate of qi (L/s): the concentration of reactant in the feed is CA0 (mol A/L).
The volume of the tanks content is V (L). The vessel may be considered
perfectly mixed, so that the concentration of A in the product stream
equals that in the tank. For this process the rate of consumption of A is -rA
(mol A/s.L). All fluids (the feed, the tank content , and the product) may be
taken to have the same density) (g/L). The reaction takes place under
isothermal conditions.
48
Example 3
49
Example 3
50
Example 3
Parameters: , k
51
Example 3
52
Example 3
d) Suppose the feed flow rate changes suddenly from 0.4 to 0.8 L/s and
remains at this new value, plot the response of concentration CA(t).
53
Example 3
54
Example 3
55
Example 3
(e) Suppose that you would like to introduce a level controller to control
the liquid volume, V, by manipulating the outlet flow rate, q, and
concentration controller to control CA by manipulating qi. How the
dynamic model will be for such control tasks?.
57
Example 4
(a) Write the dynamic model to describe the temperature response, T(t):
Assumptions:
1. Perfect mixing; thus, the exit temperature T is also the temperature of
the tank contents.
2. The liquid holdup, V, is constant because the inlet and outlet flow rates
are equal.
3. The density, , and heat capacities of the liquid are assumed to be
constant. Thus, their temperature dependence is neglected.
4.Heat losses are negligible.
5. The net rate of shaft (mixer) work can be neglected because it is small
compared to the rates of heat transfer and convection→ 𝑊̇ ≈0
58
Example 4
Here, MEB is NOT applicable since this process is neither adiabatic nor
isothermal. Energy balance must be applied instead:
59
Example 4
p: Pressure
60
Example 4
61
Example 4
But the cross-section area of the inlet pipe is the same as that of the
outlet one: → 𝑢 =𝑢
62
Example 4
63
Example 4
One of the assumption is that heat capacities of the liquid are assumed
to be constant. Thus, their temperature dependence is neglected:
64
Example 4
Parameters: , V, C
NV = 5 ( 𝑄̇, Ti , qi ,T , q )
NE = 2
Output variables: T , q
65
Example 4
(c) Assume that the process has been operating for a long period of time
with flow rate of qi=10 m3/hr, heating rate of 𝑄̇ = 4.98 × 10 cal/hr and
inlet temperature of 40 oC. In addition, the liquid density is 1000
kg/m3 and liquid heat capacity is 1 cal/g.oC, and the liquid volume in
the tank is 20 m3. What is the steady-state temperature inside the tank?
66
Example 4
(d) Suppose that the heating rate increases to double its old value and
remains at this new value, plot the time response of temperature
deviation about its old steady-state value?
68
Example 4
69
Example 4
(e) Suppose that now you turned off the electric heater, how long does it
take for temperature to return from its new value (139.6) oC to the
original steady-state value( 89.8 oC) ?
Analytical Solution:
Thus, the time required for liquid temperature to return back to its
original st. st. value is:
71