Lecture 4b: Modelling of Distributed Parameter Systems · Lecture 4b: Advanced Computer Aided...
Transcript of Lecture 4b: Modelling of Distributed Parameter Systems · Lecture 4b: Advanced Computer Aided...
Lecture 4b: Modelling of Distributed
Parameter Systems
Rafiqul Gani
(Plus material from Ian Cameron)
PSE for SPEED
Skyttemosen 6, DK-3450 Allerod, Denmark
www.pseforspeed.com
2Lecture 4b: Advanced Computer Aided Modelling
Overview of lecture 4b
❖Origin of DPS models
❖Modelling of DPS
- Balance volumes
- Conservation balances
- Boundary and initial conditions
❖Classification of DPS model equations
❖Lumped parameter models for DPS
❖Examples
3Lecture 4b: Advanced Computer Aided Modelling
The Origin of DPS Models
3
2-phase system
Mixing One -phase
system
Distributed
Connection
4Lecture 4b: Advanced Computer Aided Modelling
The Origin of DPS Models: Differential form
of conservation balances
For a conserved extensive quantity and its related
potential
Flow terms:
❖ convective flows: JC = v
❖ diffusive flows: JD = -D grad (assume D=constant and no cross-effect)
Co-ordinate system independent form:
),(ˆ)),(),(ˆ()),((ˆ
2 trqtrvtrtrDt
•
5Lecture 4b: Advanced Computer Aided Modelling
Conservation in rectangular co-ordinates
qvz
vy
vxzyx
Dt
zyxˆ
ˆˆˆˆ
2
2
2
2
2
2
Differential operator, rectangular co-ordinate system
“dynamic” “diffusion” “convection” “source”
• Parabolic partial differential equation
• Induced algebraic equations
- extensive-intensive relations
- rate equations (transfer and reaction)
6Lecture 4b: Advanced Computer Aided Modelling
Balance volumes for DPSs
❖ “Distributed” balance volumes
- uniform phase
- uniform flow pattern
❖ Size of the balance volume
❖ Shape of the balance volumes
− co-ordinate system
o rectangular
o cylindrical
o spherical
7Lecture 4b: Advanced Computer Aided Modelling
Balance or “control” volume
V
F
Fn
a
J
Conservation for the general balance volume
8Lecture 4b: Advanced Computer Aided Modelling
Balance Volume in rectangular co-ordinates
9Lecture 4b: Advanced Computer Aided Modelling
Balance volume in cylindrical co-ordinates
z
dz
z+dz
df
f
f
df
r
r
rdf
r
r
z
dz(r+dr)d
f
(r+dr)df
f face
(f
df)
face
z+dz face
dr
z face
dr
dr
dr
z+dz
10Lecture 4b: Advanced Computer Aided Modelling
Balance volume in spherical co-ordinates
11Lecture 4b: Advanced Computer Aided Modelling
Derivation of DPS models – using
microscopic balances
❖Use of an arbitrary finite volume.
❖Consider volume reduced to a point.
❖Applicable to all geometries.
❖Transformation to other co-ordinate systems
is possible.
12Lecture 4b: Advanced Computer Aided Modelling
Mass balance in rectangular co-ordinates
Balance volume:
Mass conservation within dV:
dzdydxdV ..
dydxvvdzdxvvdzdyvvt
dzdydx
t
Mdzzzdyyydxxx .).(.).(.).(
)...()(
x-direction y-direction z-direction
Divide by dx.dy.dz:
dz
vv
dy
vv
dx
vv
ttdV
M dzzzdyyydxxx )()()()(
In the limit:
vvz
vy
vxt
zyx
.
13Lecture 4b: Advanced Computer Aided Modelling
Double pipe heat exchanger
z z + dz
inner fluid
TL, z TL, z+dz
TSTW (wall)
fluid
wall
Fluid energy conservation:
)()(ˆˆ)(,, LWLLdzzzPLLWLdzzLzL
LpfL TTdzAUTTcuQhFhFt
dzTcA
t
E
In the limit: )( LWLLL
LfLL
LfL TTAUz
TcAu
t
TcA
14Lecture 4b: Advanced Computer Aided Modelling
Double pipe heat exchanger (cont.)
Wall energy conservation:
In the limit:
)()()(
LWLWLWSSSWWLSW
WpwWW TTdzAhTTdzAhQQt
dzTcM
t
E
)()()(
LWLWLWSSSWW
pwW TTAhTTAht
TcM
)(1
)(1
)(1
LW
WL
WS
SW
W
LW
L
LL
TTTTt
T
TTz
Tu
t
T
Final:BCs & ICs
0 )(),0(
0 )(),0(
)()0,( ; )()0,(
)(
21
ttTtT
ttTtT
zfzTzfzT
w
W
i
L
WL
15Lecture 4b: Advanced Computer Aided Modelling
Packed-bed catalytic reactor
Assumptions (balances and constitutive equations)
❖ plug flow
❖ first order A B reaction
❖ liquid bulk phase
❖ solid phase catalyst
❖ uniform in cross-section
❖ constant physico-chemical properties
❖ bulk temperature constant
16
Lecture 4b: Advanced Computer Aided Modelling
Packed-bed catalytic reactor
Model equations
Component mass
Energy
Constitutive
equations qtr = K(T-Tw)
17Lecture 4b: Advanced Computer Aided Modelling
Spherical catalyst pellet
Assumptions (balances & constitutive equations)
❖ overall mass and volume is constant
❖ first order A B reaction
❖ no convection
❖ uniform in all directions
❖ constant physico-chemical properties
18Lecture 4b: Advanced Computer Aided Modelling
Spherical catalyst pellet
RRT
E
RT
E
Hcekr
Tr
rrt
T
cekr
cr
rrt
c
0
2
2
0
2
2
1
1
Model equations in spherical co-ordinate system
Component mass
Energy
Note: Constitutive equations are substituted
19Lecture 4b: Advanced Computer Aided Modelling
Initial conditions
Set the values of the states at the initial
time (t = 0)
Given as a modelling assumption
Examples:
T(x,0) = f1(x) (f1(x) is given)
cA(x,0) = c0 (c0 is given)
20Lecture 4b: Advanced Computer Aided Modelling
Boundary conditions
❖Relevant assumptions
conditions on the boundaries
balance volume shape (coordinate system)
balance volume size (infinite)
❖Number of independent boundary conditions
along a co-ordinate direction
equal to the order of partial derivatives
21Lecture 4b: Advanced Computer Aided Modelling
Boundary condition types
Dirichlet (1st type) condition
value set on boundary: cA(0,t) = c*
Neumann (2nd type) condition
flux set on boundary
Robbins (3rd type) condition
convective transfer
22Lecture 4b: Advanced Computer Aided Modelling
Packed-bed catalytic reactor
Additional assumptions
❖ initial distribution uniformly constant
❖ “very long” reactor
CA(x,0) = C* , T(x,0) = T*Initial condition
Boundary conditions
23Lecture 4b: Advanced Computer Aided Modelling
Spherical catalyst pellet
Additional assumptions
❖ given initial conditions
❖ heat and mass transfer on the surface
Boundary conditions
at the centre
at the surface
Initial conditions T(x,0) = h1(x) , c(x,0) = h2(x)
24Lecture 4b: Advanced Computer Aided Modelling
Classification of DPS models
qvz
vy
vxzyx
Dt
zyxˆ
ˆˆˆˆ
2
2
2
2
2
2
Partial differential part of the conservation equation
Associated algebraic equation
t = D x2 + D y2 + D z2 - vx x - vy y - vz z
Geometry of the 2nd order curve
- parabola: D 0
- hyperbola (degenerate): D=0, v 0
- ellipse: steady-state, D 0
25Lecture 4b: Advanced Computer Aided Modelling
Lumped parameter models for DPSs
Conceptual steps in lumping:
divide balance volume into sub-volumes
lump each sub-volume using perfect mixing
convection in- and out-flows of lumps
diffusion multidirectional in- and out-flows
same sources for every lump
balance equations for every lump
boundary conditions in- and outflows of
lumps on system boundary
26Lecture 4b: Advanced Computer Aided Modelling
DPS model of a double-pipe heat exchanger
Model equations
Variables
Energy balances
Initial conditions
Boundary condition
27Lecture 4b: Advanced Computer Aided Modelling
Lumped model of a double-pipe heat exchanger
Model equations
Variables
Energy balances
Initial conditions
28Lecture 4b: Advanced Computer Aided Modelling
Modelling exercise – 4b: DPS model for a
cylindrical catalyst (Problem II – home exercise)
Step 1: Identify the phenomena to be
considered:
•Conduction of mass and energy
•Reaction
•Single phase
•No accumulation
Step 2: Retrieve the general form of
the balance volume equations:
•Select coordinate system
•Write conservation equation (in
derivative form) for the corresponding
coordinate system
Step 3: Generate final form of the model:
•Remove the terms not needed
•Retrieve from library the needed terms
•Add constitutive models
•Add initial and boundary conditions
𝜕Φ
𝜕𝑡= 𝐷
1
𝑟
𝜕
𝜕𝑟 𝜕f
∂r +
1
𝑟2𝜕2f
∂φ2+𝜕2f
∂z2 −
𝜕Φ
∂r 𝑟 +
1
𝑟
𝜕Φ
∂φ 𝜑 +
𝜕Φ
∂z𝑧 + 𝑞