Vous êtes sur la page 1sur 6

A Nonlinear Model Library for information, and the desire to “clean up the

model” are some of the more common reasons


Dynamics and Control that prevent model submission. A number of
model descriptions credit the people involved
John D. Hedengren in preparing and submitting the models.
john@hedengren.net Citations are also noted for models that have
appeared in publications. Authors are also
The purpose of this library is to provide encouraged to reference this library in their
researchers and industrial vendors with publication to encourage further model
benchmark models of differential and submissions.
algebraic (DAE) equations. These benchmark
models can be used to demonstrate model The model database was formerly hosted on
reduction, simulation, estimation, control, the University of Texas Chemical Engineering
fault detection, etc. web-site until 2007. The current set can be
obtained at:
Including the model in the nonlinear database
allows other researchers to more easily http://www.hedengren.net/research/models.htm
reproduce the results for further enhancement.
The database also serves as a resource for Currently, all models are written in MATLAB.
researchers who wish to publish a series of These models can easily be transformed to
papers, each with a different application. This other differential and algebraic (DAE)
demonstrates the interdisciplinary potential modeling languages such as APMonitor,
and gives additional credibility to the gProms, or Modelica. A comparison of
proposed applications. With a standard set of modeling language syntax for a simple gravity
test models, the example problems are not drained water tank is shown at:
over-simplistic or fabricated for problem
specific strengths. These applications can http://apmonitor.ath.cx/compare.htm
demonstrate the performance across diverse
disciplines ranging from traditional to Table I is a description of some of the models
emerging areas. in the database. The ID column in Table I is
the unique identifier and contains a hyperlink
The collection can also be useful to industrial to download the model. The file will
practitioners as a valuable starting point for download as model[ID].zip and will contain
the development of more sophisticated models both the model and supporting documentation.
for simulation, estimation, and control. Often The model size refers to the number of
the greatest obstacle to nonlinear control is the differential and algebraic equations that are
developme nt of an accurate and robust model solved implicitly. Explicit intermediate
of the process. The starting point of a simple variables or algebraic outputs are excluded
model serves as a framework to build models from the count. “UR” indicates models that
and fit parameters to actual process data. have unstable regions. For the continuously
stirred tank reactors (CSTRs), the instability is
This nonlinear model database is an attempt to caused by exothermic reaction that causes
create a collaborative collection where process reaction runaway. “NL” indicates models that
models can be documented and shared. are nonlinear. While most of the models are
However, there are several obstacles that must nonlinear, there are four models where linear
be overcome before a model can be released. differential equations allow a
Copyright restrictions, proprietary x& = Ax + Bu state space representation.
DAE model with 2 inputs and 125 states.
Table I: Models in the Collection Most of the models are taken from published
ID Description Size UR NL articles. Most of the models have a step
CSTR with jacket 2 v v response driver where the model response is
1
dynamics computed with a MATLAB integrator for an
CSTR with jacket 4 v v example simulation.
2
dynamics and 4 species
CSTR with jacket 3 v v Below is a summary and discussion of some
3 selected models in the library.
dynamics and 3 species
4 2 CSTRs in series 6 v v
2 CSTRs in series with 4 v v
5
jacket dynamics Model 1 - CSTR
6 Inverted pendulum 2 v v
7 Solar collector 41 The CSTR model with A->B exothermic
32 reaction is the most popular model in the
8 Distillation column 1 v database. It is a standard model that has been
9 Spring 2
used in reaction engineering textbooks,
Continuously stirred tank 4 v v simulation and control research, and
10
reactor demonstrations for industrial software.
11 Cruise control 1 1
12 Cruise control 2 2 v Feed Inputs
13 Distillation column 2 32 v States

14 Distillation column 3 64 v
15 Underwater vehicle 6 v Cooling Jacket
Tc
16 Water tank 1 v CA Reaction
4 T A B
17 Dual string kite model v v
Distillation column with 204 v Product
18
enthalpy equation Figure 1. The most popular model in the
Type-I diabetic blood 3 v collection: Continuously stirred tank reactor
21
glucose control (CSTR) with A->B exothermic reaction.
Yeast fermentation 7 v
22
bioreactor 1 Table II. Variables in CSTR Model
Electric vehicle with a DC 7 Cooling water temperature (K)
23 Tc
motor
ca Concentration of species A
Yeast fermentation 2 v
24 (mol/m3 )
bioreactor 2
T Reactor temperature
25 Polyethylene reactor 7 v v q Volumetric flowrate (m3 /sec)
V Reactor volume (m3 )
The nonlinear model database includes ρ Density of A-B mixture (kg/m3 )
chemical reactors, binary distillation columns, Cp Heat capacity of A-B mixture (J/kg-
and simple mechanical systems. The K)
complexity of the models range from a simple ∆H Heat of reaction for A->B (J/mol)
ODE model with 1 input and 1 state to a large E/R Activation energy in the Arrhenius
Equation (J/mol) / Universal Gas % Heat capacity of A-B
Constant (8.31451 J/mol-K) Mixture (J/kg-K)
k0 Pre-exponential factor (1/sec) Cp = .239;
UA Overall Heat Transfer Coefficient % Heat of reaction for A->B
(W/m2 -K) * Area (m2 ) (J/mol)
Caf Feed Concentration (mol/m3 ) mdelH = 5e4;
Tf Feed Temperature (K) % E = Arrhenius Equation
(J/mol)
% R = Univ Gas Constant
Table III: Equations in CSTR Model EoverR = 8750;
Species balance for component A: % Pre-exponential factor
(1/sec)
∂c  E 
V a = q ( Caf − Ca ) − k0 exp  −  VCa k0 = 7.2e10;
∂t  RT  % U - Heat Trans Coeff
(W/m^2-K)
Energy balance: % A - Area (m^2)
 E  UA = 5e4;
A = ∆Hk 0 exp  −  VCa
 RT  % Feed Conc (mol/m^3)
Caf = 1;
B = UA ( Tc − T ) % Feed Temperature (K)
∂T
= ρ C p q ( Tf − T ) + A + B
Tf = 350;
ρC pV
∂t
% Compute xdot:
These model equations are translated to a xdot(1,1) = (q/V*(Caf - Ca)
model function in MATLAB (see file cstr1.m). - k0*exp(-EoverR/T)*Ca);
The model function returns the state derivates
as a function of the current time (t) and states xdot(2,1) = (q/V*(Tf - T) +
(x). A global variable (u) is used to provide mdelH/(rho*Cp)*k0*exp(-
input changes to the temperature of the EoverR/T)*Ca +
cooling jacket. UA/V/rho/Cp*(Tc-T));

Table IV: CSTR Model in MATLAB These model equations are solved in MATLAB
function xdot=cstr1(t,x) with a numerical integrator. In this case
ode15s is used to solve the differential
global u
equations over a 5 second horizon. The jacket
% T of cooling jacket (K) temperature is stepped from 300 K to 290 K.
Tc = u; The cooling of the reactor jacket results in a
% Conc in CSTR (mol/m^3) decrease in reactor temperature and an
Ca = x(1,1); increase in the concentration of species A.
% Temperature in CSTR (K) The results are displayed in two plots of the
T = x(2,1); temperature and reactor concentration (see file
% Flowrate (m^3/sec) step.m).
q = 100;
% Volume of CSTR (m^3) Table V: CSTR Model Step in MATLAB
V = 100; % Step test for Model 1
% Density (kg/m^3) CSTR
rho = 1000; global u
intermedia te (B). There is an additional
% Initial Conditions-States equation and variable to account for the
Ca_ss = 0.87725294608097; intermediate reaction step.
T_ss = 324.475443431599;
x_ss = [Ca_ss;T_ss]; Feed Inputs
States
% Initial Condition-Control
u_ss = 300;

% Open Loop Step Change T Reaction


u = 290;
CA CB CC A B C
% Final Time (sec) Product
tf = 5;
Figure 2. A variation of the CSTR model with
[t,x] = ode15s('cstr1',[0 an intermediate species (B).
tf],x_ss);

% Parse out the state


values Model 8 - Binary Distillation Column with
Ca = x(:,1); 30 trays (cyclohexane n-heptane)
T = x(:,2);
Distillation column models are generally good
% Plot the results test models for nonlinear model reduction and
figure(1); identification. The concentrations at each
plot(t,Ca); stage or tray are highly correlated. The
dynamics of the distillation process can be
figure(2) described by a relatively few number of
plot(t,T); underlying dynamic states. Several
publications have included this model as an
The model has two states: the concentration of example application. One in particular is:
A and the temperature of the reaction vessel
liquid. The manipulated variable is the jacket Hahn, J. and T.F. Edgar, An improved method
water temperature. At a jacket temperature of for nonlinear model reduction using balancing
305K, the reactor model has an oscillatory of empirical gramians, Computers and
response. The oscillations are characterized Chemical Engineering, 26, pp. 1379-1397,
by reaction run-away with a temperature (2002)
spike. When the concentration drops to a low
value, the reactor cools until the concentration This plot shows the system response after a
builds and there is another run-away reaction. step change in the reflux ratio from 3.0 to 1.5.
Each trajectory represents the mole fraction of
cyclohexane at each tray. The top reflux
material becomes less pure (more n-heptane)
Model 3 – CSTR with Intermediate Species due to the increased draw from the top of the
column.
Models 1-5, 10 are all variations of the CSTR
model. Model 3 in particular, has a reaction
x1 Inputs
Inputs States
States Distillate F v Disturbances
x2
RR

Feed θ
x17
Figure 4. Simple force balance for an object in
motion.

x31
Bottoms
x32 Model 16 - Gravity Drained Water Tank
Figure 3a. Distillation column model
This gravity drained water tank was a control
diagram.
experiment for Tom Edgar's undergraduate
control course. The students had to perform
experiments to determine the process time
constant and tune a PID controller. The
nonlinear model gave excellent predictions of
level (or volume) and was used to demonstrate
the advantage of model predictive control
(MPC) over PID control for level control.

The trend shows the inlet valve 80% open for


60 seconds. The volume reaches 1400 mL
before the inlet value is shut and the tank
drains.

Figure 3b. Distillation column tray 1500


Model Prediction
concentration profiles after a decrease in the Experimental Data
Volume (mL)

1000
reflux ratio.
500

0
Model 12 - Cruise Control with 0 50 100 150 200 250 300 350 400 450 500
Time (sec)
Disturbance
100
Inlet Valve % Open

80
This simple mechanical model is of an object
60
that is seeking to maintain constant speed 40
while subject to disturbances. In this case, the 20
disturbance is the incline or decline angle. 0
50 100 150 200 250 300 350 400 450
Time (sec)

Figure 5. Model and experimental data for a


gravity drained water tank.
Model 21 - Human Blood Glucose Model
for Insulin Control - Type I Diabetes

This model is combined from two related


papers:

S. M. Lynch and B. W. Bequette, Estimation-


based Model Predictive Control of Blood
Glucose in Type I Diabetes: A Simulation
Study, Proc. 27th IEEE Northeast
Bioengineering Conference, IEEE, 2001.

and Figure 6. Results from a simulation of the


yeast fermentation bioreactor.
S. M. Lynch and B. W. Bequette, Model
Predictive Control of Blood Glucose in Type I Model states include reactor volume,
Diabetics using Subcutaneous Glucose temperature, yeast, ethanol, glucose, and
Measurements, Proc. ACC, Anchorage, AK, oxygen concentrations. Although the model is
2002. shown as a continuous process, minor
modifications transform the model into a
It is a simple three state model that effectively semi-batch process more commonly found in
describes blood glucose and insulin corn- feedstock industrial ethanol production.
dynamics. The three states are pla sma glucose
concentration (mmol/L), plasma insulin
concentration (mU/L) in remote compartment, Individuals can make this collection better by
and plasma insulin concentration (mU/L). submitting models or offering improvements
The principal disturbance variable is the to the current set. The contributions of
glucose input. Matthew Tenny, Wayne Bequette, Yang
Zhang, Zoltan Nagy, Moritz Diehl, Juergen
Hahn, and Roger Aarenstrup are gratefully
acknowledged.
Model 22 - Yeast Fermentation Bioreactor

Zoltan Nagy contributed this model of a


continuous plug flow fermentation reactor.
Oxygen solubility is a function of the minerals
that are present in solution.

Vous aimerez peut-être aussi