Part 1 Dynamic Modeling - 2022
Part 1 Dynamic Modeling - 2022
Dynamic Modeling
It requires:
• Strong fundamental knowledge in Chem. Eng.
• Strong computational skill and math concept
• Imagination skill
• Ability to simplify a problem (taking appropriate assumptions)
• Overall mass balance: for any system, the total mass going into the system must
equal the total mass coming out of the system plus any accumulation of mass in
the system.
Batch system: mass (m) in kg.
Continuous system: mass flowrate (𝑚)ሶ in kg/s
• Component mass balance: for any component in a system, the total mass of
that component going into the system must equal the total mass of that
component coming out of the system plus any accumulation of that component
in the system
• For any system (or sub-system), the number of mass balance equations = the
number of components in the product
• One mass balance equation can be written for each component
• Energy balance: for any system, the energy going into the system must equal
the energy coming out of the system plus any accumulation of energy in the
system.
• Only ONE energy balance equation is written for any system (or sub-system)
irrespective of the number of component in the product(s)
• Once mass anad energy balance equation are written, make sure that the
number of equations and number of unknowns are equal
• For heat balance, we can write general formula as:
We will develop a dynamic model for a stirred tank heater by setting up the heat and
material balance equations for the case where the volume might change (since flow out
of the tank can be controlled by a valve)
Example 1: Stirred Tank Heater
The overall mass balance on this system will be:
𝑑(ρ1 𝑉)
= ρ0 𝐹0 − ρ1 𝐹1
𝑑𝑡
Where the volume in the tank,V, might be changing with time (since the liquid level
might be changing). If we simplify the physical properties by assuming a constant liquid
density, ρ1=ρ0=ρ, and if the valve has a linier flow characteristics: F1=α.h, then:
𝑑(ρ1 . 𝐴𝑐 . ℎ)
= ρ0 𝐹0 − ρ1 𝐹1
𝑑𝑡
Or it can also be written in a form of:
𝑑ℎ αℎ 𝐹0
+ =
𝑑𝑡 𝐴𝑐 𝐴𝑐
Example 1: Stirred Tank Heater
The energy balance will be:
𝑑(ρ1 𝑉𝐻1 )
= ρ0 𝐹0 𝐻0 − ρ1 𝐹1 𝐻1 + Q
𝑑𝑡
We can split apart the time derivative term:
𝑑(𝐻1 ) 𝑑(ρ1 𝑉)
ρ1 𝑉 + 𝐻1 = ρ0 𝐹0 𝐻0 − ρ1 𝐹1 𝐻1 + Q
𝑑𝑡 𝑑𝑡
And then insert the mass balance ODE for the second time derivative:
𝑑(𝐻1 )
ρ1 𝑉 + 𝐻1 (ρ0 𝐹0 − ρ1 𝐹1 ) = ρ0 𝐹0 𝐻0 − ρ1 𝐹1 𝐻1 + Q
𝑑𝑡
We would still like to convert the enthalpy terms into terms that directly relate to
temperature. Even with a temperature dependent heat capacity the time derivative can
be split into:
𝑑𝑇1
ρ1 . 𝑉. 𝐶𝑝1 = ρ0 𝐹0 (𝐻0 −𝐻1 ) + 𝑄
𝑑𝑡
If we assume that the heat capacities are constant and that there is no reaction, then:
H(T) = 𝐶𝑝 𝑇 − 𝑇𝑟𝑒𝑓 + 𝐻𝑟𝑒𝑓
As a result:
𝐻𝑟𝑒𝑓,1 = 𝐻𝑟𝑒𝑓,0
𝑑𝑇1
ρ1 . 𝑉. 𝐶𝑝 0 − 𝑇1 ) + 𝑄
= ρ0 𝐹0 𝐶𝑝(𝑇
𝑑𝑡
by assuming a constant liquid density, ρ1=ρ0=ρ and we obtain:
𝑑𝑇1
ρ. 𝑉. 𝐶𝑝 0 −𝑇1 ) + 𝑄
= ρ 𝐹0 𝐶𝑝(𝑇
𝑑𝑡
Example 1: Stirred Tank Heater
Summary for the dynamic model of level and temperature for this system:
𝑑𝑇1
ρ. 𝑉. 𝐶𝑝 0 −𝑇1 ) + 𝑄
= ρ 𝐹0 𝐶𝑝(𝑇
𝑑𝑡
We can also write in a more operational form as:
𝑑ℎ 𝐹0 αℎ
= −
𝑑𝑡 𝐴𝑐 𝐴𝑐
𝑑𝑇1 𝐹0 (𝑇0 − 𝑇1 ) 𝑄
= −
𝑑𝑡 𝐴𝑐 . ℎ
ρ. 𝐴𝑐 . ℎ. 𝐶𝑝
Example 2: Modeling Van de Vusse Reactor
𝐶𝐴0 𝐶𝐴 2
𝑑𝐶𝐴
− − 𝑘1 𝐶𝐴 −𝑘3 𝐶𝐴 =
τ τ 𝑑𝑡
Similarly, we can set up component mole balance for B, C and D:
𝑟𝐴 𝑟𝐵
𝐶𝐵 𝑑𝐶𝐵 𝑘1 𝑘2
=
0− + 𝑘1 𝐶𝐴 −𝑘2 𝐶𝐵 = −1 1 Stoichiometry
τ 𝑑𝑡 A՜𝐵՜𝐶 𝑟𝐵 𝑟𝐶 Concept
𝐶𝑐 𝑑𝐶𝐶 =
−1 1
0 − +𝑘2 𝐶𝐵 =
τ 𝑑𝑡
𝑘3 𝑟𝐴 𝑟𝐷
𝐶𝐷 1 2
𝑑𝐶𝐷 2A ՜ 𝐷 =
0− + 𝑘 𝐶 = −2 1
τ 2 3 𝐴 𝑑𝑡
Example 3: Modeling Chemostat
Develop a chemostat/fermentor model which consists of two mass balances, one for cell
mass (or yeast),Cc, and the other for glucose (or substrate), Cs. The reactor operates
under steady state condition and isothermal. It receives continuous supply of substrate.
The outlet of reactor consists of unreacted substrate and a portion of cell. The cell
growth (rg) follows Monod kinetics which can be described as:
𝜇 𝑚𝑎𝑥 ∙ 𝐶𝑆
𝑟𝑔 = 𝜇 ∙ 𝐶𝐶 𝜇=
𝐾𝑚 + 𝐶𝑆
Example 3: Modeling Chemostat
Let’s set up mole balance for the cell as:
𝑅𝑎𝑡𝑒 𝑜𝑓 𝑀𝑎𝑠𝑠 𝐼𝑛 − 𝑅𝑎𝑡𝑒 𝑜𝑓 𝑀𝑎𝑠𝑠 𝑜𝑢𝑡 = 𝑅𝑎𝑡𝑒 𝑜𝑓 𝑀𝑎𝑠𝑠 𝐴𝑐𝑐𝑢𝑚𝑢𝑙𝑎𝑡𝑖𝑜𝑛
𝑑𝐶𝐶
0 − 𝐹𝑣 𝐶𝑐 + 𝜇 ∙ 𝐶𝐶 𝑉 = 𝑉
𝑑𝑡
𝜇 𝑚𝑎𝑥 ∙ 𝐶𝑆 𝑑𝐶𝐶
0 − 𝐹𝑣 𝐶𝑐 + ∙ 𝐶𝐶 𝑉 = 𝑉
𝐾𝑚 + 𝐶𝑆 𝑑𝑡
1 𝜇𝑚 𝑎 𝑥 ∙ 𝐶𝑆 𝑑𝐶𝑆
𝐷𝐶𝑠0 − 𝐷𝐶𝑠 − ∙ ∙ 𝐶𝐶 =
𝑌𝑋𝑆 𝐾𝑚 + 𝐶𝑆 𝑑𝑡