Modelling Note
Modelling Note
MODELLING
KKEK3154 Page | i
TABLE OF CONTENTS
PROCESS MODELLING 1
What is model of a process? 1
Use of model 1
Model category 1
General modelling principles 1
Basic Laws (Fundamental of Conservation of equations) commonly used 2
Conservation equations 2
Modelling Steps 4
Modelling Example No. 1: 5
Modelling Example No. 2: 6
Modelling Example No. 3: 7
Realistic model 8
LINEARIZATION 10
Linearize a nonlinear term? 11
PROCESS MODELLING
- Set of equations representing the process is the best estimate for the
actual process.
Use of model
Model category
3. Mixture of (i) and (ii) or one / two parameters is found from process data.
2. Energy equation
4. Transport equation
5. Equation of state
6. Equilibrium equation
7. Chemical Kinetics
Conservation equations
Mass flow in - mass flow out = rate of change with time for the mass in the
system.
Flow (in moles) of component A in - flow (in moles) of component A out + rate
of growth (in moles) for components A from chemical reaction = rate of
change with time (in moles) for component A in the system.
2. Energy Equation.
The flow of energy (internal Kinetic & Potential) into the system - the flow of
energy out + additional heat from the flow through conduction, radiation and
reaction - the work carried out on the environment = the rate of change with
time for energy in the system.
Molecular transport
Driving force
Overall transport
Driving force
Relationship -
* Driving force in terms of partial pressures and mole fractions are also commonly
used.
Note: The most common problem determining pressure drops through pipes, uses
5. Equation of state
Liquid density, ( )
Vapour density, ( )
Liquid enthalpy, ( )
Vapour enthalpy, ( )
6. Equilibrium
Where K is the chemical reaction rate at the temperature T (in kelvin), α is the
constant.
Modelling Steps
V – Volume
Q - Heater
Assumption:
Input flowrate,
C is constant
Tref is reference temperature
[ ( )] ( ) ( )
( )
Note: In this case, the dynamic model is a system of linear differential equation
( ) (1)
[ ] (2)
( ) ( )
( )( ) ( ) ( )
( )
(4)
Finally, Equation (3) and (4) are the dynamic models for this system.
KKEK3154 Page | 7
For this case (constant volume), assuming that the energy, is not transferred
The heating element has a thermal capacity with mass and the specific heat,
( ) (5)
(6)
Given;
( )
the heater to the tank; and is the surface area of heat transfer for the element. Q
second order differential equations by solving Eq. (5) for and the differentiate to
find . Finally, substitute the expression and into Eq. (6) and yields:
( )
KKEK3154 Page | 8
Realistic model
than necessary
It is for the model equations to have a unique relationship between the variables.
equations.
unique solutions)
(a) Example 1
Parameters: 3 V, ρ, C
Variables: 4 T, W, Ti, Q
i.e Nv = 4
Equation: 1
i.e. NE = 1
Degree of freedom, Nv – NE = 4 -1 = 3
(NF)
and output: T
(b) Example 2
Parameters: 2 ρ, C
Variables: 6 V, T, W i, W, Ti, Q
i.e Nv = 6
Equations: 2
i.e. NE = 2
NF = 6 -2 = 4
and output: V, T
KKEK3154 Page | 10
LINEARIZATION
(1)
If
But if √
( )
√ √ [ ( √ )] ( ) [ ( √ )]
√ ( ) ( )
√ √
So we get,
√ √ ( )
√
√ ( )
√
√ (4)
√
KKEK3154 Page | 11
( ) ; ( ) ( )
( ) ; ( ) ( )
( )
Taylor series expansion can be used to linearize the functions, ( ) of one variable
above.
( ) ( )
( ) ( ) | ( ) | ( )
( ) ( ) | ( ) | ( )
| ( ) | ( )
| ( )( )
KKEK3154 Page | 12
First order system is a system where the output ( ) can be modelled with
( ) (1)
if ( ) (2)
Here and
( )
( ) (4)
( )
Process with above transfer function is known as first order system OR first order
lag.
( )
1. Step Response
i.e. ( )
( ) ( )
𝑌(𝑡)
𝐴𝑘𝑝
𝑡
𝜏𝑝
KKEK3154 Page | 14
(3) Response value reach 63.2% of the final value when time elapsed equals
constant time, τ p
Time Elapsed
(4) Able to use the principle of superposition to input step with magnitudes,
i. ( ) when
KKEK3154 Page | 15
2. Impulse Response
X(s) = 1 ( if kp = l )
( )
By Laplace inversion,
( )
Plot ( ) vs , we get
KKEK3154 Page | 16
3. Sinusoidal Response
( ) ( )
ω = frequency in rad/time
( )
( ) where ( )
( ) ( ) ( )
( ) ( )
√
Where ( )
When ( )| ( )
√
(i) Output is sinusoidal wave with frequency ω, equals with the input signal
Constant density;
( )
( ) ( ) (1)
(2)
At steady state,
(3)
Where
( )
( )
Where (time constant process)
Given:
( ) (1)
( – ) (2)
( ) (3)
Where and –
( )
(4)
( )
V – hold up,
( )
(1)
At steady state
– (2)
( ) ( )
(3)
( )
( )
Where, ( )
KKEK3154 Page | 20
( )
( )
We find ( )
( )
( ) ( )
[ ( )] [ ( )] ( )
Shows that the final change in H(t) for unit change in Q(t) is R(kp).
N.B
For this system, we also can get the transfer function by relating the output flow rate
( )
( )
KKEK3154 Page | 21
(1)
(2)
(3)
(4)
With this,
( ) ( ) ( )
( ) ( ) ( )
If a change is made to step units of the inlet flow into the tank 1, ( )
( )
( )( )
( ) [ ( )]
Note
( )
∏
( )
1.
2.
3. ( ) (for interacting tank)
4.
At steady state,
5.
6.
KKEK3154 Page | 24
where
( )
( ) ( )
Assuming and A1 = A2
( )
( ) ( )( )
( )
Notes:
( )
( ) ( )
( )
KKEK3154 Page | 25
Second order system is where output, y(t) can be modelled with second order
differential e.g.
( ) (1)
( ) (2)
Taking Laplace transformation, using deviation variables (where initial state is 0), we
find,
( )
( )
( )
These systems can arise from several physical conditions, classified into three
categories:
( )
( )
Second order systems can be represented by transfer function that has denominator
as above.
( ) (3)
( )
Two poles for this transfer function is given by the roots of the polynomial
√ √
i.e. and
( ) (4)
( )( )
We get two poles that are real and different. over damped/non-oscillatory
Case B: When =1
damped or oscillatory.
For this case, inversing equation (4) with partial fraction expansion, we get,
( ) { ( (√ ) (√ ) )}
√
( ) ( )
resembles a first order system but has a slow response in the beginning
ξ<1
ξ=1
ξ>1
( ) [ ( ) ]
reaches towards final value faster than the over damped system.
( ) { ( )}
√
KKEK3154 Page | 30
√ √
Where is frequency in rad unit per time, and { } .
However, even though in the beginning it is faster and reaches final value
faster, it does not stay but oscillates with amplitude that decreases gradually.
This oscillation action is more apparent with small value for damping factor, .
All under damped responses in the chemical plant comes from interaction with
1. Overshoot
It is defined as A/B where B is the final value and A is the maximum value over
the final value and is a function of .
Overshoot ( )
√
2. Decay Ratio
Decay ratio, C/A is defined as ratio for 2 consecutive peaks and is a function of
the damping factor.
Decay ratio ( )
√
= (Overshoot)2
KKEK3154 Page | 31
3. Period of oscillation
√
Radian frequency (rad / time),
5. Response time
Time required for the response to come within ±5% of its ultimate final value and
remain there. The time to achieve this response is called response time.
6. Rise time
The time required for the response to first reach its ultimate or final value.
Summary
( ) ( )
From the general equation of second order system
( )
( )( )
For the case of oscillating system ( ), the roots for the denominator is a pair of
√ √
( )
( ) ( ) ( ) ( (√ ) (√ ) )
But ( )| ( ) ( )
We get,
( ) ( ) ; Where { ( )
}
√[ ( ) ] ( )
KKEK3154 Page | 33
√[ ( ) ] ( )
(2) Output follows the input with phase angle, |φ| and
( )
( )
( )
The roots of the polynomial Q (s) are called zeros of the transfer function or zeros of
system. The roots of the polynomial P (s) are called poles of the transfer function or
pole of system. Poles and zeros, in the system play an important role in the analysis
(1) ( )
(2) ( )
( )( )
(3) ( ) (Where k is steady state gain)
( )( )
Thus,
Zeros
Poles,
KKEK3154 Page | 35
( ) ( )
( ) ( ) ( )( )( ) ( )( )( )
Where,
( ) { }
( )
Several conclusions can be made based on the location of these poles in the plane
complex above.
(1) Real and different poles, such as and to produce exponent term (if inverted)
as and
If ; when,
If ; when
KKEK3154 Page | 36
(2) The actual multi-polar (real multiple poles) as produces terms like
[ ]
If , when
If , when
If , at every time
( )
If when
If when
If at every time
KKEK3154 Page | 37
Summary
The response nature to the location of the system poles can be summarized as
follow;
KKEK3154 Page | 38
( ) ( ) ∫ ( )
is Laplace Operator
Example:
( )
( ) ∫ |
Note:
( ) when t < 0
( ) when t ≥ 0
2. The Exponential Function
( ) when t < 0
( ) when t ≥ 0
3. The Ramp Function
( ) when t < 0
( ) when t ≥ 0
KKEK3154 Page | 39
( ) ( ) when t < 0
( ) ( ) when t ≥ 0
* Others Laplace transforms of various Time-Domain functions can be found in the textbook.
Transform of Derivatives
( )
i. { } ( ) ( )
( ) ( ) and ( ) ( )|
( ) ( )(
ii. { } ( ) ( ) )
( )( ) ( )( )
c) Translation of Transform
( ) ( )
d) Translation of Function
( ) ( )
KKEK3154 Page | 40
Additional theorems:
( )
[∫ ( ) ]
( ) ( )