Exercise on Process Control
Exercise on Process Control
11.21.2023
CHE 4117L
Construct Simulink models of the following problems and generate simulation plots. Write models
on a piece of bond paper or print your output.
1. 3
dx
dt
( )
+ x = 2 1 − e −4t , x(0) = 2
Rearranging terms:
𝑑𝑥 2 1
= 3 (1 − 𝑒 −4𝑡 ) − 3 𝑥
𝑑𝑡
Simulink model:
Simulink model:
Initial conditions for the first integrator is y’(0) = 1 and the second integrator is set at y(0) = 0
d 2x dx
3. 2
+ 6 + 9 x = cos t , x(0) = 0, x' (0) = 0
dt dt
Rearranging terms:
𝑑2 𝑥 𝑑𝑥
= cos(𝑡) − 6 𝑑𝑡 − 9𝑥
𝑑𝑡 2
Simulink model:
Initial conditions for both integrators are set at x(0) = 0 and x’(0) = 0
Sine wave function settings:
4. Oil initially at 60oF is being heated in a stirred (perfectly mixed) tank by saturated steam which
is condensing in the steam coils at 40 psia (Ts = 267oF). Referring to the diagram below, construct
a simulation model for this process and show the simulation plot.
Additional Data:
Initial amount of oil inside the tank, M = 5000 lb
Initial temperature of oil inside the tank = 60oF
Heat exchange transfer coefficient, h = 291 Btu/hr oF
Heat Capacity of oil, Cp = 0.5 Btu/lb oF
Neglect the effect of kinetic energy, potential energy and impeller contributions.
Given:
𝑙𝑏
𝑚𝑜𝑖𝑙,𝑖𝑛 = 𝑚𝑜𝑖𝑙,𝑜𝑢𝑡 = 1018
ℎ𝑟
𝑇𝑖 = 60℉
𝑇𝑠 = 267℉
𝑃𝑠 = 40 𝑝𝑠𝑖𝑎
𝑇𝑜𝑢𝑡 = 90℉
𝑚𝑜𝑖𝑙,𝑡𝑎𝑛𝑘 = 5000𝑙𝑏
𝑇𝑖,𝑡𝑎𝑛𝑘 = 60℉
𝐵𝑡𝑢
𝐶𝑝,𝑜𝑖𝑙 = 0.5
𝑙𝑏℉
𝐵𝑡𝑢
ℎ = 291
ℎ𝑟℉
Solution:
According to Newton’s heating law:
𝑄̇ = ℎ(𝑇𝑠 − 𝑇𝑜𝑢𝑡 )
𝐸𝑛𝑒𝑟𝑔𝑦 𝑏𝑎𝑙𝑎𝑛𝑐𝑒 𝑎𝑟𝑜𝑢𝑛𝑑 𝑡ℎ𝑒 𝑡𝑎𝑛𝑘:
̇ ̇ 𝑑𝑈
∑ 𝐸𝑖𝑛 − ∑ 𝐸𝑜𝑢𝑡 + 𝑄̇ + 𝑊̇ =
𝑑𝑡
̇ 1 2
∑ 𝐸 = (𝑈 + 𝑣 + 𝑔𝑧 + 𝑃𝑉)
2
From assumptions:
2 2
𝑣𝑜𝑢𝑡 = 𝑣𝑖𝑛
𝑧𝑜𝑢𝑡 = 𝑧𝑖𝑛
𝑑𝑈
= (𝑈 + 𝑃𝑉)𝑖𝑛 − (𝑈 + 𝑃𝑉)𝑜𝑢𝑡 + 𝑄̇
𝑑𝑡
Note:
𝑈 = 𝑚𝑜𝑖𝑙 𝐶𝑣 𝑇𝑜𝑢𝑡
dC A
= − k1 f (C A ) + k1r (C B )
dt
dC B
= k1 f (C A ) − k1r (C B ) − k 2(C B )
dt
dCC
= k 2(C B )
dt
Data: k1f = 2, k1r = 1, k2 = 1.25 hr-1 and the initial concentration of A, CA0 = 1 mol/L.
Find the response of CA, CB and CC as a function of time.
𝑑(𝐶𝐴 )
= −2𝐶𝐴 + 𝐶𝐵
𝑑𝑡
𝑑(𝐶𝐵 )
= 2𝐶𝐴 − 𝐶𝐵 − 1.25𝐶𝐵 = 2𝐶𝐴 − 2.25𝐶𝐵
𝑑𝑡
𝑑(𝐶𝐶 )
= 1.25𝐶𝐵
𝑑𝑡
Simulink model:
Initial conditions for the CA integrator is set at CA(0) = 1.
Initial conditions for the CB integrator is set at CB(0) = 0.
Initial conditions for the CC integrator is set at CC(0) = 0.
The upper gain block is set at 2.25.
The low gain block is set at 1.25.
Simulation plot: