Mathematical Modeling of Chemical Engineering Systems: CENG3001: Process Dynamics & Control
Mathematical Modeling of Chemical Engineering Systems: CENG3001: Process Dynamics & Control
Module 2
Generation
In + Out
Accumulation
System Boundary
Balance Equations
IN OU T GEN ACC
IN property flow rate into the control volume
OU T property flow rate out of the control volume
GEN property generation rate inside the control volume
ACC property accumulation rate inside the control volume
ACC is present only if the system is not in stationary state. GEN is present
only if the property can be generated (GEN ¡ 0) or destroyed (GEN 0).
In chemical processes
total mass and total energy cannot be generated!
Balance Equations
ACC IN OU T GEN
For a given control volume, this becomes:
amount of θ accumulated
time interval
amount of θ in
time interval
amount of θ out
time interval
amount of θ generated
time interval
ACC IN OU T GEN
X
XX
In chemical processes the total mass is not generated. This means that it is
neither produced nor destroyed.
For a given control volume, the total mass balance equation is:
The total mass of fluid can enter and leave the control volume only by
convection; no other mechanisms are present.
h (t ) V (t ) = A h (t )
CSTR F (t ) ρ (t )
Assumptions
Tank is perfectly mixed. This means that the generic variable θ has the
same value throughout the system and depends only on time: θ θptq.
Example: Total Mass Balance
F0 ( t ) ρ0 ( t )
IN F0 ρ0 ; OU T Fρ
h (t ) V (t ) = A h (t ) GEN 0
CSTR F (t ) ρ (t )
dpV ρq
dt
F0 ρ0 F ρ ñ 1 equation
Is the model consistent? How many degrees of freedom are there once we
have specified the system forcing functions?
Two equations are missing. Which other equations can we still write?
Example: Total Mass Balance
ρ ρ0 0
dρ
; (2)
dt
Whence, from equation (1):
dpV ρq
dt
ρ dV
dt
F0 ρ0 F ρ ρ pF0 F q ñ dV
dt
F0 F
The fluid density disappears from the differential equation; accordingly, ρ is
no longer an unknown output variable. Equation (2) reduces the degrees of
freedom to one. However, one equation is still missing.
Example: Total Mass Balance
F0 ( t ) ρ0 ( t ) p ≈ patm + ρ gh
p = patm
p = patm
h (t ) V (t ) = A h (t )
CSTR F (t ) ρ (t )
Δp ( F ) = ρ gh
A
Example: Total Mass Balance
F0 ( t ) ρ0 ( t ) p ≈ patm + ρ gh
p = patm
p = patm
h (t ) V (t ) = A h (t )
CSTR F (t ) ρ (t )
Δp ( F ) = ρ gh
A
∆ppF q ρg pV {Aq ñ F f pV q
This equation reduces the system degrees of freedom to zero.
Example: Total Mass Balance
F0 ( t ) ρ0 ( t ) p ≈ patm + ρ gh
p = patm
p = patm
h (t ) V (t ) = A h (t )
CSTR F (t ) ρ (t )
Δp ( F ) = ρ gh
A
Without control the system self-regulates, and we cannot control the flow
rate F . This is because we cannot change the function F f pV q.
hm ( t ) h sp ( t )
−+
ε
Controller
h (t ) V (t ) = A h (t )
CSTR ρ (t ) F = f (V )
• We install on the outlet line a control valve that regulates the flow.
• A level controller operates the valve to keep the fluid level in the tank
equal to hsp ; thus, V and F are related.
p q describes the level controller and the control valve.
• f V
Example: Total Mass Balance
ACC IN OU T GEN
For a given control volume, the component mass balance equation is:
When writing component mass balance equations, you might find it more
convenient to use molar instead of mass units. Why?
Component Mass Balance
The component mass can enter and leave the control volume by convection
(bulk flow associated with the mixture average velocity) and diffusion (flow
relative to the mixture average velocity).
dpV cA q
dt
F0 cA0 F cA V kA cA (3)
Example 1: Component Mass Balance
F0 ( t ) ρ0 ( t ) A→ B
dpV cA q
c A 0 ( t ) cB 0 ( t ) rA = − k A c A
dt
F0 cA0 F cA V kA cA
dpV cB q
F0 cB0 F cB V kA cA
h (t ) V (t ) = A h (t ) dt
F (t ) ρ (t )
CSTR
c A ( t ) cB ( t )
A
We want to show that summing these two equations gives the total mass
balance, equation (1):
dpV ρq
dt
F0 ρ0 F ρ
Example 1: Component Mass Balance
dpV MA cA q
dt
F0 MA cA0 F MA cA V kA MA cA
dpV MB cB q
dt
F0 MB cB0 F MB cB V kA MB cA
dpV ρq
dt
F0 ρ0 F ρ V kA pMA MB q cA
since it is:
dpV ρq
dt
F0 ρ0 F ρ
Instead, we have obtained:
dpV ρq
dt
F0 ρ0 F ρ V kA pMA MB q cA
How can we explain the difference?
AÑB ñ MA MB ñ V kA pMA MB q cA 0
ó
The two equations coincide!
Example 2: Component Mass Balance
F0 ( t ) ρ0 ( t ) A→ B→C
c A 0 ( t ) cB 0 ( t ) rA = − k A c A
cC 0 ( t ) rB = k A c A − k B cB
rB molestimeof Bvolume
produced
kA cA kB cB
IN F0 cB0 ; OU T F cB
h (t ) V (t ) = A h (t )
CSTR
F (t ) ρ (t ) GEN V pkA cA kB cB q
c A ( t ) cB ( t )
A cC ( t )
dpV cB q
dt
F0 cB0 F cB V pkA cA kB cB q
Example 2: Component Mass Balance
dpV cA q
dt
F0 cA0 F cA V kA cA
dpV cB q
dt
F0 cB0 F cB V pkA cA kB cB q
dpV cC q
dt
F0 cC0 F cC V kB cB
dpV ρq
dt
F0 ρ0 F ρ V kA pMA MB q cA k B pM B MC q cB
Example 2: Component Mass Balance
Summary
For systems involving n chemical components, write:
• either the total mass balance equation and n 1 component mass
balance equations
• or n component mass balance equations.
Remember:
• summing the n component mass balance equations yields the total mass
balance equation;
• the n 1 mass balance equations for total mass and component mass
are not independent;
• n components ñ n independent mass balance equations.