Sie sind auf Seite 1von 20

CN3421 Process Modeling and

Numerical Simulation
A/P Yang Kun-Lin

Lecturers
A/P Yang Kun-Lin
A/P Yang will cover Numerical Analysis
Dr. David Leong
Dr David Leong cover Statistics

Schedules
Part I: A/P Yang Kun-Lin
Office: E5-03-07
Phone: 6516-6614
Email: cheyk@nus.edu.sg
There will be a mid-term test (open book)

Part II: Dr. David Leong

Expected Learning Outcomes


You should know how to

Solve systems of linear algebraic equations


Solve non-linear algebraic equations with numerical
methods
Perform numerical integration and differentiation
Solve ordinary differential equations and partial
differential equations by using numerical methods.

Course Evaluation
Numerical Analysis

65%

Statistics

35%

Total

100%

Homework Assignments

5%

Mid-term test

25%

Final Exam

35%

Textbook
Mathematical Methods in Chemical &
Environmental Engineering
By: Ajay K. Ray and Santosh K. Gupta

Available in the co-op bookstore (~$50)

Introduction
Problem Solving in Chemical Engineering:
Experiments
Mathematical models
Mass balance
Energy balance
Transport equations

1. Exact solution
2. Analytical solution
3. Numerical solution

Your First Day at Work


F2,T2 (100oC)
100 wt% water

F1,T1
100 kg/h, 25oC
2 wt% NaCl
98 wt% water

Q Heating coil

F3,T3 (100oC)
30 wt% NaCl
70 wt% water

Can you select a heating coil to meet these requirements?

Experimental
Pros:
Very reliable

F2

Cons:
Expensive
Time consuming
Problem of scale-up

Modeling
Mass balance

F1 F2 F3
0.02F1 0.3F3

Energy balance

F1H1 Q F2 H 2 F3 H 3

Solving Equations
Mass balance

100 F2 F3
2 0.3F3

6 unknowns F2, F3, H1, H2 H3, and Q


3 equations
Is there any solution? Is it unique?

Energy balance
100H1 Q F2 H 2 F3 H 3

100 F2 F3
2 0.3F3

2 F2 9 F3 15 Q

3 unknowns, F2, F3, and Q


3 equations

Is there any solution? Is it unique?

Modeling
Pros:
Low cost
Speed
Complete information
Easy to simulate extreme conditions
Ability to scale up
Cons:
Many parameters are unavailable, still need
experiments
Is it realistic?

More Examples on Process


Modeling and Problem Solving

Example 1: Linear Algebraic Equations


A simple process flow sheet

F5

F2

F8

F3
F1

F9

Separator

mixer
F6

F4

F7

Mass Balance
At steady state, assume constant density

5 equations and 9 unknowns

F1+F2 = F3
F4+F5 = F3

F5

F2

F6+F7 = F4

F8

F3

F2+F8 = F5

F1

F6+F8 = F9

4 variables must be measured

F9

Separator

mixer
F6

F4

F7

Any variables?

Example 2: Roots of Polynomials


R = 3 m, V = 30 m3

Water tank

V r 2 dh R 2 R h dh
2

3R h

28.65 9h 2 h 3

How to solve this equation?

Example 3: Numerical Integration


-10oC
Frozen beef

20oC
1 kg

How much heat is required to raise


the temperature?
H mcT

T, oC

c, cal / (g oC)

-10

0.11904

-5

0.12486

0.13200

0.14046

10

0.15024

15

0.16134

20

0.17376

dH mcT dT

dH m cT dT
Numerical integration

Alternatively, we can use linear


regression to obtain:

cT a bT cT 2 dT 3

Example 4: Ordinary Differential Equations


k1
A
Batch reactor

k2

dCA
k1C A
dt

C A (0) 1

dCB
k1C A k 2CB
dt

dCc
k 2C B
dt

CB (0) 0

CC (0) 0

These ordinary differential equations (ODEs) can be solved sequentially

Example 5: System of ODEs


k1
A
k2
Batch reactor

k3

first-order reaction

k4
dCA
k1C A k 2C B
dt
dCB
k1C A k 2CB k3C B k 4Cc
dt

dCc
k3C B k 4CC
dt

These ODEs are coupled together

dCA
k1C A k 2C B
dt

C A
C C B
CC

dCB
k1C A k 2CB k3C B k 4Cc
dt

dCc
k3C B k 4CC
dt

k1
dC
k1
dt
0

k2
k 2 k3
k3

0
k 4 C
k 4

This can be solved analytically

If one of the reaction is second-order


dCA
2
2
k1C A k 2C B
dt
dCB
2
2
2
2
k1C A k 2C B k3C B k 4Cc
dt

dCc
2
2
k3C B k 4CC
dt

This nonlinear system of ODE


can only be solve numerically

Das könnte Ihnen auch gefallen