03 Mathematical Modelling Principles
03 Mathematical Modelling Principles
Formulate dynamic models based on fundamental balances Solve simple first-order linear dynamic models Determine how key aspects of dynamics depend on process design and operation
Reasons why we need dynamic models Six (6) - step modelling procedure Many examples - mixing tank - CSTR - draining tank General conclusions about models Workshop
WHY WE NEED DYNAMIC MODELS Do the Bus and bicycle have different dynamics? Which can make a U-turn in 1.5 meter? Which responds better when it hits s bump?
Dynamic performance depends more on the vehicle than the driver!
The process dynamics are more important than the computer control!
WHY WE NEED DYNAMIC MODELS Feed material is delivered periodically, but the process requires a continuous feed flow. How large should should the tank volume be?
Periodic Delivery flow Continuous Feed to process
Time
WHY WE NEED DYNAMIC MODELS The cooling water pumps have failed. How long do we have until the exothermic reactor runs away?
F
Temperature
Dangerous
T A
time
WHY WE DEVELOP MATHEMATICAL MODELS? Input change, e.g., step in coolant flow rate Affect on output variable
Process
T A
T A
Location
Examples of variable selection liquid level pressure total mass in liquid total moles in vapor energy balance component mass
temperature concentration
Variable(s) are the same for any location within the system!
Energy
dC A V = F (C A0 C A ) VkC A dt
With initial conditions CA = 3.2 kg-mole/m3 at t = 0 And some change to an input variable, the forcing function, e.g., CA0 = f(t) = 2.1 t (ramp function)
C A (t ) = C A (t ) t = 0 + ( C A 0 )K (1 e t / ) for t ! 0
Many results will have the same form! We want to know how the process influences K and , e.g.,
F K= F + kV
V = F + Vk
dC A 2 V = F (C A0 C A ) VkC A dt
Using a difference approximation for the derivative, we can derive the Euler method.
C An = C An1
2 ) , F (C A0 C A ) VkC A + ( t )* ' V ( n 1 +
F CA0 CA V
Lets understand this response, because we will see it over and over!
Output is smooth, monotonic curve
1.8 tank concentration 1.6 1.4 1.2 1 0.8 0
63% of steady-state CA
inlet concentration
1.5
A B rA = kC A
CA
0.8
0.6
0.4
50 time (min)
100
150
1.5
0.5
50 time (min)
100
150
F CA0
CA1
V1 CA2 V2
A B rA = kC A
inlet concentration
1.5
0.5 0 10 20 30 time 40 50 60
LINEARIZATION
Expand in Taylor Series and retain only constant and linear terms. We have an approximation. This is the only variable
dF F ( x ) = F ( xs ) + dx
1 d 2F ( x xs ) + 2 ! 2 dx xs
( x xs ) + R
2 xs
Remember that these terms are constant because they are evaluated at xs We define the deviation variable: x = (x - xs)
LINEARIZATION
y =1.5 x2 + 3 about x = 1 We must evaluate the approximation. It depends on non-linearity distance of x from xs
exact
approximate
Because process control maintains variables near desired values, the linearized analysis is often (but, not always) valid.
A B rA =
2 kC A
CA
Deviation variables do not change the answer, just translate the values
DYNAMIC MODELLING
We learned first-order systems have the same output shape.
63% of steady-state
At steady state
= K
inlet concentration
1.5
DYNAMIC MODELLING
The emphasis on analytical relationships is directed to understanding the key parameters. In the examples, you learned what affected the gain and time constant. K: Steady-state Gain sign magnitude (dont forget the units) how depends on design (e.g., V) and operation (e.g., F)
:Time Constant
sign (positive is stable) magnitude (dont forget the units) how depends on design (e.g., V) and operation (e.g., F)
Mixing tank linear CSTR CSTR with second order reaction F CA0
CA
F CA0
CA
The parameters we use in mathematical models are never known exactly. For several models solved in the textbook, evaluate the effect of the solution of errors in parameters. 20% in reaction rate constant k 20% in heat transfer coefficient 5% in flow rate and tank volume
How would you consider errors in several parameters in the same problem? Check your responses by simulating using the MATLAB mfiles in the Software Laboratory.
Formulate dynamic models based on fundamental balances Solve simple first-order linear dynamic models Determine how key aspects of dynamics depend on process design and operation
Lots of improvement, but we need some more study! Read the textbook Review the notes, especially learning goals and workshop Try out the self-study suggestions Naturally, well have an assignment!