3.4 Examples of Mathematical Models: - Part I: Introduction
3.4 Examples of Mathematical Models: - Part I: Introduction
The ANNs may build complex models and are very efficient especially for cases when
the laws governing input and output are not known or insufficiently formalized. They
are trained on the statistical basis of the implicit information contained in the training
examples. ANNs can also be used for one special case of modeling, namely for clas-
sification. ANNs may separate the elements of a set in classes, on the basis of a priori
settled classification categories or by discovering these categories by themselves. The
capacity of this structure of connected computing elements to process data using a
very short computing time, compared to the numerical methods, is a very much ap-
preciated feature for saving computer resources.
Simulation
Copyright © 2014. De Gruyter, Inc.. All rights reserved.
Simulation is the process of imitating reality using a model. The model is solved and
its solutions represent the variations induced in the process by the inputs, or construc-
tion constants. Simulators are used in industry to train the operators before operating
a process and to test different alternatives of design and control.
Agachi, P. S., & Cristea, M. V. (2014). Basic process engineering control. ProQuest Ebook Central <a
onclick=window.open('http://ebookcentral.proquest.com','_blank') href='http://ebookcentral.proquest.com' target='_blank' style='cursor: pointer;'>http://ebookcentral.proquest.
Created from uta-ebooks on 2020-11-12 05:38:16.
3 Mathematical modeling | 83
3. Elaborate the lists of variables and constants: output variables, input variables,
design and construction parameters, thermodynamic and kinetic constants.
Output variables are those of interest from the point of view of the reaction: F, CA , CB ,
T∘.
Input variables are those influencing the output ones: Fvi , CAi , Ti∘ , Fvagi , Tagi
∘ .
State variables: V, T ∘ , ρ , c , C , C , T ∘ , T ∘ .
p A B ag w
Properties of the reactants/products, physical constants: ρA , ρB , MA , MB , cpA , cpB , k0 ,
Ea , ΔHr , R, g, ρag , cpag .
Design and construction parameters: AR , Kv0 , Vmin , Vj , KT , AT , Mp , cpp , KTi , KTag , Ap ,
lp , dp , λ .
Nomenclature:
3
F, Fvi – outflow and input flow of the reactor ( ms )
CAi , CA , CB – molar concentrations of the reactant in the input flow and of A and B in
the reactor ( kmol
m3
)
T ∘ – temperature inside the reactor and in the outflow (K)
Ti∘ – temperature inside the reactor and in the outflow (K)
3
Fvagi – cooling agent flow in the jacket ( ms )
∘ , T ∘ – input and jacket temperature of the cooling agent (K)
Tagi ag
T ∘ – temperature of the inner wall of the reactor (K)
w
V, Vmin , Vj – volume of the reaction mass in the reactor, minimum volume allowed in
Copyright © 2014. De Gruyter, Inc.. All rights reserved.
the reactor for normal functioning of the level control and volume of the jacket (m3 )
ρA , ρB , ρ – density of A, B and of the mixture of A and B ( mkg3 )
MA , MB – molar mass of A and B ( kmol m3
)
cpA , cpB , cp – heat capacity of A, B and of the mixture ( kgJ K )
k, k0 – rate constant and pre-exponential factor ( 1s , 1s )
J
Ea – activation energy ( kmol )
J
R – universal gas constant (= 8,314 kmol K
)
g – gravitational acceleration (= 9.8 sm2 )
J
ΔHr – heat of reaction ( kmol )
ρag , cpag – density and heat capacity of the cooling agent ( mkg3 , J
kg K
)
KT , AT – heat transfer coefficient and heat transfer area ( mW2 K , m ) 2
Agachi, P. S., & Cristea, M. V. (2014). Basic process engineering control. ProQuest Ebook Central <a
onclick=window.open('http://ebookcentral.proquest.com','_blank') href='http://ebookcentral.proquest.com' target='_blank' style='cursor: pointer;'>http://ebookcentral.proquest.
Created from uta-ebooks on 2020-11-12 05:38:16.
84 | Part I: Introduction
KTi , KTag – partial heat transfer coefficients inside the reactor and in the jacket ( mW2 K )
Mw , cpw – mass of the reactor wall and its heat capacity (kg, kgJ K )
Ap , lp , dp – cross area of the outflow pipeline, the length of the pipeline, diameter of
the pipeline (m)
λ – coefficient of pressure loss on the pipeline (−)
5. Write the equations of the model if possible in the “natural” sequence of the devel-
opment of the process; ensure that all unknowns in the equations are expressed
in new “secondary” equations;
Each variable on the lists is assigned one equation; if one variable is not on the
lists, it should be assigned a new equation until all variables are “covered” by
Copyright © 2014. De Gruyter, Inc.. All rights reserved.
is assigned. The second equation expressing the flow is the ‘‘level control” equation,
where Kv0 is the gain factor of the level controller. The outflow is increasing directly
Agachi, P. S., & Cristea, M. V. (2014). Basic process engineering control. ProQuest Ebook Central <a
onclick=window.open('http://ebookcentral.proquest.com','_blank') href='http://ebookcentral.proquest.com' target='_blank' style='cursor: pointer;'>http://ebookcentral.proquest.
Created from uta-ebooks on 2020-11-12 05:38:16.
3 Mathematical modeling | 85
with the increase of the volume of the mass of reaction over the minimum value re-
quired for a normal functioning of the control loop.
The first equation gives the solution for v, needing an extra equation for F: F =
vAp . Looking for the “new” variables we notice h is on no list, V, v, and ρ are on the
list of state variables and we should link them to some “new” equations:
V
for h: h = ; this equation introduces the need of another equation for V (3.40)
AR
d
for V: Fvi ρA − Fρ = (Vρ ) (3.41)
dt
for ρ : ρ = MA CA + MB CB (Tab. 3.1) (3.42)
d
Fvi CAi − FCA − VkCA = (VCA ) (3.43)
dt
d
0 − FCB + VkCA = (VCB ). (3.44)
dt
Whatever is transformed from A, contributes to B (+VkCA ).
For T ∘ should be written the energy balance equation
d
Fvi ρA cpA Ti∘ − Fρ cp T ∘ − KT AT (T ∘ − Tag
∘
) − VkCA ΔHr = (Vρ cp T ∘ ) (3.45)
dt
for cp : cp = xA cpA + xB cpB (Tab. 3.1) (3.46)
M M
for xA : xA = CA A and xB = CB B (3.47)
ρ ρ
∘ ∘ ∘ d
for Tag : Fvag ρag cpag Tiag − Fvag ρag cpag Tag + KT AT (T ∘ − Tag
∘
)= (V ρ c T ∘ ) (3.48)
dt j ag pag ag
the agent flow is the same since the jacket having the volume Vag is completely full;
in this example, the inner wall of the reactor is considered “thin”, this having as a
consequence the existence of only one KT . If the wall is not thermally “thin” (Fig. 3.11),
Copyright © 2014. De Gruyter, Inc.. All rights reserved.
∘ ∘ d
Fvag ρag cpag Tiag − Fvag ρag cpag Tag + KTag AT (Tw∘ − Tag
∘
)= (V ρ c T ∘ ) (3.49)
dt j ag pag ag
d
KTi AT (T ∘ − Tw∘ ) − KTag AT (Tw∘ − Tag
∘
)= (M c T ∘ ). (3.50)
dt w pw w
A “thick” wall is either thick physically having an important dimension (e.g. the
heat exchanger of the polyethylene produced in the high pressure process has a wall
of stainless steel of 20 cm), or it is thermally “thick” being thin physically, but a very
bad thermal conductor (e.g. an enameled steel wall).
Agachi, P. S., & Cristea, M. V. (2014). Basic process engineering control. ProQuest Ebook Central <a
onclick=window.open('http://ebookcentral.proquest.com','_blank') href='http://ebookcentral.proquest.com' target='_blank' style='cursor: pointer;'>http://ebookcentral.proquest.
Created from uta-ebooks on 2020-11-12 05:38:16.
86 | Part I: Introduction
KTag KTi
T°
T°i
T°w
T°ag
Thus, the example of a CSTR involving practically only four variables describing the
production quantity and its quality has a simplified model of 12–14 equations, 6–7 dif-
ferential and 6–7 algebraic. The system is nonlinear and can be solved using a MatLab
subroutine ODE15s, ODE23, ODE45. The interpretation of the results shows the behav-
ior of all variables in time when one or several inputs change or when some of the
characteristics of the process change (e.g. transfer coefficients due to deposits of lime-
stone in the shell of the heat exchanger or in the cooling jacket).
Fi , CAi
V1 V2 V3
Agachi, P. S., & Cristea, M. V. (2014). Basic process engineering control. ProQuest Ebook Central <a
onclick=window.open('http://ebookcentral.proquest.com','_blank') href='http://ebookcentral.proquest.com' target='_blank' style='cursor: pointer;'>http://ebookcentral.proquest.
Created from uta-ebooks on 2020-11-12 05:38:16.
3 Mathematical modeling | 87
List of variables:
Output variables: FB , FD , xB , xD .
Input variables: FF , xF .
State variables: Mj , Lj , xj , yj , MB , xB , yB , MD , xD , FR , V, FB , FD .
Each distillation unit (tray) is represented in Fig. 3.15 + section with the weir.
Agachi, P. S., & Cristea, M. V. (2014). Basic process engineering control. ProQuest Ebook Central <a
onclick=window.open('http://ebookcentral.proquest.com','_blank') href='http://ebookcentral.proquest.com' target='_blank' style='cursor: pointer;'>http://ebookcentral.proquest.
Created from uta-ebooks on 2020-11-12 05:38:16.
88 | Part I: Introduction
FD , xD
FF , xF
FB , xB
Fig. 3.13. Binary distillation column.
Copyright © 2014. De Gruyter, Inc.. All rights reserved.
Simplifying hypotheses:
1. Each tray has the same efficiency (Et = 100%).
2. Vapors leaving the tray are in equilibrium with the liquid phase on the tray.
Agachi, P. S., & Cristea, M. V. (2014). Basic process engineering control. ProQuest Ebook Central <a
onclick=window.open('http://ebookcentral.proquest.com','_blank') href='http://ebookcentral.proquest.com' target='_blank' style='cursor: pointer;'>http://ebookcentral.proquest.
Created from uta-ebooks on 2020-11-12 05:38:16.
3 Mathematical modeling | 89
Lj+1 , xj+1
V, yj j+1th tray
Mj , xj jth tray
V, yj–1 j–1th tray Fig. 3.15. The unit of distillation + section with
Lj , xj the weir.
3. The column is fed on the tray NF with the feed flow FF at the boiling tempera-
ture corresponding to the concentration xF of the volatile component in the liquid
phase.
4. Each tray is perfectly mixed and has a holdup Mj with the molar composition xj ,
of the liquid phase and yj of the vapor phase. The holdup of the vapors on the tray
is negligible (the vapor mass is ca. 1000 times smaller than that of the liquid in an
atmospheric column).
5. The holdups of the bottom are MB (molar composition xB and yB ) and that of the
reflux tank MD (molar composition xD and 0 - the condensation is total).
6. The bottom molar flow is FB with its composition xB and the distillate molar flow
is FD , with its composition xD.
7. The reflux molar flow is FR and the vapor molar flow is V.Supposing the values of
the latent heat of vaporization substantially close, it can be approximated that one
mole of most volatile component vaporizes at the cost of condensing of one mole
of less volatile component, having the result that there is no need for an energy
balance equation on the column and the molar vapor flow Vis constant along the
column.
8. On each tray, the internal molar reflux depends on the holdup of the tray and is Lj .
9. The dynamic response of the condenser is much faster than that of the column.
10. There is no chemical reaction on the trays.
Copyright © 2014. De Gruyter, Inc.. All rights reserved.
Having 4 variables on each tray, the bottom with three variables, the distillate drum
with two and 4 other flows to be determined (FR , V, FB , FD ) it means the model has to
have 4N+9 variables.
Tray equations:
d
Lj+1 − Lj = M (3.63)
dt j
d
Lj+1 xj+1 − Lj xj + Vj−1 yj−1 − Vj yj = (M x ) (3.64)
dt j j
α xj
yj = (3.65)
1 + (α − 1)xj
Agachi, P. S., & Cristea, M. V. (2014). Basic process engineering control. ProQuest Ebook Central <a
onclick=window.open('http://ebookcentral.proquest.com','_blank') href='http://ebookcentral.proquest.com' target='_blank' style='cursor: pointer;'>http://ebookcentral.proquest.
Created from uta-ebooks on 2020-11-12 05:38:16.
90 | Part I: Introduction
Lj = f (Mj )
or Francis equation Lj = 1.837lj h3/2
j , (3.66)
where lj is the length of the weir and hj is the height of the liquid over the weir.
Bottom equations:
d
L1 − FB − V = M (3.71)
dt B
d
L1 x1 − VyB − FB xB = (M x ) (3.72)
dt B B
α xB
yB = . (3.73)
1 + (α − 1)xB
The reflux has to decrease when xD > xDset the setpoint value for xD :
Example 3.12. The efficiency of an esterification reaction (in %) depends on the molar
concentrations (mol/l) of the reactants (acid and alcohol). A factorial experiment at
Agachi, P. S., & Cristea, M. V. (2014). Basic process engineering control. ProQuest Ebook Central <a
onclick=window.open('http://ebookcentral.proquest.com','_blank') href='http://ebookcentral.proquest.com' target='_blank' style='cursor: pointer;'>http://ebookcentral.proquest.
Created from uta-ebooks on 2020-11-12 05:38:16.
3 Mathematical modeling | 91
Input variables x1 x2
Input variables (concentration mol/l) Output variable (efficiency %) Output average (%)
x1 x2 yI yII y
two levels [9] was developed, in order to determine the correlation between the output
and input variables. The aim is to determine a linear regression y = a0 + a1 x1 + a2 x2 .
There is a repetition of the measurements for each combination; the average is
taken into consideration.
1 1.2 2.8
[1 1.0 1.0 1.0 1.0 4.0 4.0 9.6
[ 1.2 2.0 ]
] T [ ] [ ]
X=[ ] ; X = [ 1.2 1.2 0.8 0.8 ] ; X T X = [ 4.0 4.16 9.6 ] ;
[1 0.8 2.8 ]
[ 2.8 2.0 2.8 2.0 ] [ 3.6 9.6 23.7 ]
[1 0.8 2.0 ]
Δ = det(X T X) = 0.4096 (3.77)
0.68
T −1 T [ ]
A = (X X) (X Y) = [ 0.624 ] , giving a regression y = 0.68 + 0.624x1 − 0.38x2 .
[ −0.38 ]
Copyright © 2014. De Gruyter, Inc.. All rights reserved.
Agachi, P. S., & Cristea, M. V. (2014). Basic process engineering control. ProQuest Ebook Central <a
onclick=window.open('http://ebookcentral.proquest.com','_blank') href='http://ebookcentral.proquest.com' target='_blank' style='cursor: pointer;'>http://ebookcentral.proquest.
Created from uta-ebooks on 2020-11-12 05:38:16.