CH4404 Lecture 01 ModellingProcessDynamics 1
CH4404 Lecture 01 ModellingProcessDynamics 1
2
Modelling process dynamics
3
ISS docking
𝐹 𝑡 = 𝑚𝑎
𝑑𝑣
𝑎= = 𝐹(𝑡)/𝑚
𝑑𝑡
𝑑𝑥
𝑣=
𝑑𝑡
• Similar equations for translation in other dimensions and rotation
• Solve for 𝑥(𝑡) and 𝑣(𝑡) for a sequence of thrust applications 𝐹(𝑡)
• Understand dynamics -> design automatic control scheme
𝑑2 𝑥
• (Note: This is an example of a second order process: 𝐹 𝑡 = 𝑚 2)
𝑑𝑡
4
Classification of variables
• Input variable
• any variable that affects the state of a process/system
• Output variable
• any variable that describes the state of a process/system
• output variables change in response to input variables
5
Classification of variables
6
Chemical process example
• CV?
• reactor temperature
• MV?
• cooling water flow rate
• DV?
• cooling water temperature www.pharmaceutical-technology.com
7
Conservation equations
8
Mass/mole balance
9
Energy balance
• Energy balance
𝑑𝐸
= 𝑚ሶ 𝑖𝑛 ℎ𝑖𝑛 − 𝑚ሶ 𝑜𝑢𝑡 ℎ𝑜𝑢𝑡 + 𝑄ሶ 𝑖𝑛 − 𝑄ሶ 𝑜𝑢𝑡 + 𝑊ሶ 𝑖𝑛 − 𝑊ሶ 𝑜𝑢𝑡
𝑑𝑡
inlets outlets
• 𝐸: internal energy (J), 𝐸 = 𝑚𝑢 where 𝑚 is mass (kg) and 𝑢 is specific internal energy
(J/kg)
• ℎ: enthalpy (J/kg)
10
Mass balance example: A tank
cross-sectional area: 𝐴
liquid level: ℎ
output flow rate: 𝑉ሶ𝑜𝑢𝑡
valve resistance: 𝑅𝑣
11
Classify variables
• Input
• 𝑉ሶ𝑖𝑛 , 𝐴, 𝑅𝑣 inlet flow rate: 𝑉ሶ𝑖𝑛
• Output
• ℎ, 𝑉ሶ𝑜𝑢𝑡
cross-sectional area: 𝐴
liquid level: ℎ
output flow rate: 𝑉ሶ𝑜𝑢𝑡
valve resistance: 𝑅𝑣
12
Conservation equation
• mass conservation
𝑑𝑚 inlet flow rate: 𝑉ሶ𝑖𝑛
= 𝑚ሶ 𝑖𝑛 − 𝑚ሶ 𝑜𝑢𝑡
𝑑𝑡
cross-sectional area: 𝐴
liquid level: ℎ
output flow rate: 𝑉ሶ𝑜𝑢𝑡
valve resistance: 𝑅𝑣
13
Valve model
14
Question
15
Question
16
• Define ℎ′ = ℎ − ℎ∗
• Then
𝑑ℎ 𝑑 ′ 𝑑ℎ ′
= ℎ + ℎ∗ =
𝑑𝑡 𝑑𝑡 𝑑𝑡
𝑉ሶ𝑖𝑛 𝜌𝑔 ′
= − ℎ + ℎ∗
𝐴 𝐴𝑅𝑣
𝑉ሶ𝑖𝑛 𝜌𝑔ℎ∗ 𝜌𝑔ℎ′
= − −
𝐴 𝐴𝑅𝑣 𝐴𝑅𝑣
𝜌𝑔ℎ′
=−
𝐴𝑅𝑣
17
• We have a linear, first order ODE, and its solution is
′ ′
𝜌𝑔𝑡 ′
𝑡
ℎ 𝑡 = ℎ 0 exp − = ℎ 0 exp −
𝐴𝑅𝑣 𝜏
𝐴𝑅𝑣
• 𝜏= = 25 s is called the time constant.
𝜌𝑔
• Per unit change in the flow rate (input), how much does the liquid level
(output) change (at steady state)?
𝑉ሶ𝑖𝑛,2 𝑅𝑣 𝑉𝑖𝑛,1
ሶ 𝑅𝑣
Δℎ ℎ2∗ − ℎ1∗ −
𝜌𝑔 𝜌𝑔
= =
ሶ
Δ𝑉𝑖𝑛 𝑉ሶ𝑖𝑛,2 − 𝑉ሶ𝑖𝑛,1 ሶ
𝑉𝑖𝑛,2 ሶ
− 𝑉𝑖𝑛,1
𝑅𝑣 ሶ ሶ
𝑉 − 𝑉𝑖𝑛,1 𝑅𝑣
𝜌𝑔 𝑖𝑛,2
= =
𝑉ሶ𝑖𝑛,2 − 𝑉ሶ𝑖𝑛,1 𝜌𝑔
18
• Finally, substitute the definition of ℎ′:
ℎ 𝑡 = ℎ∗ + ℎ 0 − ℎ∗ exp −𝑡/𝜏
2.25 m
ℎ 𝑡
2m
Δ𝑡 = 𝜏 = 25 s
• when 𝑡 = 𝜏, 63% of the change in ℎ has occurred
• when 𝑡 = 2𝜏, 86% of the change in ℎ has occurred
• when 𝑡 = 3𝜏, 95% of the change in ℎ has occurred
• when 𝑡 = 5𝜏, 99% of the change in ℎ has occurred
19
Process gain and time constant
20