Lecture 4b: Modelling of Distributed Parameter Systems · Lecture 4b: Advanced Computer Aided...

28
Lecture 4b: Modelling of Distributed Parameter Systems Rafiqul Gani (Plus material from Ian Cameron) PSE for SPEED Skyttemosen 6, DK-3450 Allerod, Denmark [email protected] www.pseforspeed.com

Transcript of Lecture 4b: Modelling of Distributed Parameter Systems · Lecture 4b: Advanced Computer Aided...

Page 1: Lecture 4b: Modelling of Distributed Parameter Systems · Lecture 4b: Advanced Computer Aided Modelling 25 Lumped parameter models for DPSs Conceptual steps in lumping: divide balance

Lecture 4b: Modelling of Distributed

Parameter Systems

Rafiqul Gani

(Plus material from Ian Cameron)

PSE for SPEED

Skyttemosen 6, DK-3450 Allerod, Denmark

[email protected]

www.pseforspeed.com

Page 2: Lecture 4b: Modelling of Distributed Parameter Systems · Lecture 4b: Advanced Computer Aided Modelling 25 Lumped parameter models for DPSs Conceptual steps in lumping: divide balance

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

Page 3: Lecture 4b: Modelling of Distributed Parameter Systems · Lecture 4b: Advanced Computer Aided Modelling 25 Lumped parameter models for DPSs Conceptual steps in lumping: divide balance

3Lecture 4b: Advanced Computer Aided Modelling

The Origin of DPS Models

3

2-phase system

Mixing One -phase

system

Distributed

Connection

Page 4: Lecture 4b: Modelling of Distributed Parameter Systems · Lecture 4b: Advanced Computer Aided Modelling 25 Lumped parameter models for DPSs Conceptual steps in lumping: divide balance

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

Page 5: Lecture 4b: Modelling of Distributed Parameter Systems · Lecture 4b: Advanced Computer Aided Modelling 25 Lumped parameter models for DPSs Conceptual steps in lumping: divide balance

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)

Page 6: Lecture 4b: Modelling of Distributed Parameter Systems · Lecture 4b: Advanced Computer Aided Modelling 25 Lumped parameter models for DPSs Conceptual steps in lumping: divide balance

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

Page 7: Lecture 4b: Modelling of Distributed Parameter Systems · Lecture 4b: Advanced Computer Aided Modelling 25 Lumped parameter models for DPSs Conceptual steps in lumping: divide balance

7Lecture 4b: Advanced Computer Aided Modelling

Balance or “control” volume

V

F

Fn

a

J

Conservation for the general balance volume

Page 8: Lecture 4b: Modelling of Distributed Parameter Systems · Lecture 4b: Advanced Computer Aided Modelling 25 Lumped parameter models for DPSs Conceptual steps in lumping: divide balance

8Lecture 4b: Advanced Computer Aided Modelling

Balance Volume in rectangular co-ordinates

Page 9: Lecture 4b: Modelling of Distributed Parameter Systems · Lecture 4b: Advanced Computer Aided Modelling 25 Lumped parameter models for DPSs Conceptual steps in lumping: divide balance

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

Page 10: Lecture 4b: Modelling of Distributed Parameter Systems · Lecture 4b: Advanced Computer Aided Modelling 25 Lumped parameter models for DPSs Conceptual steps in lumping: divide balance

10Lecture 4b: Advanced Computer Aided Modelling

Balance volume in spherical co-ordinates

Page 11: Lecture 4b: Modelling of Distributed Parameter Systems · Lecture 4b: Advanced Computer Aided Modelling 25 Lumped parameter models for DPSs Conceptual steps in lumping: divide balance

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.

Page 12: Lecture 4b: Modelling of Distributed Parameter Systems · Lecture 4b: Advanced Computer Aided Modelling 25 Lumped parameter models for DPSs Conceptual steps in lumping: divide balance

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

.

Page 13: Lecture 4b: Modelling of Distributed Parameter Systems · Lecture 4b: Advanced Computer Aided Modelling 25 Lumped parameter models for DPSs Conceptual steps in lumping: divide balance

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

Page 14: Lecture 4b: Modelling of Distributed Parameter Systems · Lecture 4b: Advanced Computer Aided Modelling 25 Lumped parameter models for DPSs Conceptual steps in lumping: divide balance

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

Page 15: Lecture 4b: Modelling of Distributed Parameter Systems · Lecture 4b: Advanced Computer Aided Modelling 25 Lumped parameter models for DPSs Conceptual steps in lumping: divide balance

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

Page 16: Lecture 4b: Modelling of Distributed Parameter Systems · Lecture 4b: Advanced Computer Aided Modelling 25 Lumped parameter models for DPSs Conceptual steps in lumping: divide balance

16

Lecture 4b: Advanced Computer Aided Modelling

Packed-bed catalytic reactor

Model equations

Component mass

Energy

Constitutive

equations qtr = K(T-Tw)

Page 17: Lecture 4b: Modelling of Distributed Parameter Systems · Lecture 4b: Advanced Computer Aided Modelling 25 Lumped parameter models for DPSs Conceptual steps in lumping: divide balance

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

Page 18: Lecture 4b: Modelling of Distributed Parameter Systems · Lecture 4b: Advanced Computer Aided Modelling 25 Lumped parameter models for DPSs Conceptual steps in lumping: divide balance

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

Page 19: Lecture 4b: Modelling of Distributed Parameter Systems · Lecture 4b: Advanced Computer Aided Modelling 25 Lumped parameter models for DPSs Conceptual steps in lumping: divide balance

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)

Page 20: Lecture 4b: Modelling of Distributed Parameter Systems · Lecture 4b: Advanced Computer Aided Modelling 25 Lumped parameter models for DPSs Conceptual steps in lumping: divide balance

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

Page 21: Lecture 4b: Modelling of Distributed Parameter Systems · Lecture 4b: Advanced Computer Aided Modelling 25 Lumped parameter models for DPSs Conceptual steps in lumping: divide balance

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

Page 22: Lecture 4b: Modelling of Distributed Parameter Systems · Lecture 4b: Advanced Computer Aided Modelling 25 Lumped parameter models for DPSs Conceptual steps in lumping: divide balance

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

Page 23: Lecture 4b: Modelling of Distributed Parameter Systems · Lecture 4b: Advanced Computer Aided Modelling 25 Lumped parameter models for DPSs Conceptual steps in lumping: divide balance

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)

Page 24: Lecture 4b: Modelling of Distributed Parameter Systems · Lecture 4b: Advanced Computer Aided Modelling 25 Lumped parameter models for DPSs Conceptual steps in lumping: divide balance

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

Page 25: Lecture 4b: Modelling of Distributed Parameter Systems · Lecture 4b: Advanced Computer Aided Modelling 25 Lumped parameter models for DPSs Conceptual steps in lumping: divide balance

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

Page 26: Lecture 4b: Modelling of Distributed Parameter Systems · Lecture 4b: Advanced Computer Aided Modelling 25 Lumped parameter models for DPSs Conceptual steps in lumping: divide balance

26Lecture 4b: Advanced Computer Aided Modelling

DPS model of a double-pipe heat exchanger

Model equations

Variables

Energy balances

Initial conditions

Boundary condition

Page 27: Lecture 4b: Modelling of Distributed Parameter Systems · Lecture 4b: Advanced Computer Aided Modelling 25 Lumped parameter models for DPSs Conceptual steps in lumping: divide balance

27Lecture 4b: Advanced Computer Aided Modelling

Lumped model of a double-pipe heat exchanger

Model equations

Variables

Energy balances

Initial conditions

Page 28: Lecture 4b: Modelling of Distributed Parameter Systems · Lecture 4b: Advanced Computer Aided Modelling 25 Lumped parameter models for DPSs Conceptual steps in lumping: divide balance

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𝑧 + 𝑞