Spsl148 SpyroManual2004
Spsl148 SpyroManual2004
SPSL 1.48
SPSLCNFG 1.11
Confidential Property
Pyrotec Division
No part of this document may be reproduced in any form, by print, photo print, microfilm or any other
means without written permission of the publishers. The information contained in this document is
subject to change without notice and should not be construed as a commitment by Technip USA
Corporation.
Windows XP, 2000, NT, Me, 98 and 95 are trademarks of Microsoft Corporation.
Adjustment parameters for heat transfer coefficient (HCOE) and friction factor (FRIC) can be defined
for each tube in a coil now. To do so, HCOE and FRIC have to be specified for each tube in the
keyword input file, and imported into SPSL from the encrypted binary file KTIGEOM.DAT.
SPYIN(185) and SPYIN(186) are the adaptive coefficients of HCOE and FRIC for all tubes in a coil.
The following equations are used to calculate the HCOE and FRIC in SPSL for each tube:
INSTALLATION 11
Overview ................................................................................................................................. 11
Unzip the installation archive .................................................................................................. 11
Retrieve security server locking code (Echoid)....................................................................... 11
Install license file sent by Pyrotec ........................................................................................... 12
Starting the SentinelLM server software ................................................................................. 12
Windows NT/2000/XP.............................................................................................. 12
Windows 95/98/ME .................................................................................................. 13
Preparing SPSL........................................................................................................................ 13
PYROTEC.INI .......................................................................................................... 14
Microsoft Excel 97 .................................................................................................... 14
AspenTech PIMS SI.................................................................................................. 14
Preparing SPSLCNFG............................................................................................................. 14
USING SPSL 17
Overview ................................................................................................................................. 17
Subroutine Header ................................................................................................................... 17
INPUT DESCRIPTIONS ........................................................................................................ 17
FNAM (CHARACTER*20)...................................................................................... 17
SPYIN (REAL*4 [300])............................................................................................ 18
DSPYIN (READ*4 [300]) ........................................................................................ 21
SPYOUT (REAL*4 [300])........................................................................................ 22
DSPYOUT (REAL*4 [300,300]).............................................................................. 22
IRET (INTEGER) ..................................................................................................... 23
APPENDIX B 31
SPYOUT ARRAY...................................................................................................................31
APPENDIX C 37
COMPONENT LIBRARY ......................................................................................................37
APPENDIX D 41
ERROR CODES ......................................................................................................................41
WARNING MESSAGES..........................................................................................41
FATAL ERRORS......................................................................................................41
APPENDIX E 43
DIFFERENCES BETWEEN SPYRO AND SPSL .................................................................43
Coil Inlet Pressure .....................................................................................................43
Radiant Wall Temperature.........................................................................................43
Adjustment Parameters (FLUXP) .............................................................................44
Overview
Ethylene production involves complex chemical processes. At the core of the plant are the pyrolysis
reactors where all the products are formed. The SPYRO yield prediction program provides the best
commercial available simulation software for modeling the ethylene pyrolysis reactors. SPYRO can
be used for a variety of purposes from feed stock selection to runlength prediction.
SPSL is an extension to SPYRO, which allows the pyrolysis model to be fully integrated into third-
party planning and scheduling tools. SPSLCNFG is used to configure SPSL.
SPYRO
The SPYRO program is a practical tool for olefin plant managers, engineers and their R&D
departments. Used on its own (and in conjunction with other PYROTEC programs) it evaluates the
many complex process variables involved in ethylene furnace operation, and provides valuable
information about the cracking process that can significantly reduce operational costs. The SPYRO
program helps to maximize control of the steam cracking process in a pyrolysis reactor by simulating
coil performance within the smallest possible experimental scatter. Then, the SPYRO program
produces an accurate, detailed analysis of product yields, furnace performance and coking rates for
any feedstock or mixture (co-cracking).
The SPYRO program will help you to arrive at conclusive decisions regarding:
• Feedstock selection
• Furnace control
• Production planning and optimization
• Cracking coil design and modifications
The program is applicable to all current operating and design conditions. It accepts any hydrocarbon
feedstock from ethane through distillates up to 350 C (662 F) ASTM D-86 endpoint. In addition,
extensions (the SPYRO Heavy Gas Oil - HGO) are available for the simulation of heavier oils up to
550 C (1022 F) ASTM D-86 endpoint and for transferline exchanger simulation.
SPSL is supplied in the form of a Microsoft Windows DLL. The model is accessed via a FORTRAN
subroutine call. The DLL has been stream-lined for speed and stability within third-party software.
As a result of the stream-lining there are some differences between SPYRO and SPSL. These are
summarized in Appendix E.
Prior to using SPSL, it must be configured with furnace geometry information using SPSLCNFG.
SPSLCNFG
SPSLCNFG is the configuration utility for SPSL. It reads a standard SPYRO input file and generates
an encrypted geometry file. SPSL will use the information from this file when executed.
Overview
Pyrotec software products incorporate Rainbow Technologies Inc’s Sentinel License Manager
software. The license manager software requires a license key that you must obtain from Technip. The
function of the license manager program is to control access to the licensed software. It is locked to a
specific server computer on the network and will allow authorize all computers on the local area
network to access the licensed product.
The software installation is a multi-step process. These are outlined and described in detail in the
following pages.
Technip uses the SentinelLM echoid utility to retrieve the locking code.
Using Windows Explorer, locate and double-click on the following utility in the installaton directory:
<Installation Directory>\SentinelLM\Echoid.exe
LSERVRC
This license file will be sent as an email attachment or shipped on a floppy diskette. Save the attachment in
the following directory:
<INSTALLATION DIRECTORY>\SentinelLM\
The license file will expire once a year. An updated file will automatically be sent prior to the expiration date
for all licensed products.
Windows NT/2000/XP
Note: Administrator security privileges are required to use this program!
To install the license server program on this platform, select the server software which is located in:
<DRIVE>:\<INSTALLATION DIRECTORY>\SentinelLM\LOADLS.EXE
Windows 95/98/ME
To install the license server program on this platform, simply double-click the server software, which
is located in:
<INSTALLATION DIRECTORY>\SentinelLM\ISERV9X.EXE
Preparing SPSL
Before proceeding, ensure that the third-party software has already been installed on the system. The
SPSL installation must be made into the same directory as that of the third-party program.
The files related to SPSL are stored in the .\DLL directory of the installation. Copy all the files in the
.\DLL directory into the directory containing the third-party software’s executable. The following is
the list of files that must be copied:
EFPSDLL1.DLL
LSAPIW32.DLL
DFORRT.DLL
PYROTEC.INI
<INSTALLATION DIRECTORY>\bin\PYROTEC.INI
To define the name or IP address of the server computer, the HOST keyword must be defined:
HOST=<server name>
Microsoft Excel 97
Copy all the files from the
<DRIVE>:<INSTALLATION DIRECTORY>\DLL
AspenTech PIMS SI
Copy all the files from the
<DRIVE>:<INSTALLATION DIRECTORY>\DLL
Preparing SPSLCNFG
Once the installation has been extracted, the SPSLCNFG executable is present in the .\BIN directory
of the installation.
SPSLCNFG must be made accessible from the user’s working directory in the DOS prompt. This can
be done by adding the .\BIN directory to the search path of the DOS prompt (e.g. PATH="%PATH%;
<DRIVE>:<INSTALLATION DIRECTORY>\BIN").
The PYROTEC.INI file also needs to be updated to point to the server computer.
Overview
SPSL uses an encrypted binary file to initialize itself. This file contains all the hardware geometry
information of the furnaces to be modeled; no operating or feed information is stored. SPSL can only
model furnaces that are contained in this file.
SPSLCNFG is the configuration utility. This program reads a standard off-line SPYRO file and
converts it into the encrypted binary file (KTIGEOM.DAT) required by SPSL. A maximum of 10
different furnace types can be stored in this geometry file. The SPYRO input file name must have the
MS-DOS 8.3 format with a ‘.DAT’ extension.
Invoking SPSLCNFG
To start SPSLCNFG, from a DOS prompt type:
SPSLCNFG
If the error “Bad command or file name” is encountered, the user environment has not been
configured correctly. Please refer to the Installation chapter of this manual.
The program will then prompt you for IGEOM. IGEOM must a number between 1 and 10 which will
be used to access the F-101 geometry from the third party program. In this example, we will place the
geometry in slot 2:
SPSLCNFG will read the contents and place the geometry information into the encrypted file
KTIGEOM.DAT. If a geometry already exists in the given slot, the program will verify if you wish to
overwrite with the new geometry.
To configure more files, repeat this process. Each new geometry will be inserted into the same binary
file (KTIGEOM.DAT).
This will list all the files that are currently in KTIGEOM.DAT. A sample output is:
Overview
SPSL is the extension to SPYRO which allows the reactor model to be called directly from a third-
party optimization tool. To understand and use SPSL, a SPYRO manual will be handy. SPSL is
supplied in the form of a Microsoft Windows DLL. The model is accessed via a FORTRAN
subroutine call.
Subroutine Header
Access to the radiant section models, On-line Spyro, On-line Tes, and On-line Firebox, is provided
through the following subroutine:
SUBROUTINE SPSL(FNAM,SPYIN,DSPYIN,SPYOUT,DSPYOUT,IRET)
The table below gives a brief description of the type and purpose of the variables passed into the
routine SPSL. More thorough documentation are given in the sections following.
INPUT DESCRIPTIONS
FNAM (CHARACTER*20)
This variable is reserved. It is not used by SPSL for input or output but it must be defined as
CHARACTER*20.
Adjustment Parameters
Pos Description SPYRO
181 Adjustment parameter for fouling coefficient &RATE, FOULC
182 Adjustment parameter for coke thermal conductivity &RATE, PARCO
183 Coking adjustment parameter &FEED, COKAD
184 Adjustment parameters on flux profile &GEOM, FLUXP
Calculation Mode
SPYIN(1), the calculation mode, controls whether SPYRO is activated. The three options are:
Integration Step
SPYIN(3) defines the number of integration steps taken in Spyro. The suggested value is 60 steps.
Only furnace types defined in the geometry file KTIGEOM.DAT are available during execution.
Furnace geometries can be added to the file or existing furnaces can be modified by using
SPSLCNFG, the SPSL configuration utility. Please refer to the SPSLCNFG chapter for more
information.
Convergence Tolerance
If coil outlet pressure and/or severity/conversion/coil outlet temperature are required, SPYIN(6) is
used to specify the tolerance for convergence. Increasing this value will reduce convergence time but
For maximum execution speed and numerical stability (of the third-party software), it is suggested that
coil inlet pressure be specified: SPYIN(9)=0.
To converge on coil outlet pressure set SPYIN(9)=1. The required coil outlet pressure must be
specified in SPYIN(7). The program will vary the coil inlet pressure until the specified outlet pressure
is achieved. If a coil inlet pressure is given in SPYIN(13), the program will use it as an initial
estimate.
Convergence on Severity/Conversion/Temperature
The primary variable controlling severity or outlet temperature in SPSL is radiant wall temperature.
This differs from SPYRO where radiant wall temperature is calculated by the program. For maximum
execution speed and numerical stability (of the third-party software), radiant wall temperature should
be specified. SPSL supports the main convergence options offered in standard SPYRO.
SPYIN(10) defines the type of convergence required. SPSL will vary radiant wall temperature until
the severity, conversion or temperature specified in SPYIN(8) is achieved. If a radiant wall
temperature is given in SPYIN(14), the program will use it as an initial estimate.
Adjustment Parameters
These parameters provide a handle to reconcile SPYRO with actual plant data. Detailed explanation
of the factors can be found in the SPYRO User’s Manual.
Note: SPSL allows only one value of FLUXP across the entire coil while SPYRO allows FLUXP to
be specified per tube.
Feed Characterization
For most liquid feedstocks, only limited feed qualities, such as ASTM D86 distillation curves and
density, are known. SPYRO has a feed characterization tool to determine detailed feed composition
based on available information. Once characterization is performed, SPYRO can predict yields.
SPSL supports the feed characterization utility. Please refer to the SPYRO User’s Manual for
information on how to characterize liquid feeds.
DSPYIN(i) Description
< 0 (-ve) Defines absolute step size δ = -DS(i)
0 No derivatives for this variable
> 0 (+ve) Defines relative step size δ = +DS(i)
To request derivatives for a particular variable, specify a step size using the convention specified
above in the DSPYIN slot corresponding to that variable. SPSL will calculate partial derivatives for
all the variables in the output array with respect to the specified variable and place them in the output
array DSPYOUT.
For numeric stability of the calling routine, the step size should be smaller than the convergence
tolerance of the third-party software. The minimum step size allowed is 10-7.
dy y x + ∆x − y x
=
dx ∆x
where,
δ = specified step size
∆x = δ ⋅ x (if x ≠ 0 ) or ∆x = δ (if x = 0 ) [relative step size]
∆x = δ [absolute step size]
When the requested derivative is a percentage or fraction, the variable is perturbed and normalized
before the effluent is evaluated. For example, if feed composition is: CH4 2%, C2H6 90 % and C3H8
8% and a derivative is requested with respect to ethane using a step size of 0.001, SPSL will do the
following:
• Perturb ethane composition creating the following feed: CH4 2%, C2H6 90.09% and C3H8 8%
• Normalize the feed composition: CH4 1.998%, C2H6 90.009% and C3H8 7.993%
• Evaluate the effluents
• Calculate the numerical derivatives using the formula mentioned above
Pos Description
1..123 Effluent composition on weight basis
124..130 Reserved
131 Maximum wall temperature in the last tube( C )
132 Total Absorbed Duty ( kcal/hr/coil )
133 Coil Outlet Temperature [at location specified by XADIA] ( C )
134 Transferline Outlet Temperature (C)
135 Pressure drop across coil (kg/cm2)
136 Pressure drop in the transferline (kg/cm2)
137 Coil inlet pressure (kg/cm2 abs)
138 Radiant wall temperature (C)
139..150 Reserved
151..170 Coking Rate in each tube(mm/month)
171..190 Maximum tubeskin temperature in each tube(C)
191..200 Reserved
The first index of the array corresponds the to the input array SPYIN and the second index
corresponds to the calculated results in SPYOUT. DSPYOUT is filled up in the following manner:
A positive error code implies a non-fatal error and a negative error code indicates a fatal error.
SPYIN ARRAY
Pos Description SPYRO
1 Calculation mode (0=skip SPYRO or 1=run SPYRO) -
2 File unit number for error log file -
3 Integration step size for SPYRO &TYPE, NSTEP
4 Geometry Identification Number (integer btwn 1 & 10) -
5 Reserved -
6 Convergence tolerance &SPEC, TOLER
7 Coil outlet pressure (kg/cm2 abs.) - reqd. if SPYIN(9)=1 &RATE, POUT
8 Severity / Conversion (frac.) - reqd. if SPYIN(10)≠0 &SPEC, CONVAL
9 Type of convergence for pressure (0=inlet or 1=outlet) -
10 Type of convergence for severity (see below) &SPEC, CONOP
11 Flowrate of hydrocarbons (kg/h) &RATE, FLOWR
12 Steam dilution ratio as fraction of HC flow &RATE, STEAM*
13 Coil inlet pressure (kg/cm2 abs.) -
14 Radiant wall temperature (C) -
15 Coil inlet temperatures (C) &RATE, TEMPI
16 Reserved -
17 Reserved -
18 Reserved -
19 Reserved -
20 Reserved -
21 Coke thickness for tube 1 (m) &GEOM, COKEL
22 Coke thickness for tube 2 (m) &GEOM, COKEL
23 Coke thickness for tube 3 (m) &GEOM, COKEL
24 Coke thickness for tube 4 (m) &GEOM, COKEL
25 Coke thickness for tube 5 (m) &GEOM, COKEL
26 Coke thickness for tube 6 (m) &GEOM, COKEL
27 Coke thickness for tube 7 (m) &GEOM, COKEL
28 Coke thickness for tube 8 (m) &GEOM, COKEL
29 Coke thickness for tube 9 (m) &GEOM, COKEL
30 Coke thickness for tube 10 (m) &GEOM, COKEL
31 Coke thickness for tube 11 (m) &GEOM, COKEL
32 Coke thickness for tube 12 (m) &GEOM, COKEL
33 Coke thickness for tube 13 (m) &GEOM, COKEL
SPYOUT ARRAY
Pos Description
1 Hydrogen
2 Methane
3 Acetylene
4 Ethylene
5 Ethane
6 Methyl-Acetylene/Propadiene
7 Propylene
8 Propane
9 N-Butane
10 Iso-Butane
11 Iso-Butene
12 1-Butene or N-Butene
13 2-Butene (cis & trans)
14 Butadiene
15 Benzene
16 Toluene
17 Xylenes
18 Ethylbenzene
19 Styrene
20 Alkyl-Aromatic Pseudo Compound with 9 C
21 N-Pentane
22 Iso-Pentane
23 N-Hexane
24 N-Heptane
25 N-Octane
26 N-Nonane
27 N-Decane
28 Normal Olefin 1-Undecene
29 Cyclo-Pentane
30 Methyl-Cyclo-Pentadienes
31 Cyclohexane
32 Naftenic Pseudo Compound with 7 C
33 Naftenic Pseudo Compound with 8 C
COMPONENT LIBRARY
SPYRO Component Name Formula
Name
1 H2 Hydrogen H2
2 CH4 Methane CH4
3 C2H2 Acetylene C2H2
4 C2H4 Ethylene C2H4
5 C2H6 Ethane C2H6
6 C3H4 Methyl-Acetylene/Propadiene C3H4
7 C3H6 Propylene C3H6
8 C3H8 Propane C3H8
9 NBUTA N-Butane C4H10
10 IBUTA Iso-Butane C4H10
11 IB Iso-Butene C4H8
12 B1 1-Butene or N-Butene C4H8
13 B2 2-Butene (cis & trans) C4H8
14 BUTAD Butadiene C4H6
15 BENZ Benzene C6H6
16 TOLUO Toluene C7H8
17 XILO Xylenes C8H10
18 EBENZ Ethylbenzene C8H10
19 STYR Styrene C8H8
20 C9ARO Alkyl-Aromatic Pseudo Compound with 9 C C9H12
21 NC5 N-Pentane C5H12
22 IC5 Iso-Pentane C5H12
23 NC6 N-Hexane C6H14
24 NC7 N-Heptane C7H16
25 NC8 N-Octane C8H18
26 NC9 N-Nonane C9H20
ERROR CODES
WARNING MESSAGES
Error Code Error Description
101 Individual component less than 0
102 Coke thickness less than 0
103 Sum of feed composition not equal to 100.0
104 Component not valid for AGO version of SPYRO
105 Component not valid for LPG version of SPYRO
111 Hydrocarbon flowrate outside the normal range
112 Dilution steam ratio outside the normal range
113 Coil Inlet Pressure outside the normal range
114 Radiant Wall Temperature outside the normal range
115 Coil Inlet Temperature outside the normal range
FATAL ERRORS
Error Code Error Description
-101 Furnace id is not valid
-102 Feed type is not valid
-103 Feed characterization not available with LPG SPYRO
-104 Feed char: density of naphtha fraction > density of entire feed
-105 Feed char: density of gasoil fraction < density of entire feed
-106 Feed characterization did not converge
-111 Hydrocarbon flowrate less than or equal to zero
-112 Dilution steam ratio less than zero
-113 Coil Inlet Pressure less than or equal to zero
-114 Radiant Wall Temperature less than or equal to zero
-115 Coil Inlet Temperature less than or equal to zero
-117 Radiant Wall Temperature less than or equal to coil inlet temperature
-4001 License server does not have license that matches requested feature
-4002 License has expired
-4003 No license server is running
-4004 Communication with license server is timeout
-4005 Server-locked feature cannot be issued
For maximum execution speed and numerical stability (of the third-party software), it is suggested that
coil inlet pressure be specified.
When comparing SPSL with standard SPYRO, the user should ensure that the outlet pressures of the
two runs are the same.
For maximum execution speed and numerical stability (of the third-party software), it is suggested that
radiant wall temperature be specified.
When comparing SPSL with standard SPYRO, the user should ensure that both runs have the same
outlet temperature, severity or conversion.