Documente Academic
Documente Profesional
Documente Cultură
Note: This application requires the Optimization Module and the Chemical
Engineering Module.
Model Definition
Two ideal CSTRs with interchange capture the essential behavior of a real reactor
system.
v0
cT0
v1
V1
V2
cT2
v1
cT1
v0
Figure 1: A real reactor can be modeled by two ideal CSTRs with interchange.
1 |
The highly agitated volume is represented by V1 and the less agitated region by V2.
The total reactor volume is defined as:
V = V1 + V2
(1)
and the parameter gives the fraction of the total volume that belongs to V1:
V 1 = V
Fluid is exchanged between volumes at a rate of v1 (SI unit: m3/s), and the parameter
relates this rate to the inlet flow rate:
v 1 = v 0
Assuming that the reactor volume is constant, then the space time, (SI unit: s), is:
V
= ----v0
(2)
MOLE BALANCES
To evaluate the parameters and , a tracer compound is added through the reactor
inlet stream, after which a response curve is measured at the outlet. Mole balances over
the two CSTRs provide an equation model to which the experimental data can be
compared. The mole balances are:
dcT1
V 1 ------------ = v 0 c T0 + v 1 c T2 v 0 c T1 v 1 c T1
dt
dcT2
V 2 ------------ = v 1 c T1 v 1 c T2
dt
where cT1 is the tracer concentration (SI unit: mol /m3) in the region given by V1,
and cT2 is the tracer concentration in V2. cT0 is the tracer amount into the real reactor.
Using Equation 1 through Equation 2 the equations can be rewritten as:
2 |
dc T1
1
----------- = ------ ( c T0 c T1 + ( c T2 c T1 ) )
dt
(3)
dcT2
----------- = -------------------- ( c T1 c T2 )
(1 )
dt
(4)
This coupled set of ODEs can easily be set up and solved in the Reaction Engineering
interface with the CSTR, constant volume, reactor type. Species nodes for T1 and T2,
are added, and the additional source feature is utilized. The additional source feature
can account for all terms on the right-hand side of Equation 3 and Equation 4.
EXPERIMENTAL DATA
CONCENTRATION
(MOL/M3)
600
242
1200
446
1800
585
2400
668
3600
795
6000
909
9000
953
18000
991
24000
994
The Parameter Estimation feature accepts comma-separated value files (csv-files) for
import of experimental data into the software. After import, the columns of the data
file are shown and are mapped to the model variables.
3 |
Figure 2: Model results and experimental data of the tracer concentration in the reactor
outlet.
The estimated values of and are 0.83 and 0.11, respectively.
Reference
1. H.S. Fogler, Elements in Chemical Reaction Engineering, 4th ed., Prentice Hall,
pp. 985987, 2005.
Modeling Instructions
From the File menu, choose New.
4 |
NEW
Add a set of model parameters by importing their definitions from a data text file
provided with the Applications Library.
Parameters
1 On the Home toolbar, click Parameters.
2 In the Settings window for Parameters, locate the Parameters section.
3 Click Load from File.
4 Browse to the applications Application Library folder and double-click the file
nonideal_cstr_parameters.txt.
Start by defining the reactor model. First add two species nodes T1 and T2 for the
tracer concentrations in the volumes V1 and V2, respectively.
REACTION ENGINEERING (RE)
1 In the Model Builder window, under Component 1 (comp1) click Reaction Engineering
(re).
2 In the Settings window for Reaction Engineering, locate the Reactor Type section.
3 From the Reactor type list, choose CSTR, constant volume.
4 Click to expand the Mixture section. From the Mixture list, choose Liquid.
5 Locate the Mass Balance section. From the Volumetric rate list, choose User Defined.
6 In the vp text field, type 0.
Species 1
1 On the Reaction Engineering toolbar, click Species.
2 In the Settings window for Species, locate the Species Name section.
5 |
In each species node, enter physical properties that can be accessed, if necessary, for
computing additional mixture properties.
Species: T1
1 In the Model Builder window, under Component 1 (comp1)>Reaction Engineering (re)
Species: T2
1 In the Model Builder window, under Component 1 (comp1)>Reaction Engineering (re)
[[Add additional sources for the rates of species T1 and T2, i.e. the right hand sides
of the ODEs.]]
Additional Source 1
1 On the Reaction Engineering toolbar, click Additional Source.
2 In the Settings window for Additional Source, locate the Additional Rate Expression
section.
3 In the Volumetric species table, enter the following settings:
Species
T1
(c_T0-re.c_T1+beta*(re.c_T2-re.c_T1))/tau/alpha
T2
beta*(re.c_T1-re.c_T2)/tau/(1-alpha)
Note that alpha and beta will be defined in the Parameter Estimation feature.
Now add a Parameter Estimation feature and set up the optimization calculation.
6 |
Parameter Estimation 1
1 On the Reaction Engineering toolbar, click Parameter Estimation.
2 In the Settings window for Parameter Estimation, locate the Control Variables
section.
3 In the Control variables table, enter the following settings:
Variable
Initial value
alpha
0.5
beta
0.5
Lower bound
Upper bound
Experiment 1
1 On the Reaction Engineering toolbar, click Attributes and choose Experiment.
Read in the csv-file with the experimental data and map the data columns with the
model variables.
2 In the Settings window for Experiment, locate the Experimental Data section.
3 Click Browse.
4 Browse to the applications Application Library folder and double-click the file
nonideal_cstr_data.csv.
5 Click Import.
6 In the table, enter the following settings:
Data column
Use
Model variables
Tracer (mol/m3)
c_T1
STUDY 1
Optimization
1 On the Study toolbar, click Optimization.
2 In the Settings window for Optimization, locate the Optimization Solver section.
7 |
Solution 1
1 On the Study toolbar, click Show Default Solver.
2 In the Model Builder window, expand the Solution 1 node.
3 In the Model Builder window, expand the Study 1>Solver Configurations>Solution
1>Optimization Solver 1 node, then click Time-Dependent Solver 1.
4 In the Settings window for Time-Dependent Solver, click to expand the Absolute
tolerance section.
5 Locate the Absolute Tolerance section. In the Tolerance text field, type 1.0E-5.
6 On the Study toolbar, click Compute.
Experiment 1 Group
1 In the Model Builder window, under Results click Experiment 1 Group.
2 In the Settings window for 1D Plot Group, click to expand the Title section.
3 From the Title type list, choose None.
4 Locate the Plot Settings section. Select the x-axis label check box.
5 In the associated text field, type Time(s).
6 Select the y-axis label check box.
7 In the associated text field, type Tracer concentration (mol/m<sup>3</sup>).
8 In the Model Builder window, expand the Experiment 1 Group node, then click
Experiment 1 Data.
9 In the Settings window for Table Graph, click to expand the Legends section.
10 From the Legends list, choose Manual.
11 In the table, enter the following settings:
Legends
Experiment
8 |
13 In the Settings window for Global, click Replace Expression in the upper-right corner
of the y-axis data section. From the menu, choose Component 1>Reaction
Engineering>comp1.re.c_T1 - Concentration.
14 Click to expand the Legends section. Select the Show legends check box.
15 From the Legends list, choose Manual.
16 In the table, enter the following settings:
Legends
Model
9 |
10 |