Professional Documents
Culture Documents
Dynamic performance
depends more on the vehicle
than the driver!
Time
We must provide
process flexibility
for good
dynamic performance!
WHY WE NEED DYNAMIC MODELS
Temperature
F
Dangerous
T L
A
time
Process dynamics
are important
for safety!
WHY WE DEVELOP MATHEMATICAL MODELS?
T
A
3. Formulate A
the model
4. Determine
the solution Examples of variable selection
6. Validate the
model
SIX-STEP MODELLING PROCEDURE
CONSERVATION BALANCES
1. Define Goals
Overall Material
2. Prepare
information Accumulation of mass mass in mass out
3. Formulate Component Material
the model
Accumulati on of component component
4. Determine component mass mass in mass out
the solution generation of
component mass
5. Analyze Energy*
Results Accumulation
U PE KEin U PE KEout
6. Validate the U PE KE
model Q-W
6. Validate the F V
model K
F kV F Vk
SIX-STEP MODELLING PROCEDURE
We will solve complex models
1. Define Goals
numerically, e.g.,
2. Prepare
information dC A
V F (C A0 C A ) VkC A2
3. Formulate dt
the model Using a difference approximation
4. Determine for the derivative, we can derive the
the solution Euler method.
5. Analyze F (C A0 C A ) VkC A2
C An C An1 ( t )
Results V n 1
6. Validate the
model Other methods include Runge-Kutta
and Adams.
SIX-STEP MODELLING PROCEDURE
1. Define Goals
Let’s practice modelling until we are
2. Prepare ready for the Modelling Olympics!
information
3. Formulate
the model
4. Determine
the solution
5. Analyze
Results Please remember that modelling is not
a spectator sport! You have to practice
6. Validate the
(a lot)!
model
MODELLING EXAMPLE 3.1. MIXING TANK
F
CA0
CA V
1.6 Maximum
1.4 slope at 63% of steady-state CA At steady state
“t=0” CA = K CA0
1.2
0.8
0 20 40 60 80 100 120
time
Output changes immediately
2
inlet concentration
1.5
0.5
0 20 40 60 80 100 120
time
MODELLING EXAMPLE 3.2. CSTR
F
CA0
A B CA V
rA kC A
(We’ll solve this in class.)
MODELLING EXAMPLE 3.2. CSTR
Annotate with key features similar to Example 1
reactor conc. of A (mol/m3)
0.8
Which is faster,
mixer or CSTR?
0.6
Always?
0.4
0 50 100 150
time (min)
2
inlet conc. of A (mol/m3)
1.5
0.5
0 50 100 150
time (min)
MODELLING EXAMPLE 3.3. TWO CSTRs
F
CA0
CA1 V1
CA2 V2
A B
rA kC A
(We’ll solve this in class.)
MODELLING EXAMPLE 3.3. TWO CSTRs
Annotate with key features similar to Example 1
1.2 1.2
tank 1 concentration
tank 2 concentration
1 1
0.8 0.8
0.6 0.6
0.4 0.4
0 10 20 30 40 50 60 0 10 20 30 40 50 60
time
2
inlet concentration
1.5
0.5
0 10 20 30 40 50 60
time
SIX-STEP MODELLING PROCEDURE
dF 1 d 2F
F ( x ) F ( xs ) ( x xs ) 2
( x xs ) 2 R
dx xs 2! dx xs
y =1.5 x2 + 3 about x = 1
We must evaluate the
exact
approximation. It depends
on approximate
• non-linearity
• distance of x from xs
F
CA0
A B CA V
rA kC A2
(We’ll solve this in class.)
MODELLING EXAMPLE 3.5. N-L CSTR
dY
Y K[f (t ))] with f(t) the input or forcing
dt
Output is smooth, monotonic curve
1.8
tank concentration
1.6
Maximum
1.4 slope at » 63% of steady-state D At steady state
“t=0”
Sample 1.2 D = K
response 1
to a step 0.8 t
0 20 40 60 80 100 120
input time
Output changes immediately
2
inlet concentration
1.5
0.5
0 20 40 60 80 100 120
time
DYNAMIC MODELLING
• Mixing tank
• Linear CSTR F
• CSTR with CA0
CA V
second order
reaction
DYNAMIC MODELLING: WORKSHOP 2
L
DYNAMIC MODELLING: WORKSHOP 3
F
CA0
CA V
DYNAMIC MODELLING: WORKSHOP 4
http://www.nap.edu/openbook.php?record_id=13395
CHAPTER 3 : MATH. MODELLING
How are we doing?
www.pc-education.mcmaster.ca/
- Tutorials (Chapter 3)
- M-files in the Software Laboratory (Chapter 3)
• Read the sections on dynamic modelling in previous
textbooks
- Felder and Rousseau, Fogler, Incropera & Dewitt
CHAPTER 3:
SUGGESTIONS FOR SELF-STUDY
1. Discuss why we require that the degrees of freedom for a
model must be zero. Are there exceptions?
2. Give examples of constitutive equations from prior
chemical engineering courses. For each, describe how we
determine the value for the parameter. How accurate is
the value?
3. Prepare one question of each type and share with your
study group: T/F, multiple choice, and modelling.
4. Using the MATLAB m-files in the Software Laboratory,
determine the effect of input step magnitude on linearized
model accuracy for the CSTR with second-order reaction.
CHAPTER 3:
SUGGESTIONS FOR SELF-STUDY
5. For what combination of physical parameters will a first
order dynamic model predict the following?
• an oscillatory response to a step input
• an output that increases without limit
• an output that changes very slowly
6. Prepare a fresh cup of hot coffee or tea. Measure the
temperature and record the temperature and time until
the temperature approaches ambient.
• Plot the data.
• Discuss the shape of the temperature plot.
• Can you describe it by a response by a key parameter?
• Derive a mathematical model and compare with your
experimental results