Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
• • • • • • • • • •
May 2002
SINOPEC Qilu Petrochemical Company
• • • • • • • • • • • • • • • • • • • •
____________________________________________________________________ 2
SINOPEC Qilu Petrochemical Company VCM Model
SINOPEC Qilu Petrochemical Company
• • • • • • • • • • • • • • • • • • • •
Table of Contents
1 Summary................................................................................3
References.....................................................................................................26
____________________________________________________________________ 3
SINOPEC Qilu Petrochemical Company VCM Model
SINOPEC Qilu Petrochemical Company
• • • • • • • • • • • • • • • • • • • •
1 Summary
This report documents the Aspen Plus models for SINOPEC Qilu Petrochemical
Company’s balanced vinyl chloride monomer (VCM) plant developed by AspenTech
with assistance of three engineers from the Qilu Petrochemical Company (QPC). The
three QPC engineers are ZhengHua Cai, YuChu Guo and WeiQiang Xu.
Effective models for VCM (and other chemical) facilities require accurate and reliable
foundation models (for thermodynamic properties, reaction kinetics and heat transfer),
flexible and robust models for the process equipment (for example, reactors, heat
exchangers, flash separators and distillation columns) and robust schemes to converge the
process flowsheets. The VCM process is especially challenging because it contains
nonideal mixtures, electrolytes, complex reactors and integrated flowsheets. This project
used the combination of the deep process-modeling knowledge of AspenTech personnel
and the intimate knowledge of the VCM plant of the QPC process engineers to develop
effective steady-state models of the QPC VCM plant. The joint project also served as the
basis for AspenTech to train the QPC engineers to model VCM and other chemical plants.
The QPC VCM plant uses the balanced process and is divided into five sections: direct
chlorination, oxychlorination, ethylene dichloride (EDC) purification, EDC pyrolysis and
VCM purification sections (see Figure 1). All these five sections have been modeled in
this project and the models are documented in this report.
The VCM models will enable analysis to understand, trouble-shoot and improve plants,
and will serve as the basis for planning and executing future plant expansions.
____________________________________________________________________ 4
SINOPEC Qilu Petrochemical Company VCM Model
SINOPEC Qilu Petrochemical Company
• • • • • • • • • • • • • • • • • • • •
The QCP VCM plant uses the balanced process based upon ethylene and chlorine (Cowfer
and Gorensek, 1996; Ullmann’s, 1999). The reactions for each component process are
shown in equations 1-3 and the overall reaction is given by equation 4:
In a typical balanced plant producing VCM from EDC, all the HCl produced in the EDC
pyrolysis is used as the feed for the oxychlorination. On this basis, EDC production is
about evenly split between direct chlorination and oxychlorination, and there is no net
production or consumption of HCl. The three principal reaction steps and the associated
separation and heat-integration steps are shown in Figure 1.
HCl Recycle
O2
Oxychlorination Light ends
Direct
chlorination Heavy ends
Cl2
In the QPC plant, the principle steps are designated as section numbers as follows:
____________________________________________________________________ 5
SINOPEC Qilu Petrochemical Company VCM Model
SINOPEC Qilu Petrochemical Company
• • • • • • • • • • • • • • • • • • • •
The goal of the project was to develop rigorous kinetic models for the Oxychlorination
(Section 200) and EDC Pyrolysis (Section 400) reactors and a stoichiometric conversion
model for the Direct Chlorination (Section 100) reactor, to develop effective models for the
various flash separation, heat exchange and distillation models used in the process and to
combine these building blocks into flowsheet models for each of the five sections of the
QPC VCM plant.
The modeling approach taken was, as far as possible, to use standard models within Aspen
Plus. Thus, the reactor kinetics were described using POWERLAW (power law) or LLHW
(Langmuir-Hinschelwood-Hougen-Watson) kinetics. Because of this approach, most of the
models developed in this project are described by the standard Aspen Plus documentation.
The only exception to this is the model developed for the radiative heat transfer in the EDC
Pyrolysis reactor. In this case a user subroutine needed to be developed. The use of this
model, together with general comments on running Aspen Plus models is presented in
Chapter 8.
In this report it is assumed that the reader is familiar with the use of Aspen Plus, and
especially advanced features like electrolyte thermodynamics, reactor models and advanced
distillation. Brief training was provided to QPC engineers in the use of these advanced
features. It is recommended that engineers who use and further develop the VCM
simulation models take the appropriate courses from AspenTech.
It is expected that the VCM models will achieve the following objectives:
Design optimal process configurations and plant operations to maximize production rate
and minimize production costs.
Assist in scaling up and debottlenecking of existing production lines, including reactor
and flowsheet modifications.
Explore operating conditions for new catalysts.
Train operators to better operate the plant and handle plant upsets.
Support the study of capital investment projects to design and revamp the plant.
Based upon AspenTech’s past experience, expected benefits of the VCM modeling project
will be as follows:
In addition to the direct benefits, several indirect benefits are expected to be achieved:
____________________________________________________________________ 6
SINOPEC Qilu Petrochemical Company VCM Model
SINOPEC Qilu Petrochemical Company
• • • • • • • • • • • • • • • • • • • •
Engineers will be trained to better understand the technology of building process models
and to apply process models.
Operators will be trained to better operate plants and to understand the process.
____________________________________________________________________ 7
SINOPEC Qilu Petrochemical Company VCM Model
SINOPEC Qilu Petrochemical Company
• • • • • • • • • • • • • • • • • • • •
The physical property method NRTL-RK is used. This method uses the NRTL activity-
coefficient model to describe the nonideality of the liquid phase and the Redlich-Kwong
model to describe the nonideality of the vapor phase. It is appropriate for the mixtures
and conditions of the Direct Chlorination section.
The Direct Chlorination reactor has been described using an RSTOIC model with the
following reactions and specified conversions:
____________________________________________________________________ 8
SINOPEC Qilu Petrochemical Company VCM Model
SINOPEC Qilu Petrochemical Company
• • • • • • • • • • • • • • • • • • • •
The first reaction in the above table is Equation (1) in Chapter 1. The other reactions
describe the main side reactions. The reactions and conversions were chosen based upon
the information published in VCM references (Cowfer and Gorensek, 1996; Ullmann’s,
1999) and the experience of the AspenTech and QPC personnel.
Using the Direct Chlorination reactor described above, an Aspen Plus model for Section
100 of the plant was developed as shown in Figure 2.
E101
F101G V 122
121
105
107 106 E102
117
FA 101
104 G B101 119
DC101
102 116
FA 102
110
108A
120A
EA 103
108 120
FS PLI T
109
G A101 G A103
111
The reactor described above has been implemented in Aspen Plus as DC101. The other
blocks in Section 100 are standard Aspen Plus models and will not be described further.
____________________________________________________________________ 9
SINOPEC Qilu Petrochemical Company VCM Model
SINOPEC Qilu Petrochemical Company
• • • • • • • • • • • • • • • • • • • •
In oxychlorination, ethylene reacts with dry HCl and either air or pure oxygen (the QPC
VCM plant uses pure oxygen) to produce EDC and water (Equation (3) of Chapter 1). The
catalyst contains cupric chloride as the active ingredient. The reaction is highly exothermic
and thus good temperature control is very important. The QPC plant uses a fluidized bed
with internal cooling coils containing hot water for heat removal. The by-products from the
reactor include unreacted HCl and also CO2, and this section contains distillation columns to
remove them. Since these compounds and the absorbing chemicals form electrolytes, an
ionic model is necessary for the development of an effective model.
____________________________________________________________________ 10
SINOPEC Qilu Petrochemical Company VCM Model
SINOPEC Qilu Petrochemical Company
• • • • • • • • • • • • • • • • • • • •
Three physical-property models are used in this section: NRTL-RK, ELECNRTL, and
STEAMNBS. NRTL-RK uses the NRTL activity-coefficient model to describe the
nonideality of the liquid phase and the Redlich-Kwong model to describe the nonideality
of the vapor phase. It is appropriate for the mixtures and conditions of the
Oxychlorination section containing non-electrolyte mixtures. For mixtures containing
electrolytes, the ELECNRTL option is used. This option is similar to the NRTL-RK
model, but is also able to describe mixtures containing ions. ELECNRTL defaults to
NRTL-RK when the concentration of ionic species becomes zero. The STEAMNBS
model is a highly accurate model for pure water and is used for the cooling circuit of the
reactor.
k T * K a * CC 2H 4 * C HCl * CO0.2038
R1 (5)
1 K a * CC 2 H 4
Actually, Wachi and Asai (1994) did not use the dependence on the concentrations of HCl
and O2 shown in Equation (5). Wachi and Asai did propose a linear dependence on the
____________________________________________________________________ 11
SINOPEC Qilu Petrochemical Company VCM Model
SINOPEC Qilu Petrochemical Company
• • • • • • • • • • • • • • • • • • • •
The temperature dependence of the rate constant is given by the usual Arrhenius rate
expression:
E 1 1
k T k 0 * exp (6)
R T T 0
where,
The other reactions are assumed to have similar rate expressions. All seven reactions have
been implemented into the LLHW (Langmuir-Hinschelwood-Hougen-Watson) model in
Aspen Plus, with the following general expression:
E 1 1
k T k 0 * exp * Concentration / 1 Adsorption (6)
R T T0
____________________________________________________________________ 12
SINOPEC Qilu Petrochemical Company VCM Model
SINOPEC Qilu Petrochemical Company
• • • • • • • • • • • • • • • • • • • •
The values of k0 were determined through data supplied by QPC engineers, and may need to
be adjusted as the catalyst activity changes. The reaction set has been implemented into an
LHHW model named OXYCHLOR.
Cyclone
Heat Water
Cool Water
33
32
31
Baffle
3
2 Gas Distributor
1
3
2
1
PF
HCl
201
S.L
Recycle Gas
C2H4
EA205
O2
EA206
Several schemes were investigated for modeling the reactor. It was finally decided to model
the reactor simply as a constant temperature plug-flow reactor with 3.84712 m and length
____________________________________________________________________ 13
SINOPEC Qilu Petrochemical Company VCM Model
SINOPEC Qilu Petrochemical Company
• • • • • • • • • • • • • • • • • • • •
3.415 m. The constant temperature was set to 230C and the heat produced in the reactor is
used to heat the cooling water through the use of a heat stream.
The Oxychlorination reactor has cyclones to recover the catalyst particles. AspenTech did
supply QPC engineers with approximate models to describe the performance of the
cyclones, but this unit is not included in the formal models developed for this project.
The Aspen Plus model developed for Section 200 is presented as Figure 4.
207A
235A
2WL
135
15
01
19
20
21
27
30
23
6
2 50 EA2 07
2 28 A
FA208
2 47
2 28
4 18
FA2 01
PF201
CO2 -C1
207 RS T OI C
222A
GB2 01
2 03
2 04
5
EA2 05 DA2 01
103
223A
D C2 0 1
GA203 FA2 04 PF2 03 FA205
EA206 PF202
206 238
218 FA2 05 S BL
2 01 A FSP LI T
237
212 GA205
2 36
229
The Oxychlorination reactor described above has been implemented as the RPLUG model
DC201. A heat stream from the reactor DC201 is used to determine the temperature rise in
the cooling-water system.
The outlet from DC201 enters distillation column DA201 in which the aqueous HCl is
separated from the other components in the stream. This column has been modeled using
the Radfrac block. The column has a rather complex heat-exchanger network, which has
been modeled using pumparounds. Aqueous HCl must be modeled using an electrolyte
model. A single reaction describing the ionic dissociation of HCl has been used in a
Chemistry model named HCL:
____________________________________________________________________ 14
SINOPEC Qilu Petrochemical Company VCM Model
SINOPEC Qilu Petrochemical Company
• • • • • • • • • • • • • • • • • • • •
The Radfrac simulation of DA201 has been done in the apparent mode. The simulation
allowed the presence of two liquid phases, but only a single liquid phase was found.
The vapor from DA201 is further processed in another distillation column, DA202, in which
the CO2 is absorbed in a sodium hydroxide solution. A more complete Chemistry model,
named GLOBAL is required to describe the acid-base chemistry that occurs in DA202:
Similar to DA201, DA202 is modeled as a Radfrac block in the apparent mode and allowing
the presence of two liquid phases. In this case, two liquid phases are predicted in the
simulation and this is in accordance with plant observation.
The amount of caustic is sufficient to completely remove the CO2, but in practice a rate-
based process, probably gas-phase mass transfer, limits the CO2 removal. Radfrac does not
have the capability to describe processes that are controlled by mass-transfer limitations and
hence we have implemented an approximate, but effective, approach. It is assumed that the
CO2 is initially in the form of an “inert CO2” (CO2-IN) that does not participate in the
Chemistry GLOBAL (Equations (8) – (12)); CO2-IN has also been forced to be only
sparingly soluble in the liquid phase by declaring it to be HENRY component with a large
Henry’s Law constant. Now a REACTIONS model, named CO2-MT converts CO2-IN.
The scheme has been implemented through an RSTOIC block CO2-C1 that converts all the
incoming CO2 to CO2-IN. In the distillation column DA202, CO2-MT converts CO2-IN
to CO2, but its finite rate limits the amount of absorption of CO2. The vapor phase from the
top of DA202 converts any remaining CO2-IN back to CO2 and thus the presence of CO2-
IN is limited to the region around DA202. The formulation adopted to describe the mass-
transfer of CO2 is similar to one proposed by Miller (1987) for nitric-acid columns. Finally,
we note that his scheme provides results that are in good agreement with plant observations.
The vapor effluent from DA202 goes through a series of condensers to remove the heavier
components and finally to produce the recycle gas (Stream 229) that returns to the reactor.
These pieces of equipment have been modeled as HEATER, FLASH2, COMPR and
FSPLIT blocks as appropriate.
The liquid effluent from DA202 is processed by a series of decanters and washes to produce
the EDC product and waste water streams. These pieces of equipment have been modeled
as PUMP, MIXER, DECANTER and FSPLIT blocks as appropriate.
Convergence of this plant section is difficult because of the interdependency and complex
connections of the various streams and slow convergence of the blocks (caused by
electrolyte chemistry and liquid-liquid equilibrium. However, convergence can be reliably
____________________________________________________________________ 15
SINOPEC Qilu Petrochemical Company VCM Model
SINOPEC Qilu Petrochemical Company
• • • • • • • • • • • • • • • • • • • •
obtained by providing increasingly good guesses for the tear streams (using the Reconcile
capability in Aspen Plus).
The results of the Aspen Plus simulation of Section 200 have been judged by QPC engineers
to be in good agreement with the plant observations.
____________________________________________________________________ 16
SINOPEC Qilu Petrochemical Company VCM Model
SINOPEC Qilu Petrochemical Company
• • • • • • • • • • • • • • • • • • • •
Section 300 consists of three distillation columns and associated pumps, heat exchangers
and flash separators designed to produce purified EDC as a feed for the EDC Pyrolysis unit.
The components used in the Aspen Plus model for Section 300 are:
The physical property method NRTL-RK is used. This method uses the NRTL activity-
coefficient model to describe the nonideality of the liquid phase and the Redlich-Kwong
model to describe the nonideality of the vapor phase. It is appropriate for the mixtures
and conditions of the EDC Pyrolysis section.
The Aspen Plus flowsheet developed for Section 300 is presented in Figure 5.
____________________________________________________________________ 17
SINOPEC Qilu Petrochemical Company VCM Model
SINOPEC Qilu Petrochemical Company
• • • • • • • • • • • • • • • • • • • •
313L
314
N2
320
GA308
325A
325
E304G E313G
315 GV
EA304 EA313
EA311 EA312
301 323
510 313
E304L
FA301 DA304
E312L
F301L
308 317
326
330 321
309
109 317A 321A
D301BL
There are four distillation columns in Section 300 (DA301, DA302, DA303 and DA304),
which have all been modeled using the Radfrac model in Aspen Plus. DA301 is specified to
allow two liquid phases, but a second liquid phase was not found. DA302 has a design-spec
to vary the distillate rate in order to obtain a top tray temperature of 60C. Columns DA303
and DA304 do not have any special features. All four Radfrac blocks converge robustly.
All other Aspen Plus blocks chosen to represent the process equipment in this section are
straightforward application of standard Aspen Plus blocks.
The Broyden method has been chosen to converge this Aspen Plus model. Due to the
integrated nature of the flowsheet is important to ensure tight tolerances on the individual
blocks to obtain overall convergence of the Aspen Plus simulation. Hence the flash
tolerance under Setup/Simulation Options/Flash Convergence has been set to 1.E-6, and the
Radfrac tolerance has also been set to the same value (i.e., 1.E-6). It is also important to
start with good guesses for the tear streams (308 and 325). With these practices, the
flowsheet convergence is robust. It is recommended that QPC engineers follow these
practices and the simulation model is modified in the future.
The results of the Aspen Plus simulation of Section 300 have been judged by QPC engineers
to be in good agreement with the plant observations.
____________________________________________________________________ 18
SINOPEC Qilu Petrochemical Company VCM Model
SINOPEC Qilu Petrochemical Company
• • • • • • • • • • • • • • • • • • • •
EDC decomposes on heating to VCM and HCl. The reaction is endothermic and thus the
reactor is a direct-fired tubular furnace. In the QPC plant, the reactor is fired using butane as
the fuel. A schematic diagram of the reactor is presented in Figure 6.
VCM
STM
EDC Preheater
CM (EA412)
EDC Cracker
Heat Exchanger
(EA411)
EDC
C4
The components used in the Aspen Plus model for Section 300 are:
____________________________________________________________________ 19
SINOPEC Qilu Petrochemical Company VCM Model
SINOPEC Qilu Petrochemical Company
• • • • • • • • • • • • • • • • • • • •
CO CARBON-MONOXIDE CO
C2H4 ETHYLENE C2H4
C3H8 PROPANE C3H8
C3H6 PROPYLENE C3H6-2
H2 HYDROGEN H2
C2H6 ETHANE C2H6
BENZ BENZENE C6H6
CARBON CARBON-GRAPHITE C
NC4 N-BUTANE C4H10-1
IC4 ISOBUTANE C4H10-2
ARGON ARGON AR
A composite model has been developed to describe the reaction and heat exchange depicted
in Figure 6. The POWERLAW model describes the pyrolysis reactions that occur inside the
tubes. In the POWERLAW model, the rate expression is as follows:
E 1 1
Rate k 0 * exp * Partial Pr essure (13)
R T T0
In the implementation for EDC pyrolysis, T0 has been set to 500 K and E has been set to
93,600 kJ/kmol for all reactions. A set of seven reactions has been used to describe the
pyrolysis kinetics, as described in the table below.
In the above table, the partial pressures are in SI units, i.e., Pa.
The choice of the reactions, the form of the POWERLAW correlations and the kinetic
parameters were based upon information in the literature (for example, Cowfer and
Gorensek, 1996; Ullmann’s, 1999; Holbrook, Walker and Watson, 1971; Incavo, 1996), as
well as the experience of AspenTech personnel and the QPC engineers. The POWERLAW
model has been implemented in Aspen Plus as a Reactions model named EDCPR.
____________________________________________________________________ 20
SINOPEC Qilu Petrochemical Company VCM Model
SINOPEC Qilu Petrochemical Company
• • • • • • • • • • • • • • • • • • • •
Radiative heat transfer of the combustion of butane heats the endothermic EDC pyrolysis
reaction. Aspen Plus does not have a radiative heat-transfer model and thus the mechanism
has been implemented as a user heat-transfer model.
The overall heat-transfer process may be approximated as radiative heat transfer from the
flame to the tube wall (proportional to the fourth power of the temperature) and convective
heat transfer from the tube wall to the process fluid.
Q UR T F T
4 W 4
U C
(T W T P ) (14)
where,
The above model has been implemented in a user Fortran heat-transfer subroutine named
EDCHT that has three real input variables as follows:
EDCHT first solves Equation (14) to find the wall temperature and then computes the heat
flux, Q.
The combination of reactor and flame is simulated by using an RPLUG block with the
EDCPR kinetic model and an RSTOIC model for the butane combustion. A Calculator
block named EDCPYR passes the temperature of the flame to REAL(1) of the RPLUG
model and a design-spec named EDCREACT varies the temperature of the flame such that
the heat generated in the combustion equals the heat transferred to the reactor.
The physical property method NRTL-RK is used. This method uses the NRTL activity-
coefficient model to describe the nonideality of the liquid phase and the Redlich-Kwong
model to describe the nonideality of the vapor phase. It is appropriate for the mixtures
and conditions of the EDC Pyrolysis section.
The Aspen Plus flowsheet developed for Section 400 is presented in Figure 7.
____________________________________________________________________ 21
SINOPEC Qilu Petrochemical Company VCM Model
SINOPEC Qilu Petrochemical Company
• • • • • • • • • • • • • • • • • • • •
410
G2
EA402
G3
DUPLI C 404A 404B
M ULT
DA401 EA403
EA412 T UB1 418 503
402 402A
451
403 411
451B 404C
E411
409
T UB2
FA402
451C
G1
451A EDCREACT
COMB
In the Aspen Plus model depicted in Figure 7, the reactor of Figure 6 consists of the
combustion (COMB), the tubular reactor (EDCREACT) and the heat-recovery exchangers
(TUB1, TUB2 and E411).
The remainder of the Section 400 simulation is a straightforward application of Aspen Plus
models. The separator DA401 is treated as a 2-stage Radfrac block with a large
pumparound. The MULT block, named DUPLIC, is intended to simulate the fact that two
reactor trains enter this part of the plant. EA403 and FA402 simulate the heat exchanger and
flash separator in this section.
The results of the Aspen Plus simulation of Section 400 have been judged by QPC engineers
to be in good agreement with the plant observations.
____________________________________________________________________ 22
SINOPEC Qilu Petrochemical Company VCM Model
SINOPEC Qilu Petrochemical Company
• • • • • • • • • • • • • • • • • • • •
Section 500 consists of three distillation columns and associated pumps, heat exchangers
and flash separators designed to produce the purified product VCM.
The components used in the Aspen Plus model for Section 300 are:
Two physical-property models are used in this section: NRTL-RK and ELECNRTL.
NRTL-RK uses the NRTL activity-coefficient model to describe the nonideality of the
liquid phase and the Redlich-Kwong model to describe the nonideality of the vapor
phase. It is appropriate for the mixtures and conditions of the Oxychlorination section
containing non-electrolyte mixtures. For mixtures containing electrolytes, the
ELECNRTL option is used. This option is similar to the NRTL-RK model, but is also
able to describe mixtures containing ions. ELECNRTL defaults to NRTL-RK when the
concentration of ionic species becomes zero.
____________________________________________________________________ 23
SINOPEC Qilu Petrochemical Company VCM Model
SINOPEC Qilu Petrochemical Company
• • • • • • • • • • • • • • • • • • • •
The Aspen Plus flowsheet developed for Section 500 is presented in Figure 8.
505IN
511A
513A
508
513
503
511
VCMP ROD
M-E A506
FA 505
409
MIX ER2
P F501 514
FA504 M I XER
GA503
505
DA 501 DA502
410 WATE R
DA 503
M-GA 5O2
411 504
519
512
517A
510
There are three distillation columns in Section 500. DA501 removes the components lighter
than VCM, DA502 removes those heavier than VCM and DA503 provides final purification
of the VCM. In all three columns, the physical property option NRTL-RK is used. DA501
has a design-spec that sets the temperature of Stage 31 by varying the reboiler duty. This
design-spec is hard to attain and may depend strongly on the minor species in the column.
This design-spec is achieved in the current simulation, but QPC engineers are advised to
perform sensitivity studies to determine the effect of minor species on the column
temperature profile. Columns DA502 and DA503 converge without difficulty.
The portion of the simulation downstream of DA503 consists of a caustic wash to remove
the purified VCM from the aqueous phase. This portion of the simulation has been
simulated using the ELECNRTL model.
The results of the Aspen Plus simulation of Section 500 have been judged by QPC engineers
to be in good agreement with the plant observations.
____________________________________________________________________ 24
SINOPEC Qilu Petrochemical Company VCM Model
SINOPEC Qilu Petrochemical Company
• • • • • • • • • • • • • • • • • • • •
The VCM plant models contain bkp or apw files and associated Fortran subroutines
supplying the user models (typically the kinetics of heat-transfer models). In this case
only the EDC Pyrolysis reactor has a user Fortran subroutine, the heat-transfer model
called EDCHT.
In order to run any one of the models, save the set of files into a chosen directory. Note
that the bkp and apw files are equivalent. bkp files are upwardly compatible with new
versions of Aspen Plus, while the apw files are not. apw files retain more graphical
information than the bkp files. It is recommended that both bkp and apw files be
retained. Compile the Fortran subroutines using standard Aspen Plus procedures. Now
run the bkp file or the apw file.
It is usually easier to create dll files that contain the Fortran subroutines. A .dll file
allows distribution of Fortran subroutines to customers who do not have a Fortran
compiler. The customer simply follows the instructions outlined below under
"Instructions for Using MYDLL.DLL” in order to call the subroutine from his model
within the Aspen Plus GUI.
Creating a .dll file requires a Fortran compiler. You do not need to do this step if a .dll
file has already been created. Follow these instructions to create a .DLL file:
1. Open the “Aspen Plus Simulation Engine” window. This is done through the
“Start” button in Windows. This action sets the correct environment variables and
default directories.
2. Compile the Fortran subroutines you want included so as to create the
corresponding .OBJ files. Example:
ASPCOMP MYSUBR.FOR creates MYSUBR.OBJ
3. Place all your .OBJ files in a directory and from there execute the following
command:
ASPLINK MYDLL
These commands create file MYDLL.DLL, which includes all .OBJ file in the current
directory.
After successful completion of Step 3, MYDLL.DLL is ready for distribution and use.
____________________________________________________________________ 25
SINOPEC Qilu Petrochemical Company VCM Model
SINOPEC Qilu Petrochemical Company
• • • • • • • • • • • • • • • • • • • •
MYDLL.DLL is a file that allows the use of compiled Fortran without a compiler. For
example, MYDLL.DLL might contain subroutine "USRKIN" that calculates reaction
kinetics. Follow these steps to set up your system to include MYDLL.DLL in your
Aspen Plus simulation:
Note that lines starting with “#” are treated as comment lines. Also, RUN.OPT
may have multiple lines identifying several DLL’s used in the simulation.
You are now ready to run your Aspen Plus simulation that makes use of MYDLL.DLL.
AspenTech has created dll’s containing the VCM models for QPC’s use. This file is
called edcpyr.dll. The use of the dll’s is the preferred way to run the simulation models.
____________________________________________________________________ 26
SINOPEC Qilu Petrochemical Company VCM Model
SINOPEC Qilu Petrochemical Company
• • • • • • • • • • • • • • • • • • • •
References
Al-Zahrani, S.M.; Aljodai, A.M.; Wagialla, K.M., “Modelling and Simulation of 1,2-
Dichloroethane Production by Ethylene Oxychlorination in Fluidized-Bed Reactor,”
Chem. Eng. Sci., 56, 621 (2001).
Carrubba, R.V.; Spencer, J.L., “Kinetics of the Oxychlorination of Ethylene,” Ind. Eng.
Chem. Proc. Des. Dev., 9, 414 (1970).
Cowfer, J.A.; Gorensek, M.B.; “Vinyl Chloride,” Kirk-Othmer Encyclopedia of Chemical
Technology, 4th Edition, 1996.
Holbrook, K.A.; Walker, R.W.; Watson, W.R.; “The Pyrolysis of 1,2-Dichloroethane,” J.
Chem. Soc. B, 577 (1971).
Incavo, J.A., “ A Detailed Quantitative Study of 1,2-Dichloroethane Cracking to Vinyl
Chloride by a Gas Chromatographic Pyrolysis Device,” Ind. Eng. Chem. Res., 35, 931
(1996).
Miller, D.N., "Mass Transfer in Nitric Acid Absorption," AIChE J., 33, 1351-1358,
(1987).
Prasad, P.S.S.; Prasad, K.B.S.; Ananth, M.S., “Parameter Estimation in a Fixed-Bed
Reactor Operating Under Unsteady State: Oxychlorination of Ethylene,” Ind. Eng.
Chem. Res., 40, 5487 (2001).
Ullmann’s Encyclopedia of Industrial Chemistry, 5th Completely Revised Edition, Volume
A6: Ceramics to Chlorohydrins, pages 262-389, John Wiley & Sons (1999).
Wachi, S.; Asai, Y., “Kinetics of 1,2-Dichloroethane Formation from Ethylene and Cupric
Chloride,” Ind. Eng. Chem. Res., 33, 259 (1994).
____________________________________________________________________ 27
SINOPEC Qilu Petrochemical Company VCM Model