Professional Documents
Culture Documents
CH4404 Lecture 04 ModellingProcessDynamics 3
CH4404 Lecture 04 ModellingProcessDynamics 3
2
Energy balance example: Heated room
3
Model assumptions
𝑄ሶ 𝑜𝑢𝑡
• Heat loss model
• 𝑄ሶ 𝑜𝑢𝑡 = 𝐴ℎ(𝑇 − 𝑇𝑠 )
• 𝐴 = 2 6 + 8 2.4 m2 = 67.2 m2
• Room is well-mixed
• Volume: 115 m3 𝑄ሶ 𝑜𝑢𝑡
𝑄ሶ 𝑖𝑛
4
Variables
• Input variables
• Heating rate 𝑄ሶ 𝑖𝑛
• Room dimensions (determine area and volume)
• Temperature of the surroundings 𝑇𝑠
• Heat transfer coefficient ℎ
• Air 𝜌, 𝑐𝑣
• Output variable
• Room temperature 𝑇
5
Energy balance
𝑑𝐸
= 𝑚ሶ 𝑖𝑛 ℎ𝑖𝑛 − 𝑚ሶ 𝑜𝑢𝑡 ℎ𝑜𝑢𝑡 + 𝑄ሶ 𝑖𝑛 − 𝑄ሶ 𝑜𝑢𝑡 + 𝑊
ตሶ 𝑖𝑛 − 𝑊
ถሶ 𝑜𝑢𝑡
𝑑𝑡
inlets outlets 0 0
0 0
𝑑𝐸
= 𝑄ሶ 𝑖𝑛 − 𝑄ሶ 𝑜𝑢𝑡
𝑑𝑡
𝑑
𝑚𝑢 = 𝑄ሶ 𝑖𝑛 − 𝐴ℎ 𝑇 − 𝑇𝑠
𝑑𝑡
𝑚𝑢 = 𝜌𝑉𝑐𝑣 𝑇
𝑑𝑇
𝜌𝑉𝑐𝑣 = 𝑄ሶ 𝑖𝑛 − 𝐴ℎ 𝑇 − 𝑇𝑠
𝑑𝑡
6
Steady state
𝑑𝑇
0 = 𝜌𝑉𝑐𝑣 = 𝑄ሶ 𝑖𝑛
∗
− 𝐴ℎ 𝑇 ∗ − 𝑇𝑠
𝑑𝑡
𝑄ሶ 𝑖𝑛
∗
= 𝐴ℎ 𝑇 ∗ − 𝑇𝑠
𝑄ሶ 𝑖𝑛
∗
175 W W
ℎ= ∗
= 2 ∘
= 0.2 2
𝐴 𝑇 − 𝑇𝑠 67.2 m 18 − 5 C m ⋅K
7
Deviation variables
8
Solution
𝑑𝑇 ′
𝜌𝑉𝑐𝑣 = −𝐴ℎ𝑇 ′
𝑑𝑡
′ ′
𝐴ℎ
𝑇 𝑡 = 𝑇 0 exp − 𝑡
𝜌𝑉𝑐𝑣
∗ ∗
𝐴ℎ
𝑇 𝑡 = 𝑇 + (𝑇 0 − 𝑇 ) exp − 𝑡
𝜌𝑉𝑐𝑣
1
𝑇 𝑡 = 23.6 − 5.6 exp − 𝑡 (°C)
7372 s
9
Gain and time constant
• Time constant
𝜌𝑉𝑐𝑣
𝜏= = 7372 s ≈ 2 hours
𝐴ℎ
• Gain
𝑄ሶ 𝑖𝑛
∗
𝑄ሶ 𝑖𝑛 (0)
𝑇𝑠 + − 𝑇𝑠 +
∗
𝑇 − 𝑇(0) 𝐴ℎ 𝐴ℎ
=
𝑄ሶ 𝑖𝑛 − 𝑄ሶ 𝑖𝑛 (0)
∗
𝑄ሶ 𝑖𝑛
∗
− 𝑄ሶ 𝑖𝑛 (0)
1 1
= = = 0.0744 K/W
𝐴ℎ W
67.2 m2 0.2 2
m ⋅K
10
Estimation of model parameters from experimental data
• 2 important quantities: process gain and time constant
• Process gain
Δoutput
• For two steady states, what is ?
Δinput
• In tank level example:
• Output (height) changed from ℎ 0 = 2 m to ℎ∗ = 2.25 m
• Due to change in input (𝑉ሶ𝑖𝑛 ) from 400 to 450 L/s
2.25 m
ℎ 𝑡
2m
Δ𝑡 = 𝜏 = 25 s 11
Estimation of model parameters from experimental data
• Time constant
• Apply a step change in the input and record the output
• Draw tangent at 𝑡 = 0; determine time to reach steady value with
initial slope
or
• Determine time when 63% of change occurs
2.25 m
2 + 0.63 2.25 − 2 = 2.16 ℎ 𝑡
2m
Δ𝑡 = 𝜏 = 25 s 12
Higher order systems
𝑑ℎ1 𝜌𝑔
𝐴1 ሶ
= 𝑉𝑖𝑛,1 − ℎ1
𝑑𝑡 𝑅𝑣,1
𝑑ℎ2 𝜌𝑔
𝐴2 ሶ
= 𝑉𝑖𝑛,2 − ℎ2
𝑑𝑡 𝑅𝑣,2
𝜌𝑔
Coupled together: 𝑉ሶ𝑖𝑛,2 = 𝑉ሶ𝑜𝑢𝑡,1 = ℎ
𝑅𝑣,1 1
13
Higher order systems
15