Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Modeling
By Hagos, 2019
Why a model is needed?
They also contain extensive standard model libraries and the means
of synthesizing a complete process model by combining standard
library models.
Other important aspects are the provision for external data
interfaces and built-in model identification and optimization routines,
together with access to a physical property data package.
The complexity of the software, however, is such that the packages
are often non-user friendly and the simplicity of the basic modeling
approach can be lost in the detail of the solution procedures.
…Cont’d
The correct use of such design software requires a basic
understanding of the sub-model blocks and hence of the
methodology of modeling.
Our simplified approach to dynamic modeling and simulation
incorporates no large model library, no attached database and no
relevant physical property package. Nevertheless quite realistic
process phenomena can be demonstrated, using a very simple
approach.
Again this follows our general philosophy of starting simple and
building in complications as the work and as a full understanding of
the process model progresses. This allows the use of models to be an
explicit integral part of all our work.
…Cont’d
Kapur (1988) has listed thirty-six characteristics or principles of
mathematical modeling. They can be summarized as follows:
Figure1: Steps
in model
building
Model Classification
Some model types are inappropriate in certain circumstances, such as
a steady-state model for batch reactor startup analysis.
Table1: Model Classification
Characteristic Nature of Process
Models
Mechanistic models are also referred to as phenomenological models
because of their basic derivation from system phenomena or
mechanisms such as mass, heat and momentum transfer.
Many commonplace models in process engineering applications are
derived from a knowledge of the underlying mechanisms.
However, most mechanistic models also contain empirical parts such
as rate expressions or heat transfer relations.
Mechanistic models often appear in design and optimization
applications.
They can be termed "white box" models since the mechanisms are
evident in the model description.
…Cont’d
Empirical models are the result of experiment and observation,
usually not relying on the knowledge of the basic principles and
mechanisms which are present in the system being studied. They
employ essentially equation fitting where the parameters have little
or no physical meaning.
Empirical models are widely used where the actual underlying
phenomena are not known or understood well.
These models are often termed "black box" models, reflecting the
fact that little is known about the real mechanisms of the process.
The most common form of model used in process engineering is a
combination of mechanistic and empirical parts and hence is termed
"grey box."
…Cont’d
Stochastic models arise when the description may contain elements
which have natural random variations typically described by
probability distributions.
This characteristic is often associated with phenomena which are not
describable in terms of cause and effect but rather by probabilities
or likelihoods.
Deterministic models are the final type of models characterized by
clear cause-effect relationships. Thus we can have a mechanistic
model with some stochastic parts to it. A very common occurrence is
a mechanistic model which includes empirical aspects such as
reaction rate expressions or heat transfer relationships.
Model Characteristics
The modeling goal has a major impact on the level of detail and on the
mathematical form of the model which will b e built.
Analogous to the idea of a process system shown in Fig. 2, a model acts
in some way to mimic the behaviour of the real system it purports to
represent.
Thus, Fig. 3 shows the model with certain inputs and outputs. The use
of the model can take various forms dep ending up on what is assumed
to be known and what is to be computed.
…cont’d
Given:
a process system
a modeling goal
validation criteria
Process model
Assumptions
A1 : perfect mixing,
A2 : constant physico-chemical properties
A3 : equal inflow and outflow (implying constant liquid volume with V =
constant),
A4 : single first-order exothermic reaction, A→ P,
A5 : adiabatic operation.
…cont’d
Model equations and characterizing variables
Differential (balance) equations in molar units
dmA
dt = fAi − fA − rV ……………………………………………………………………..(1)
V ρcp dT
dt = fcpi ρi (Ti − T) + rV(−∆HR)………………………………....(2)
Constitutive equations.
r = k0e −E /(RT)CA …………………………………………………………………….(3)
mA = CAV ……………………………………………………………………………………..(4)
fAi = fCAi ……………………………………………………………………………………….(5)
fA = fCA …………………………………………………………………………………………(6)
…cont’d
Variables Ti : inlet temperature [K]
t: time[s] ∆HR : heat of reaction [J/mol]
CA : concentration in the tank [mol E : activation energy [J/mol]
/m3]; k0 : pre-exponential factor [s −1]
V : liquid volume [m3]; R : universal gas constant, 8.314
f : volumetric flowrate [m3/s ]; [J/(molK)]
CAi : inlet concentration [mol/m3]; ρ : density of mixture [mol/m3]
r : reaction rate [mol/(s.m3)]; ρi : density of feed i [mol/m3]
cp : specific heat of mixture mA: moles of A [mol]
[J/(molK)]; fAi : inlet flowrate of species A
cpi : specific heat of feed i [mol/s]
[J/(molK)] ;
T : temperature in the tank [K];
…cont’d
Initial conditions:
CA(0) = CAi , T(0) = Ti
Boundary conditions:
none
Parameters:
Values for the following parameters with 10% precision:
V , f , CAi , Ti , cp , cpi , ρ, ρi and for the reaction parameters with 30%
precision: k0, E, ∆HR
Solution procedure:
Solve using an ODE or differential-algebraic equation solver.
…cont’d
Model verification
Implement model equations using structured programming principles
for every balance volume in the system.
Provide measured data from pilot plant or real process.
Analyze plant data quality.
Carry out validation of predicted outputs from step test of system
using least squares estimation of error.
Apply hypothesis testing to validate model based on least squares
estimates.
Refine model as required by performance criteria.