APLUS 121 User Guide
APLUS 121 User Guide
APLUS 121 User Guide
1 User
Guide
Part Number: Aspen Plus® 12.1
June 2003
Copyright (c) 1981-2003 by Aspen Technology, Inc. All rights reserved.
Aspen Plus®, Aspen Properties®, Aspen Engineering Suite, AspenTech®, ModelManager, the aspen leaf logo and
Plantelligence are trademarks or registered trademarks of Aspen Technology, Inc., Cambridge, MA.
All other brand and product names are trademarks or registered trademarks of their respective companies.
This manual is intended as a guide to using AspenTech's software. This documentation contains AspenTech
proprietary and confidential information and may not be disclosed, used, or copied without the prior consent of
AspenTech or as set forth in the applicable license agreement. Users are solely responsible for the proper use of the
software and the application of the results obtained.
Although AspenTech has tested the software and reviewed the documentation, the sole warranty for the software
may be found in the applicable license agreement between AspenTech and the user. ASPENTECH MAKES NO
WARRANTY OR REPRESENTATION, EITHER EXPRESSED OR IMPLIED, WITH RESPECT TO THIS
DOCUMENTATION, ITS QUALITY, PERFORMANCE, MERCHANTABILITY, OR FITNESS FOR A
PARTICULAR PURPOSE.
Corporate
Aspen Technology, Inc.
Ten Canal Park
Cambridge, MA 02141-2201
USA
Phone: (1) (617) 949-1021
Toll Free: (1) (888) 996-7001
Fax: (1) (617) 949-1724
URL: http://www.aspentech.com
Division
Design, Simulation and Optimization Systems
Aspen Technology, Inc.
Ten Canal Park
Cambridge, MA 02141-2201
USA
Phone: (617) 949-1000
Fax: (617) 949-1030
Contents
Convergence 17-1
SM Convergence ............................................................................................................17-1
Flowsheet Recycles and Design Specifications .............................................................17-1
Convergence Options .....................................................................................................17-3
Specifying Tear Convergence Parameters .........................................................17-3
Specifying Default Methods...............................................................................17-5
Specifying Sequencing Parameters ....................................................................17-5
Specifying Convergence Method Parameters ....................................................17-6
Specifying Tear Streams ................................................................................................17-6
Initial Estimates for Tear Streams......................................................................17-7
Specifying User-Defined Convergence Blocks..............................................................17-8
Convergence Methods....................................................................................................17-8
WEGSTEIN Method ..........................................................................................17-9
DIRECT Method ..............................................................................................17-10
Secant Method..................................................................................................17-11
BROYDEN Method .........................................................................................17-12
NEWTON Method ...........................................................................................17-12
COMPLEX Method .........................................................................................17-14
Sensitivity 20-1
About Sensitivity Analysis.............................................................................................20-1
Inserts 34-1
What is an Insert?...........................................................................................................34-1
Creating an Insert ...............................................................................................34-1
Importing Inserts ................................................................................................34-2
Resolving ID Conflicts.......................................................................................34-2
Creating a Property Package ..........................................................................................34-4
Using Electrolyte Inserts From the Aspen Plus Insert Library ......................................34-5
Hiding Objects................................................................................................................34-5
Revealing Objects ..............................................................................................34-6
Utilities 41-1
Creating a Utility............................................................................................................41-1
Assigning Utilities to Blocks..........................................................................................41-1
Viewing and Accessing Utility Results..........................................................................41-3
EO Usage Notes for Utilities..........................................................................................41-3
Information Transfer to Aspen Pinch and ICARUS ......................................................41-3
Technical Support
Online Technical AspenTech customers with a valid license and software
Support Center maintenance agreement can register to access the Online Technical
Support Center at:
http://support.aspentech.com
This web support site allows you to:
• Access current product documentation
• Search for tech tips, solutions and frequently asked questions
(FAQs)
• Search for and download application examples
• Search for and download service packs and product updates
• Submit and track technical issues
• Search for and review known limitations
• Send suggestions
Registered users can also subscribe to our Technical Support
e-Bulletins. These e-Bulletins are used to proactively alert users to
important technical support information such as:
• Technical advisories
• Product updates
• Service Pack announcements
• Product release announcements
Contacting Customer Customer support is also available by phone, fax, and email for
Support customers with a current support contract for this product. For the
most up-to-date phone listings, please see the Online Technical
Support Center at http://support.aspentech.com.
Hours
Support Centers Operating Hours (Monday-Friday)
North America 8:00 – 20:00 Eastern Time
South America 9:00 – 17:00 Local time
Europe 8:30 – 18:00 Central European time
Asia and Pacific Region 9:00 – 17:30 Local time
For help on the parts of the user interface, see one of the following
topics:
• The Aspen Plus Main window
• The Process Flowsheet window
• The Model Library
• The Data Browser
• The Object Manager
If you are new to Aspen Plus, do the exercises in Aspen Plus
Getting Started Building and Running a Process Model.
Status Indicators Status indicators display the completion status for the entire
simulation as well as for individual forms and sheets.
The status indicators appear:
• Next to sheet names on the tabs of a form
• As symbols representing forms in the Data Browser menu tree
This table shows the meaning of the symbols that appear:
This Symbol On an Means
Input form Required input complete
Input form Required input incomplete
Input form No data entered
Mixed form Input and Results
Results form No results present (calculations
have not been run)
Results form Results available without Errors or
Warnings (OK)
Results form Results available with Warnings
Results form Results available with Errors
Results form Results inconsistent with current
input (input changed)
Input folder No data entered
Input folder Required input incomplete
To view the next sheet in a series, click the Next Sheet button .
Supplying Comments
You can write notes or keep track of information by entering
comments for particular forms. Each object has just one Comments
form which you can access from any input or results form for the
object.
To enter comments on a form:
1 Click the Comments button on the Data Browser toolbar.
If there are no existing comments, the button looks like this:
.
If there are existing comments, the button looks like this:
2 Enter your one line description in the Description box of the
Comments form.
The description is printed in the Aspen Plus report.
3 Enter your comments in the Comments area of the Comments
form.
4 OK to close the Comments form.
Selecting a Template
When starting a new simulation, you can start with a blank
simulation or you can begin with a Template. Templates set
defaults commonly used by specific industries for:
• Units of measurement
• Stream composition information and properties to report
• Stream report format
• Default setting for Free-Water option
• Property method
• Other application-specific defaults
For information about creating your own templates, see
Customizing Application Template Files.
About the Built-In There are built-in Templates for the following applications:
Templates • Air Separation
• Chemicals
• Electrolytes
• Gas Processing
• General
• Hydrometallurgy
• Petroleum
Getting Help
There are several ways to get help in Aspen Plus:
If you want help about Do this
A particular topic From the Help Topics dialog box,
click the Index tab.
A form or field On the Aspen Plus toolbar, click
the What's This button
then click the field or form.
A dialog box Click the Help button on the dialog
box.
The item the cursor or mouse pointer Press F1.
is on
Keeping Help On Top To keep the Help window on top of any other open windows:
1 In the Help window, click the Options button or menu.
2 Point to Keep Help On Top, and then click On Top.
Using the Back Use the Back button to move back through help screens you have
Button seen. If there is no previous topic to view, the Back button is
Aspen Plus 12.1 User Guide Using Aspen Plus Help • 3-1
unavailable. Back keeps a complete record of all the help topics
you view. This list is cleared each time you exit help.
or
3-2 • Using Aspen Plus Help Aspen Plus 12.1 User Guide
Getting Step by Step Help
To get help on preparing, specifying, and running simulations, and
reviewing results:
1 From the Help Topics dialog box, click the Contents tab.
2 Double-click Using Aspen Plus, then click the topic you want.
Troubleshooting Help
In some instances you may experience problems with the online
help. Most often these occur when you install and use multiple
versions of the help, such as when you have installed multiple
versions of Aspen Plus. In general, multiple versions of the help
should still work and links should go to the correct version of the
help file, but links across different help systems may go to the
most recently installed version, and you may encounter problems
in some rare cases.
Errors you may encounter:
"The topic does not exist. Contact your application vendor for
an updated Help file. (129)"
If you see this error, it is a bug in the help system. Please report it
to AspenTech, including the specific location of the link you
clicked on or the specific item you requested help on, so that we
can fix it.
Aspen Plus 12.1 User Guide Using Aspen Plus Help • 3-3
while the wizard is active, this interrupts the process of
creating these index files. Click the Contents or Index tab and
then return to the Search tab to start again.
• In some cases this can happen if the index files have been
corrupted, or they correspond to a different version of the help.
Windows usually rebuilds these files automatically in these
cases, but may sometimes fail to do so. See the procedure
below to force these files to be rebuilt.
3-4 • Using Aspen Plus Help Aspen Plus 12.1 User Guide
Getting Printed Information
You can:
• Print help topics
• Obtain printed Aspen Plus documentation
Printing Help To print a help topic:
1 Make sure the printer settings are correct.
To check this, Click Start, then point to Settings then Printers.
2 Display the Help topic you want to print.
3 Click the Print button.
– or –
Click the Options button, then click Print Topic.
– or –
From the File menu, click Print Topic.
Printing Popup Help To print popup help windows:
1 Click with the right mouse button on the Help window.
2 From the popup menu, click Print Topic.
Getting Printed You can print all of the Aspen Plus manuals from the
Documentation Documentation CD supplied with Aspen Plus. The manuals are
available in Adobe portable document format (.pdf).
The Aspen Plus documentation set is listed below:
Aspen Plus Installation Guide for Windows This guide provides
instructions on installation of Aspen Plus.
Aspen Plus Getting Started Building and Running a Process Model
This tutorial includes several hands-on sessions to familiarize you
with Aspen Plus. The guide takes you step-by-step to learn the full
power and scope of Aspen Plus.
Aspen Plus Getting Started Modeling Processes with Electrolytes
This tutorial includes several hands-on sessions to familiarize you
with simulating electrolyte systems with Aspen Plus.
Aspen Plus Getting Started Modeling Petroleum Processes This
tutorial includes several hands-on sessions to familiarize you with
simulating petroleum processes with Aspen Plus.
Aspen Plus Getting Started Modeling Processes with Solids This
tutorial includes several hands-on sessions to familiarize you with
simulating systems with solids in Aspen Plus.
Aspen Plus Getting Started with Equation-Oriented Modeling This
tutorial includes several hands-on sessions to familiarize you with
the equation-oriented modeling system available in Aspen Plus.
Aspen Plus 12.1 User Guide Using Aspen Plus Help • 3-5
Aspen Plus Getting Started Customizing Unit Operation Models
This tutorial includes several hands-on sessions to familiarize you
with the customization of unit operation models with Aspen Plus.
Aspen Plus Reference Manuals The Aspen Plus reference
manuals provide detailed technical reference information. The
manuals include background information about the unit operation
models, equations, and a wide range of other reference
information. The set comprises:
• Unit Operation Models
• User Models
• System Management
• OOMF Script Language
• Summary File Toolkit
• Input Language Guide
Aspen Physical Property System Reference Manuals These
manuals provide detailed technical reference information about
available physical properties methods and models, tables of
Aspen Plus databank parameters, equations, and other reference
information. The set comprises:
• Physical Property Methods and Models
• Physical Property Data
Improving Help
We value your comments, suggestions, and criticisms. If you
couldn't find the Help you were looking for, needed more
assistance that the online help provided, or have any suggestions
for future improvements to our online information, we want to
know.
Please email your comments to Docs@Aspentech.com
Note If you have a query about Aspen Plus itself and want to email
the AspenTech Support team, please email your local Technical
Support office.
3-6 • Using Aspen Plus Help Aspen Plus 12.1 User Guide
CHAPTER 4
Ports that must have at least one stream connected are shown in
red. Other optional ports are shown in blue. If you position the
mouse over a displayed port, the arrow is highlighted and a text
box with the description of the port appears. See example.
port
Tip: You can also move any part of the stream by selecting it and
dragging the part of the stream you want to move to its new
location.
Moving a Stream To move a stream segment:
Segment
1 Press and hold down the mouse button on the segment of the
stream you wish to move (but not on the stream ID).
2 The mouse pointer changes to the move shape.
3 Drag the segment of the stream to the location you want and
release the
mouse button.
Tip: You can also select the stream and then use the arrow keys
(←↑→↓)
to make minor adjustments to the position of the stream.
Moving a Stream Corner To move a stream corner:
1 Press and hold down the mouse button on the corner of the
stream (but not on the stream ID).
The mouse pointer changes to the move shape.
2 Drag the corner of the stream to the location you want and
release the
mouse button.
Tip: You can also select the stream and then use the arrow keys
(←↑→↓) to make minor adjustments to the position of the stream.
Moving a Stream ID You cannot move a stream ID off a stream but you can move a
stream ID along a stream. To do this:
1 Press and hold down the mouse button on the stream ID, until
the mouse pointer changes to the move shape ( ).
Tip: You can use the button on the Section toolbar to quickly
view only the current Flowsheet Section.
Printing a Flowsheet To print a flowsheet:
1 Click in the Process Flowsheet Window to make it active.
2 Click the Printer button on the Standard toolbar.
– or –
From the File menu, select Print.
3 Choose the printer and desired settings in the Print dialog box.
4 Click OK.
Printing a Section of To print a section of flowsheet:
Flowsheet
1 From the Flowsheet menu, click Flowsheet Sections.
2 Choose the flowsheet section you want to print and click OK.
3 From the View menu, click Current Section Only.
4 Click the Printer button on the toolbar.
5 Choose the printer and desired settings in the Print dialog box.
6 Click OK.
Aspen Plus 12.1 User Guide Global Information for Calculations • 5-1
Use this form To
Simulation Options Specify calculations, flash convergence, and
system options, and time and errors limits
Stream Class Define stream class and stream properties
Substream Define substreams and attributes
Units Sets Define units-of-measurement sets
Report Options Specify report options
All of the global information you normally need to specify is on
the Setup Specifications Global sheet. When you create a new run,
the Application Type you choose establishes the defaults for the
Global sheet. The Aspen Plus expert system takes you to the
Global sheet so you can view the defaults and change or
supplement them if you want to. For most simulations, it should
not be necessary to change the defaults on the other Setup sheets.
5-2 • Global Information for Calculations Aspen Plus 12.1 User Guide
To change the run type:
1 On the Data menu, select Setup.
2 Click the Global sheet.
3 In the Run-Type box, select a run type.
Because each run type has different input requirements, changing
the run type may cause the input for the run to become incomplete.
Use Next to guide you through the required forms.
You can change the run type even after you have entered
specifications for a different run type. Aspen Plus hides forms that
the new run type does not allow. But if you switch back to the
original run type, data entered on these hidden forms are not lost.
Examples of when you might want to change the run type:
• You used a Property Estimation run to estimate and examine
properties for a non-databank component. Now you want to run
a flowsheet simulation using that component. If you change the
run type to Flowsheet, Aspen Plus retains the component
information and prompts you for the flowsheet information.
• You used a Property Estimation run to estimate and examine
properties for a non-databank component. Now you want to run
property analysis or property data regression involving that
component. If you change the run type to Property Analysis or
Data Regression, Aspen Plus retains the component
information, and prompts you for additional information to
complete your run specifications.
Specifying the Run Title To specify the run title:
1 From the Data menu, click Setup.
2 Select the Global sheet.
3 In the Title box, specify a brief run title.
You can supply additional descriptive information about the run on
the Setup Specification Description sheet, and on the Comment
forms available from any input sheet.
Specifying Global Units You can specify separate global input and output units sets. For
Sets more information about how to customize an existing unit set, see
Units of Measure.
This global units set Becomes the default for all
Input Data Input sheets in the run
Output Results Results sheets
To specify global units sets:
1 From the Data menu, click Setup.
2 Select the Global sheet.
Aspen Plus 12.1 User Guide Global Information for Calculations • 5-3
3 Specify the global units sets in the Input data and Output
results boxes.
You can change the global units set specifications at any time.
When you change the Input Data set, all new input forms you
display default to the new units set. Aspen Plus does not change
the units on forms you have already completed. When you change
the Output Results units set, all results sheets default to the new
units set after you complete a run.
Selecting a Default Stream classes define structures for simulation streams when solid
Stream Class substreams are present. When you create a new run, Aspen Plus
chooses a default stream class based on the application type. You
can change the default stream class on the Setup Specifications
Global sheet.
To change the default stream class:
1 From the Data menu, click Setup.
2 Select the Global sheet.
3 In the Stream Class box, select a stream class.
All streams in the simulation are assigned to the default stream
class, unless you assign a stream class to one of the following:
• A flowsheet section
• An individual stream, on the Stream-Class Streams sheet
For more information on using and creating stream classes, see
About Stream Classes.
Selecting the Simulation You can enter specifications for most flows on a molar, mass, or
Flow Basis standard liquid volume basis. For example, you can enter total
stream flow rate on any of these bases.
To select the global basis for flow-related information:
1 On the Data menu, select Setup.
2 Select the Global sheet.
3 In the Flow-Basis box, specify Mass, Mole, or StdVol.
The basis you select becomes the default basis for the run. You can
override the basis locally on most forms.
You can return to the Setup Specifications Global sheet and change
the default basis at any time. The basis for previously entered
values does not change.
5-4 • Global Information for Calculations Aspen Plus 12.1 User Guide
Specifying Ambient Aspen Plus accepts gauge pressure units for all pressure variables.
Pressure for Gauge The default value for the ambient pressure is 1 atm.
Pressure Units To change the ambient pressure:
1 From the Data menu, click Setup.
2 Select the Global sheet.
3 In the Ambient Pressure box, type a pressure. Change the units
if necessary.
Specifying Valid Phases Aspen Plus performs phase equilibrium calculations throughout a
simulation run for blocks, streams, and other objects. You can
specify the valid phases to be used in these calculations. Choose
from Vapor-Only, Liquid-Only, Vapor-Liquid, and Vapor-Liquid-
Liquid.
To change the valid phases:
1 From the Data menu, click Setup.
2 Select the Global sheet.
3 In the Valid phases box, select either Vapor-Only, Liquid-
Only, Vapor-Liquid, or Vapor-Liquid-Liquid.
You can override the global setting locally, at the individual block
or stream level, using the Valid Phases box. In some blocks you
can also specify Solid-Only, Liquid-Liquid, Liquid-DirtyWater, or
Vapor-Liquid-DirtyWater.
Requesting Free Water Aspen Plus can handle the presence and decanting of water as a
Calculations second liquid phase in water-hydrocarbon systems. Free-water
calculations:
• Assume the water phase is pure
• Use special methods for calculating the solubility of water in
the organic phase
To request free-water calculations globally:
1 From the Data menu, click Setup.
2 Select the Global sheet.
3 Select the Use Free Water Calculations check box.
You can override the global setting locally, at the individual block
or stream level, using the Valid Phases box to select Vapor-Liquid-
Free Water.
Description Sheet Use this sheet to enter the description for the simulation. The
description you enter on this sheet will be printed once, at the
beginning of the report. You can enter any amount of text in
uppercase and lowercase letters to document your run in more
detail. You can use any number of lines to enter text. However,
Aspen Plus 12.1 User Guide Global Information for Calculations • 5-5
you cannot exceed the maximum length of each line (72
characters): the excess will be truncated.
Specifying a Run To specify a run description:
Description
1 From the Data menu, click Setup.
2 Select the Description sheet on the Setup Specifications form.
3 Enter a description in the Description box.
Tip: You can write a description in your text editor (for example,
Notepad) and then copy and paste it onto the Description sheet.
Accounting Sheet Use this sheet to enter run accounting information (required at
some installations). The accounting information includes: a user
name, an account number, a project ID, and a project name. This
information is stored for the run by the Aspen Plus Run
Accounting System, if it is active for your installation.
Accounting Report Accounting report information tracks the use of Aspen Plus at your
Information installation. This information may be required at some
installations.
To specify run accounting information:
1 From the Data menu, click Setup.
2 Select the Accounting sheet on the Setup Specifications form.
3 In the User Name box, specify a username.
4 In the Account Number box, specify an account number.
5 In the Project ID box, specify a project ID.
6 In the Project Name box, specify a project name.
The Aspen Plus Run Accounting System logs this information for
the run, if it is active for your installation.
Diagnostic Sheet Aspen Plus writes progress and diagnostic messages to the Control
Panel and the History File during a run. The default for all types of
messages is level 4. You can control the amount of diagnostic
information produced, although it is generally not necessary. It is
sometimes necessary to increase the level in order to converge a
flowsheet or to debug user Fortran.
Use this sheet to override defaults for simulation history diagnostic
message levels and Control Panel message levels printed. You can
set message levels and diagnostics for input translation, simulation,
physical properties, stream, convergence, Fortran variables, cost
and economics.
Specifying Global To specify global defaults for diagnostic information:
Defaults for Diagnostic
1 From the Data menu, click Setup.
Information
2 Click the Diagnostics sheet.
5-6 • Global Information for Calculations Aspen Plus 12.1 User Guide
3 Use the slider controls to adjust the message levels you want to
change. The slider on the top of each line is for the Control
Panel messages, and the slider on the bottom is for the History
File messages.
4 Click the History Options button to change the print options for
the History file. Check Insert files used in the simulation or
Sorted input if this information is desired in the History file.
Tip: You can override the global defaults locally, using the Block
Options sheets for streams, blocks, property tables, and other
objects that perform calculations.
Aspen Plus 12.1 User Guide Global Information for Calculations • 5-7
Checking Mass Balances Aspen Plus performs a mass balance check around each block as it
Around Blocks is executed and at the end of the simulation. Mass balance
checking is performed with a relative tolerance of 0.0001.
Imbalances can occur for numerous reasons — for instance,
improper stoichiometry or yield fraction specifications, loose
convergence tolerances, inconsistent user kinetic rates, or flows
changed by Calculator, Transfer, or Balance blocks. Mass balance
checking will point out these imbalances and in many cases
provide the reason for the imbalance.
You can turn off this checking to lower the number of error or
warning messages generated during a simulation. To disable mass
balance checking around blocks:
1 From the Data menu, click Setup.
2 In the left pane of the Data Browser window, select the
Simulation Options form.
3 Click to clear the Check Mass Balance Error Around Blocks
check box.
About Mass-Balance- Mass-balance-only simulations:
Only Simulations
• Are appropriate when energy balances are not required
• Do not calculate enthalpies, entropies, or free energies, thus
reducing calculation time
• Reduce data input requirements for physical property
parameters
Mass-balance-only simulations do not require:
• CPIG, DHFORM, and DGFORM parameters
• Parameters for models that calculate only enthalpy, entropy, or
free energy
To request a mass-balance-only simulation:
1 From the Data menu, click Setup.
2 In the left pane of the Data Browser window, select the
Simulation Options form.
3 Click to clear the Perform Heat Balance Calculations check
box.
Using Unit Operation In a mass-balance-only run, you can use these unit operation
Models in Mass-Balance- models without restriction:
Only Simulations
CFuge ESP HyCyc Sep
Crusher FabFl Mixer Sep2
Cyclone Filter Mult SSplit
Dupl FSplit Screen VScrub
5-8 • Global Information for Calculations Aspen Plus 12.1 User Guide
You can use these models only if you do not specify heat duty:
CCD RBatch
Decanter RCSTR
Distl RPlug
DSTWU RSstoic
Flash2 RYield
Flash3 SWash
Heater
You cannot use these models in a mass-balance-only run:
BatchFrac PetroFrac
Compr Pipeline
Crystallizer Pump
Extract RadFrac
HeatX RateFrac
MCompr REquil
MHeatX RGibbs
MultiFrac SCFrac
Heat and work streams are not allowed in a mass-balance-only
simulation.
Calculating Molecular The molecular weight is available in Aspen Plus databanks
Weight from Formula (parameter MW). However, the databank molecular weight value
may not contain enough significant figures for certain applications
for which atomic balance is important, such as reactor modeling.
Aspen Plus calculates the molecular weight for all components in
the simulation from the molecular formula (parameters ATOMNO
and NOATOM) and the atomic weight. The calculated molecular
weight is more accurate than the databank molecular weight. By
default, the calculated molecular weight is used in the simulation.
To request to calculate from the formula in a simulation:
1 From the Data menu, click Setup.
2 In the left pane of the Data Browser window, select the
Simulation Options form.
3 Click the Calculate Component Molecular Weight from
Atomic Formula check box.
Reinitializing Calculations By default, iterative calculations in Aspen Plus use any available
previous results as an initial guess. If necessary, you can override
this default and request that all calculations be reinitialized each
calculation pass.
Aspen Plus 12.1 User Guide Global Information for Calculations • 5-9
Request reinitialization when:
• A block has multiple solutions and you can obtain the one you
want only by starting from your own initial estimate.
• A block or flowsheet fails to converge for no apparent reason,
after one or more successful passes.
To request reinitialization globally:
1 From the Data menu, click Setup.
2 In the left pane of the Data Browser window, select the
Simulation Options form.
3 On the Calculations sheet, click to clear the Use Results from
Previous Convergence Pass check box.
If the Use Results from Then Aspen Plus
Previous Convergence
Pass check box is
Selected Uses results from a previous calculation pass
as the initial guess for the new pass
Clear Performs initialization or uses initial estimates
at every new calculation pass
You can override the global setting:
• At the block level, on the Block Options sheet for the block
• Interactively, using the Reinitialize commands from the Run
menu
If the reinitialization option for a block is clear when you request
reinitialization interactively, reinitialization occurs only on the next
calculation pass.
Bypassing Prop-Set By default, Aspen Plus will not calculate the property sets if a flash
Calculations When Flash error occurs.
Fails
If the property sets are calculated when severe flash errors occurs,
the property set calculations may be unreliable, and may cause
further errors.
To request to calculate the prop-set calculations even when the
flash fails:
1 From the Data menu, click Setup.
2 In the left pane of the Data Browser window, select the
Simulation Options form.
3 On the Calculations sheet, clear the Bypass Prop-Set
Calculations if Flash Failure Occurs checkbox.
Checking Reaction If reactions stoichiometry (such as Reactors, Chemistry, Reaction)
Stoichiometry is specified, Aspen Plus checks the mass-balance of stoichiometry
5-10 • Global Information for Calculations Aspen Plus 12.1 User Guide
based on the stoichiometric coefficient and molecular weight of the
components.
You can use the option button to select whether Aspen Plus gives
an error or a warning during Input translation if mass imbalance
occurs. Simulation will not proceed if an error occurs during Input
translation.
Click Requesting a Warning to see how to change the settings and
request a warning rather than an error.
You can also use the Mass Balance Error Tolerance box to specify
the absolute tolerance of the mass balance check of stoichiometry.
The default value of the tolerance is 1 kg/kgmole.
The error severity depends on the Mass Balance Error Tolerance
and what checking option you specify:
Checking Option Absolute Error Error
Severity
Issue Error When Mass > Tolerance Error
Imbalance Occurs
Issue Error When Mass < Tolerance and > 0.01 Warning
Imbalance Occurs
Issue Warning When Mass > Tolerance Warning
Imbalance Occurs
Requesting a Warning To request a warning rather than an error to be issued when a mass
imbalance occurs:
1 On the Data menu, click Setup.
2 In the left pane of the Data Browser window, click the
Simulation Options form.
3 On the Calculations sheet, select the Issue Warning when Mass
Imbalance Occurs check box.
4 The tolerance can be changed by typing a new tolerance in the
Mass Balance Error Tolerance box.
Flash Convergence Use the Flash Convergence sheet to specify calculation options for
Sheet setting:
• Upper and lower limits of temperature and pressure for flash
calculations
• Flash options for flash calculations
• Extrapolation threshold for equations of state
Specifying Temperature To specify upper and lower limits on the temperature and pressure
and Pressure Limits variables used in iterative flash and distillation calculations:
1 From the Data menu, click Setup.
Aspen Plus 12.1 User Guide Global Information for Calculations • 5-11
2 In the left pane of the Data Browser window, select the
Simulation Options form.
3 Select the Flash Convergence sheet on the Simulation Options
form.
4 Use the Lower Limit and Upper Limit boxes to specify upper
and lower limits for temperature and pressure.
These limits apply to the entire simulation. You cannot override
them locally.
Specifying Global Flash Aspen Plus performs phase equilibrium (flash) calculations
Options throughout a simulation run, for blocks, streams, and other objects.
You can specify global values for the maximum number of
iterations and the convergence tolerance to be used in these
calculations.
The flash tolerance may need to be tightened (lowered) in complex
simulations with a number of recycle loops in order to help the
convergence.
To specify global flash options:
1 From the Data menu, click Setup.
2 In the left pane of the Data Browser window, select the
Simulation Options form.
3 Select the Flash Convergence sheet.
4 In the Maximum Number of Iterations box, specify the default
for the maximum number of flash iterations.
5 In the Tolerance box, specify the default flash tolerance.
You can override the maximum number of flash iterations and
flash tolerance on forms for blocks, streams, and other
calculations.
You can also specify options for EO Flashes on the EO
Configuration | EO Options form. Refer to EO Flashes in the EO
Run Modes chapter for more information.
Specifying Extrapolation All equations of state in Aspen Plus use a root finder to calculate
Threshold for Equations the molar volume iteratively at given temperature, pressure and
of State mole fractions. Given physically meaningful conditions, the real
molar volume root can always be located by the root finder.
However, during iterative calculations in flash or a distillation
model, the temperature, pressure, compositions and phase
specification may be such that a real molar volume root does not
exist. Aspen Plus provides an estimate of the molar volume that is
reasonable, allowing the flash or distillation algorithm to converge
to a physically meaningful solution.
5-12 • Global Information for Calculations Aspen Plus 12.1 User Guide
If you encounter convergence problems due to extrapolation of an
equation of state root finder, you can improve performance by
changing the extrapolation threshold. A smaller value of the
threshold makes it less likely for the extrapolation to occur.
To specify the extrapolation threshold for equations of state:
1 From the Data menu, click Setup.
2 In the left pane of the Data Browser window, select the
Simulation Options form.
3 Select the Flash Convergence sheet.
4 In the Extrapolation Threshold for Equation of State box,
specify a value for the extrapolation threshold.
This limit applies to the entire simulation. You cannot override it
locally.
System Sheet Use this sheet to override the defaults for system options that affect
error checking and handling of in-line Fortran statements:
You can override these defaults:
• Interpret all in-line Fortran statements at execution time
• Compile all Fortran statements into the Aspen Plus main
program
• Check unit operation block for errors and inconsistencies
• Print Fortran tracebacks when a Fortran error occurs
Limits Sheet Use this sheet to specify limits for:
• Maximum CPU time for a batch run
• Maximum number of severe errors for a batch run
• Maximum number of Fortran errors for a batch run
• Maximum number of errors and warnings printed in the
History file
Units of Measure
Use the Units Sets form to create new user-defined units sets and
to view existing units sets. A units set is a collection of units for
each dimensional quantity in Aspen Plus.
A units set defined using this form can be specified in the Input
Data or Output Results boxes on the Setup Specifications Global
Sheet or on the Units box on the toolbar of the Data Browser.
Aspen Plus 12.1 User Guide Global Information for Calculations • 5-13
This table describes the Units-Sets form:
Sheet Information
Standard List and select an existing units set as a base for a new
units set; search for all the dimensional quantities
alphabetically; specify flow, temperature, and pressure-
related units
Heat Specify enthalpy, heat, heat capacity, and entropy-
related units
Transport Specify volume, density, transport-related and
miscellaneous thermo units
Concentration Specify energy/power, time, concentration, and
composition-related units
Size Specify size, equipment sizing, cost, and column
sizing-related units
Miscellaneous Specify miscellaneous units
Selecting Units of A units set is a collection of units specifications for each
Measure dimensional quantity used in Aspen Plus. Aspen Plus provides
these basic units sets:
• International system units (SI)
• English engineering units (ENG)
• Metric engineering units (MET)
Additional built-in units sets are available, depending on which
Application Type you choose when you create a new run.
In Aspen Plus you have complete flexibility in specifying units of
measure. You can specify units on three different levels:
Level For For input sheets For results
sheet
Global units sets Entire run Yes Yes
Sheet units set Individual form or Yes Yes
object
Field units Individual fields or a Yes Yes
group of fields
Viewing Units To see what units are specified by a units set:
Specifications
1 From the Data menu, click Setup.
2 In the left pane of the Data Browser window, select the Units
Sets folder.
3 In the Units Sets object manager, select the units set you want
to view and click Edit.
The unit types used by Aspen Plus appear on six sheets:
Standard, Heat, Transport, Concentration, Size, and
Miscellaneous.
5-14 • Global Information for Calculations Aspen Plus 12.1 User Guide
4 Select a sheet and view the units specifications.
You can create your own units sets on the Setup Units Set sheets.
See Defining Your Own Units Set for information on how to
define your own units set.
Aspen Plus Units Units are sometimes written as complex quantities such as "million
Abbreviations standard cubic feet per hour". The variety of ways units are used in
Aspen Plus requires that these units are abbreviated. Some of the
symbols used in units abbreviations are explained below.
Symbol Meaning
sq Square. Used primarily with length units to represent
area, such as sqft (square feet) and sqm (square
meters).
cu Cubic. Used with length units to represent volume,
such as cuft (cubic feet) and cum (cubic meters). The
standard abbreviation cc is used for cubic
centimeters.
**.5 Square root. Used in a few types of units such as
dipole moment.
M Used as a prefix meaning thousand with English
units, such as Mlb (thousand pounds) and Mscf
(thousand standard cubic feet). With metric/SI units,
m and M prefixes have their standard metric/SI
meanings.
MM Used as a prefix meaning million with English units,
kcal, and scm.
scf Standard cubic feet. Standard conditions for scf are
ideal gas at 14.696 psi and 60°F.
scfm Standard cubic feet per minute.
scfh Standard cubic feet per hour.
scfd Standard cubic feet per day.
scm Standard cubic meters. Standard conditions for scm
are ideal gas at 1 atm and 0°C.
scmh Standard cubic meters per hour.
atmg, barg, The g at the end of these pressure units indicates
psig, gauge pressure.
kg/sqcmg
Pcu Pound centigrade unit (energy unit)
tonne Metric ton (1000 kg)
Specifying Units Sets for You can override the global units sets for individual forms and
Forms or Objects objects, such as for a block, stream, or property table. To do this:
• On the Data Browser toolbar, use the Units box to
select a units set.
A units set specification applies to all forms for an object.
Aspen Plus 12.1 User Guide Global Information for Calculations • 5-15
For example, if you specify a units set on the Data Browser toolbar
while the RadFrac Setup Streams sheet is active, the new units set
applies to all input forms for the block. For each object, you
specify units sets separately for input forms and results forms.
Specifying Units Sets for You can specify units for individual fields and groups of fields on
Fields an input form. Selects units in the units fields next to the data
fields.
Changing the units for an individual data field does not convert
any value entered previously. Aspen Plus assumes you entered the
numeric value you intend to use and that you will specify
appropriate units for the value.
Defining Your Own Units To define your own units set:
Set
1 From the Data menu, click Setup.
2 In the left pane of the Data Browser, select the Units Sets form.
3 On the Units-Sets Object Manager, click New.
4 In the Create dialog box, enter an ID or accept the default ID
for the units set and click OK.
The unit types you can specify are on six sheets: Standard,
Heat, Transport, Concentration, Size, and Miscellaneous.
5 On the Standard sheet, use the drop down arrow in the Copy
From/View box to select an existing units set as the starting
point for your new units set. Choose the units set that is closest
to the new set you are creating.
Aspen Plus fills in the units for each units type and a dialog
box appears.
6 Click Yes or No.
7 If you select Yes, the global units of measurement for both
Input data and Output results are changed to the new units set.
8 Click the appropriate sheet and go to the units type you want to
modify. Use the drop down arrow to select the units option you
want.
9 Repeat Step 6 for all units types you want to modify.
Tip To see all of the units types arranged alphabetically click
the Search button.
Example of Defining a 1 Create a new units set, US-1, that is identical to the ENG units
New Units Set set, except US-1 uses units of ATM for pressure and C for
temperature.
2 From the Data menu, click Setup.
3 In the left pane of the Data Browser, click the Units Sets form.
4 In the Units-Sets Object Manager that appears, click the New
button.
5-16 • Global Information for Calculations Aspen Plus 12.1 User Guide
5 Accept the default ID in the Create New ID dialog box (US-1).
6 Click OK. The Units-Sets Form appears with the Standard
sheet displayed.
7 Aspen Plus asks if you want to make your new units set the
global default for subsequent specifications. After you have
defined the new units set, you can specify US-1 in the Units
box in the Data Browser toolbar.
8 On the Copy From box, use the drop down arrow and select
ENG as the set to copy from. The ENG units set values appear
in the units box.
9 On the Temperature box, use the drop down arrow and select C
as the temperature.
10 On the Pressure box, use the drop down arrow and select atm
as the pressure.
Report Options
Use the Setup Report Options form to customize the simulation
report. See Generating a Report for more information on
generating and accessing the reports.
See one of the following topics for help on customizing the stream
report:
• Options for customizing the stream report
• Specifying stream results format
• Including streams
• Designating property sets
Aspen Plus 12.1 User Guide Global Information for Calculations • 5-17
• Using the Batch Operation button
• About Batch stream reports
• About Supplementary stream reports
The following table shows what you can specify and where it is
located:
On this sheet Specify
General Which sections of the report are included or suppressed
The major sections of the report are input summary, flowsheet, block, stream profiles,
properties, sensitivity block, assay data analysis, and inserts.
You can select if a report is generated at all. If this option is not selected, you cannot
select any other report options.
You can also specify the number of lines that are printed on a page. The default number
is 60 lines.
Flowsheet What flowsheet information is included
The items that can be included in the flowsheet report are the total mass and energy
balance around the blocks, the component mass balance around the blocks, the
descriptions of all flowsheeting options, and the input and results of convergence
blocks, sequence, Calculator, Design specifications, constraints, optimization problems,
and transfer blocks.
These options are only available when the Flowsheet option is checked on the General
sheet.
Block Which blocks and how much information to include or suppress from the report
Use the right arrow button to move blocks from the Available blocks list to the Selected
blocks list to be included in the report. The left arrow button is used to remove blocks
from the Selected block list. The double arrows are used to move all of the blocks in a
list at once.
Items that can be included are a summary of user input and system defaults for each
block, block results.
Also, each block report can be started on a new page, and blocks can be listed
alphanumerically or in the order that they are listed on the flowsheet form.
These options are only available when the Block option is checked on the General sheet.
Stream What stream information is included and in what format. You can use the Standard form
to tailor the Stream-Summary report.
Use the Batch Operation button to select options for batch streams
Items that can be included in the stream report are any combination of Mole, Mass, or
Standard Liquid Volume flow or fraction, any number of property sets, component
attributes, substream attributes, particle size distribution size limits and stream structure
information.
Streams can be listed alphanumerically or in the order that they are listed on the
flowsheet form.
These options are only available when the Stream option is checked on the General
sheet.
5-18 • Global Information for Calculations Aspen Plus 12.1 User Guide
On this sheet Specify
Property The property information to be included
Items that can be included are List of component IDs, formulas and names, the values in
SI units of all physical property parameters used in the simulation, property constant
estimation results, and the values of all physical property parameters along with the
property parameters' descriptions, equations and sources of data.
Additional property files [DMS format input file (*.DFM), Project data file (*.PRJ),
and/or Property data format file (*.PRD)] can also be generated automatically when
you export a report file.
All of these options are only available when the Property option is checked on the
General sheet.
ADA What assay data analysis information is included
Items that can be included are the list of generated pseudocomponents, a distillation
curve report, and the values of all pseudocomponent property parameters in SI units.
All of these options are only available when the ADA option is checked on the General
sheet.
Customizing the You can customize the stream format using these options:
Stream Report
Aspen Plus 12.1 User Guide Global Information for Calculations • 5-19
Stream Report Options Description
Batch Operations Designated streams can be reported on a batch basis.
Supplementary stream Specify additional (supplementary) stream reports. A supplementary report
can have different options from the standard report. A supplementary
stream report can be generated even if you suppress the standard stream
report. Applies to the Report file and does not apply to the Stream Results
Summary.
Specifying Stream The table format file (TFF) determines the format (order, labels,
Results Format precision, and other options) of the stream results shown on the
Stream Summary sheet.
Aspen Plus provides built-in TFFs tailored to each Application
Type, and chooses an appropriate TFF for the Application Type
you choose when you create a new run. You can also create your
own TFFs.
You can specify the TFF in either of these places:
• Format box of the Results Summary Streams Material sheet
• Stream Format box on Setup ReportOptions Stream sheet
Aspen Plus uses the TFF you select in either box for all Results
Summary Streams Material sheets you display, until you select
another TFF.
It is not necessary to re-run the simulation in order to see the
results in another format.
Including Streams By default, all of the streams are included in the report.
To customize the list of streams to be included in the report:
1 Click the Include Streams button Setup ReportOptions Stream
sheet.
2 The right arrow button can be used to move streams from the
Available streams list to the Selected streams list to be included
in the report. The left arrow button is used to remove streams
from the Selected streams list. The double arrows are used to
move all of the streams in a list at once.
Designating Property In addition, you may designate property set IDs for additional
Sets stream properties to be included in the report.
To customize the list of property sets to be included in the report:
1 Click the Property Sets button on the Setup ReportOptions
Stream sheet.
2 The right arrow button can be used to move Property Sets from
the Available property sets list to the Selected property sets list
to be included in the report. The left arrow button is used to
remove property sets from the Selected property sets list. The
5-20 • Global Information for Calculations Aspen Plus 12.1 User Guide
double arrows are used to move all of the property sets in a list
at once.
Component Attributes Use the Component Attribute button to select options for
component attributes.
Any combination of the following can be printed for all of the
streams:
• Component attributes
• Substream attributes
• Particle size distribution (PSD) values
• Particle size distribution size limits
• Stream structure information
Using the Batch Use the Batch Operation button to select options for batch streams.
Operation Button The Batch-Operation form is used to designate streams as batch
streams and to specify
• Cycle times
• Down times
• Operation times
• Number of parallel trains for these streams
You can specify just cycle time or any two of the three times.
About Batch Streams An Aspen Plus simulation computes the average flow of all
streams, assuming continuous steady-state flows. You can
designate any type of stream (material, heat, or work) as a batch
stream, to report it on a batch basis. Batch stream reporting is used
to represent:
• Batch charges
• Batch discharges
• Semi-continuous streams (streams that operate for only a
portion of a complete batch cycle)
Each batch stream can have different time specifications, such as
cycle time or down time.
All batch stream results appear in the standard stream report of the
Aspen Plus report file. The following information is reported:
• Cycle time
• Operation time
• Number of trains
• All material and energy flows in three ways:
− Average flow rate over entire cycle for all trains
Aspen Plus 12.1 User Guide Global Information for Calculations • 5-21
− Total amount of material and energy per cycle per parallel
production train (average flow rate * cycle time / number of
trains)
− Flow rate per train during actual operation
[ amount / cycle / train / operation time ]
The Stream Results Summary sheet displays all batch stream
results if you select the FULL Table Format File (TFF) on the
Format box. If you select PHARM-E, PHARM-M, SPEC-E, or
SPEC-M in the Format box, Aspen Plus excludes the operating
time, number of trains, and flowrate during actual operation from
the stream summary. If you select any other built-in TFF, the
stream summary form displays average flow rate of material and
energy only. It does not display batch stream results.
Designating a Stream as To designate a stream as a batch stream:
a Batch Stream
1 Click the Batch Operation button on the Setup ReportOptions
Streams sheet.
2 In the stream box, select a stream ID from the list.
3 You can specify cycle time only, or two of the following times:
• Cycle time
• Down time
• Operation time (Zero indicates an instantaneous charge or
discharge.)
4 You can also specify the number of parallel trains. The default
is one.
About Supplementary A supplementary stream report can be generated in the Report file.
Stream Reports This selection only applies to the Report file and does not affect to
the Stream Results Summary in the graphical user interface.
You can print the standard stream report whether a supplementary
stream report is to be generated or not. A supplementary stream
report can be generated even if you suppress the standard stream
report.
The options available for the Standard stream report are also
available for the Supplementary stream report. In addition, a
subroutine can be used to generate a user stream report. The
subroutine is specified by clicking on the Subroutine button.
5-22 • Global Information for Calculations Aspen Plus 12.1 User Guide
CHAPTER 6
Specifying Components
About Databanks
Aspen Plus stores physical property parameters for a large number
of components in several databanks. In addition to the standard
Aspen Plus databanks, in-house databanks may be available at
your site.
To see the available pure component databanks, and to see or
change which databanks are active for a simulation:
1 From the Data menu, click Components.
2 On the Specifications form, click the Databanks sheet.
3 Aspen Plus searches the databanks in the order listed in the
Selected Databanks list on this sheet. The default order is
appropriate for most simulations.
To change the search order for databanks in this simulation,
click a databank in the Selected Databanks list, and then click
the up and down arrow keys to move the databank higher or
lower in the list.
See Changing Databanks Search Order for information about
changing search order globally.
4 You can choose additional databanks from the Available
Databanks list and add them to the Selected Databanks list
using the right arrow button.
To remove a databank from the search, in the Selected
Databanks list, click a databank then click the left arrow button
to move it to the Available Databanks list.
Contents and Use of This table shows the contents and use of the pure component
the Aspen Plus databanks included with Aspen Plus:
Databanks Databank Contents Use
PURE12 Pure component parameters for Primary component
mostly organic components databank in Aspen Plus
AQUEOUS Pure component parameters for Simulations containing
ionic and molecular species in electrolytes
aqueous solution
SOLIDS Pure component parameters for Simulations containing
strong electrolytes, salts, and electrolytes and solids
other solids
Example of Using the In this example, the advanced component Find dialog box is used
Find Dialog Box to locate a component that includes C3 in its formula and has a
boiling point between 200 and 250 K.
To do this:
1 On the Components Specifications Selection sheet, select an
empty component ID field, then click Find.
2 In the Component Name or Formula box, enter C3.
Adding a Component
To add a component to the existing component list:
1 From the Data menu, click Components.
2 On the Specifications Selection sheet, move to the first blank
row.
3 Enter a Component ID, name or formula.
Follow the next two steps if you wish to move the component
within the list.
4 Click the Reorder button to open the Reorder Components
dialog box.
5 Select the new component and move it up in the sequence with
the up arrow to the right of the components list.
Inserting a To insert a component:
Component 1 From the Data menu, click Components.
2 On the Specifications Selection sheet, move to the row where
you want the new component inserted.
3 Click the right mouse button and from the menu that appears,
click Insert Row.
4 Enter a Component ID, name or formula in the new row.
Deleting a Component
To delete a component:
1 From the Data menu, click Components.
2 On the Specifications Selection sheet, click the right mouse
button on the row selector for the component you want to
delete
3 Choose Delete Row from the menu that appears.
When you delete a component, all references to the component
on other sheets are automatically deleted.
Activity Coefficient
Property Methods
Activity Coefficient Liquid Phase Activity Vapor Phase Fugacity
Property Method Coefficient Method Coefficient Method
B-PITZER Bromley-Pitzer Redlich-Kwong-Soave
ELECNRTL Electrolyte NRTL Redlich-Kwong
ENRTL-HF Electrolyte NRTL HF Hexamerization model
ENRTL-HG Electrolyte NRTL Redlich-Kwong
NRTL NRTL Ideal gas
NRTL-HOC NRTL Hayden-O'Connell
NRTL-NTH NRTL Nothnagel
NRTL-RK NRTL Redlich-Kwong
NRTL-2 NRTL (using dataset 2) Ideal gas
PITZER Pitzer Redlich-Kwong-Soave
PITZ-HG Pitzer Redlich-Kwong-Soave
UNIFAC UNIFAC Redlich-Kwong
UNIF-DMD Dortmund-modified UNIFAC Redlich-Kwong-Soave
UNIF-HOC UNIFAC Hayden-O'Connell
UNIF-LBY Lyngby-modified UNIFAC Ideal gas
Refinery
Application Recommended Property Methods
Low pressure applications BK10, CHAO-SEA, GRAYSON
(up to several atm)
Vacuum tower,
atmospheric crude tower
Medium pressure applications CHAO-SEA, GRAYSON, PENG-ROB, RK-SOAVE
(up to several tens of atm)
Coker main fractionator,
FCC main fractionator
Hydrogen-rich applications GRAYSON, PENG-ROB, RK-SOAVE
Reformer, Hydrofiner
Lube oil unit, De-asphalting unit PENG-ROB, RK-SOAVE
Gas Processing
Application Recommended Property Methods
Hydrocarbon separations PR-BM, RKS-BM, PENG-ROB, RK-SOAVE
Demethanizer
C3-splitter
Cryogenic gas processing PR-BM, RKS-BM, PENG-ROB, RK-SOAVE
Air separation
Gas dehydration with glycols PRWS, RKSWS, PRMHV2, RKSMHV2, PSRK,
SR-POLAR
Petrochemicals
Application Recommended Property Methods
Ethylene plant CHAO-SEA, GRAYSON
Primary fractionator
Light hydrocarbons PENG-ROB, RK-SOAVE
Separation train
Quench tower
Aromatics WILSON, NRTL, UNIQUAC and their variances
BTX extraction
Substituted hydrocarbons PENG-ROB, RK-SOAVE
VCM plant
Acrylonitrile plant
Ether production WILSON, NRTL, UNIQUAC and their variances
MTBE, ETBE, TAME
Ethylbenzene and styrene plants PENG-ROB, RK-SOAVE
–or–
WILSON, NRTL, UNIQUAC and their variances
Terephthalic acid WILSON, NRTL, UNIQUAC and their variances
(with dimerization in acetic acid section)
See Guidelines for Choosing a Property Method for Polar Non-
Electrolyte Systems to see diagrams for recommendations based on
pressure and vapor phase association.
Chemicals
Application Recommended Property Methods
Azeotropic separations WILSON, NRTL, UNIQUAC and their variances
Alcohol separation
Carboxylic acids WILS-HOC, NRTL-HOC, UNIQ-HOC
Acetic acid plant
Phenol plant WILSON, NRTL, UNIQUAC and their variances
Power Generation
Application Recommended Property Methods
Combustion PR-BM, RKS-BM (combustion databank)
Coal
Oil
Steam cycles STEAMNBS, STEAM-TA
Compressors
Turbines
Acid gas absorption See gas processing.
Environmental
Application Recommended Property Methods
Solvent recovery WILSON, NRTL, UNIQUAC and their variances
(Substituted) hydrocarbon stripping WILSON, NRTL, UNIQUAC and their variances
Acid gas stripping from PRWS, RKSWS, PRMHV2, RKSMHV2, PSRK,
Methanol (RECTISOL) SR-POLAR
NMP (PURISOL)
Acid gas stripping from: ELECNRTL
Water
Ammonia
Amines
Amines + methanol (AMISOL)
Caustic
Lime
Hot carbonate
Acids ELECNRTL
Stripping
Neutralization
See Guidelines for Choosing a Property Method for Polar Non-
Electrolyte Systems to see diagrams for recommendations based on
pressure and vapor phase association.
Water and Steam
Application Recommended Property Methods
Steam systems STEAMNBS, STEAM–TA
Coolant
Electrolyte
ELECNRTL
Real
PENG-ROB, RK-SOAVE,
LK-PLOCK, PR-BM,
RKS-BM
Nonpolar > 1atm
CHAO-SEA, GRAYSON,
BK10
Pseudo &
Real
Vacuum
BK10, IDEAL
Polarity Electrolyte
N
Polar,
non-electrolyte
N UNIFAC, UNIF-LBY,
UNIF-DMD
Y
SR-POLAR, PRWS,
RKSWS, PRMHV2,
P > 10 bar RKSMHV2
N
PSRK, RKSMHV2
Pressure Liquid-Liquid
WILS-NTH, WILS-HOC
Y Dimers NRTL-NTH, NRTL-HOC
UNIQ-NTH, UNIQ-HOC
WILSON UNIF-HOC
NRTL VAP?
UNIQUAC
UNIFAC
N
WILSON, WILS-RK,
WILS-LR, WILS-GLR,
NRTL, NRTL-RK, NRTL-2
UNIQUAC, UNIQ-RK,
UNIQ-2, UNIFAC, UNIF-LL,
UNIF-LBY, UNIF-DMD
Degrees of polymerization
Specifying the Global Aspen Plus uses the global property method for all property
Property Method calculations, unless you specify a different property method for a
specific flowsheet section, unit operation block, or property
analysis.
For help on physical property parameters and data, see one of the
following:
• About parameters and data
• Determining property parameter requirements
• Retrieving parameters from databanks
• Entering property parameters
• Using tabular data and polynomial coefficients
• Using property data packages
Aspen Plus 12.1 User Guide Physical Property Parameters and Data • 8-1
Determining Property Parameter
Requirements
Depending on the type of simulation, your model will require
different parameters. This topic describes the parameter
requirements for some basic property calculations, that is, for:
• Mass and energy balance simulations
• Henry's law
• Thermodynamic reference state
Most equation-of-state and activity coefficient models require
binary parameters for meaningful results. To determine parameter
requirements based on your chosen property methods, see the
Property Method Tables in Aspen Plus Physical Property Methods
and Models for each property method you select.
Parameter For simulations that involve both mass and energy balance
Requirements for calculations, you must enter or retrieve from the databanks these
Mass and Energy required parameters:
Balance Simulations
8-2 • Physical Property Parameters and Data Aspen Plus 12.1 User Guide
Parameter If you use Henry's law for supercritical components (or
Requirements for dissolved-gas components), Henry's constant model parameters
Henry's Law (HENRY) are required for all dissolved-gas components with the
solvents. You must list the supercritical components on the
Components Henry Comps Selection sheet.
If You require these parameters
More than one solvent is in the Henry's constant parameters for each dissolved-gas solvent pair.
mixture
Henry's constants are not available for Henry's constants for the major solvents. Aspen Plus uses a
all solvents rigorous defaulting procedure when Henry's constants are missing
for a minor solvent component.
Enter Henry's constant model parameters on the Input sheet of the
HENRY-1 object on the Properties Parameters Binary Interaction
HENRY-1 form.
Parameter The reference state for thermodynamic properties is the constituent
Requirements for elements in an ideal gas state at 25° C and 1 atm. To calculate
Thermodynamic enthalpies, entropies, and Gibbs free energies, Aspen Plus uses:
Reference State • Standard heat of formation (DHFORM)
• Standard Gibbs free energy of formation (DGFORM)
For systems that do not involve chemical reaction, you may allow
DHFORM and DGFORM to default to zero.
Values of Must be available for all components
DHFORM Participating in chemical reactions
DGFORM Involved in equilibrium reactions modeled by the RGibbs
reactor model
Reference State for Conventional solid components may require:
Conventional Solid
• Standard solid heat of formation (DHSFRM)
Components
• Standard solid Gibbs free energy of formation (DGSFRM)
Enter them on the Properties Parameters Pure Component Scalar
Input sheet.
Reference State for Ionic The reference state for ionic species is infinite dilution in water. To
Species calculate enthalpy, entropy, and Gibbs free energy of ions,
Aspen Plus uses:
• Standard heat of formation in water at infinite dilution
(DHAQFM)
• Standard Gibbs free energy of formation in water at infinite
dilution (DGAQFM)
Aspen Plus 12.1 User Guide Physical Property Parameters and Data • 8-3
Retrieving Parameters from
Databanks
For many components, Aspen Plus databanks store all required
parameter values. This topic explains how to retrieve these built-in
parameters from Aspen Plus databanks:
• Pure component parameters
• Equation-of-state binary parameters
• Activity coefficient binary parameters
• Henry's Law constants
• Electrolyte and binary pair parameters
Retrieving Pure For many components, Aspen Plus retrieves pure component
Component parameters automatically from its pure component databanks. Use
Parameters the Components Specifications Databanks sheet to specify the
databanks to search and their search order. Parameters missing
from the first selected databank will be searched for in subsequent
selected databanks.
To enter your own parameter values, use the Properties Parameters
Pure Component Scalar Input and T-Dependent Input sheets. See
Entering Pure Component Constants.
Since built-in pure component databanks reside with the simulation
engine, the available parameters do not appear automatically on
any Parameters Pure Component Input sheets.
User entered parameters override values retrieved from the
Aspen Plus databanks.
Generating a Report of To generate a report of all available pure component parameters
Available Pure that will be used in the simulation for the components and property
Component Parameters methods specified:
1 From the Tools menu, click Retrieve Parameters Results.
2 On the Retrieve Parameter Results dialog box, click OK to
generate a report.
3 On the next Retrieve Parameter Results dialog box, click OK to
view the results.
The Data Browser automatically opens at the Properties
Parameters Results folder.
4 In the left pane of the Data Browser, choose the Pure
Component form from the Results folder.
The Parameters Results Pure Components form contains a sheet
for scalar parameters and a sheet for T-Dependent parameters. On
each sheet you can choose to view the actual parameter values, or
8-4 • Physical Property Parameters and Data Aspen Plus 12.1 User Guide
the status. For the status of parameter results, the following status
is possible:
Status Indicates the parameter is
Available Available in the databank, entered on the Paramters Input
sheet, estimated, or regressed
Default A system default value
Missing Missing
In addition to retrieving parameter results with the method
described above, you can also generate a detailed parameter report
in the Aspen Plus report file.
Retrieving Equation- For many component systems, binary parameters are available for
of-State Binary these models:
Parameters Model Parameter name
Standard Redlich-Kwong-Soave RKSKIJ
Standard Peng-Robinson PRKIJ
Lee-Kesler-Plöcker LKPKIJ
BWR-Lee-Starling BWRKV, BWRKT
Hayden-O'Connell HOCETA
Aspen Plus retrieves any databank values and uses them
automatically. Whether you enter these parameters yourself or
retrieve them from a databank, you can view them from the
appropriate Properties Parameters Binary Interaction Input sheet.
Aspen Plus creates one form for each binary parameter.
If you do not want to retrieve built-in equation-of-state binary
parameters, remove the databank name from the Selected
Databanks list on the Databanks sheet of the Properties Parameters
Binary Interaction form for your equation-of-state model. Use the
Input sheet to enter your own binary parameter values. For more
information see Entering Scalar Binary Parameters.
Retrieving Activity For many component pairs, binary parameters are available for the
Coefficient Binary following property methods for vapor-liquid applications:
Parameters Property method Parameter name
NRTL NRTL
NRTL-HOC NRTL
NRTL-RK NRTL
UNIQUAC UNIQ
UNIQ-HOC UNIQ
UNIQ-RK UNIQ
WILSON WILSON
WILS-HOC WILSON
WILS-GLR WILSON
Aspen Plus 12.1 User Guide Physical Property Parameters and Data • 8-5
Property method Parameter name
WILS-LR WILSON
WILS-RK WILSON
For liquid-liquid applications, binary parameters are available for
the following property methods:
Property method Parameter name
NRTL NRTL
NRTL-HOC NRTL
NRTL-RK NRTL
UNIQUAC UNIQ
UNIQ-HOC UNIQ
UNIQ-RK UNIQ
AspenTech developed these parameters using data from the
Dortmund Databank.
Whenever you select these property methods, Aspen Plus retrieves
these parameters automatically and displays them on the Input
sheet of the Properties Parameters Binary Interaction forms.
Aspen Plus creates a form for each binary parameter.
If you do not want to retrieve built-in binary parameters, remove
the databank name from the Selected Databanks list on the
Databanks sheet of the Properties Parameters Binary Interaction
form. Use the Input sheet to enter your own binary parameter
values.
For more information, see Entering Temperature-Dependent
Binary Parameters.
Retrieving Henry's Henry's law constants are available for a large number of solutes in
Law Constants solvents. The solvents are water and many organic components.
If you use an activity coefficient property method and define a set
of Henry's components, Aspen Plus retrieves the Henry's constants
automatically and displays them on the Input sheet of the
Properties Parameters Binary Interaction HENRY-1 form.
If you do not want to retrieve built-in Henry's law constants,
remove both the BINARY and HENRY databanks from the
Selected Databanks list on the Databanks sheet of the HENRY-1
form.
Retrieving Electrolyte Binary and pair parameters of the Electrolyte NRTL model are
Binary and Pair available for many industrially important electrolyte systems.
Parameters
Aspen Plus retrieves the binary parameters and displays them on
the Properties Parameters Binary Interaction forms. For pair
8-6 • Physical Property Parameters and Data Aspen Plus 12.1 User Guide
parameters, Aspen Plus displays them on the Properties Parameters
Electrolyte Pair forms.
If you do not want to retrieve built-in parameters, remove the
databank name from the Selected Databanks list on the Databanks
sheet of the applicable form.
Aspen Plus 12.1 User Guide Physical Property Parameters and Data • 8-7
Use the Input sheet of this To enter
Properties Parameters
form
Binary Interaction Scalar binary parameters, such as the RKSKIJ binary parameters for the
Redlich-Kwong-Soave equation-of-state model
Temperature-dependent binary parameters (that is, parameters defined with
more than one element) such as the NRTL binary parameters or Henry's law
constants
Electrolyte Pair Electrolyte-molecule and electrolyte-electrolyte pair parameters required by
the electrolyte NRTL model, such as the GMELCC parameters
Electrolyte Ternary Electrolyte ternary parameters required by the Pitzer model, such as the
cation1-cation2-common anion parameters and anion1-anion2-common
cation parameters (GMPTPS)
UNIFAC Group Area and volume parameters for the UNIFAC functional groups
UNIFAC Group Binary Scalar group-group interaction parameters for the original UNIFAC model
(GMUFB)
T-Dependent group-group interaction parameters for the modified UNIFAC
models, such as the Dortmund-modified UNIFAC and the Lyngby-modified
UNIFAC models
How to Enter The general procedure for entering all property parameters is as
Property Parameters follows:
To enter property parameters:
1 From the Data menu, click Properties.
2 In the left pane of the Data Browser, double-click the
Parameters folder.
3 Click the folder for the type of parameters you want to enter
(Pure Component, Binary Interaction, Electrolyte Pair,
Electrolyte Ternary, UNIFAC Group, or UNIFAC Group
Binary).
Aspen Plus automatically creates parameter sets for any binary
interaction, electrolyte pair, and parameters required by the
property methods specified on the Properties Specifications
form. The Object Manager for the appropriate parameter type
displays the IDs for these parameter sets.
4 On the Object Manager for the parameter type you choose, you
can
• Enter parameters for an existing parameter set by selecting
the parameter and clicking Edit.
– or –
• Create a new parameter set. In the Object Manager, click
New. If prompted, select the appropriate parameter type
and parameter name, and click OK.
5 Use the Parameter input sheet to:
8-8 • Physical Property Parameters and Data Aspen Plus 12.1 User Guide
• Enter parameters that are not in the Aspen Plus databanks
• Override defaults or databank values by entering parameter
values
You can enter parameter values in any units. After you specify
a parameter name, Aspen Plus automatically fills in the default
units.
If you change the units of measurement for the parameter after
you enter the parameter value, Aspen Plus does not convert the
displayed value.
Tip: When defining non-databank components using the
Components Specifications Selection sheet, you can use the User-
Defined Components Wizard. The wizard guides you through
entering the basic pure component parameters required.
Entering Pure To enter pure component constants:
Component 1 From the Data menu, click Properties.
Constants
2 In the left pane of the Data Browser, double-click the
Parameters folder.
3 Click the Pure Component folder.
4 In the Parameters Pure Component Object Manager, you can
create new parameter IDs, or modify existing IDs.
5 To create a new parameter set, on the Object Manager click
New.
6 In the New Pure Component Parameters dialog box, the default
parameter type is Scalar. Enter an ID or accept the default ID
and click OK.
7 To modify an existing parameter ID, on the Object Manager
select the name of the parameter set, and click Edit.
8 On the Input sheet for pure component scalar parameters,
define the matrix of components and parameters for which you
are entering data values, and specify the appropriate units.
Aspen Plus 12.1 User Guide Physical Property Parameters and Data • 8-9
Example of Entering Pure Enter critical temperature (TC) and critical pressure (PC) of
Component Constants 410.2 K and 40.7 atm for component C1. Enter critical pressure of
36.2 atm for component C2.
8-10 • Physical Property Parameters and Data Aspen Plus 12.1 User Guide
You cannot enter more than one set of values for the same
parameter on the same form.
Example of Entering Ideal For component CLP, enter the coefficients for the Ideal Gas Heat
Gas Heat Capacity Capacity Polynomial model (CPIG):
Coefficients
C PIG = −2001.2 + 358.9T − 0.515T 2 + 4.41 × 10 −4 T 3 − 1.58 × 10 −7 T 4
C PIG has units of J/kmol-K. T is in units of K.
Aspen Plus 12.1 User Guide Physical Property Parameters and Data • 8-11
7 Enter an ID or accept the default ID, then click OK.
8 To modify an existing parameter ID, on the Object Manager
select the name of the parameter set, and click Edit.
9 On the Input sheet, choose a parameter from the Parameter list.
10 Enter components, parameters, and units.
When you use the general enthalpy and density models shown
in the Nonconventional Property Models table Aspen Plus
requires at least the first element of the heat capacity
polynomial (HCGEN) and density polynomial (DENGEN), for
each constituent of each nonconventional component. The heat
of formation (DHFGEN) is required when reactions occur
involving nonconventional components.
Alternatively, you can enter tabular data directly for enthalpy
and density. Polynomial TABPOLY models are not available
for nonconventional components.
Property Model
ENTHALPY ENTHLTAB
DENSITY DNSTYTAB
For more information on using tabular data and polynomial
coefficients see Using Tabular Data and Polynomial
Coefficients.
Entering Scalar To enter scalar binary parameters:
Binary Parameters 1 From the Data menu, click Properties.
2 In the left pane of the Data Browser, double-click the
Parameters folder.
8-12 • Physical Property Parameters and Data Aspen Plus 12.1 User Guide
3 Click the Binary Interaction folder to open the Object Manager
containing the binary parameter sets used by your specified
property methods.
4 On the Object Manager, select the scalar parameter of interest
and click Edit.
5 Define the ij matrix of components for which you are entering
binary parameter values.
6 Enter the parameter values.
Example for Entering Binary parameters for the Redlich-Kwong-Soave equation of state,
Redlich-Kwong-Soave RKSKIJ, are symmetric (that is, kij = kji). Enter the following
Binary Parameters values for the binary parameters in the three-component system
C1-C2-C3:
Component Pair RKSKIJ
C1-C2 0.097
C1-C3 0
C2-C3 -0.018
Note: You will not see the RKSKIJ-1 parameter in the Binary
Interaction Object Manager unless you have previously chosen the
RK-SOAVE property method.
Aspen Plus 12.1 User Guide Physical Property Parameters and Data • 8-13
3 Click the Binary Interaction folder to open the Object Manager
containing the binary parameter sets used by your specified
property methods.
4 On the Object Manager, select the temperature-dependent
parameter of interest and click Edit.
5 On the Input sheet, enter component pairs in the Component i
and Component j boxes.
6 Specify the units for the binary parameters.
7 Enter the coefficients of the parameters as sequential elements
for each component pair.
Note: You will not see the NRTL-1 parameters in the Binary
Interaction Object Manager, unless you have previously chosen an
NRTL-based property method.
8-14 • Physical Property Parameters and Data Aspen Plus 12.1 User Guide
Entering Binary The DECHEMA Chemistry Data Series contains a large number of
Parameters from binary parameters for the Wilson, NRTL, and UNIQUAC models.
DECHEMA These binary parameters are not compatible with the form of the
equations used in Aspen Plus. However, you can enter them
directly, without any conversion, using the Dechema button on the
Properties Parameters Binary Interaction Input sheet for
temperature dependent parameters.
To enter binary parameters from DECHEMA:
1 From the Data menu, click Properties.
2 In the left pane of the Data Browser, double-click the
Parameters folder.
3 Click the Binary Interaction folder to open the Object Manager
containing the binary parameter sets used by your specified
property methods.
4 On the Object Manager, select NRTL-1, WILSON-1, or
UNIQ-1 and choose Edit.
5 On the Input sheet, enter component pairs in the Component i
and Component j boxes.
6 With the appropriate component pair selected, click the
Dechema button.
7 In the Dechema Binary Parameters dialog box, enter the binary
parameter values. You can also specify whether the parameters
came from the VLE or LLE collection.
8 Click OK.
Aspen Plus converts the binary parameters you enter and
displays the converted values on the Input sheet.
Aspen Plus databanks contain both parameters developed by
Aspen Technology, Inc. and those obtained from the
DECHEMA Chemistry Data Series (databank name = VLE-
LIT). You will seldom need to enter binary parameters from
the DECHEMA Chemistry Data Series.
Example of Entering Enter the following binary parameters for ethanol (i) and water (j),
NRTL Binary Parameters as reported in the DECHEMA Chemistry Data Series, Vol. I, Part
from DECHEMA 1A, p. 129:
aij = -517.9603
cal/mol
aji = 1459.309
cal/mol
αij = 0.0878
Aspen Plus 12.1 User Guide Physical Property Parameters and Data • 8-15
Estimating Binary You can request the estimation of missing binary parameters for
Parameters for the Wilson, NRTL, and UNIQUAC models, using the Properties
Activity Coefficient Parameters Binary Interaction form. For convenience, Aspen Plus
Models provides this capability in addition to the Property Constant
Estimation System (PCES).
To estimate binary parameters:
1 Go to the Properties Parameters Binary Interaction Object
Manager.
2 Select the WILSON-1, NRTL-1 or UNIQ-1 binary parameter
form of interest and choose Edit.
3 On the Input sheet, check the Estimate All Missing Parameters
by UNIFAC check box.
Entering Electrolyte Use the Properties Parameters Electrolyte Pair form to enter values
Pair Parameters for molecule-electrolyte and electrolyte-electrolyte pair parameters
for the Electrolyte NRTL model.
To enter electrolyte pair parameters:
1 From the Data menu, click Properties.
2 In the left pane of the Data Browser, double-click the
Parameters folder.
3 Click the Electrolyte Pair folder.
4 On the Electrolyte Pair Object Manager, select a parameter
name, and click Edit.
5 On the Input sheet, define the molecule-electrolyte or
electrolyte-electrolyte pairs for which you are entering values.
6 Enter the parameter values for the specified pairs.
8-16 • Physical Property Parameters and Data Aspen Plus 12.1 User Guide
Example of Entering Enter the following electrolyte NRTL pair parameters (GMELCC)
Electrolyte NRTL Pair for the brine system:
Parameters τH2O,NaCl = 8.572
τNaCl,H2O = -4.435
Entering Ternary Use the Properties Parameters Electrolyte Ternary form to enter
Parameters values for the Pitzer ternary parameters when using the Pitzer
electrolyte activity coefficient model.
For example, you can enter cation1-cation2-common anion
parameters and anion1-anion2-common cation parameters
(GMPTPS).
To enter electrolyte pair parameters:
1 From the Data menu, click Properties.
2 In the left pane of the Data Browser, double-click the
Parameters folder.
3 Click the Electrolyte Ternary folder.
4 In the Electrolyte Ternary Object Manager, you can create new
parameter IDs, or modify existing IDs.
5 To create a new parameter set, on the Object Manager click
New.
6 In the Create New ID dialog box, enter an ID in the Enter ID
box, or accept the default ID.
7 Click OK.
8 To modify an existing parameter ID, on the Object Manager
select the name of the parameter set, and click Edit.
Aspen Plus 12.1 User Guide Physical Property Parameters and Data • 8-17
9 Select an electrolyte ternary parameter from the Parameter list.
10 With Cation selected in the View list, enter the
cation1-cation2-common anion parameters by listing two
cations, the common aion(s), and the respective parameter
values. Enter all cation1-cation2-common anion parameters
with the Cation view selected.
11 Select Anion from the View list.
12 Enter the anion1-anion2-common cation parameters by listing
two anions, the common cation(s), and the respective
parameter values. With the Anion view selected, continue to
list all anion1-anion2-common cation parameters.
Example of Entering Enter the following Pitzer ternary parameters (GMPTPS) for the
Electrolyte Pitzer Ternary NaCl/CaSO4 system:
Parameters
i j k ψijk
Na+ Ca+2 Cl- -0.014
Na+ Ca+2 SO4-2 -0.023
Cl- SO4-2 Na+ 0.0014
Cl- SO4-2 Ca+2 0.0
8-18 • Physical Property Parameters and Data Aspen Plus 12.1 User Guide
Using Tabular Data and Polynomial
Coefficients
In addition to the standard Aspen Plus physical property methods
and models, you can represent some properties through:
• Direct use and interpolation of user-supplied tabular data
• Calculation from a general polynomial model
For help on using tabular data and polynomial coefficients, see one
of the following:
• Entering tabular data
• Entering polynomial coefficients for general polynomial model
• Adjusting reference states for tabular data and polynomials
• Adjusting tabular data or polynomials for the effect of pressure
Tabpoly Properties This table shows the Tabpoly properties:
Property Model Form
Density for nonconventional components Normal
Enthalpy for nonconventional components Normal
Enthalpy of fusion Normal
Enthalpy of sublimation Normal
Enthalpy of vaporization Normal
Henry's constant Logarithmic
Ideal gas enthalpy Normal
Ideal gas heat capacity Normal
Liquid diffusion coefficient Normal
Aspen Plus 12.1 User Guide Physical Property Parameters and Data • 8-19
Property Model Form
Liquid enthalpy Normal
Liquid enthalpy departure Normal
Liquid entropy Normal
Liquid entropy departure Normal
Liquid fugacity coefficient for a component in Logarithmic
a mixture
Liquid Gibbs free energy Normal
Liquid Gibbs free energy departure Normal
Liquid heat capacity Normal
Liquid-Liquid K-value Logarithmic
Liquid thermal conductivity Normal
Liquid viscosity Logarithmic
Liquid volume Normal
Pure component liquid fugacity coefficient Logarithmic
Pure component vapor fugacity coefficient Logarithmic
Solid enthalpy Normal
Solid enthalpy departure Normal
Solid entropy Normal
Solid entropy departure Normal
Solid fugacity coefficient Logarithmic
Solid Gibbs free energy Normal
Solid Gibbs free energy departure Normal
Solid heat capacity Normal
Solid thermal conductivity Normal
Solid vapor pressure Logarithmic
Solid volume Normal
Surface tension Normal
Vapor diffusion coefficient Normal
Vapor enthalpy Normal
Vapor enthalpy departure Normal
Vapor entropy Normal
Vapor entropy departure Normal
Vapor fugacity coefficient for a component in Logarithmic
a mixture
Vapor Gibbs free energy Normal
Vapor Gibbs free energy departure Normal
Vapor heat capacity Normal
Vapor-Liquid K-value Logarithmic
Vapor pressure Logarithmic
Vapor thermal conductivity Normal
8-20 • Physical Property Parameters and Data Aspen Plus 12.1 User Guide
Property Model Form
Vapor viscosity Normal
Vapor volume Normal
If the model form is logarithmic, the tabular model uses the
logarithmic transformation of the property to interpolate and
extrapolate. The polynomial model is the logarithmic form of the
equation.
How Aspen Plus Aspen Plus calculates the property for the component, using the
Uses Your Tabular tabular data and polynomial coefficients you enter. If you do not
Data and Polynomial provide data for all components, Aspen Plus uses the property
Coefficients models of the ideal property method (IDEAL), for the components
without data. For most properties, Aspen Plus calculates mixture
properties using mole fraction average ideal mixing.
Aspen Plus uses your tabular data directly—Aspen Plus does not
fit a polynomial equation to the data. When necessary, Aspen Plus
uses a quadratic interpolation method to determine the property
value at a given temperature. You should provide tabular data at
small temperature intervals.
When the temperature is outside the lowest or highest temperature
data that you entered, Aspen Plus calculates the property by linear
extrapolation. If the model form is logarithmic, Aspen Plus uses
the logarithmic transformation of the property to interpolate and
extrapolate. For polynomial models when temperature is outside
the lower and upper limits of the correlation, Aspen Plus also
calculates the property by linear extrapolation.
If you enter Then
Enthalpy or heat capacity data You can use the Data Generation
Options on the Specifications sheet to
generate entropy and Gibbs free
energy.
Vapor enthalpy data Also enter ideal gas enthalpy data to
ensure consistency.
Enthalpy, entropy, and Gibbs Make sure they are consistent (G = H –
free energy TS).
To enter experimental data for use with Property Estimation or
Data Regression, use the Properties Data forms.
Entering Tabular Data To enter tabular data:
1 From the Data menu, click Properties.
2 From the left pane of the Data Browser, go to the Properties
Advanced Tabpoly Object Manager.
3 Click New to create a new object.
Aspen Plus 12.1 User Guide Physical Property Parameters and Data • 8-21
4 Enter an ID or accept the default ID, and then click OK.
5 On the Specifications sheet, choose the property for which you
are entering data in the Property list. You can enter data for
only one property on each Tabpoly form. Use as many forms as
needed to enter your data.
6 In the For Property Method list, choose the property method
for which the Tabpoly property is to be used. Specify All to use
the data for all property methods in the simulation.
7 On the Data sheet, choose the component for which you have
data, from the Component list box.
8 Select data type tabular Data, then enter the tabular data
(property versus temperature) for the component.
You must enter the temperature-dependent tabular data in order
of ascending temperature points. Aspen Plus determines the
units for the temperature and the property data from the
Units-Set you specify in the Units list box on the Data Browser
toolbar.
Example of Entering This example assumes that the Units list box on the Data Browser
Vapor Pressure Data for toolbar is referencing a new Units-Set defined with temperature
Component CLP units of C and pressure units of mmHg.
Enter the following tabular data:
Vapor pressure Temperature (C)
(mmHg)
70 0
177 20
390 40
760 59.4
2358 100
8200 160
8-22 • Physical Property Parameters and Data Aspen Plus 12.1 User Guide
Entering Polynomial To enter polynomial coefficients for a general polynomial model:
Coefficients for the 1 From the Data menu, click Properties.
General Polynomial
Model 2 In the left pane of the Data Browser, double-click the
Advanced folder.
3 Click the Tabpoly folder.
4 On the Tabpoly Object Manager, click New to create a new
object.
5 Enter an ID or accept the default ID, and then click OK.
6 On the Specifications sheet, specify the property for which you
are entering polynomial coefficients in the Property list box.
You can enter polynomial coefficients for only one property on
Aspen Plus 12.1 User Guide Physical Property Parameters and Data • 8-23
each form. Use as many forms as needed to enter your
coefficients.
7 In the For Property Method list box, choose the property
method for which the Tabpoly property is to be used. Specify
All to use the data for all property methods in the simulation.
8 On the Data sheet, choose the component for which you have
coefficients, from the Component list.
9 Select the data type: Polynomial Coefficient, then enter the
general polynomial coefficients for the selected component.
The polynomial model is of the form:
property 2 3 a5 a6 a7
or = a1 + a2T + a3T + a4T + + 2 + + a8 ln T
ln( property ) T T T
See Tabpoly Properties to determine whether the property you
want to enter uses the normal or logarithmic form.
The coefficients a2 through a8 default to zero. The lower
temperature limit of the correlation (Min. temperature) defaults
to 0 K. The upper temperature limit (Max. temperature)
defaults to 1000 K. When the temperature is outside the limits,
Aspen Plus calculates the property by linear extrapolation.
The Units-Set you specify in the Units list box on the Data
Browser toolbar determines the units for the coefficient values.
If a5, a6, a7, or a8 is non-zero, Aspen Plus assumes absolute
temperature units for all parameters.
Adjusting Reference Aspen Plus can adjust the reference state of the enthalpy, entropy,
States for Tabular and Gibbs free energy data that you entered. To specify this:
Data and Polynomials 1 On the Tabpoly Specifications sheet, deselect the Do Not
Adjust Reference State check box for your Tabular data or your
Polynomial data.
2 Specify the basis (Mole or Mass) for your reference value and
for the data, in the Basis list box.
3 On the Reference Points sheet, select the component for which
you want to adjust the reference state, in the Component list
box.
4 In the Reference Points boxes enter a reference Temperature
and a reference value for Enthalpy, Entropy, or Gibbs free
energy.
5 If you want to enter reference values and have Aspen Plus
generate entropy and Gibbs free energy data from the enthalpy
or heat capacity data that you enter, you must enter reference
values for two of the three properties. The reference values are
at the same temperature.
8-24 • Physical Property Parameters and Data Aspen Plus 12.1 User Guide
6 To use the Aspen Plus default reference state, do not enter any
data on the Reference Points sheet. However, you must supply
these parameter values for (or they must be available in the
databanks):
• DHFORM, DGFORM, PLXANT
• DHVLWT (or DHVLDP)
The Aspen Plus thermodynamic reference state is the
component's constituent elements in an ideal gas state at 25°C
and 1 atm.
If a simulation has Then
No chemical reactions You can select the reference states
arbitrarily.
Chemical reactions You must select reference states that
include DHFORM for all components
undergoing reaction.
Equilibrium reactions You must select reference states that
include DGFORM for all components
undergoing reaction.
Adjusting Tabular Aspen Plus adjusts vapor-liquid K-values, Gibbs free energies, and
Data or Polynomials entropies for the effect of pressure using the following
for the Effect of relationships:
Pressure
Pref
K (T , P) = K (T , Pref )
P
Pref
s (T , P) = s (T , Pref ) − R ln
P
Pref
g (T , P) = g (T , Pref ) − RT ln
P
Where:
P ref = Reference pressure (the pressure at which the
data was obtained.)
P = Actual system pressure
T = Temperature
K(T,Pref) = K-value at T and the reference pressure
s(T,Pref) = Entropy at T and the reference pressure
g(T,Pref) = Gibbs free energy at T and the reference
pressure
Aspen Plus 12.1 User Guide Physical Property Parameters and Data • 8-25
Requesting Pressure To request pressure adjustment:
Adjustment 1 Go to the Reference Points sheet of the Tabpoly form.
2 Choose the component for which you want to specify the
reference pressure, from the Component list box.
3 In the Pressure box, enter the reference pressure.
For K-values, Aspen Plus makes no adjustment for the pressure
effect, unless you supply the reference pressure. You should
always enter a reference pressure, unless the pressure range of the
simulation matches that of the data.
If you use the Aspen Plus thermodynamic reference state for
entropy and Gibbs free energy, an adjustment for the pressure
effect is always performed using Pref = 101325 N/m2. If you do not
use the Aspen Plus reference state, Aspen Plus adjusts for the
pressure effect only if you supply the reference pressure.
8-26 • Physical Property Parameters and Data Aspen Plus 12.1 User Guide
Ammonia-Water Data Use this data package for ammonia and water. This data package
Package uses the Electrolyte NRTL model.
This data package is applicable from 5 - 250 C with pressure up to
100 bar.
Ethylene Data Use this data package to model Ethylene processes. This data
Package package uses the SR-POLAR equation of state model because of
its versatility in representing both hydrocarbons and polar
components such as water.
Pure component parameters were evaluated using experimental
data for vapor pressure, liquid heat capacity and liquid density.
Binary parameters were evaluated from experimental VLE and
LLE data.
This data package should provide a very good starting point for
building the Ethylene process model. Simulation results can be
improved by regressing missing binary parameters or updating the
existing parameters with the new ones based on latest experimental
data.
Using Electrolyte Aspen Plus provides special data packages (inserts) for amines
Amines Data systems: MDEA, DEA, MEA, DGA and AMP (2-amino-2-
Packages methyl-1-propanol, C4H11NO-1).
These packages allow you to accurately model amines gas treating
processes.
These inserts use the electrolyte capabilities, but also take into
consideration kinetic reactions of CO2 in the liquid phase. The
reaction kinetics can be used in either the RADFRAC or
RATEFRAC distillation models. This modeling approach is
fundamentally sound and has been validated through industrial
applications. These data packages give more accurate results than
those that do not consider kinetics reactions.
The following table shows the range of applications:
System Insert Name Temperature Amines
Concentration
AMP KEAMP 40-100 C 2.47 to 4.44 molal
MDEA KEMDEA 25 - 120 C Up to 50 weight %
DEA KEDEA Up to 140 C Up to 30 weight %
DGA KEDGA Up to 100 C Up to 65 weight %
MEA KEMEA Up to 120 C Up to 50 weight %
Using an Amines Data To use an amines insert:
Package
1 From the File menu, click Import.
2 In the Import dialog box, click the Look In Favorites button.
Aspen Plus 12.1 User Guide Physical Property Parameters and Data • 8-27
3 From the list of favorite folders, select Data Packages.
4 Select the desired data package and click Open.
5 In the Parameter Values dialog box, enter the component IDs
you are using for the amine, CO2 and H2S by first selecting the
Parameter then clicking the Edit Value button.
Make sure that you use the true component approach on the
Properties Specifications Global sheet or the Block Options
Properties sheet of a unit operation model. This is required for
all the amines data packages that use kinetic reactions.
6 If you are using RADFRAC or RATEFRAC, specify one of the
following Reaction IDs on the Reactions form for the model:
Reaction ID For modeling When using this data package
MDEA-CO2 CO2 absorption KEMDEA
MDEA- CO2/H2S KEMDEA
ACID absorption
MEA-CO2 CO2 absorption KEMEA
MEA-ACID CO2/H2S KEMEA
absorption
DEA-CO2 CO2 absorption KEDEA
DEA-ACID CO2/H2S KEDEA
absorption
Flue Gas Treatment Use this data package to model flue-gas purification process. The
Data Package data package uses the Electrolyte NRTL model.
The apparent components are:
H2O, N2, O2, CO2, CO, SO2, SO3, NO, NO2, HCL, HF, HNO3,
HNO2, H2SO4, H2SEO3, HGCL2, HG2CL2, HG, C, SE, SEO2,
HG(OH)2, CASO4*2W, CAF2, CAO, CA(OH)2
The Henry-components are:
CO CO2 SO2 HCL O2 N2 NO HG
Valid temperature range from: 273.15 K to 373.15 K
Formaldehyde- Use this data package to model Formaldehyde-Methanol-Water
Methanol-Water Data system. This system is highly non-ideal because the three
Package components form multiple complexes.
The vapor phase is modeled using the Hayden-O'Connell model.
This model properly accounts for the strong association in the
vapor phase.
The liquid phase is modeled using the UNIFAC model with special
group-group interaction parameters determined from regression of
experimental data. The complexes such as methylene glycol and
hemiformal are formed using the Chemistry reactions.
8-28 • Physical Property Parameters and Data Aspen Plus 12.1 User Guide
Valid temperature range: 0 to 100 C
Mole fraction of Formaldehyde: 0 - 0.6
Pressure: 0 - 3 bar
Glycol Dehydration Use this data package to model natural gas dehydration processes
Data Package using glycols (Ethylene glycol (EG): C2H6O2, Di-ethylene glycol
(DEG): C4H10O3, or Tri-ethylene glycol (TEG): C6H14O4)
The data package uses the Schwartzentruber-Renon equation-of-
state (SR-POLAR) model.
The components included in this package are:
EG, DEG, TEG, WATER, METHANOL, CO2, N2, H2S,
METHANE, ETHANE, PROPANE, N-BUTANE, N-PENTANE,
N-HEXANE, N-HEPTANE, N-OCTANE, N-NONANE, N-
DECANE, BENZENE, TOLUENE, O-XYLENE, ISO-BUTANE,
ISO-PENTANE, ETHYLENE, PROPYLENE
The experimental data used to develop the data package cover very
wide range of temperatures and pressures.
Pitzer Data Packages There are four data packages for calculating mineral solubilities in
water using the Pitzer electrolyte model:
1 PITZ_1: for prediction of mineral solubilities in water at 25 C.
The system is Na-K-Mg-Ca-H-Cl-SO4-OH-HCO3-CO3-CO2-
H2O.
2 PITZ_2: for prediction of mineral solubilities in water for
systems:
Na-K-Ca-Ba-Cl-H2O and Na-Ca-Cl-SO4-H2O.
The apparent components are:
H2O, NACL, KCL, CACL2, ACL2*4H2O, CACL2*6H2O,
BACL2, ACL2*2H2O
Valid temperature range: up to 200 C
Valid pressure: equilibrium to 1 atmosphere
3 PITZ_3: for Na-K-Ca-Cl-SO4-NO3-H2O system
The apparent components are:
H2O, NA2SO4, NACL, NA2SO4*10H2O, NA2CA(SO4)2,
NA4CA(SO4)3*2H2O, NANO3, K2SO4, KCL,
K2CA(SO4)2*H2O, KNO3, CACL2, CASO4, CACL2,
CACL2*6H2O, CASO4*2H2O, 2(CASO4)**H2O,
CACL2*4H2O,CA(NO3)2, CA(NO3)2*4H2O
Valid temperature range: 0 - 250 C
4 PITZ_4 for H2O- NaCl- Na2SO4- KCl- K2SO4- CaCl2-
CaSO4- MgCl2- MgSO4- CaCl2*6H2O- MgCl2*6H2O-
MgCl2*8H2O- MgCl2*12H2O- KMgCl3*6H2O-
Aspen Plus 12.1 User Guide Physical Property Parameters and Data • 8-29
Mg2CaCl6*12H2O- Na2SO4*10H2O- MgSO4*6H2O-
MgSO4*7H2O- K2Mg(SO4)2*6H2O
Valid temperature range : -60 to 25 C
Methyl-amine Data Use this data package to model methyl-amines process. This
Package system is highly non-ideal. The components included are:
ammonia, water, methanol, methyl-amine, dimethylamine and
trimethyl-amine.
The property model used for representing VLE data is the SR-
POLAR equation of state. High pressure VLE data for NH3-H2O
and Methanol-Water were used in the regression. This model is
particularly good for high pressure column. The results may be
improved by adding additional binary parameters for the EOS
based on new VLE data.
Pure component parameters were evaluated using liquid Density,
Heat Capacity and Vapor pressure data.
Using Other The following tables show electrolyte data packages that are
Electrolyte Data available in the ELECINS sub-directory.
Packages
Data Packages Using the This table shows electrolyte data packages, available in the
ELECNRTL Property ELECINS sub-directory, that use the ELECNRTL property
Method method:
Filename Electrolyte System
h2ohc.bkp H2O - HCL (as Henry-comps)
ehno3.bkp H2O - HNO3
enaoh.bkp H2O - NAOH
eso4br.bkp H2O - H2SO4 - HBR
ehbr.bkp H2O - HBR
ehi.bkp H2O - HI
eh2so4.bkp H2O - H2SO4
ehclmg.bkp H2O - HCL - MGCL2
enaohs.bkp H2O - NAOH - SO2
eso4cl.bkp H2O - H2SO4 - HCL
ecauts.bkp H2O - NAOH - NACL - NA2SO4 -
NA2SO4.10H2O -NA2SO4.NAOH -
NA2SO4.NAOH.NACL
ekoh.bkp H2O - KOH
ecaust.bkp H2O - NAOH - NACL - NA2SO4
ehcl.bkp H2O - HCL (as solvent)
ehclle.bkp H2O - HCL (as solvent, recommend for LLE)
edea.bkp H2O - DEA - H2S - CO2
ehotde.bkp H2O - DEA - K2CO3 - H2S - CO2
8-30 • Physical Property Parameters and Data Aspen Plus 12.1 User Guide
Filename Electrolyte System
emea.bkp H2O - MEA - H2S - CO2
ecl2.bkp H2O - CL2 - HCL
enh3co.bkp H2O - NH3 - CO2
enh3so.bkp H2O - NH3 - SO2
esouro.bkp H2O - NH3 - H2S - CO2 - NAOH
edga.bkp H2O - DGA - H2S - CO2
enh3h2.bkp H2O - NH3 - H2S
eamp.bkp H2O - AMP - H2S - CO2
ehotca.bkp H2O - K2CO3 - CO2
enh3hc.bkp H2O - NH3 - HCN
ebrine.bkp H2O - CO2 - H2S - NACL
ebrinx.bkp H2O - CO2 - H2S - NACL (extended Temperature
range)
eclscr.bkp H2O - CL2 - CO2 - HCL - NAOH - NACL -
NA2CO3
ekohx.bkp H2O - KOH (high concentration)
ehf.bkp H2O - HF
ehotcb.bkp H2O - K2CO3 - CO2 - KHCO3
emdea.bkp H2O - MDEA - CO2 - H2S
enh3po.bkp H2O - NH3 - H3PO4 - H2S
esour.bkp H2O - NH3 - H2S - CO2
Data Packages Using the This table shows electrolyte data packages, available in the
SYSOP15M Property ELECINS sub-directory, that use the SYSOP15M property
Method method:
Filename Electrolyte System
brine.bkp H2O - CO2 - H2S - NACL
caust.bkp H2O - NAOH - NACL - NA2SO4
causts.bkp H2O - NAOH - NACL - NA2SO4 -
NA2SO4.10H2O -NA2SO4.NAOH -
NA2SO4.NAOH.NACL
dea.bkp H2O - DEA - H2S - CO2
dga.bkp H2O - DGA - H2S - CO2
h2ohbr.bkp H2O - HBR
h2ohcl.bkp H2O - HCL
h2ohf.bkp H2O - HF
h2ohi.bkp H2O - HI
hotca.bkp H2O - K2CO3 - CO2
hotcb.bkp H2O - K2CO3 - CO2 - KHCO3
hotdea.bkp H2O - DEA - K2CO3 - H2S - CO2
mcl2.bkp H2O - CL2
Aspen Plus 12.1 User Guide Physical Property Parameters and Data • 8-31
Filename Electrolyte System
mdea.bkp H2O - MDEA - H2S - CO2
mea.bkp H2O - MEA - H2S - CO2
mh2so4.bkp H2O - H2SO4
mhbr.bkp H2O - HBR
mhcl.bkp H2O - HCL
mhcl1.bkp H2O - HCL
mhclmg.bkp H2O - HCL - MGCL2
mhf.bkp H2O - HF
mhf2.bkp H2O - HF (to 100% HF)
mhno3.bkp H2O - HNO3
mnaoh.bkp H2O - NAOH
mnaoh1.bkp H2O - NAOH
mso4br.bkp H2O - H2SO4 - HBR
mso4cl.bkp H2O - H2SO4 - HCL
naohso.bkp H2O - NAOH - SO2
nh3co2.bkp H2O - NH3 - CO2
nh3h2s.bkp H2O - NH3 - H2S
nh3hcn.bkp H2O - HCN
nh3po4.bkp H2O - NH3 - H2S - H3PO4
nh3so2.bkp H2O - NH3 - SO2
sour.bkp H2O - NH3 - H2S - CO2
souroh.bkp H2O - NH3 - H2S - CO2 - NAOH
Data Packages Using the This table shows electrolyte data packages, available in the
SYSOP16 Property ELECINS sub-directory, that use the SYSOP16 property method:
Method
Filename Electrolyte System
pnh3co.bkp H2O - NH3 - CO2
pnh3h2.bkp H2O - NH3
pnh3so.bkp H2O - NH3 - SO2
psour.bkp H2O - NH3 - H2S - CO2
8-32 • Physical Property Parameters and Data Aspen Plus 12.1 User Guide
CHAPTER 9
Specifying Streams
Mass-Balance-Only Calculations
If you are performing a mass-balance-only simulation:
1 Double-click the stream in the flowsheet
2 Ensure the Calculate Stream Properties check box on the
Stream Input Flash Options sheet is clear.
3 Enter values for two of the following: Temperature, Pressure,
and Vapor fraction as State Variables on the Stream Input
Specifications sheet.
Aspen Plus does not calculate stream properties in
mass-balance-only simulations.
Creating New Particle You can create one or more new particle size distribution
Size Distributions attributes, in addition to the built-in PSD:
1 From the Data menu, click Setup.
2 In the left pane of the Data Browser, select the Substreams
folder.
3 In the Substreams Object Manager, on the PSD sheet, click
New.
4 In the Create New ID dialog box, enter a PSD ID or accept the
default ID.
5 On the PSD sheet, in the Interval Number column, enter the
number of discrete intervals in the particle size distribution.
You can also select the size units.
6 In the Lower Limit column, specify the lower size limit for
each interval.
Aspen Plus fills in the corresponding upper limit value
automatically.
7 In the Upper Limit column, specify the upper size limit for the
last interval.
8 You must assign the new PSD attribute to a substream class, on
the Setup Substreams Substreams sheet.
For more information on defining a new substream, see Defining
New Substreams and Creating or Modifying Stream Classes.
Separators
The Separator Blocks, Sep and Sep2, combine feed streams and
then split the resulting stream, based on your specifications. When
the details of the separation are unknown or unimportant, you can
use Sep and Sep2 instead of rigorous separation models (such as
distillation or absorption models) to save computational time.
The flash models, Flash2 and Flash3, determine the thermal and
phase conditions of a mixture with one or more inlet streams. You
can generate heating or cooling curve tables for these models.
The flash models represent single stage separators such as knock-
out drums. They perform a phase equilibrium flash calculation
based on your specifications. Adiabatic, isothermal and isobaric
flashes, and dew or bubble points, are among the calculations these
models perform.
In general, to fix the thermodynamic condition of inlet streams,
you must specify a combination of any two of:
• Temperature
• Pressure
• Heat duty
• Molar vapor fraction
Heat Exchangers
All heat exchangers determine the thermal and phase conditions of
a mixture with one or more inlet streams. The heat exchanger
models simulate the performance of heaters or two or multi stream
heat exchangers. You can generate heating or cooling curve tables
for all models described in this topic.
Heater Heater performs these types of single phase or multiphase
calculations:
• Bubble or dew point calculations
• Add or remove any amount of user specified heat duty
• Match degrees of superheating or subcooling
• Determine heating or cooling duty required to achieve a certain
vapor fraction
Heater produces one outlet stream, with an optional water decant
stream. The heat duty specification may be provided by a heat
stream from another block.
You can use Heater to model:
• Heaters or coolers (one side of a heat exchanger)
• Valves when you know the pressure drop
• Pumps and compressors whenever you do not need
work-related results
You can also use Heater to set or change the thermodynamic
condition of a stream.
MHeatX MHeatX represents heat transfer between multiple hot and cold
streams, as in an LNG exchanger. It can also model two-stream
heat exchangers. You can decant free water from any outlet stream.
An MHeatX block is divided into multiple heaters connected by
heat streams. This configuration usually leads to faster flowsheet
convergence.
MHeatX does not use or calculate heat transfer coefficients, but it
can calculate the overall UA for the exchanger and perform a
detailed zone analysis.
HxFlux HxFlux is used to perform heat transfer calculations between a heat
sink and a heat source, using convective heat transfer. The driving
Columns
The models for shortcut distillation are DSTWU, Distl, and
SCFrac.
DSTWU and Distl:
• Are for single columns
• Can perform free-water calculations in the condenser
• Allow you to use water decant streams to decant free water
from the condenser
SCFrac performs shortcut distillation calculations for petroleum
refining units, such as crude units and vacuum towers.
Aspen Plus provides four rigorous multistage separation models:
Model Purpose
RadFrac General vapor-liquid multistage separation
MultiFrac General systems of interlinked multistage
distillation units
PetroFrac Petroleum refining fractionation units
RateFrac Rate-based non-equilibrium separation
Extract is a rigorous model for simulating liquid-liquid extractors.
It is appropriate only for rating calculations.
DSTWU DSTWU performs a Winn-Underwood-Gilliland shortcut design
calculation for a single-feed, two-product distillation column, with
a partial or total condenser. For the specified recovery of the light
Pressure Changers
Pump and compressor models change pressures when
energy-related information, such as power requirement, is needed
or known. Free water can be decanted from the Pump or Compr
products, or from the MCompr intercoolers. For pressure changes
only use other models, such as Heater or Valve.
Pipeline calculates the pressure drop and heat transfer in a pipe
segment or a pipeline. Pipeline can model any number of segments
to describe the pipe geometry.
Pipe calculates the pressure drop and heat transfer for a single pipe
segment with fittings.
Valve rigorously models the pressure drop in control valves.
Pump Pump simulates a pump or hydraulic turbine. This model calculates
either the power requirement or the power produced, given an
outlet pressure specification. Pump can calculate the outlet
pressure, given a power specification.
Compr Compr simulates a:
• Polytropic compressor
• Polytropic positive displacement compressor
• Isentropic compressor
• Isentropic turbine
Compr calculates either the power requirement given an outlet
pressure specification, or the outlet pressure given a power
specification.
MCompr MCompr simulates a:
• Multistage polytropic compressor
• Polytropic positive displacement compressor
• Isentropic compressor
• Isentropic turbine
MCompr has an intercooler between each compression stage. An
aftercooler following the last compression stage is optional. The
coolers can have liquid knockout outlet streams. You can introduce
Manipulators
Stream manipulators modify or change stream variables for
convenience. They do not represent real unit operations.
Mult Mult multiplies streams by a factor you specify. The heat and
material balances are not maintained. The outlet stream has the
same composition and properties as the inlet.
Dupl Dupl copies the inlet stream to any number of outlet streams. This
model does not satisfy material and energy balances. Dupl is useful
for simultaneously processing a given stream in different types of
units.
ClChng ClChng changes the class of streams between blocks and flowsheet
sections. It copies substreams from the inlet stream to the
corresponding substreams of the outlet stream.
Analyzer Analyzer is used to caluclate the values of material stream
component fractions and stream properties for use in the equation-
oriented (EO) simulation and optimization modes of Aspen Plus.
The block has no effect on the stream in the Aspen Plus Run. This
model has one inlet and one outlet material stream. This is a mole
flow-based model.
Solids
This table shows the solids models and what they do:
This model Models
CCD Multistage solids washers that recover dissolved
components from an entrained liquid of a solids stream
CFuge The separation of liquids from solids
Crystallizer A mixed suspension, mixed product removal (MSMPR)
crystallizer.
Crusher Breaking solid particles in a crusher
Cyclone Solids separation from a gas stream
ESP Solids separation from a gas stream
FabFl Solids separation from a gas stream
Filter The separation of liquids from solids
HyCyc The separation of liquids from solids
Screen Separating solid particles in a screen
SWash Solids washers that recover dissolved components from an
entrained liquid of a solids stream
Vscrub Solids separation from a gas stream
Crystallizer Crystallizer models a mixed suspension, mixed product removal
(MSMPR) crystallizer. It performs mass and energy balance
calculations. You have the option of determining the crystal size
distribution.
Crystallizer assumes that the product magma leaves the crystallizer
in equilibrium. The mother liquor in the product magma is
saturated.
User Models
Aspen Plus provides several methods for you to create your own
unit operation models:
• Fortran
• Excel
• COM Models based on the CAPE-OPEN standard
• Exported Aspen Modeler flowsheets (from products such as
Aspen Custom Modeler and Aspen Dynamics)
These models can simulate any unit operation model. For each
type of model, you write your own program or spreadsheet to
Necessary DLLs
If the Aspen Modeler flowsheet uses procedure equations, the
exported DLL will depend on the DLLs containing their
implementation. The flowsheet DLL will not load correctly in
Aspen Plus if these DLLs are not available, so you must copy them
in addition to the flowsheet DLL.
Exported Aspen Dynamics™ simulations depend on the following
DLLs:
• Dynamics.DLL
• Modeler.DLL
• Gpp.DLL
Exported Aspen Custom Modeler simulations which use procedure
calls defined in the modeler.acml library depend on the following
DLLs:
• Modeler.DLL
• Gpp.DLL
Tip: Dynamics.DLL, Modeler.DLL, and Gpp.DLL can be found in
AMSystem 12.1\bin under the AspenTech root installation
directory (default
C:\Program Files\AspenTech ).
When you generate a DLL in an Aspen Modeler application, the
list of DLLs that it depends on is shown in the Simulation
Messages window. If you want to use the exported DLL on a
machine which does not have an Aspen Modeler application
installed, check the list in the Simulation Messages window to
make sure that the correct DLLs are available.
User3 Use a User3 model to access external subroutines (such as
R3HTUA, supplied with Aspen Plus) and Aspen EO models from
the PML model library, when these models are not available as
built-in Aspen Plus models, or when the built-in model does not
contain the EO features required for your simulation.
Hierarchy
Use Hierarchy blocks to provide hierarchical structure to complex
simulations. Also, Hierarchy blocks may be added automatically
when importing user model library templates into a simulation.
Commands for You can control the simulation by using the commands on the Run
Controlling menu, the Simulation Run toolbar, or the Control Panel:
Simulations
To Do this
Start or continue
Click the Start button on the toolbar.
calculations
Pause simulation
Click the Stop button on the toolbar.
calculations
Step through the
Click the SM Step button on the toolbar. You can use the SM Step button to
flowsheet one block at a
step through an SM simulation to the point where you wish to change to EO
time
mode. The SM Step button is unavailable in EO mode because there are no
sequential steps in an EO operation. For EO mode, the SM Step button can be
used to select an initialization point in SM mode before switching to EO mode.
Control how far the SM
Select Solve from the SM Solution Strategy field on the
simulation is converged toolbar to fully solve the simulation in an SM run. Select Single Pass to execute
each block once only in an SM run each time you click the start button. Select
Single Pass: Changed to execute only new blocks and blocks with changed
input. These options are useful for minimizing SM calculations to initialize EO
simulations. For more information, see Running an EO Simulation.
Set stop points in the From the Run menu, click Stop Points.
simulation
Selector Blocks
A Selector block can be used to model alternative simulation
trains. Copy the feed stream to the alternate trains with a Dupl
block, and connect the products of the alternate trains to a Selector
Running an EO Simulation
Running an EO simulation is similar to running an SM simulation.
However, many EO-specific options are available for running an
EO simulation on the control panel. These options are made
available to you when you click the More button at the bottom of
the SM control panel.
Aspen Plus 12.1 User Guide Examining Results and Generating Reports • 12-1
Use the results status indicators, which appear in the Data Browser
to guide you to forms and objects. For a complete list of the status
indicators, see Status Indicators in chapter 1.
Viewing Current You can view the current simulation results after using the Stop or
Simulation Results Step commands. To do this:
1 From the Run menu, click Settings.
2 In the Run Settings dialog box, ensure that the Interactively
Load Results option is cleared.
3 From the Run menu, click Check Results.
Use the results status indicators, which appear in the Data Browser,
to guide you to forms and objects with results.
12-2 • Examining Results and Generating Reports Aspen Plus 12.1 User Guide
Checking the Completion Status of a
Run
Use the Results Summary sheet to examine summary information
about the convergence and completion status of a run. This form
indicates whether the calculations were completed normally.
Aspen Plus 12.1 User Guide Examining Results and Generating Reports • 12-3
Checking Completion The Control Panel displays error, warning and diagnostic messages
Status in the Control from the run.
Panel The number of messages can be controlled globally using the
Setup Specifications Diagnostics sheet or locally using the block
BlockOptions Diagnostics sheet
The messages on the control panel are similar to those printed in
the history file (*.his). The diagnostic level of the history file and
the control panel can be adjusted independently.
If a high level of diagnostics is needed, the diagnostics should be
printed to the history file and not to the control panel. This means
you will not slow down performance by writing a lot of
information to the screen.
Viewing the Control To view the Control Panel, do one of the following:
Panel
From the Select
View menu Control Panel
Simulation Run
toolbar
The Run Messages file (*.cpm) is a text file that includes all of the
messages printed on the control panel. Run Messages files must be
exported from the simulation to be saved.
Checking Completion The History file displays error, warning and diagnostic messages
Status in the History from the run.
File
The number of messages can be controlled globally using the
Setup Specifications Diagnostics sheet or locally using the block
BlockOptions Diagnostics sheet
To check the History file:
• From the View menu, click History.
A history file cannot be directly saved or exported from the
Aspen Plus User Interface. However, the file is saved
automatically when a run is saved as an Aspen Plus document
(*.apw). You can also save the viewed history file using the text
editor.
The history file is similar to the Run Messages file (*.cpm). The
diagnostic level of the history file and the control panel can be
adjusted independently. If a high level of diagnostics is needed,
they should be printed to the history file and not to the control
panel so as to not inhibit performance by writing so much
information to the screen.
12-4 • Examining Results and Generating Reports Aspen Plus 12.1 User Guide
Checking the Convergence Status of
a Run
Design specifications and tear streams both have associated
convergence blocks. The Aspen Plus generated convergence block
names begin with the character "$". User-defined convergence
blocks must not begin with the character "$".
Summary of To see a summary of all of the convergence blocks for a run:
Convergence Block
1 In the left pane of the Data Browser, click Results Summary,
Results
then select Convergence.
2 This table shows which sheets to use for summary information:
Select this sheet For a summary of
DesignSpec Summary The convergence status, final manipulated
variable value, and final errors for all design
specifications in the simulation
Tear Summary The convergence status and final maximum
errors for all tear streams in the simulation
Detailed Convergence To see detailed results for a convergence block and its iteration
Block Results history:
1 From the Data menu, point to Convergence, the click
Convergence.
2 From the Convergence Object Manager, select a convergence
block ID.
3 Click the Edit button.
– or –
4 Double-click a convergence block ID.
5 From the Results form:
Select To see
Summary How tightly each tear variable or manipulated
variable was converged
Spec History The errors at each iteration. You can plot the iteration
history.
Tear History The maximum error at each iteration among all tear
stream variables converged by this block. You can
plot the iteration history.
Max Error/Tol The maximum error divided by the tolerance at each
iteration for all tear streams and design
specifications.
Tear Variables The value at each iteration of all tear stream variables
converged by this block.
Aspen Plus 12.1 User Guide Examining Results and Generating Reports • 12-5
Displaying Stream Results
This table shows how to display stream results:
To display Do this
A single stream 1. Click the stream.
2. Click with the right mouse button on the
stream.
3. From the popup menu that appears, click
Results.
The inlet and outlet 1. Click the block.
streams of a block 2. Click with the right mouse button on the
block.
3. From the popup menu that appears, click
Stream Results.
All streams From the Data Browser, point to Results
Summary, then Streams.
On any Results Summary Streams sheet, click the down arrow in
the Display box to select whether all stream or selected streams are
displayed:
To add a stream to the display on any Results Summary Streams
sheet:
1 Move to a field in the top row of a column.
2 Click the arrow to see a drop down list of streams.
Removing Streams To remove a stream from the flowsheet:
from Flowsheets 1 Click the stream ID.
2 Click the right mouse button.
3 From the popup menu that appears, click Delete Stream.
Displaying Stream This table shows which sheets display which results:
Results from Sheets
12-6 • Examining Results and Generating Reports Aspen Plus 12.1 User Guide
Select this Results To display
Summary Stream
sheet
Work Power results for all or selected work streams in a spreadsheet format
Aspen Plus uses work streams to transfer power to or from pumps or
compressors.
Vol. % Curves The Volume percent curves for all or selected streams.
TBP curve, ASTM D86 curve, ASTM D1160 curve, Vacuum at 10 mmHg curve,
API curve, and Specific gravity curve can be viewed.
Wt. % Curves The Weight percent curves for all or selected streams.
TBP curve, ASTM D86 curve, ASTM D1160 curve, Vacuum at 10 mmHg curve,
API curve, Specific gravity curve, Molecular weight curve, and ASTM D86CRK
curve can be viewed.
Petro. Curves Petroleum property curves for all or selected streams.
Formatting Stream The settings you specify on the Setup ReportOptions Stream sheet
Results determine the contents of the Results Summary Streams Material
sheet. For more information on specifying stream results, see
Customizing the Stream Report.
The table format file (TFF) shown in the Format box of the Stream
Summary sheet determines the format (order, labels, precision, and
other options) of the stream results.
Aspen Plus provides built-in TFFs tailored to each Application
Type. The default is an appropriate TFF for the Application Type
you choose when you create a new run. You can also create your
own TFFs.
Choosing a Table Format To choose a TFF:
File
1 From the Data menu, click Results Summary, then Streams.
2 Click the Material sheet.
3 In the Format box, click the drop down arrow and select a TFF
from the List.
If you are using built-in TFFs, it is recommended that you
select a TFF for your Application Type. For example, if you
are using a Petroleum Application Type, choose a TFF
beginning with PET.
Tip: You can also specify the TFF on the Setup ReportOptions
Streams sheet. Aspen Plus uses the TFF you select for all Stream
Summary sheets you display, until you select another TFF.
Some TFFs filter the calculated stream results. If you want to make
sure you see all calculated properties, select TFF FULL.
Aspen Plus 12.1 User Guide Examining Results and Generating Reports • 12-7
Displaying Heat and To display results for heat and work streams, follow one of these
Work Stream Results procedures:
To display results for Do this
A single stream 1. Click the stream
2. Click the right mouse button and from the
popup menu that appears, click Results.
All streams 1. From the Data Browser, click Results
Summary, then Streams.
2. Click the Heat or Work tab.
Displaying EO To display EO variable results perform one of these procedures:
Variable Results To display results for Do this
A single stream 1. Click the stream.
2. Click the right mouse button and from the
popup menu that appears, click Results.
3. Click EO variables.
A single block 1. Click the block.
2. Click the right mouse button and from the
popup menu that appears, click Results.
3. Click EO variables
12-8 • Examining Results and Generating Reports Aspen Plus 12.1 User Guide
Exporting a Report To save the entire report file from an interactive run:
File 1 From the File menu, click Export.
2 In the Save As Type box, select Report files.
3 Enter a filename. The file can be in any directory other than the
Aspen Plus program directory on the local computer.
4 Select Save to create the report file.
Aspen Plus generates a report automatically during a batch run.
The filename is the Run ID, with the .rep extension. The report file
for a batch run is saved on the computer running the Aspen Plus
simulation engine. If Aspen Plus is running on a remote computer,
the report file is saved on that computer's file system.
For more information on managing files, see chapter 15, Managing
Your Files.
Viewing a Section of To view the entire report or a selected portion of a report in a text
the Report editor:
1 From the View menu, click Report.
2 Select the part of the report that you would like to view:
Select To display
Block The results of a specified unit operation block
Convergence The results of a specified Convergence block
Sensitivity The results of a specified Sensitivity block
Transfer The results of a specified Transfer block
Calculator The results of a specified Calculator block
Streams The results of a specified stream or of all streams
Balance The results of a specified Balance block
Pressure Relief The results of a specified Pressure relief block
Regression The results of a specified Regression block
Simulation The entire Report file
Table Of Table of contents for the report
Contents
Flowsheet Material and energy balance for the flowsheet
Balance
Connecting The connecting streams (feeds and products) for a
Streams selected block
Measurement A detailed report of all measurements and their SM and
EO connections.
Measurement A summary of the EO measurements, including the
Report values and specifications of the Plant and Offset
variables.
3 If necessary, select the ID for the block, stream, or other object.
4 Click Apply to display your selection in the text editor.
Aspen Plus 12.1 User Guide Examining Results and Generating Reports • 12-9
5 Repeat steps 2-4 to display any additional sections of the
report.
6 Click OK.
Tip: Any of the sections of the report can be saved or printed using
the text editor.
Use Copy and Paste to copy results from any sheet into another
Windows program.
12-10 • Examining Results and Generating Reports Aspen Plus 12.1 User Guide
C H A P T E R 13
About Plots
Aspen Plus plots are a useful way of viewing the date from a run.
You can use plots to display:
• Input and results profiles for unit operation blocks
• The results of flowsheeeting options and model analysis tools
such as Sensitivity, Optimization, and Pres-Relief.
There are three steps involved in generating a plot:
1 Displaying the sheet containing the data you want to plot. The
sheet may contain either input or results data.
2 Generating the plot either by:
• Using the Plot Wizard
–or–
• Selecting the dependent, independent, and parametric
variables
3 Customizing the plot appearance.
Generating a Plot by The Plot Wizard is usually the quickest way to generate a plot.
Selecting Variables However, if the plot you are interested in is not available in the
Plot Wizard, you can generate the plot by selecting the
independent, dependent, and parametric variables.
To select variables:
Do This And
Add text to annotate a plot The text can be attached or unattached.
Attach text to a point on a plot The text moves with the point as you zoom in and out and scroll
line through the plot workspace.
Adding Annotations
Additional text, graphics, and tables can be added to your
flowsheets.
For example, this illustration shows annotation turned on to show a
title and a table of stream results.
PFD mode:
Grouping Objects
You can create temporary or permanent groups of text and
graphics objects in your flowsheet.
See this example of a temporary group that includes the text
"Methylcyclohexane Recovery Column" and the Unit Operation
Icon for the column:
You can select a region containing both the objects and flowsheet
blocks and streams. You can move the selected text, graphics, and
Printing
For help on printing, see one of the following topics:
• Specifying your print settings in the Page Setup dialog box
• Viewing the page layout and adjusting the page breaks
You can print the following in Aspen Plus:
• The entire flowsheet
• A section of a flowsheet
• Plots
• Online Documentation and Help
Tip: To print Aspen Plus forms, copy and paste the information to
Microsoft Excel, then print.
Using Page Setup Use Page Setup to control the appearance of printed sheets, paper
size, including margins, orientation, and other printing options.
Aspen Plus uses the Number of Pages setting only when you print
an entire drawing or flowsheet section. Aspen Plus superimposes
the drawing on a page layout. The layout is defined by:
• Number of vertical and horizontal pages
• Page orientation
• Paper size
Disadvantages
Document files (.apw) are not compatible across different versions
of Aspen Plus.
Advantages
For longer simulations, Document files are much quicker to load
into and save from the Aspen Plus User Interface.
Because Document files contain intermediate convergence
information, the run can be started exactly where it was saved.
Intermediate results are especially useful when you save a file
while in the process of trying to converge a large flowsheet.
Saving an Aspen Plus To save an Aspen Plus document after a completed run:
Document
1 On the File menu, click Save As.
2 From the Save as Type list, select Aspen Plus Documents
(*.apw).
3 Choose the directory and filename that you want.
4 Click Save.
When you exit Aspen Plus or open a new run, a dialog box asks if
you want to save the current run. Select Yes to save the run in
Aspen Plus format.
Backup Files (*.bkp) Aspen Plus Backup files contain a compact version of your
Aspen Plus run. They occupy much less disk space than files saved
in Document format, and are thus preferable for long-term storage.
Backup files contain all input specifications and simulation results,
but no intermediate convergence information. If you reopen a
converged run stored as a backup file and rerun the simulation,
Aspen Plus:
Saving a Run
To save a file in Aspen Plus:
1 From the File menu, click Save As.
2 In the Save As dialog box, select the appropriate file type from
the Save as Type list. You can save Document, Backup, and
Template files.
3 Enter a filename. The file can be saved in any directory.
Configuration options are default settings that affect how you use
Aspen Plus. For example, configuration options enable you to
specify:
• Grid and scale settings
• Default Application Template file
• Which binary databanks are used as defaults
For help on customizing your Aspen Plus environment, see one of
the following topics:
• Choosing settings for the current run
• Choosing settings for all runs
• Specifying your default options
• Customizing Application Template files
• Using user model libraries
Aspen Plus 12.1 User Guide Customizing Your Aspen Plus Environment • 16-1
Customizing Settings for All Runs
To create a custom environment for subsequent Aspen Plus runs:
1 Open a blank run.
2 Customize the settings, then exit. You do not need to save the
blank run.
Your customized settings are saved in the Windows registry and
are used for all subsequent runs. If you modify any settings, the
new settings are used in subsequent runs.
Note: Some settings are saved with the simulation. If a setting that
is saved with a simulation differs from the setting in the registry,
the setting that is saved with the simulation will be used for that
simulation; however, subsequent simulations will use the setting
that is in the registry.
Choosing View You can change which elements are visible by using the options on
Options the View menu. Display or hide elements, depending upon what
you need at any given time.
These options are available from the View menu:
Click this option To
Toolbar Select the toolbars that are displayed.
Status Bar Select if the status bar on the main window is displayed.
Model Library Select if the Model Library is displayed.
Control Panel Select if the Control Panel is displayed.
Zoom In Magnify a portion of the drawing on the screen. If a Group or Region has been
selected, the selected region will be expanded to fill the screen. When you zoom in
on a selected region, the portion of the drawing displayed may not be exactly what
you selected, since proportional vertical/horizontal scaling is maintained at all times.
Zoom Out Shrink the drawing on the screen in order to show more of the drawing or to make
room for more blocks or symbols. As you shrink the drawing, text and some symbols
will disappear from the screen due to the screen resolution. These objects are not
deleted, they reappear when you zoom in, and print.
Zoom Full Display the entire drawing as large as possible in the workspace.
Center View Display the selected object in the center of the screen.
Pan Choose a region of the flowsheet to display at the current zoom level.
Bookmarks Create bookmark views or go to a bookmark.
Page Break Preview Select if the page breaks are displayed in the Process Flowsheet window. For more
information see chapter 13.
Reset Page Breaks Reset page breaks you have defined.
Current Section Select if only the current flowsheet section is displayed. For more information on
Only using flowsheet sections see About Flowsheet Sections.
PFD Mode Select whether PFD mode is on or off.
Reset PFD Delete the current PFD mode drawing and create a new one.
16-2 • Customizing Your Aspen Plus Environment Aspen Plus 12.1 User Guide
Click this option To
Global Data Select if global data is displayed for each stream. See Results View Options for
information about how to customize the global data.
Annotation Select if text annotation on the Process Flowsheet window is displayed.
OLE Objects Select if OLE objects are displayed. For more information, see chapter 38.
EO Sync Errors Select if SM to EO synchronization errors are displayed.
Input Summary View the input summary. For more information about the input file, see Input Files
(*.inp).
History View the history file. For more information about the history file, see History Files
(*.his).
Report View a section of the report file. For more information about the report file, see
Generating an Aspen Plus Report File.
Solver Reports View EO Solver Report. View DMO Active Bounds Report.
Prompts Select if prompts are displayed.
Using Toolbars The buttons on a specific toolbars cannot be customized. However,
the toolbars can be viewed, hidden, or moved to another location.
Toolbar settings are not saved with the simulation file. The toolbar
configuration is saved in the registry and will be used for all
subsequent files that are opened in Aspen Plus.
These toolbars are available:
Toolbar Buttons
Standard Standard Windows buttons used for basic operations
New, Open, Save, Cut, Print, Print Preview, Copy, Paste, Help
Data Browser Buttons used to display the next required step, the Data Browser, or one of its various
elements
Simulation Run Buttons used to control the execution of the simulation
Process Flowsheet Buttons used to manipulate the unit operation, graphical or text objects located in the
(PFS) process flowsheet
Dynamic Buttons used for dynamic simulations using Aspen Dynamics
Detherm Buttons used for Detherm application
Section Buttons used to manipulate flowsheet sections
CAPE-OPEN Buttons used to import and export CAPE-OPEN Property Packages
Draw Buttons used to add or modify graphical or text objects
EO Shortcuts Buttons used to perform EO operations and modify EO settings.
Viewing Toolbars You can choose which toolbars are shown in the main window of
Aspen Plus. To do this:
1 From the View menu, click Toolbar.
2 Select the check box of each toolbar you want to view.
Aspen Plus 12.1 User Guide Customizing Your Aspen Plus Environment • 16-3
The toolbars that are checked are those that appear by default.
See Using Toolbars for more information on using the toolbars.
Moving Toolbars Toolbars can be positioned elsewhere in the window. To do this:
1 Click and hold down the mouse button on the edge of the
toolbar you wish to move.
2 Drag the toolbar to the desired location, which can be either:
• On any edge (top, bottom, or sides) of the Aspen Plus
window
• In the center of the window
16-4 • Customizing Your Aspen Plus Environment Aspen Plus 12.1 User Guide
This table shows which tab to use:
To Use this tab
Specify general options such as the default method General
to save documents and if inline Fortran is checked
for syntax errors
Specify the databank search order Component Data
Select what information is included when Global Results View
Data is displayed
Select run options for interactive runs and Run
specifications for a remote server
Specify startup options for a new flowsheet such Startup
as Run Type, application template, and working
directory
Control various naming, display and placement Flowsheet
options on the process flowsheet
Set and display the grid and scale on the process Grid/Scale
flowsheet window
Specify the default fonts, grid style, line style, Plots
marker size, and time stamp components used
when creating plots.
Select if a legend and time stamp are displayed by
default.
Specify line style options for various line types Styles
Enabling error reporting Advanced
Specify default options for opening files from Upward
older versions of Aspen Plus Compatibility
Specify property options Properties
Using the General From the Tools menu, click Options, then click General. The
Tab General tab is used to specify general options related to running
simulations, saving Aspen Plus documents, and making OLE links
between an Aspen Plus run and another application.
The following parameters are available on the Tools Options
General tab:
Use this To Saved with Simulation?
box
Allow run Allow a run only when input is complete Yes
only when Turning off this option allows you to initiate an interactive
input is or batch run even if the status in the toolbar is not Required
complete Input Complete.
This option is primarily for advanced users who are familiar
with keyword input language.
Aspen Plus 12.1 User Guide Customizing Your Aspen Plus Environment • 16-5
Use this To Saved with Simulation?
box
Check Check inline Fortran for syntax errors Yes
inline When this option is checked, basic Fortran syntax error
Fortran for checking is done on all the Fortran and Declarations sheets.
syntax This option sometimes needs to be turned off when
errors advanced Fortran is used.
Accounting Allow a run only when accounting information has been No
information completed.
required to When this option is checked, you are required to specify
complete accounting information on the Setup Specifications
input Accounting sheet. The accounting information includes an
account number, a project ID, a project name, and a user
name. This is stored for the run by the Aspen Plus
Accounting System, if it is active for your installation.
Always Always create backup copy. No
create When this option is checked, an Aspen Plus backup format
backup file (*.bkp) is created whenever an Aspen Plus document file
copy (*.apw) is saved. This is used as an additional backup safety
mechanism. The document file (*.apw) allows you to
quickly restart previously saved simulation, using a binary
file. The backup file (*.bkp) stores the same run information
in a condensed ASCII file.
Save Specify the default method to save documents. No
Aspen Plus Saving documents as document files (*.apw) allows you to
documents quickly restart previously saved simulation, using a binary
as file. Saving as backup files (*.bkp) stores the same run
information in a condensed ASCII file.
Copy Specify what information is included when a cell is copied Yes
buffer into the copy buffer.
format Every variable, when copied for OLE links, occurs with four
attributes: Value, Units, Label, and Basis. You can set the
default attributes here, or you can specify the attributes you
need, from the Edit menu by clicking Copy with Format.
Pro/II Input Select this box to always retain the block data information No
Conversion which Aspen Plus is capable of mapping from the Pro/II
Option input file to Aspen Plus block variables. If this box is
cleared, Aspen Plus only creates the flowsheet and does not
attempt to specify data in blocks.
See also Converting Pro/II Input Files.
Time Specify what information is included on a time stamp and Yes
Stamp whether the time stamp is automatically updated.
The Time Stamp dialog box allows you to modify the
default time stamp information (time, date, username, runid,
and A+ version) for the order of the elements and for which
elements are included in the time stamp. You can also select
whether to have the time stamp aupdate automatically.
16-6 • Customizing Your Aspen Plus Environment Aspen Plus 12.1 User Guide
Using the Component Use the Component Data tab to:
Data Tab • Change the databanks search order
• Choose which databanks are searched
• Copy regression and estimation results onto Parameters forms
• Generate input language using component name or component
alias
Changing Databanks The order in which the pure and binary components databanks are
Search Order searched can be changed using the Tools Options Components
Data dialog box.
To change the pure and binary component databank search order:
1 From the Tools menu, click Options.
2 Click the Component Data tab.
3 In the Searched list, click the databank that you want to
reorder.
4 Click the up or down arrow to reorder the databank.
The databank at the top of the list is searched first. The data found
first for a component or a component pair is the data that is used in
the simulation.
About the Pure This specifies which purecomponent databanks Aspen Plus will
Component Databank search and the search order for all simulations.
Search Order
The order in which the databanks are listed is the order in which
Aspen Plus searches for data. For a specific simulation run, you
may change the list and order on the Components Specifications
Databanks sheet.
About the Binary This specifies which binary parameter databanks Aspen Plus will
Databank Search Order search and the search order for all simulations.
The order in which the databanks are listed is the order in which
Aspen Plus searches for data. These databanks contain:
• Binary parameters for equation of state models.
• Binary parameters for Wilson, NRTL, and UNIQUAC models.
• Henry's law constants.
• Binary and pair parameters for electrolyte NRTL models.
For a specific parameter in a particular run, you may change the
list and order on the Properties Parameters Binary Interaction and
the Properties Parameters Electrolyte Pair folders.
Aspen Plus 12.1 User Guide Customizing Your Aspen Plus Environment • 16-7
Choosing Which To move a databank to the Searched list:
Databanks are Searched 1 Click the databank you wish to move.
2 Click the right arrow to move the databank to the Searched list.
To move all of the databanks at once from one list to the other:
1 Click the appropriate double arrow.
16-8 • Customizing Your Aspen Plus Environment Aspen Plus 12.1 User Guide
For binary data, the ENRTL-RK databank is searched followed by
the VLE-IG, VLE-RK, VLE-HOC, LLE-LIT and LLE-ASPEN
databanks.
Copying Regression and You can retrieve regression or estimation parameter results and
Estimation Results display them on the Parameters forms. To do this:
• On the Components Data tab, check the Copy regression and
estimation results onto Parameters forms box.
The parameters will be used in all subsequent runs.
When this check box is clear, the parameters are available on the
appropriate Physical Properties Parameters form, using the drop
down list, but are not displayed on the forms. The parameters will
not be used in subsequent runs.
Changing Defaults for You can use the Components Data tab to select whether you
Generating Input generate input language using Component name or Component
Language alias.
Use the Formula column (up to 12 characters) or the Component
Name column (up to 32 characters) on the Components
Specifications Selection sheet to generate the COMPONENTS
paragraph in the Aspen Plus input file.
Using the Results The Tools Options Results View tab includes options for
View Tab displaying global results information on the process flowsheet. The
data for the selected options appear on the flowsheet when the
View menu Global Data option is enabled.
The following parameters are available on the Results View tab
Use this box To Saved with simulation?
Output units of Select the units of measure for the global data output. No
measurement
Heat/Work Specify the display of block heat or work variable results Yes
variables (if available) on the flowsheet, when the view global data
menu option is enabled.
Use the Format box to specify the variable format.
Temperature Specify the display of stream temperature results (if Yes
available) on the flowsheet, when the view global data
menu option is enabled.
Use the Format box to specify the variable format.
Pressure Specify the display of stream pressure results (if available) Yes
on the flowsheet, when the view global data menu option is
enabled.
Use the Format box to specify the variable format.
Aspen Plus 12.1 User Guide Customizing Your Aspen Plus Environment • 16-9
Use this box To Saved with simulation?
Vapor fraction Specify the display of stream vapor fraction results (if Yes
available), when the view global data menu option is
enabled.
Use the Format box to specify the variable format.
Duty/Power Specify the display of stream duty or power results (if Yes
available for heat/work streams), when the view global data
menu option is enabled.
Use the Format box to specify the variable format.
Mole flow rate Specify the display of stream molar flow rate results (if Yes
available), when the view global data menu option is
enabled.
Use the Format box to specify the variable format.
Mass flow rate Specify the display of stream mass flow rate results (if Yes
available), when the view global data menu option is
enabled.
Use the Format box to specify the variable format.
Volume flow Specify the display of stream volume flow rate results (if Yes
rate available), when the view global data menu option is
enabled.
Use the Format box to specify the variable format.
Format for Numbers You can control the format of global data on the process flowsheet
window. There are three conversion formats:
• %-xx.yye
• %-xx.yyf
• %-xx.yyg
This table explains the variables:
Variable Explanation
% Percent character. Lead character for format specification.
- Optional minus sign, which left-justifies the number. Without the minus sign, the number
is right-justified.
Xx A digit string specifying a minimum field length for the converted number. The number
takes at least this much space to print, and more if necessary.
Yy A digit string specifying the precision, (that is, the number of digits) to be printed to the
right of the decimal point.
E Number is converted to the form [-]a.bbbbbbbe[+]cc. Length of b is specified by yy
(Default is 6). Use upper case E in the format specification for upper case E in the printed
numbers.
f Number is converted to the form [-]aaa.bbbbbb. Length of b is specified by yy (Default is
6).
G The shorter of %e or %f is used. Use upper case G in the format specification for upper
case G in the printed numbers.
16-10 • Customizing Your Aspen Plus Environment Aspen Plus 12.1 User Guide
The recommended format is %0.f which prints whole numbers.
Other common formats used in stream tables are:
Format Explanation
%10.0f Whole numbers, with no decimal digits or exponents.
%10.nf Numbers without exponents and with n digits to the right of the decimal point, if space
permits. Decimal points line up, unless decimal digits have been eliminated in some
numbers.
Using the Flowsheet Use the Tools Options Flowsheet tab to set various naming,
Tab display, and placement options on the Process Flowsheet.
The following parameters are available on this tab:
Use this box To Saved with simulation
Automatically Assign Have blocks automatically assigned a name Yes
Block Name with Prefix beginning with the specified character string. For
example, if B is entered, the blocks will be named
B1, B2, B3, etc.
When this option is off, Aspen Plus will prompt
you to enter an ID each time a block is created.
Display Block Name Have future block names displayed with the icon Yes
on the Process Flowsheet. To see how to hide or
display the ID for an existing block see Hiding a
Block or Stream ID.
Automatically Assign Have streams automatically assigned a name Yes
Stream Name with Prefix beginning with the specified character string.
When this option is off, then Aspen Plus will
prompt you to enter an ID each time a stream is
created.
Display Stream Name Have future stream names displayed on the Yes
streams in the Process Flowsheet. To see how to
hide or display the ID for an existing stream see
Hiding a Block or Stream ID.
Automatically Place Automatically place blocks when importing a Yes
Blocks When Importing flowsheet
Use this option to specify whether or not
Aspen Plus automatically places any new blocks
when you import an Aspen Plus backup file that
does not contain graphics layout information.
When this option is off, the Unplaced Blocks menu
appears showing blocks that are not in the process
flowsheet. You can later place these blocks
automatically or manually. Blocks and streams
already in the drawing and whose connectivity has
not changed are not affected by this option.
For more information on placing and unplacing
blocks, see Using Place and Unplace to Redraw
the Flowsheet.
Aspen Plus 12.1 User Guide Customizing Your Aspen Plus Environment • 16-11
Use this box To Saved with simulation
Lock Block Spacing Lock the block spacing factor at a specified value. No
Factor at A spacing factor of 2.5 is generally appropriate for
flowsheets drawn with the block icons. For
flowsheets drawn with pictorial icons, a factor of
1.5 is often better.
Label Size Scale Factor Control the size of block and stream IDs for Yes
printing.
When Global Data is on, this factor also controls
the size of the displayed global data values and
legend box.
This is a relative factor. Use a larger value for
larger IDs and global data values. A factor
between 2-3 is generally appropriate when printing
relatively large flowsheets.
Display connection Specify whether to display connection streams on No
streams the flowsheet.
Display measurements Specify whether to display measurements on the No
flowsheet.
You can select to display measurements for: all
blocks and connections, only blocks and single
connections, all blocks while hiding multiple
connections, and all blocks while hiding all
connections.
Using the Grid/Scale Use the Tools Options Grid/Scale tab to set and display the grid
Tab and scale on the process flowsheet window.
The following parameters are available on the Grid/Scale tab:
Use this To Saved with simulation?
box
Show Scale Display a scale at the top and left of the process flowsheet Yes
window
Show Grid Display the grid in the process flowsheet window. The grid Yes
lines can help you position objects, especially graphics and text
objects.
Note For the grid to be displayed, you must be zoomed in
enough for the grid points to be distinguishable.
Snap to Align objects in the process flowsheet window to the grid when No
Grid they are placed, moved, or resized
Grid Size Specify the interval between grid points. Yes
When Snap to grid is on, inserted graphic objects are snapped to
the grid lines.
If you are zoomed in, you may want to decrease the grid
resolution factor to position objects precisely.
The grid sizes to choose from are 0.2, 0.1, 0.05, 0.025, 0.0125
16-12 • Customizing Your Aspen Plus Environment Aspen Plus 12.1 User Guide
Use this To Saved with simulation?
box
Zoom Scale Set the degree for zooming in or out on the process flowsheet. No
Factor Values range from 1.0 to 10.0. A value of 10.0 will zoom out in
greater increments than a value of 1.0.
Scroll Step Set the percentage for scroll bar stepping No
Size Scroll step affects only the scroll bars for the process flowsheet.
A scroll bar step is the amount that the screen scrolls with one mouse click a scroll bar arrow.
Using the Plots Tab Use the Tools Options Plots tab to specify the default fonts, grid
style, line style, and marker size used when creating plots. This tab
is also used to select if a legend and time stamp are displayed by
default.
The following parameters are available on the Tools Options Plots
tab:
Use this To Saved with simulation
box
Default Change the default font for the Title, Axis label, Axis scale, No
Fonts Annotation, and Legend
Grid Style Define the type of grid for the plot. Mesh, Horizontal, Vertical, No
or No grid can be selected.
Line Style Select the line style for the data curves. Lines & markers, Lines, No
or Markers can be selected.
Marker Select the size for the markers. Values from 1-20 can be No
Size selected.
Show Show a legend No
Legend
Show Time Show a time stamp No
Stamp
Aspen Plus 12.1 User Guide Customizing Your Aspen Plus Environment • 16-13
Using the Run Tab Use the Tools Options Run tab to select run options for interactive
runs and specifications for a remote server.
The following parameters are available on the Tools Options Run
tab:
Use this box To Saved with Simulation
Express Run Use Express Run for maximum simulation speed when you run Yes
the Aspen Plus simulation engine on a PC, or interactively on
other platforms.
Express Run turns flowsheet animation off, and changes the
Control Panel (terminal) message levels to 0.
You can change the Control Panel message levels on the Setup
Specifications Diagnostics sheet.
If you change the Control Panel message levels on this sheet, and
then turn on Express Run, Aspen Plus will not save the values you
entered. When you turn Express Run off, all Control Panel
message levels are set to 4.
Interactively Load results only for objects you select in an interactive run Yes
Load Results When Interactively Load Results is off, Aspen Plus loads all
simulation results into the Graphical User Interface at the end of
the simulation.
Interactively Load Results speeds up processing time by only
loading the results you are interested in. It is useful if you run a
simulation several times, but are only interested in the results on a
few particular forms. When Interactively Load Results is on, you
can still load all results using Check Results from the Run menu.
Interactively Load Results only works with the Flowsheet Run
type.
Animate Highlight blocks as they are executed during an interactive run Yes
Flowsheet Turning animation off can sometimes result in a slight increase in
During simulation speed.
Calculations
Edit Keyword Edit the input language file before beginning an interactive run No
Input Before Aspen Plus displays the generated input language file in your
Starting editor before starting interactive calculations. This gives you a
Calculations chance to make small modifications or additions to the file, or to
diagnose problems. These modifications will not be reflected on
the input forms.
This feature is intended for advanced users who are familiar with
keyword input language.
Server Type Specify the Server type for running the Simulation Engine on a No
remote server.
Server Name Specify the name of the remote server. No
Username Specify the Username for the account on the remote server. No
Working Specify the working directory on the remote server. No
Directory
16-14 • Customizing Your Aspen Plus Environment Aspen Plus 12.1 User Guide
Using the Startup Tab Use the Tools Options Startup tab to specify startup options for a
new flowsheet.
The following parameters are available on the Tools Options
Startup tab:
Use this box To
Run Type Select the default startup Run Type.
Application Template Select the default application template
Default Working Directory Select the default working directory for Aspen Plus simulation runs. All new
files will be created in the specified working directory.
This does not affect any existing files that you open - all the run files,
including temporary ones, will be created in the directory where the file is.
Default template directory Select which tab of the Templates dialog box is the default displayed when
selecting a template to use to begin the creation of a new Aspen Plus
simulation.
Favorite working directory
Select which directory the favorites button ( ) jumps to.
More files starts with Select which directory "More Files" starts in when this option is selected
from the initial new/open simulation screen when Aspen Plus is starting up.
Enable forms for layered Enable the forms for Aspen Plus layered products
products The forms for Aspen Dynamics, BatchFrac, RateFrac, Aspen Pinch, and
Polymers Plus can be enabled.
These options are not available for layered products that are not installed.
When the Aspen Pinch checkbox† is selected, Aspen Plus calculates mixture
properties for Aspen Pinch when there are multiple feeds to a block.
Text Editor Select the default text editor
Specify the text editor to use for editing ASCII files that are obtained from
the View Input Summary, History and Report commands from the View
menu.
Print Text File Command Select the command used to print
† When the Aspen Pinch checkbox is selected, Aspen Plus calculates mixture properties when there are multiple
feeds to a block. Then Aspen Pinch will use these mixture properties rather than mixing the streams itself. This
option is useful when you have distillation models with interheaters or intercoolers or feeds to condensers or
reboilers and the heating or cooling curve is non-linear. This option can also be used if there are stream mixing
(flash) problems in Aspen Pinch. The results are available only in the Variable Explorer; they are not included in
the normal simulation results.
Using the Styles Tab Use the Styles tab of the Tools | Options dialog box to set line and
icon styles in Aspen Plus.
For each type of line (material stream, heat stream, work stream,
measurement, and connection) you can choose a color, line style,
and terminator. The terminator is a letter that appears near the end
of the line to indicate its type, such as W for work streams.
You can also choose whether Aspen Plus should use 3D icons for
flowsheet blocks.
Aspen Plus 12.1 User Guide Customizing Your Aspen Plus Environment • 16-15
Using the Advanced Use the Advanced tab to specify advanced options.
Tab When the Enable error reporting checkbox is selected, if Aspen
Plus encounters an unhandled exception, it generates a file which
may be used by Aspen Plus developers to help locate the problem
which caused it.
Click the Restore Defaults button to delete EO registry settings.
These settings will be regenerated from their default values at next
use. The settings cleared include options for EO Variable grids
such as the one on the EO Configuration | EO Variables form,
and for the EO Variables dialog box accessed by clicking in
fields that allow specification of EO variable names.
Using the Upward Use the Upward Compatibility tab to set the default options for
Compatibility Tab opening and importing backup files created with previous versions
of Aspen Plus or created with the Simulation Engine.
You can also specify whether Aspen Plus should display the
Upward Compatibility dialog box when opening such backup files.
Using the Properties Use the Properties tab to set property options.
Tab
You can choose to allow system-defined parameters to be
redefined on the Properties | Advanced | User Parameters |
Specifications sheet as user parameters. A checkbox on that sheet
also allows you to change this option. To do so, you must specify
the correct parameter name, parameter type and number of
elements for the parameter, or else the calculation engine will
ignore your parameter and use the built-in data.
In most cases you will not need this option. You can use it to add
extra data sets for a system parameter. Specify the data on the
Properties | Parameters form for the parameter.
You can also use it to force a system parameter associated with a
property model to be loaded even when the property model is not
used. This may be necessary in some cases if a user Fortran model
needs to access the parameter, but no other calculations use it.
16-16 • Customizing Your Aspen Plus Environment Aspen Plus 12.1 User Guide
Use this option To
Normal Display the Process Flowsheet in a normal window.
The Process Flowsheet window can be moved,
brought to the top and minimized.
Workbook Mode Select if the Windows are displayed using Workbook
mode.
Workbook mode can only be used if Flowsheet as
Wallpaper is off.
Flowsheet as Always keep the flowsheet fully open at the back of
Wallpaper the program window.
Flowsheet as Wallpaper can only be used if
Workbook Mode is off.
Using Workbook Use Workbook mode to help organize all of your open windows.
Mode
In Workbook mode, each window has a tab that appears at the
bottom of the screen. This makes it easy to see which windows are
open.
Tip: You can also select any visible part of a window behind the
current window by clicking it.
Aspen Plus 12.1 User Guide Customizing Your Aspen Plus Environment • 16-17
however, objects or specifications in a template can be deleted if
they are not needed in a simulation.
If you want to customize the stream summary format, you will
need to create or modify a TFF file.
Note: Application Template files are not intended for problem
specifications, such as when you want to save defaults or partial
specifications for a particular process or unit. In such cases, create
a backup file or an insert instead of an Application Template file.
Saving a Template File To save an Aspen Plus template file:
1 From the File menu, select Save As.
2 Select Aspen Plus Templates (*.apt) from the Save as Type list.
3 Select the directory and enter a filename. The file can be in any
directory.
4 Click Save.
Tip: If you save your customized templates in a folder inside the
Templates folder, they will appear as a separate tab on the New
dialog box.
The format for a Aspen Plus template file is the same as for a
backup file; therefore, it is possible to create a template from a
backup file by simply changing the extension from .bkp to .apt.
Importing a Template File To import an Aspen Plus template file:
1 From the File menu, select Import.
2 Select Aspen Plus Template (*.apt) from the Files of Type list.
3 Select the directory and enter a filename. The file can be in any
directory.
4 Click Open.
5 If the Resolve ID Conflict dialog box appears, there are objects
that have the same ID as objects in the current run.
16-18 • Customizing Your Aspen Plus Environment Aspen Plus 12.1 User Guide
These custom templates may be added to a flowsheet in the same
manner as any other block. If a template contains anything besides
a single unit operation model, each instantiation of the model will
appear on the flowsheet within a Hierarchy block. If the custom
template is created with the Multiple Record Custom User Model
option, then a hierarchy block will always be created when a
template is instanced. By default, if you select multiple blocks or
streams and create a template, it will be a Multiple Record
template. When a template is added to the flowsheet, the data is
from the template is copied into the flowsheet, not linked to the
template. Subsequent changes in either the flowsheet or the
template will not affect the other.
You can use user model libraries you have created on other. To do
so, copy the .apm files to the other computers, and on each
computer, use the Library | References command to add the
library.
Note: You cannot directly modify a user model template once you
have created it. To modify the template, you should modify the
simulation it was originally built from and recreate the model.
Also, user model templates are binary files which are not
compatible across different versions of Aspen Plus. For these
reasons, you should save an Aspen Plus backup (.bkp) file
containing the models in your template.
Creating and When working with user model libraries, you may need to perform
Manipulating User the following tasks:
Libraries • Create a new user library
• Change the list of referenced libraries
• Modify the arrangement of models in user libraries
• Check or change the writable status of a user library
• Add or remove categories from the display in the Model
Library
To create a new user 1 Select New from the Library menu.
library: 2 Specify a name for the library in the Display Name field.
3 Specify a filename for the library, and click the Create button.
4 From the Library menu, select the name of the new library,
then Edit. The Model Library Editor for the new library
appears.
5 From the Categories menu, select New, and enter the name for
the tab for the new category. The new tab appears in the Model
Library Editor.
Aspen Plus 12.1 User Guide Customizing Your Aspen Plus Environment • 16-19
To change the list of 1 From the Library menu, select References.
referenced libraries: 2 Select the check boxes for libraries you wish to use, and clear
the check boxes for libraries you do not wish to use.
3 To add a library not displayed, click the Browse button and
select the file containing the library.
4 To reorder the displayed libraries, select the name of a library
you wish to reorder and click either of the Priority buttons.
5 Click OK when done.
6 To save these settings, from the Library menu, select Save
Default.
Tip: Multiple users can share a set of user model templates which
are accessible via a public file server. Each user should perform
this procedure to access the templates.
To modify the From the Library menu, select the name of the library, then Edit.
arrangement of models in The library opens in the Model Library Editor.
user libraries:
Note: The library must be writable in order for you to change it.
• To move a model from one category to another, select the
model, then select Move from the Model menu. Choose the
new category for the model from the dialog box, and click OK.
• To copy a model to another user library, select the model, then
select Copy to User Library from the Model menu. See Adding
Models to User Model Libraries for more information.
• To add a new category, select New from the Category menu,
then enter a name for the new category.
• To delete a category, select its tab, then select Delete from the
Category menu. Any models in that category will be moved to
the Uncategorized category.
• To save a modified user library, from the Library menu, select
the name of the library, then Save.
To check or change the From the Library menu, select the name of the library. In the
writable status of a user submenu, Writable will be checked if the library is currently
library: writable. Select Writable to change the writable status.
To add or remove 1 From the Library menu, select Palette Categories...
categories from the 2 Select the check boxes for categories you wish to display, and
display in the Model clear the check boxes for categories you do not wish to display.
Library:
3 To reorder the displayed categories, select the name of a
category you wish to reorder and click either of the Priority
buttons.
4 Click OK when done.
16-20 • Customizing Your Aspen Plus Environment Aspen Plus 12.1 User Guide
5 To save these settings, from the Library menu, select Save
Default.
Adding Models to To add a new model to a user library:
User Model Libraries 1 Define the blocks, streams, and other items for the new model.
2 Ensure that the library is referenced and writable.
3 Select the model(s) from the process flowsheet to add to the
library.
4 From the Library menu, select Add Block. The User Model
Library Wizard appears. Click Next.
5 If there is more than one writable user library, select one and
click Next. If there is only one writable library, you will not see
this screen.
Aspen Plus 12.1 User Guide Customizing Your Aspen Plus Environment • 16-21
6 Choose a category for the new model. These categories are the
tabs that appear in the Model Library. To create a new
category, click the Create New Category button, enter a name,
and click OK. Select the category and click Next.
16-22 • Customizing Your Aspen Plus Environment Aspen Plus 12.1 User Guide
will be placed inside a Hierarchy block when this model is
added to a flowsheet.
Aspen Plus 12.1 User Guide Customizing Your Aspen Plus Environment • 16-23
9 If you chose to create a single record template, click Finish.
Otherwise, click Next and choose which objects to include in
the new model. You may choose to delete any unwanted items
or to add items which are referenced by items currently
selected. Items with gray boxes may not be included in
templates. Click Finish when done.
10 The new model should appear in its own category in the Model
Library. If you like, you can modify the icon for the model.
16-24 • Customizing Your Aspen Plus Environment Aspen Plus 12.1 User Guide
To add models and 1 Define the blocks, streams, and other items to append to the
streams to a model in a library.
user library incrementally: 2 Ensure that the library is referenced and writable.
3 Select the model(s) from the process flowsheet to add to the
library or select the record from the databrowser and select
Append to Template….
4 The User Model Library Wizard appears. Click Next.
Aspen Plus 12.1 User Guide Customizing Your Aspen Plus Environment • 16-25
6 Choose which objects to include in the new model. You may
choose to delete any unwanted items or to add items which are
referenced by items currently selected. Click Finish when done.
16-26 • Customizing Your Aspen Plus Environment Aspen Plus 12.1 User Guide
Changing Icons for You can add custom icons to the models in user model libraries.
Models in User
Libraries
There are also three special objects which are always pre-defined
in the icon editor. The green cross enclosed in a diamond is used to
indicate the default location for the block name. The two blue
arrows are universal feed and product ports. These ports represent
feed and product ports which are not otherwise specified for the
block. If you cannot locate these objects, from the View menu of
the main Aspen Plus window, select Zoom, then Zoom Full.
When you are satisfied with the icon's appearance, or if you would
like to undo your changes, close the Icon Editor. Aspen Plus will
ask whether to save your changes.
Aspen Plus 12.1 User Guide Customizing Your Aspen Plus Environment • 16-27
16-28 • Customizing Your Aspen Plus Environment Aspen Plus 12.1 User Guide
C H A P T E R 17
Convergence
SM Convergence
This section includes the following topics about convergence:
• Flowsheet recycles and design specifications
• Convergence Options
• Specifying tear streams
• User-defined convergence blocks
• Convergence Methods
• User-defined convergence order
• Specifying the calculation sequence
• Initial guesses
• Flowsheet sequencing
• Checking results
• Control panel messages
• Strategies for flowsheet convergence
Convergence Methods
This topic describes the convergence methods available in
Aspen Plus.
The parameters for each method can be found on the Convergence
ConvOptions Methods form and on the form for the Convergence
block.
Where:
X = Estimate of the tear stream variable
G(X) = Resulting calculated value of the variable
k = Iteration number
The new estimate calculated by Wegstein is:
X k +1 = qX k + (1 − q )G ( X k )
= X k + (1 − q )(G ( X k ) − X k )
Where:
X = Estimate of tear stream variable
G(X) = Resulting calculated value of the variable
k = Iteration number
With direct substitution, convergence is slow but sure. It is
available for those rare cases where other methods may be
unstable. Direct substitution can also make it easy to identify
convergence problems, such as component build-up in the system.
Direct substitution is equivalent to Wegstein with lower
bound=upper bound=0.
Flowsheet Sequencing
The tearing and sequencing of a flowsheet is complex and can
require user input. The following information on interacting with
the Aspen Plus sequencing algorithm is intended for advanced
users. It is recommended that other users accept the default
sequencing.
Aspen Plus initially tears and sequences flowsheets in this
sequence:
1 The information flow (incidence matrix) of unit operation
blocks, Calculator blocks, design specifications, constraints,
optimizations, and cost blocks is collected.
2 Sequences you specify are checked for possible missing tears
and are used to generate a reduced incidence matrix. In the
reduced incidence matrix, subsequences you specify are
collapsed and treated as a single block.
3 The reduced incidence matrix is partitioned into independent
subsystems that can be solved sequentially.
Where:
CV = Convergence block ID
Max Err/Tol = Maximum error/tolerance for the unconverged
variables
> = Symbol indicating nesting level of the
convergence loop (Outside loop)
>> = Loop nested one deep
>>> = Loop nested two deep, and so on
Convergence is achieved when the value of Max Err/Tol becomes
less than 1.0.
Convergence Diagnostics You can modify the diagnostic level for convergence globally on
the Setup Specifications Diagnostics sheet.
Use the Convergence sliders to modify the diagnostic level for
convergence block information in either the control panel and in
the history file. You can also specify the diagnostic level for a
single convergence block using the Diagnostics button on the Input
Parameters sheet for any convergence block.
The default diagnostic level within Aspen Plus is 4. At a
Convergence Diagnostics Level of 4, a message is created in the
Control Panel every time the convergence block executes. This
message contains the following information:
• Convergence block
• Convergence method
• Iteration number
• What the convergence is trying to converge
• Number of unconverged variables
• Maximum error/tolerance for that iteration of the convergence
block
Messages in the history file are similar, but not identical.
At a Convergence Diagnostics Level of 5, Aspen Plus creates a
table of convergence information in the Control Panel for all
unconverged variables.
— Allow for larger acceleration steps. For Wegstein, set Lower bound
of the Wegstein acceleration parameter = -20 on the ConvOptions
Wegstein sheet, or on the Convergence block Wegstein Input
Parameters sheet. If this change speeds convergence, try lower
bound = -50.
Oscillating — For Wegstein, set upper bound to .5 to dampen the oscillations.
convergence
Spec function flat For the Secant method, select Bracket=Yes on the Conv Options
over some range of or Convergence block Parameters sheet, to use interval-halving
the manipulated method.
variable
Err/Tol down to a Nested loops, and Do one of the following:
threshold level, but the convergence • Set a tighter tolerance for the blocks and convergence
no further tolerance of the
blocks in the inner loop, using the Tolerance field for
inner loops is too
loose
these blocks.
• Relax the tolerance for the outside loop.
• Converge the inside and outside loops simultaneously,
using the Broyden or Newton method. Use the Design
Spec Nesting field on the ConvOptions Defaults
Sequencing sheet.
Converged to Non-monotonic 1. For the Secant method, select Bracket=Check bounds on the
variable bound Spec function Conv Options or Convergence block Parameters sheet, to use
interval-halving method.
2. Use Sensitivity study to determine the effect of the
manipulated variable on the spec function. Adjust the bounds on
the manipulated variable, or choose a better initial guess.
100
80
Err/Tol
60
40
20
0
0 5 10 15 20 25 30
Iteration Number
100
80
60
Err/Tol
40
20 Initial
Value
0
Example of Err/Tol Value The Err/Tol value does not change for a design specification,
Not Changing where the temperature of a reactor is being manipulated to control
the conversion in the reactor. A sensitivity analysis shows that the
specification function (conversion) is flat over some range of the
manipulated variable. Specify Yes in the Bracket field on the
Convergence ConvOptions Methods Secant sheet or Secant Input
Parameters sheet for this design specification problem.
80
60
Err/Tol
40
20 Initial
Temp
0
Temp Temperature Temp
Lower Upper
Bound Bound
EO Convergence
Instead of solving each block in sequence, the equation-oriented
(EO) strategy gathers all the model equations together and solves
them at the same time. Although the number of variables and
equations can be very large, EO solves the entire flowsheet
simultaneously without many nested convergence loops and uses
analytical derivatives. As a result, much larger problems can be
solved for the same computational effort.
This strategy is very effective for solving these kinds of problems:
• Highly recycled processes and heat-integrated processes
• Processes with many design specifications
• Process optimization
• Process model tuning through data reconciliation and
parameter estimation
The equation-oriented strategy provides three solvers:
• DMO
• LSSQP
• NSOLVE
DMO and LSSQP implement a variant of the successive quadratic
programming (SQP) algorithm to solve large-scale optimization
problems, by solving a sequence of quadratic programming
subproblems. One important difference between DMO and LSSQP
x∈ R
n Vector of unknown variables
R1 Objective function
xmax ∈ R
n Vector of upper bounds on x
Specifying Active Set The active set is the set of variable bounds that hold with equality
Initialization at any feasible point. The active set initialization procedure in
Parameters DMO provides both efficiency and robustness. It produces a
"warm" start, based on the existing information of a successful
execution. This is very important for applications with a large
number of degrees of freedom (above 100). For such applications,
up to 50% improvement in execution speed has been reported in
addition to improved robustness.
Basic Iteration At each iteration, the following header is printed, showing the
Information iteration number and the value of the objective function:
+----------------+
| Iteration 0 |
+----------------+
Largest Unscaled This section of the EO Solver report shows the largest unscaled
Residuals residuals. A similar section shows the largest scaled residuals. This
section is particularly helpful when the solver has trouble closing
all the residuals, because it points to the largest residual.
Shadow
Index Most Violated UNSCALED Residuals Residual Price
====== ======================================= ============ =============
975 MSMT.T2.BLKEQN_OFFSET -5.06330D-03 3.17244D-03
974 MSMT.T1.BLKEQN_OFFSET -8.05215D-04 5.21167D-04
575 C2S.BLKEQN_PHSEQBL_81_C2H4 1.72885D-05 8.55130D-03
568 C2S.BLKEQN_PHSEQBL_80_C2H4 1.72406D-05 7.37848D-03
561 C2S.BLKEQN_PHSEQBL_79_C2H4 1.63227D-05 6.39407D-03
582 C2S.BLKEQN_PHSEQBL_82_C2H4 1.61711D-05 9.91235D-03
554 C2S.BLKEQN_PHSEQBL_78_C2H4 1.49203D-05 5.59494D-03
589 C2S.BLKEQN_PHSEQBL_83_C2H4 1.38826D-05 1.14612D-02
547 C2S.BLKEQN_PHSEQBL_77_C2H4 1.33611D-05 4.97392D-03
540 C2S.BLKEQN_PHSEQBL_76_C2H4 1.18602D-05 4.52121D-03
Constrained This section of the EO Solver report shows the variables that lie
Variables and on their bounds and reports the variable number, which bound is
Shadow Price active, the variable name, the current value and the shadow price.
The shadow price is also known as the Lagrange multiplier. This is
C2S = 0.69071
Handling Infeasible Infeasible solutions often occur during optimization cases where it
Solutions is not possible to simultaneously solve all the equations while
respecting all the variable bounds. This does not happen in
simulation cases, because DMO ignores bounds in simulation
cases.
If you solve a simulation case that violates a bound, then the
optimization case will start at an infeasible point. In this case, the
following is reported in the EO Solver report:
Information => QP step for variable 1157: C2SDDEF.SPC.MOLEFR.C2H6
was adjusted to satisfy its UPPER bound = 2.0000000E-04
The size of QP step violation was = 2.5673465E-04
By default, this will operate for 10 iterations with a step size of 0.1.
You can use the creep mode Iterations and Step size parameters to
change these values.
The Basic sheet of the EO Convergence DMO Basic form
contains the creep mode parameters.
Variable Bounding By default DMO does not respect bounds during the solution of an
EO Simulation or Parameter-Estimation case. However, you can
impose bounds in a square case by using a different line search
parameter. This is recommended only in cases where there are
truly multiple solutions to a model (e.g. the cubic equation) and
you want to use a bound to eliminate an unwanted solution.
x∈ R
n Vector of unknown variables
R1 Objective function
xmax ∈ R
n Vector of upper bounds on x
Column Description
ITER Iteration number
OBJECTIVE Value of the objective function (sign flipped for maximization).
CVGFV Minimum of maximum scaled and maximum unscaled constraint violations.
CVGXV Relative change to the solution vector.
KTE Kuhn-Tucker error. This is the sum of predicted improvements to the objective
function and the sum of the constraint violations. Convergence is achieved when the
KTE is smaller than the relative optimization convergence tolerance *
max(0.01,|OBJECTIVE|).
STEP Line search step size. A value of 1.0 means the full QP step is accepted by the SQP
algorithm.
In the previous example, the optimization case took full steps
except at iteration 2. Convergence was achieved at iteration 11,
when the reported KTE/STEP was less than the convergence
tolerance.
Here is another output example of a simulation case:
ITER OBJECTIVE CVGFV CVGXV KTE STEP
---- ------------- ------------ ------------ ------------ --------
0 1.0000000E+00 2.178502E+02 2.103637E+01 2.133547E+03 0.500000
Sum of residuals, original: 1225. after trunc corr: 178.5
Sum of residuals, original: 733.0 after trunc corr: 29.39
Sum of residuals, original: 408.7 after trunc corr: 8.791
1 1.0000000E+00 4.159885E+01 4.918471E+00 4.087358E+02 0.500000
Sum of residuals, original: 201.1 after trunc corr: 11.90
Sum of residuals, original: 123.3 after trunc corr: 4.323
2 1.0000000E+00 5.205981E+00 1.769934E+00 7.658213E+01 0.500000
3 1.0000000E+00 6.515141E-01 1.163140E+00 1.072216E+01 0.500000
4 1.0000000E+00 1.953012E-01 7.133331E-02 1.387447E+00 1.000000
5 1.0000000E+00 1.597505E-05 6.530054E-02 1.304687E-03 1.000000
6 1.0000000E+00 2.040595E-10 1.084146E-08 6.420894E-10 1.000000
Constrained This section of the EO Solver report lists the variables that lie on
Variables their bounds. It also includes any independent variables that are on
their bounds. The number of independent variables minus the
number of constrained variables gives the true degrees of freedom
of the problem.
This section reports:
• Variable name
• Current value
• Shadow price
• Which bound is active
Inactive Equations This section of the EO Solver report lists the equations that are
being ignored by the LSSQP solver. Equations can be dropped if
the solver detects a singularity that indicates a redundant equation.
The section reports:
• Equation name
• Both the scaled and unscaled residuals
• Shadow price
For example:
Scaled Unscaled Shadow
Equation Residual Residual Price
=========================== ========== ========== =====
C-152.BLKEQN_PHSEQBL_1_C2H4 1.1358D-21 1.1102D-16 0.0
Largest Scaled This section of the EO Solver report lists the largest scaled
Residuals residuals. The information is particularly helpful when the solver
has trouble closing all the residuals, because it will point to the
largest.
For example:
Scaled Unscaled Shadow
Equation Residual Residual Price
========================== =========== ========== ==========
S75S76.STREQN.PRES_STARFCC -4.11577D-1 -4.11577D-1 0.0
C-152.BLKEQN_TVAPBAL_2 2.26102D-5 2.26102D-5 -2.75083D+1
C-152.BLKEQN_TLIQBAL_1 1.74271D-5 1.74271D-5 -1.51055D-7
C-152.SPCEQN_REFLXFL_MOLE 1.74271D-5 1.74271D-5 -1.51055D-7
C-52.BLKEQN_TVAPBAL_12 1.13277D-5 1.13277D-5 -1.95647D+3
C-52.SPCEQN_TOTVAPF_12 1.13277D-5 1.13277D-5 -1.36513D-7
C-152.BLKEQN_TVAPBAL_3 9.63191D-6 9.63191D-6 -3.56231D+1
C-152.BLKEQN_TVAPBAL_4 7.07905D-6 7.07905D-6 -4.31158D+1
C-52.BLKEQN_TVAPBAL_2 6.66457D-6 6.66457D-6 -2.03781D+2
C-52.SPCEQN_TOTVAPF_2 6.66457D-6 6.66457D-6 6.21243D-8
Line Search When a line search is performed, the EO Solver report includes the
Information following information:
SPGDEL: -206.3993 SUMVLA: 24.52433 DFLSA: -230.9237
FLSA: -143352.2 FLAGA: -143382.7 FOBJ: -143376.7
L.S. 1 ALPHA: 1.000000 FLSN: -132870.4 FOBJ: -143583.1
L.S. SUMVL: 10712.68 LAGF: -143646.8 DFLS: 10481.76
Note that the residual error before and after the truncation
correction is the same. This means that no matter how much the
solver cuts back, the residual error still persists.
To solve this problem, review the LS-SQP report and note which
variables are causing the truncation corrections. For example, the
following report excerpt is related to the residual error problem:
Line search in 1 trials, ALPHA is 1.00000
Adjust D(C2S.SPC.REFL_RATIO_MASS) from 0.11488 to 0.00000E+00
Sum of residuals, original: 2.8143E-02 after trunc corr: 2.8143E-02
Adjust D(C2S.SPC.REFL_RATIO_MASS) from 0.11488 to 0.00000E+00
Sum of residuals, original: 2.8143E-02 after trunc corr: 2.8143E-02
Accessing SM Variables
You access or manipulate flowsheet variables when using the
following Aspen Plus features:
• Design specifications
• Calculator blocks
• Optimization problems
• Data-Fit problems
• Sensitivity blocks
• Case study
For help on flowsheet variables, see one of the following topics:
• Accessing flowsheet variables
• Types of accessible flowsheet variables
• Choosing input and parameter variables
• The layout (or structure) of the vector variable types
Component You can use the Compattr-Vec and PSD-Vec variable types to
Attributes and PSD access component attribute vectors and PSD vectors of streams.
The layout of the vector is the list of elements for the attribute. See
EO Variable Attributes
These are the attributes of an EO variable:
Attribute Description
Index The absolute index of the variable in the full variable list.
Variable The name of the variable, prefixed with the name of any hierarchy blocks. This
is set by the models and cannot be changed.
For more information on EO variable names, see EO Variable Naming
Conventions.
Value The current value of the variable, which is initially determined from the
sequential-modular (SM) run.
Initial The initial value of the variable. This attribute is set just before the solution
begins in the selected run mode.
Change The change in the value of the variable. This attribute is computed just after
the completion of the solution process.
Change = Value – Initial
Units Units of measure (standard Aspen Plus units), based on the physical type of the
variable. Internally, all values are stored in SI units.
Physical type The physical quantity that the variable represents, for example, mole flow,
temperature, or pressure. These types correspond to the standard Aspen Plus
types.
Accessing EO Variables
Before you can access EO variables, you must:
1 Complete a simulation run, using the sequential-modular (SM)
strategy.
2 Synchronize the SM solution of the model to its corresponding
equation-oriented (EO) strategy.
Once the synchronization is complete, you can access EO variables
from the:
• EO Variables form
For example:
NAME = *.ID4.STR.*
3 Click OK.
Any EO variable matching the test conditions now appears in the
EO Variables dialog box. A status message at the bottom of the
box specifies the total number of pattern matches.
Guidelines for Building When building queries in the Query dialog box, consider the
Queries following:
• Use the logical operators AND and OR to build compound
queries. For example:
VALUE < 10
AND
NAME = *.ID2*
• To change the sense of a test condition, precede the condition
with the logical operator NOT. For example:
VALUE < 10
AND
NOT NAME = *.ID2*
• Right-click in the text box to use the standard editing
commands.
• If you select a block in the EO Variables dialog box, the
pattern-matching is constrained to the variables of that block.
EO Aliases
Aliases are user-defined alternate names for EO variables. They
offer a convenient way to refer to an EO variable. The alias has a
40-character limit.
To create an alias for an EO variable:
1 Choose Data | EO Configuration | Aliases from the menu bar.
2 In the Aliases Setup sheet, specify the alias name.
3 In the Open Variable field, click to display the EO
Variables dialog box.
Note: This feature is available once you synchronize the model for
the Equation Oriented solution strategy.
4 Use the EO Variables dialog box to select the EO variable the
alias represents.
Attribute Description
Port type The type of port:
• Material stream (flow basis) — a stream made up of total molar flow,
pressure, specific enthalpy, and component mole flows.
• Material stream (fraction basis) — a stream made up of total molar flow,
temperature, pressure, specific enthalpy, molar volume and component
mole fractions.
• Heat stream — an energy stream.
• Work stream — a power stream.
• Generic collection — a collection of arbitrary variables.
Components Lets you specify the component group for a material stream port. This component
group should contain all the components with non-zero flow rates.
The default is to use the global component group containing all components.
Phase The phase of the material stream port:
• Vapor only
• Liquid only
• Vapor-Liquid (flash required)
• Vapor-Liquid-FreeWater (flash with free water required)
This is used for connection processing when connecting a mole-based stream to a
mole fraction-based stream to determine if a flash is necessary.
Vapor-Liquid and Vapor-Liquid-Free Water may require that a flash be performed
when connecting a mole flow stream to a mole fraction stream.
If unspecified, the phase will be obtained from the upstream conditions.
The Aspen Plus Calculator block lets you insert your own Fortran
statements or Excel 97 spreadsheet calculations into flowsheet
computations. This section describes:
• Calculator blocks
• Using Fortran in Aspen Plus
• Using Fortran in Calculator blocks
• Using Excel in Calculator blocks
• Identifying flowsheet variables
• Entering Fortran statements or Excel formulas
• Specifying when to execute a Calculator block
• Rules for writing Fortran statements
• Writing to the screen and Aspen Plus files
• Interactive data input
• Retaining variables between iterations and blocks
• EO Usage Notes
Aspen Plus 12.1 User Guide Calculator Blocks and In-Line Fortran • 19-1
• Which flowsheet variables are Imported from and Exported to
Aspen Plus by the Calculator block
• The position of the Calculator block in the list of unit operation
blocks
Define a Calculator block by:
1 Creating the Calculator block.
2 Identifying the flowsheet variables that the block samples or
manipulates.
3 Entering the Excel formulas or Fortran statements.
4 Specifying when the Calculator block is executed.
19-2 • Calculator Blocks and In-Line Fortran Aspen Plus 12.1 User Guide
Note: If the Fortran cannot be interpreted, a Fortran compiler is
needed. For the recommended compiler for a given platform, see
the relevant Aspen Plus installation guide.
Aspen Plus 12.1 User Guide Calculator Blocks and In-Line Fortran • 19-3
Define an Excel Calculator block by:
1 Creating the Calculator block.
2 Identifying the flowsheet variables that the block samples or
manipulates.
3 Entering the Excel formulas on the Calculate sheet.
4 Specifying when the Calculator block is executed.
Since the Excel spreadsheet is connected to Aspen Plus through the
user interface, the user interface must be running in order to run an
Aspen Plus simulation containing an Excel Calculator block.
Creating a Calculator To create an Excel Calculator Block:
Block Using Excel 1 From the Data menu, point to Flowsheeting Options, then
Calculator.
2 In the Excel Calculator Object Manager, click New.
3 In the Create New ID dialog box, enter an ID or accept the
default, and click OK.
4 On the Calculate sheet, select Excel.
Now identify the flowsheet variables.
19-4 • Calculator Blocks and In-Line Fortran Aspen Plus 12.1 User Guide
• Be five characters or less for a vector variable
• Start with an alphabetic character (A – Z)
• Have subsequent alphanumeric characters (A – Z, 0 – 9)
• Not begin with IZ or ZZ
In Excel Calculator blocks, variable names must:
• Follow the above limitations on Fortran variable names
• Not be a cell reference, such as A1 or R1C1.
Variable names are not case-sensitive in either Fortran or
Excel. For instance, FLOW and Flow refer to the same
variable.
In Fortran, the first letter of the variable name does not affect
its type (integer or real). The type is determined by the type of
the value being referenced.
3 In the Category frame, use the option button to select the
variable category.
4 In the Reference frame, select the variable type from the list in
the Type field.
Aspen Plus displays the other fields necessary to complete the
variable definition.
5 In the Information Flow frame, select whether the variable is to
be imported from Aspen Plus or exported to Aspen Plus from
the Calculator block. For more information, see Import and
Export Variables.
Export variables in recycle loops may instead be marked as tear
variables to indicate that they should be torn for solving the
loops. For more information, see Converging Loops Introduced
by Calculator Blocks.
6 In Calculator blocks, you can specify additional options used in
EO calculations:
• You can specify the EO variable which is connected to this
calculator variable. If you do not specify this name, it will
be filled in automatically, if possible, when you switch to
the EO solution strategy. See EO Usage Notes for
Calculator.
• You can specify the description of the EO variable in the
calculator block. The EO variable names of calculator
block variables will be blkid.BLK.description, where blkid
is the name of the calculator block and description is the
description provided. If you do not provide a description,
Aspen Plus will assign a unique name to the variable based
on its type.
Aspen Plus 12.1 User Guide Calculator Blocks and In-Line Fortran • 19-5
• If you choose a variable in the parameter category, you can
specify the physical type, units, and initial value of the
variable.
7 Click Close to return to the Define sheet.
For more information on accessing variables, see chapter 18.
Tip: Use the Delete button to quickly delete a variable and all of
the fields used to define it. Use the Edit button to modify the
definition of a variable in the Variable Definition dialog box.
Specifying Calculations
The Calculate sheet lets you enter the calculations to be performed.
Select either Excel or Fortran for specifying these calculations.
Entering Fortran You can enter Fortran statements:
Statements and • On the Calculate sheet
Declarations
• In your text editor (for example, Notepad), and then copy and
paste them onto the Calculate sheet
Click the Fortran Declarations button to enter Fortran declarations
in the Declarations dialog box, in the same way you enter
executable Fortran statements on Calculate sheet.
You can include any Fortran declarations in a Calculator block,
such as:
• Include statements
• COMMON definitions
• DIMENSION definitions
• Data type definitions (INTEGER and REAL)
If a Fortran variable meets one of these criteria, you should place it
in a COMMON:
• It is also used by another block.
• Its value must be retained from one iteration of a Calculator
block to another.
Fortran variables that you defined on the Define sheet should not
be declared in the Declarations dialog box.
Using the Calculate To enter executable Fortran statements on the Calculate sheet:
Sheet to Enter Fortran
1 Click the Calculate tab on the Calculator Input form.
Statements
To review rules and restrictions for in-line Fortran, see Rules
for In-Line Fortran Statements.
2 Enter your Fortran statements.
19-6 • Calculator Blocks and In-Line Fortran Aspen Plus 12.1 User Guide
3 To ensure that you enter accurate variable names, click the
right mouse button. In the popup menu, click Variable List.
The Defined Variable List window appears. You can drag and
drop the variables from the Defined Variable List to the
Calculate sheet.
Entering Excel Use the Excel option on the Calculate sheet to create an Excel
Formulas spreadsheet embedded in your simulation to hold Excel calculation
formulas.
Cells corresponding to defined variables will be outlined in a
colored box. Import variables will be outlined in green, Export
variables will be outlined in blue, and Tear variables will be
outlined in red. If you define any variables on the Define sheet, be
sure to assign those names to cells in Excel.
Do not enter formulas in cells referenced by Import variables;
these cells will be overwritten by the values imported from Aspen
Plus. In other cells on your spreadsheet, enter the formulas
necessary to calculate your results and place them into the cells
assigned to Export variables.
You may use VBA macros to perform some of your calculations or
other tasks, if you wish. Aspen Plus will only read and write values
on the first sheet, and only initiate calculations there, but you may
use additional sheets to store data, or to perform more involved
calculations.
Aspen Plus 12.1 User Guide Calculator Blocks and In-Line Fortran • 19-7
Option When Executed
After After a block. Specify the block type and name.
Last At the end of a simulation
Report While the report is being generated
Based on order in As specified on the Convergence Sequence
sequence Specification sheet
Use Import/Export Aspen Plus uses import and export variables to
Variables automatically sequence the Calculator block.
Import and Export Import Variables and Export Variables are used to establish which
Variables of the variables appearing on the Define sheet are only sampled
variables, and which are changed by the Calculator block.
• Import Variables establish information flow from the block or
stream containing a sampled (read-only) variable to the
Calculator block.
• Export Variables establish information flow from the
Calculator block to Aspen Plus.
• If you specify a variable as a Tear Variable on the Variable
Definition dialog box, that variable is also treated as an Export
Variable.
If the automatic sequencing logic using Import Variables and
Export Variables does not appear to work properly, use the
Execute statement to specify explicitly when the block is executed.
In Excel Calculator blocks, all variables must be specified as
Import or Export Variables.
In equation-oriented mode, Aspen Plus examines user Fortran
statements to determine whether unspecified variables are assigned
a value. Variables assigned a value are treated as export variables,
and other variables are treated as import variables. Aspen Plus also
performs this check in SM if you have specified only Import
Variables or only Export Variables.
You can specify Import Variables and Export Variables in addition
to specifying the execute time on the Sequence sheet. The execute-
time specification will take precedence for sequencing the block in
SM. The Import and Export Variable specifications will apply
when the block is run in EO. Only Calculator blocks with at least
one variable specified as an Import Variable or Export Variable are
run in EO.
19-8 • Calculator Blocks and In-Line Fortran Aspen Plus 12.1 User Guide
Converging Loops Introduced by
Calculator Blocks
A Calculator block can introduce loops that must be solved
iteratively.
For example, a Calculator block can change an upstream variable
based on the value of a downstream variable. This could occur if
the Calculator block was being used to set a makeup stream based
on the product flowrates.
When you define Excel Calculator blocks, you must specify each
variable as an Import or Export variable. Aspen Plus uses these
specifications to automatically solve any loops introduced by the
block.
In Fortran Calculator blocks that create loops, you must specify
Import Variables and Export Variables for Aspen Plus to detect the
loops and produce correct simulation results.
Aspen Plus automatically solves any loops introduced by the
Calculator block, if you:
• Check the Tear Calculator Export Variables on the
Convergence Conv-Options Defaults Sequencing sheet
• Specify Import Variables and Export Variables on the
Calculator block Variable Definition dialog boxes or Sequence
sheet.
When a Calculator block creates a loop, variables entered as
Export Variables can be torn for convergence in the same way as
recycle streams. Aspen Plus can do this automatically, or you can
specify tear variables.
Specifying Export When a Calculator block creates a loop, variables entered as
Variables as Tear Export Variables can be torn for convergence in the same way as
Variables recycle streams. Aspen Plus can do this automatically, or you can
specify tear variables
To specify an Export Variable as a tear variable:
1 On the Calculator form, click the Tears tab.
2 In the Tear Variable Name field, select a variable you entered
in the Export Variable field on the Sequence sheet.
3 Enter lower and upper bounds for the tear variable in the
Lower Bound and Upper Bound fields.
You may also specify a variable as a tear variable when defining it
in the Variable Definition dialog box.
Aspen Plus 12.1 User Guide Calculator Blocks and In-Line Fortran • 19-9
The tear variable will be solved along with recycle tears to
converge the flowsheet. See Convergence, for more information on
flowsheet convergence.
Example of Calculating The mass flow rate of make-up stream MAKEUP is determined by
Make-Up Flow Rate the amount of benzene in the outlet streams from the flowsheet.
The variables are selected using the Variable Definition dialog
box. In order for the simulation to converge correctly, the Tear
Fortran Export Variables needs to be selected on the Convergence
Conv-Options Defaults Sequencing sheet.
19-10 • Calculator Blocks and In-Line Fortran Aspen Plus 12.1 User Guide
On the Calculate sheet, Fortran is selected, and these statements
are entered:
F BMAKE = BZIPA + BZH2O + BZVAP
F MAKEUP = BMAKE / BFRAC
On the Declarations dialog box, this declaration is entered:
F REAL*8 BMAKE
On the Sequence sheet, Use import/export variables is selected for
the execution seqeunce. Also, BZIPA, BZH2O, and BZVAP are
specified as Import variables, and MAKEUP is specified as an
Export variable.
On the Convergence Conv-Options Defaults Sequencing sheet,
Tear Calculator Export Variables is selected.
Example of Feedforward A Fortran block is used to set the feedrate of stream HX2 to equal
Control of Stream 75% of the stream HX1.
Feedrate
Aspen Plus 12.1 User Guide Calculator Blocks and In-Line Fortran • 19-11
On the Calculate sheet, Fortran is selected, and this statement is
entered:
F2 = 0.75 * F1
On the Sequence sheet, Use import/export variables is selected for
the execution sequence. Also, F1 is specified as an Import variable,
and F2 is specified as an Export variable.
19-12 • Calculator Blocks and In-Line Fortran Aspen Plus 12.1 User Guide
Writing to the Screen and Aspen Plus
Files
In Fortran WRITE statements, you can use the following
predefined variables for the unit number:
Unit Destination
NTERM Control Panel (if running from the user interface)
Terminal (if running interactively outside of the user interface), or
Log file (if running batch)
NRPT Aspen Plus report
NHSTRY Simulation history
Examples:
For writing to the Control Panel, enter:
WRITE(NTERM, *) A, B, C, X
For writing to the report file, enter:
WRITE(NRPT, *) A, B, C, X
If writing to the Aspen Plus report from a Fortran Calculator block,
select Report in the Execute field on the Sequence Sheet. Output
written to the report file will appear in the Flowsheet section of the
Calculator block report.
When writing to a user-defined file, use a Fortran unit number
between 50 and 100.
Excel Calculator blocks do not have the ability to write to the
Control Panel or Aspen Plus report or history files, but you may
use VBA macros to display information in dialog boxes.
Aspen Plus 12.1 User Guide Calculator Blocks and In-Line Fortran • 19-13
Example of Interactive A Fortran Calculator block pauses for user input of the temperature
READ from a Fortran for block HX1 before executing the block.
Calculator block The following form defines the variable HX1TEM as the
temperature input specification for block HX1:
19-14 • Calculator Blocks and In-Line Fortran Aspen Plus 12.1 User Guide
About the Interpreter
By default, Aspen Plus will interpret in-line Fortran if it is
possible. Fortran that cannot be interpreted is compiled and linked
into a shared library or dynamic link library (DLL). A Fortran
compiler is needed for compiling the code. It is possible to
compile all of the Fortran by selecting Write Inline Fortran to a
Subroutine to be Compiled and Dynamically Linked on the Setup
SimulationOptions System sheet.
The following Fortran can be interpreted:
• All declarations besides COMMON statements
• Arithmetic expressions and assignment statements
• IF statements
• GOTO statements, except assigned GOTO
• WRITE statements that use the built-in unit number variables
NTERM, NRPT, or NHSTRY
• FORMAT statements
• CONTINUE statements
• DO loops
• Calls to these built-in Fortran functions:
DABS DERF DMIN1 IDINT
DACOS DEXP DMOD MAX0
DASIN DFLOAT DSIN MIN0
DATAN DGAMMA DSINH MOD
DATAN2 DLGAMA DSQRT
DCOS DLOG DTAN
DCOSH DLOG10 DTANH
DCOTAN DMAX1 IABS
You can use the equivalent single precision or generic function
names in your Fortran statements. However, Aspen Plus always
performs double precision calculations, and using the other names
will require compilation.
If you use the following statements, you must enter them on the
Declaration sheet:
• REAL or INTEGER statements
• DOUBLE PRECISION statements
• DIMENSION statements
• COMMON statements
Aspen Plus 12.1 User Guide Calculator Blocks and In-Line Fortran • 19-15
The following statements require compilation:
CALL ENTRY PRINT
CHARACTER EQUIVALENCE RETURN
COMMON IMPLICIT READ
COMPLEX LOGICAL STOP
DATA PARAMETER SUBROUTINE
19-16 • Calculator Blocks and In-Line Fortran Aspen Plus 12.1 User Guide
• Only Calculator blocks which specify at least one variable as
an import variable or export variable are run in EO.
• Calculator block flash specifications are ignored in EO.
• Calculator blocks used in EO mode should not manipulate
outlet stream variables of blocks, or modify accessed variables
(such as in Fortran statements like T=T+10). This type of
manipulation is only appropriate for tear streams in SM
calculations. The variables you are manipulating should have
Constant specifications before the Calculator block is applied.
Execute-time specifications only have meaning for SM
sequencing, and are ignored in EO.
To specify that a calculator block should only be used for SM
initialization calculations, on the EO Options sheet, click
Additional Options, then select Neither; ignore block during EO
solution in the Solution method field.
Aspen Plus 12.1 User Guide Calculator Blocks and In-Line Fortran • 19-17
For import variables, the calculator variable will be the destination
and the block variable will be the source in the EO Connection.
For export variables, the block variable will be the destination and
the calculator variable will be the source.
19-18 • Calculator Blocks and In-Line Fortran Aspen Plus 12.1 User Guide
C H A P T E R 20
Sensitivity
SM Sensitivity
This section explains how to use sequential-modular (SM)
sensitivity analysis to examine the sensitivity of a process to key
variables, including:
• Defining a sensitivity block
• Specifying sampled and manipulated variables
Fortran Declarations
Enter Fortran declarations in the same way as executable Fortran
statements, using the Declarations sheet instead of the Fortran
sheet.
You can include any Fortran declaration in a Sensitivity block,
including:
• COMMON definitions
• DIMENSION definitions
• Data type definitions (INTEGER and REAL)
If a Fortran variable meets one of these criteria, you should place it
in a COMMON:
• It is also used by another block.
• Its value must be retained from one iteration of a sensitivity
block to another.
Fortran variables that you defined on the Define sheet should not
be declared on the Declarations sheet.
SM Design Specs
Use design specifications as feedback controllers in your
simulation. This section describes:
• What are design specifications?
• Creating design specifications
• Specifying targeted variables
• Specifying manipulated variables
• Optional Fortran statements
Aspen Plus 12.1 User Guide Design Specifications: Feedback Control • 21-1
The flowsheet variables used in a design specification are called
sampled variables. For each design specification, you must also
select a block input variable or process feed stream variable to be
adjusted to satisfy the design specification. This variable is called
the manipulated variable.
The design specification achieves its objective by manipulating an
input variable specified by the user. Quantities that are calculated
during the simulation should not be varied directly. For example,
the stream flow rate of a recycle stream cannot be varied; however,
the split fraction of an FSplit block where the recycle stream is an
outlet can be varied. A design specification can only manipulate
the value of one input variable.
Design specifications create loops that must be solved iteratively.
By default Aspen Plus generates and sequences a convergence
block for each design specification. You can override the default
by entering your own convergence specifications.
The value of the manipulated variable that is provided in the
Stream or Block input is used as the initial estimate. Providing a
good estimate for the manipulated variable will help the design
specification converge in fewer iterations. This is especially
important for large flowsheets with several interrelated design
specifications.
The objective of the specification is that it equals the calculated
value (Specified Value - Calculated Value = 0). The specification
can be any valid Fortran expression involving one or more
flowsheet quantities. Specifications must also have a tolerance
within which the objective function relation must be satisfied.
Therefore, the actual equation that must be satisfied is
| Specified Value - Calculated Value | < Tolerance
There are no results associated directly with a specification other
than whether the objective function equation was satisfied or not.
The final value of the manipulated an/or sampled variables can be
viewed directly on the appropriate Stream or Block results sheets.
The summary and iteration history of the Convergence block can
be found by selecting the Results sheet of the appropriate
Convergence block.
21-2 • Design Specifications: Feedback Control Aspen Plus 12.1 User Guide
3 Specifying the target value for a sampled variable or some
function of sampled variables and a tolerance.
4 Identifying a simulation input variable to be adjusted to
achieve the target value, and specifying the limits within which
it can be adjusted.
5 Entering optional Fortran statements.
Creating a Design To create a design specification:
Specification 1 From the Data menu, point to Flowsheeting Options, then
Design Specs.
In the Design Specification Object Manager, click New.
2 In the Create New ID dialog box, enter an ID or accept the
default, and click OK.
Click the Browse buttons and complete the required sheets.
Identifying Sampled Use the Flowsheeting Options Design Spec Define sheet to
Flowsheet Variables identify the flowsheet variables used in the design specification
and assign them variable names. The variable name identifies the
flowsheet variable on other design specification sheets.
Use the Define sheet to identify a flowsheet variable and assign it a
variable name. When completing a Define sheet, specify the
variables on the Variable Definition dialog box. The Define sheet
shows a concise summary of all the accessed variables, but you
cannot modify the variables on the Define sheet.
On the Define sheet:
1 To create a new variable, click the New button.
or
To edit an existing variable, select a variable and click the Edit
button.
2 Type the name of the variable in the Variable Name field. If
you are editing an existing variable and want to change the
variable name, click the right mouse button on the Variable
Name field. On the popup menu, click Rename. A variable
name must:
• Be six characters or less for a scalar variable
• Be five characters or less for a vector variable
• Start with an alphabetic character (A – Z)
• Have subsequent alphanumeric characters (A – Z, 0 – 9)
• Not begin with IZ or ZZ
3 In the Category frame, use the option button to select the
variable category.
Aspen Plus 12.1 User Guide Design Specifications: Feedback Control • 21-3
4 In the Reference frame, select the variable type from the list in
the Type field.
Aspen Plus displays the other fields necessary to complete the
variable definition.
5 In Design Specs, you can specify additional options used in EO
calculations:
• You can specify the EO variable which is connected to this
calculator variable. If you do not specify this name, it will
be filled in automatically, if possible, when you switch to
the EO solution strategy. See EO Usage Notes for Design
Spec.
• You can specify the description of the EO variable in the
calculator block. The EO variable names of design spec
block variables will be blkid.BLK.description, where blkid
is the name of the design spec block and description is the
description provided. If you do not provide a description,
Aspen Plus will assign a unique name to the variable based
on its type.
6 Click Close to return to the Define sheet.
See Accessing Flowsheet Variables for more information on
accessing variables.
Tip: Use the Delete button to quickly delete a variable and all of
the fields used to define it.
Use the Edit button to modify the definition of a variable in the
Variable Definition dialog box.
Entering the Design To enter the design specification:
Specification 1 On the Design Spec form, click the Spec sheet.
2 In the Spec field, enter the target variable or Fortran
expression.
3 In the Target field, specify the target value as a constant or
Fortran expression.
4 In the Tolerance field, enter the specification tolerance as a
constant or Fortran expression.
The design specification is:
Spec expression = Target expression
The design specification is converged when:
– Tolerance < Spec expression – Target expression < Tolerance
If you need to enter more complex Fortran than can be handled in a
single expression, you can enter additional Fortran statements. See
Entering Optional Fortran Statements.
21-4 • Design Specifications: Feedback Control Aspen Plus 12.1 User Guide
Tip: To ensure that you enter accurate variable names, click the
right mouse button on the Spec, Target, or Tolerance field. In the
popup menu, click Variable List. The Defined Variable List
window appears. You can drag and drop the variables from the
Defined Variable List to the Spec sheet.
Identifying the Use the Vary sheet to identify the manipulated variable and specify
Manipulated Variable its limits. The limits for manipulated variables can be constants or
functions of flowsheet variables.
To identify the manipulated variable and specify limits:
1 On the Design Spec form, click the Vary sheet
2 In the Type field, select a variable type.
Aspen Plus takes you to the remaining fields necessary to
uniquely identify the flowsheet variable.
3 In the Lower field, enter a constant or Fortran expression as the
lower limit for the manipulated variable.
4 In the Upper field, enter a constant or Fortran expression as the
upper limit for the manipulated variable.
You must have already entered the manipulated variable as an
input specification, or it must have a default value. The initial
guess used for the manipulated variable is this specification or the
default. You cannot manipulate integer block input variables, such
as the feed location of a distillation column.
If the design specification cannot be met because the solution is
outside the limit range, Aspen Plus chooses the limit that most
closely meets the specification.
You can also specify an EO variable name and description which
is connected to this calculator variable. If you do not specify this
name, it will be filled in automatically, if possible, when you
switch to the EO solution strategy. See EO Usage Notes for Design
Spec.
Entering Optional You have the option of entering any Fortran statements needed to
Fortran Statements compute the design specification terms or manipulated variable
limits. Any variable that is computed by the Fortran statements can
be used in the expressions on the Spec and Vary sheets. Fortran
statements are needed only if the functions involved are too
complex to enter on the Spec and Vary sheets.
You can enter Fortran statements:
• On the Fortran sheet
• In your text editor (for example, Notepad), and then copy and
paste them onto the Fortran sheet
Aspen Plus 12.1 User Guide Design Specifications: Feedback Control • 21-5
Enter Fortran declarations in the same way as executable Fortran
statements, using the Declarations sheet instead of the Fortran
sheet.
You can include any Fortran declarations in a Design Spec block,
such as:
• Include statements
• COMMON definitions
• DIMENSION definitions
• Data type definitions (INTEGER and REAL)
If a Fortran variable meets one of these criteria, you should place it
in a COMMON:
• It is also used by another block.
• Its value must be retained from one iteration of a block to
another.
Fortran variables that you defined on the Specification sheet
should not be declared on the Declarations sheet.
Using the Fortran To enter executable Fortran statements on the Fortran sheet:
Sheet 1 On the Design Spec form, click the Fortran sheet.
2 Use Help to review rules and restrictions for in-line Fortran.
3 Enter your Fortran statements.
To ensure that you enter accurate variable names, click the
right mouse button. In the popup menu, click Variable List.
The Defined Variable List window appears. You can drag and
drop the variables from the Defined Variable List to the Fortran
sheet.
Troubleshooting Design
Specifications
If the objective function was not satisfied, there are a number of
options to consider:
• Check to see that the manipulated variable is not at its lower or
upper bound.
• Verify that a solution exists within the bounds specified for the
manipulated variable, perhaps by performing a sensitivity
analysis.
• Check to ensure that the manipulated variable does indeed
affect the value of the sampled variable.
• Try providing a better starting estimate for the value of the
manipulated variable.
21-6 • Design Specifications: Feedback Control Aspen Plus 12.1 User Guide
• Narrowing the bounds of the manipulated variable or loosening
the tolerance on the objective function might help convergence.
• Try changing the characteristics of the Convergence block
associated with the design specification (step size, number of
iterations, etc.)
• Make sure that the objective function does not have a flat
region within the range of the manipulated variable.
Example for Feedback Manipulate the temperature of RGibbs block REACT to control
Control of Reactor the selectivity of component ESTER versus ETOH at a value of
Selectivity 2.50 ± 0.01. This example assumes that temperature was specified
for block REACT on the RGibbs Setup Specification sheet. The
RGibbs specification becomes the initial estimate for the design
specification.
• The molar flow rate of ESTER and of ETOH in stream PROD
are the sample variables. These variables are called FESTER
and FALC, respectively.
• The design specification is FESTER/FALC = 2.50.
• The design specification is satisfied when |FESTER/FALC -
2.50| < 0.01.
• Fortran expressions such as FESTER/FALC can be used in any
part of the specification expression: the spec, the target or the
tolerance.
• The reactor temperature is the manipulated variable. The
design specification convergence block will find the reactor
temperature that makes FESTER/FALC=2.5.
• The temperature is specified in the reactor block just as if there
were no design specification. The specified value is the initial
estimate used by the design specification convergence block.
• The design specification convergence block will not try a
temperature less than 50F or greater than 150F, even if the
solution to the objective function lies outside this range. The
limits become alternative specifications if the design
specification cannot be achieved. The initial estimate entered in
the reactor block lies within these limits.
• You do not have to specify convergence of the design
specification. Aspen Plus will automatically generate a
convergence block to converge the specification.
Aspen Plus 12.1 User Guide Design Specifications: Feedback Control • 21-7
21-8 • Design Specifications: Feedback Control Aspen Plus 12.1 User Guide
Aspen Plus 12.1 User Guide Design Specifications: Feedback Control • 21-9
Example for Design A design specification designates that the inlet and outlet entropies
Specification with of a Heater block HX1 are equal. The temperature of HX1 is
Variable Tolerance and chosen as the manipulated variable. Temperature limits cannot be
Limits set a priori, but it is known that the isentropic temperature will be
within 75oF of the inlet temperature. The tolerance for the
specification is a function of the entropy.
• The inlet and outlet entropy and the inlet temperature of the
block HX1 are the sample variables. The entropy of the inlet
stream HX1-IN is called SIN. The outlet entropy of the outlet
stream HX1-OUT is called SOUT. The temperature of stream
HX1-IN is called TIN.
• The design specification sets the inlet entropy SOUT equal to
the inlet entropy SIN.
• The tolerance is specified as the variable TOL. TOL is
specified as 0.0001 times the absolute value of the entropy of
the inlet stream SIN on the Design Spec Fortran sheet.
• The design specification is satisfied when |SOUT - SIN| <
TOL.
• The temperature is specified in the Heater block just as if there
were no design specification. The specified value is the initial
estimate used by the design specification convergence block.
• The design specification convergence block will not try a
temperature less than the inlet temperature TIN - 75F or greater
than TIN + 75F, even if the solution to the objective function
lies outside this range. The limits become alternative
specifications if the design specification cannot be achieved.
The initial estimate entered in the reactor block lies within
these limits.
21-10 • Design Specifications: Feedback Control Aspen Plus 12.1 User Guide
• You do not have to specify convergence of the design
specification. Aspen Plus will automatically generate a
convergence block to converge the specification.
Aspen Plus 12.1 User Guide Design Specifications: Feedback Control • 21-11
21-12 • Design Specifications: Feedback Control Aspen Plus 12.1 User Guide
Aspen Plus 12.1 User Guide Design Specifications: Feedback Control • 21-13
Example for Adjusting the The heat of reaction for the hydrogenation of ethylene is known to
Standard Enthalpy of be -32700 cal/mol at 298 K. Aspen Plus predicts a value of -32570.
Formation to Achieve a Since it is possible to access physical property parameters (see
Desired Heat of Reaction Chapter 19, Accessing Variables), a design specification is used to
adjust the Standard Enthalpy of Formation to achieve the desired
heat of reaction.
In Aspen Plus, the heat of reaction is calculated as the difference in
enthalpy of the pure components. Since the Standard Enthalpy of
Formation (pure component parameter DHFORM) is used to
calculate vapor and liquid enthalpies, adjusting DHFORM will
similarly adjust the heat of reaction.
21-14 • Design Specifications: Feedback Control Aspen Plus 12.1 User Guide
Aspen Plus 12.1 User Guide Design Specifications: Feedback Control • 21-15
EO Usage Notes for Design Spec
Design Specs run in EO mode only via the Perturbation layer. By
default, Design-Specs are enabled in EO. To disable a Design-Spec
in EO, on its Input | EO Options sheet set the Solution method to
Ignore block during EO solution. You can also disable them
globally by setting Solution method for Design-Spec to Neither;
ignore block during EO solution on the EO Configuration | EO
Options | Model Type sheet, but the specification for an
individual block takes precedence.
Vector variable specifications in Design-Specs are not supported in
EO.
21-16 • Design Specifications: Feedback Control Aspen Plus 12.1 User Guide
Design Spec. In order for this to work in EO, you must have
specified the mass flow of the stream in SM, or else use a Spec
Group to make the total mass flow variable Constant.
Aspen Plus can now automatically convert all SM block and
stream variables to corresponding EO variables for features that
exist in the EO formulation. Aspen Plus automatically generates
the connection equations for these variables; you do not have to
create them yourself. If you have created such connections as user
connections in Aspen Plus 11.1, you should delete them now.
Otherwise, your system will have inactive connections and will not
run.
For defined variables, the Design Spec variable will be the
destination and the block variable will be the source in the EO
Connection. For manipulated variables, the block variable will be
the destination and the Design Spec variable will be the source.
EO Spec Groups
EO spec groups are essential features in equation-oriented
modeling. A Spec Group allows the user to change the
specification of the problem to answer the question that the
simulation is designed to solve. It is analogous to the spec and vary
of a Design Spec in SM simulation. The main difference is that
while an SM spec and vary requires an additional convergence
loop to solve (guess the value of the vary; calculate the spec; refine
the guess of the vary; repeat), a spec group changes the
specification of variables directly and the solver uses this
specification instead of the original specification to solve.
Examples
An SM flowsheet might change specifications for a distillation
column from "rating mode" to "design mode". That is, spec the top
and bottom composition and vary the reflux and distillate. To do
this in EO, set up a spec group that frees the reflux and distillate
(change the specification to "Calculated") and fixes the top and
Aspen Plus 12.1 User Guide Design Specifications: Feedback Control • 21-17
bottom composition (Changes the specifications to Constant,
Optimized, or Independent).
Another example that is more difficult to do in SM would be to fix
the outlet conditions of a flowsheet and calculate the required feed.
For example you may know (or be controlling) the outlet pressure
of a stream and want to calculate the pressure of the feed. There
may be compressors, flash drums, distillation columns and valves
along the way that would make it difficult to predict the pressure
drops along the way. In EO, you start with an SM specification that
predicts the outlet pressure of each unit operation as a function of
the inlet pressure and the operating conditions of the equipment.
Then you build a spec group that fixes the outlet pressure (makes it
constant) and frees the inlet pressure (makes it calculated). You are
then free to change the outlet pressure to any value that does not
cause impossible operation on any of the equipment in between.
Choosing Variables The important things to consider when making a spec group are:
for a Spec Group • The specifications of the variables
• The physical (mathematical) relationship between the variables
In a typical spec group you will make one calculated variable
constant and one constant variable calculated. This is important
(and required) to keep the math well specified. (It is possible to
make more complex spec groups since you can also add degrees of
freedom.)
It is also important that the variables in a spec group have a
significant relationship between them. If, for example, changing
the temperature of a stream has no effect on the pressure, you can
not arbitrarily fix the pressure and calculate the temperature.
One way of ensuring that variables are related is to perform EO
sensitivity on the variable pairs. If you solve a base case (in EO)
and then specify the variables you want to be calculated (but are
now constant) as independent variables and the variables you wish
to make constant (but are now calculated) as dependent variables
in the EO sensitivity, you can directly see the relationship between
the variables.
If the derivative (gain) of a pair is zero or very small, then there is
little relationship between the variables. If you were to make a spec
group between variables with a zero gain, the EO system of
equations would become singular and the solver would not
converge to a useful answer. If the gain were small but not zero,
then after the spec group was applied, small changes in the
constant variable would cause large changes in the calculated
variable.
21-18 • Design Specifications: Feedback Control Aspen Plus 12.1 User Guide
For example, consider a nearly pure component in a flash at
constant pressure. Changing the vapor fraction has little effect on
the temperature. Fixing the temperature and calculating the vapor
fraction would allow small errors in the temperature to cause large
changes in the vapor fraction.
Creating a Spec To create a spec group:
Group 1 Enter a name for the spec group on the Spec Groups form.
2 Select the spec group and click Edit.
3 In the Define Spec Groups dialog box, enter a description for
the spec group, select the variables, and select their
specifications.
4 Click Close to close the dialog box.
You can use the Spec Groups form in the top-level EO
Configuration form (for spec groups which can span across an
entire flowsheet), the form in a Hierarchy block (for spec groups
limited to variables of that Hierarchy block or blocks and streams
under it), or the form in a single block (for spec groups limited to
variables of that block).
Spec groups are processed in the order that they appear on each
Spec Groups form. Spec Groups within blocks are processed
before Spec Groups in the hierarchy blocks containing them, and
those are processed before the top level EO Configuration form.
When the same variable appears in more than one Spec Group, the
last specification processed for that variable overrides others.
On the Spec Groups form, the Enabled checkbox for each spec
group determines whether that spec group will be applied when
you run the problem. Clear this checkbox to temporarily remove a
Spec Group from your problem.
Modifying a Spec Group To modify a Spec Group, select it on the Spec Groups form and
click Edit. Add a variable to the spec group by specifying its name
in the Variable field of an empty row. To remove a variable from a
spec group, select it in the Define Spec Groups dialog box, click
the right mouse button, then click Delete Row.
Defining Specifications To define specifications for variables in a spec group, choose a
for Variables specification in the User spec field on the Define Spec Groups
dialog box.
Examples
A controller controls the outlet temperature of a reactor by
adjusting the flow of cooling water (using a valve that is not
modeled in the simulation). In the SM flowsheet, the cooling water
Aspen Plus 12.1 User Guide Design Specifications: Feedback Control • 21-19
flow rate is fixed and the reactor outlet temperature is calculated.
This is a "rating mode" type of specification.
To simulate the control system, make a spec group to calculate the
required cooling water flow for a fixed temperature. In the spec
group, fix the outlet temperature by making its specification
Constant.
If this temperature setpoint is important to the economics of the
plant, you may want to optimize it in an EO optimization run. To
do so, set its specification to Optimized.
If there is some error in the measurement, to use the redundancy of
several measurements to determine the most likely actual
operation, perform an EO reconciliation run. To include this
temperature in the data reconciliation problem, make the
specification Reconciled.
If this temperature were to fall into both the category of a
Reconciled variable as well as an Optimized variable, use the
specification Independent. In this case the variable would be a
degree of freedom in both the Reconciliation mode and the
Optimization mode.
Specifying Values for After you have set the specifications for the variables in a spec
Fixed Variables group, any variables that are now Fixed need specified values.
Specify these values on the on the EO Input forms at the level of
the block, hierarchy, or plant. You can specify the variables on any
EO Input form where they are accessible, but usually they should
be specified at the same level as the spec group.
EO Input forms within blocks are processed before the forms in the
hierarchy blocks containing them, and those are processed before
the top level EO Configuration form. When the same variable
appears in more than one EO Input form, the last value set for that
variable overrides others.
In an online application, variables may get new values from the on-
line database. This is configured in Aspen Plus OnLine.
21-20 • Design Specifications: Feedback Control Aspen Plus 12.1 User Guide
C H A P T E R 22
Equation-Oriented Simulation
Net Specification
The net specification of a problem is defined as:
NSPEC = NVAR − NEQN − NFIX – NDOF
Where:
NSPEC Net specification
NVAR Number of variables
NEQN Number of equations
NFIX Number of fixed variables
NDOF Number of degree-of-freedom variables
If the net specification is zero and there are no degree-of-freedom
variables, then the problem is square, and solution can be
attempted by nonlinear equation solvers. If there are degree-of-
freedom variables, they may be used to minimize or maximize an
objective function.
When Aspen Plus initializes EO from an SM simulation, the
problem from SM is square and all the variable specifications are
either Constant or Calculated. The variables that are Constant are
determined by the quantities specified in the input forms.
In both SM and EO, it is often desirable to change which variables
are Constant and which are Calculated. In SM, this is often done
with a Design-Spec. Adding a Design-Spec often introduces an
additional convergence loop to the SM simulation.
In EO, the variable specifications can be changed directly on the
input forms. This is done through Spec Groups. Spec Groups
require that the net specification remains unchanged within the
Spec Group to ensure that the problem remains well defined.
Degrees of freedom for optimization may be created by making a
Constant variable Reconciled, Optimized, or Independent. These
specifications will create degrees of freedom in the Reconciliation
or Optimization modes. The Simulation and Parameter Estimation
modes are square.
EO Variable Specifications
The fundamental difference between the run modes is how the
variables are treated. Variables may be fixed, free or degree of
freedom.
This is referred to as the variable specification. You select how a
variable is to be treated for each mode by changing the variable
specification from among the seven possible specifications. The
variable specification is an attribute of the variable.
The Aspen Plus models define default specifications for all
variables, so you need to enter specifications only for the variables
you wish to change.
Specifications cannot be set arbitrarily, but must obey rules
imposed by degrees of freedom. The specification is a one-word
description of the variable's status in each mode. A summary of the
allowable specifications follows:
Variable Mode
Specification
Smoothing Flash The smoothing formulation utilizes two vapor fractions: one that is
bounded between zero and one, and one that is extended beyond
this range. Only the extended vapor fraction should be fixed. The
solution is not exact near the phase boundaries but accuracy may
be controlled via the EO-option VFrac-Tol.
If the extended vapor fraction is greater than one, the system is
superheated vapor; if less than zero, the system is subcooled liquid.
The magnitude of the value is a measure of the degree of
superheat/subcool. In these cases, the mole fractions of the missing
phase may not sum to unity.
Dew and bubble points may be specified by fixing the extended
vapor fraction variable at one and zero.
In systems with free water, a water fraction variable is created.
This may be less than zero, indicating that the water phase is not
present. If there is no water in the system, the water fraction is -
1.0. The water stream created by this flash has water as the only
component.
In three-phase systems, selection of the L2-comp can improve
robustness. However, there are circumstances where one liquid
phase is missing where the phase behavior cannot be extended
beyond the VLL region. In these cases, the system may fail to
either initialize or converge. Often, the problem will initialize or
converge to a point where both liquid phases are the same and the
problem is singular. Warnings are posted during initialization if
this occurs. At solution time, a closed three-phase flash is executed
to check the EO solution and warnings posted if the EO solution
does not match the closed model solution. If these problems occur,
it is advisable to change the phase declaration from Vapor-liquid-
liquid to Vapor-liquid.
Measurements
Measurements allow the use of process data in a model calculation,
either sequential-modular or equation-oriented. Each measurement
has three variables, whose names include the blockid of the
measurement block and the tag which identifies each
measurement.
• Plant (named blockid.BLK.tag_PLANT)
• Model (named blockid.BLK.tag_MODEL)
• Offset (named blockid.BLK.tag_OFFSET)
These variables are related by an equation: offset = plant – model.
The model variable is related by a connection equation to a unit
operation model open (EO) variable called the source variable. As
a result, the source variable and the model variable always have the
same value. Depending on the mode of operation, either of these
two variables may be used to set the other. A measurement may
also be connected a closed (SM) variable. If this variable is not
specified, the measurement has no effect on the SM solution.
The Measurement model may also be connected to a unit operation
model closed variable. If a closed variable is not specified, the
Measurement model has no effect on the SM solution.
The plant variable is supplied with an initial value from the plant
data, but again depending on the mode of operation, this value may
or may not be retained.
The following figure shows the relationship between the unit
operation model and the measurement model.
Source Connection
Variable equation Model Plant
Offset
equation
Offset
EO Troubleshooting
Case 1: EO problem is not incorporating the results of an SM
design-spec, optimization, or balance block.
Case 2: EO problem is not using data specified on EO Input or EO
Options forms after a reinitialization or change in SM problem
specifications.
EO Troubleshooting: EO problem is not incorporating the results of an SM design-spec,
Case 1 optimization, or balance block.
Cause 1
The SM flowsheet operation is manipulating a stream variable that
is not a feed stream to the process. The specification is overwritten
by the results of another block.
Cause 2
The SM flowsheet operation is manipulating a variable that does
not have a fixed specification in EO.
Solution 2
Either add a spec group to make this variable fixed, or change the
specifications of the SM problem so that the variable manipulated
is specified.
Cause 3
Some input variables cannot be updated by Input Reconciliation,
so the results of the SM flowsheet will not be carried over into EO.
Check the list of Input Reconciliation limitations in online help to
determine whether this is the problem. The variables described
cannot have their input values updated as a result of such
manipulations.
Solution 3
Redesign the flowsheet operation so it does not depending on
manipulating such variables, or set explicit specifications in EO for
the final values of the SM flowsheet manipulation.
EO Troubleshooting: EO problem is not using data specified on EO Input or EO Options
Case 2 forms after a reinitialization or change in SM problem
specifications.
When you perform a reinitialization in an EO problem, you have
four options for the scope of this reinitialization. Some of these
options may not use some EO variable specifications made at the
top level or hierarchy level.
Cause 1
If you choose Reinitialize equation oriented simulation with
changes in configuration, Flowsheet/Hierarchy level EO-Input and
Solution 1
If you want these specifications to always be invoked, specify
them in the EO Input form or the Block Options EO Options
sheet within the block.
Cause 2
If you choose Rebuild equation oriented simulation and reinitialize
with current EO results after an SM input change resulting in the
rebuild of a block, EO Input variable value statements referencing
the block at the hierarchy or flowsheet levels will be overwritten
by the restored variable value vector.
Solution 2
To do other forms of reinitialization, save the variable values in an
external file prior to performing the SM input changes and then
import the saved variable values after the re-initialization is
complete. Use the export ( ) and import ( ) EO variables
buttons on the control panel to export and import these files.
Optimization
This section is about SM optimization. For EO optimization, see
EO Run Modes.
For help on optimization, see one of the following topics:
• About Optimization
• Recommended Procedure for Optimization
• Defining an Optimization Problem
• About Constraints
• Entering Optional Fortran Statements
• Fortran Declarations
• Convergence of Optimization Problems
• Troubleshooting Optimization Problems
About Optimization
Use optimization to maximize or minimize a user-specified
objective function by manipulating decision variables (feed stream,
block input, or other input variables).
The objective function can be any valid Fortran expression
involving one or more flowsheet quantities. The tolerance of the
objective function is the tolerance of the convergence block
associated with the optimization problem.
You have the option of imposing equality or inequality constraints
on the optimization. Equality constraints within an optimization
Aspen Plus 12.1 User Guide Optimization and Data Fit • 23-1
are similar to design specifications. The constraints can be any
function of flowsheet variables computed using Fortran
expressions or in-line Fortran statements. You must specify the
tolerance of the constraint.
Tear streams and the optimization problem can be converged
simultaneously or separately. If they are converged
simultaneously, the tear stream is treated as an additional
constraint.
Convergence of Aspen Plus solves optimization problems iteratively. By default
Optimization Aspen Plus generates and sequences a convergence block for the
Problems optimization problem. You can override the convergence defaults,
by entering convergence specifications on Convergence forms. Use
the SQP and Complex methods to converge optimization
problems.
The value of the manipulated variable that is provided in the
Stream or Block input is used as the initial estimate. Providing a
good estimate for the manipulated variable helps the optimization
problem converge in fewer iterations. This is especially important
for optimization problems with a large number of varied variables
and constraints.
There are no results associated directly with an optimization
problem, except the objective function and the convergence status
of the constraints. You can view the final value of the manipulated
and/or sampled variables either directly on the appropriate Stream
or Block results sheets or summarized on the Results Manipulated
Variables sheet of the convergence block. To find the summary
and iteration history of the convergence block, select the Results
form of the appropriate Convergence block.
23-2 • Optimization and Data Fit Aspen Plus 12.1 User Guide
• You can determine a reasonable range of decision
variables.
• You can get a good estimate for the tear streams.
2 Perform sensitivity analysis before optimization, to find
appropriate decision variables and their ranges.
3 Evaluate the solution using sensitivity analysis, to find out if
the optimum is broad or narrow.
Aspen Plus 12.1 User Guide Optimization and Data Fit • 23-3
1 To create a new variable, click the New button.
or
To edit an existing variable, select a variable and click the Edit
button.
2 Type the name of the variable in the Variable Name field. If
you are editing an existing variable and want to change the
variable name, click the right mouse button on the Variable
Name field. On the popup menu, click Rename. A variable
name must:
• Be six characters or less for a scalar variable
• Be five characters or less for a vector variable
• Start with an alphabetic character (A – Z)
• Have subsequent alphanumeric characters (A – Z, 0 – 9)
• Not begin with IZ or ZZ
3 In the Category frame, use the option button to select the
variable category.
4 In the Reference frame, select the variable type from the list in
the Type field.
Aspen Plus displays the other fields necessary to complete the
variable definition.
5 Click Close to return to the Define sheet.
See Accessing Flowsheet Variables for more information on
accessing variables.
Tip: Use the Delete button to quickly delete a variable and all of
the fields used to define it.
Use the Edit button to modify the definition of a variable in the
Variable Definition dialog box.
Entering the If any constraints are associated with the optimization, define them
Objective Function before you specify the Objective function. For more information,
see Defining Constraints.
To enter the objective function for the optimization problem and
identify the constraints:
1 On the Optimization form, click the Objective & Constraints
tab.
2 Select either Maximize or Minimize.
3 In the Objective Function field, enter the targeted variable or
Fortran expression.
To ensure that you enter accurate variable names, click the
right mouse button. In the popup menu, click Variable List.
The Defined Variable List window appears. You can drag and
23-4 • Optimization and Data Fit Aspen Plus 12.1 User Guide
drop the variables from the Defined Variable List to the
Objective Function field.
4 Select the constraints to be associated with the optimization,
using the arrow buttons to move them from the Available
Constraints list to the Selected Constraints list.
If you need to enter more complex Fortran than can be handled in a
single expression, you can enter additional Fortran statements. For
more information, see Entering Optional Fortran Statements.
Identifying the Use the Vary sheet to identify the manipulated variables and
Manipulated Variable specify their limits. The limits for manipulated variables can be
constants or functions of flowsheet variables.
To identify the manipulated variable and specify limits:
1 On the Optimization form, click the Vary tab.
2 In the Variable Number field, click on the down arrow and
select <new>.
3 In the Type field, select a variable type.
Aspen Plus takes you to the remaining fields necessary to
uniquely identify the flowsheet variable.
4 In the Lower field, enter a constant or Fortran expression as the
lower limit for the manipulated variable.
5 In the Upper field, enter a constant or Fortran expression as the
upper limit for the manipulated variable.
6 You can label the decision variables for the report and the
Results form. Use the Line 1 to Line 4 fields to define these
labels.
7 Repeat steps 2 though 6 until you identify all manipulated
variables.
You must have already entered the manipulated variable as an
input specification, or it must have a default value. The initial
guess used for the manipulated variable is either this specification
or the default. You cannot manipulate integer block input
variables, such as the feed location of a distillation column.
About Constraints
You can choose to specify equality and inequality constraints for
optimization problems. Equality constraints are the same as design
specifications in non-optimization problems. Supply an ID for each
constraint you define. Constraint IDs identify constraints on the
Optimization sheets.
Defining Constraints Define a constraint by:
Aspen Plus 12.1 User Guide Optimization and Data Fit • 23-5
1 Creating the constraint.
2 Identifying the sampled flowsheet variables used in the
constraint.
3 Specifying the constraint expression.
4 Ensuring the constraint has been selected on the Optimization
Objective & Constraints sheet.
Creating Constraints To create a constraint problem:
1 From the Data menu, point to Model Analysis Tools, then
Constraint.
2 In the Constraint Object Manager, click New.
3 In the Create New ID dialog box, enter an ID (or accept the
default ID) and click OK.
Identifying Sampled Use the ModelAnalysis Constraint Define sheet to identify the
Flowsheet Variables flowsheet variables used in the optimization problem and assign
for Constraints them variable names. The variable name identifies the flowsheet
variable that you can use on the Spec and Fortran sheets.
Use the Define sheet to identify a flowsheet variable and assign it a
variable name. When completing a Define sheet, specify the
variables on the Variable Definition dialog box. The Define sheet
shows a concise summary of all the accessed variables, but you
cannot modify the variables on the Define sheet.
On the Define sheet:
1 To create a new variable, click the New button.
or
To edit an existing variable, select a variable and click the Edit
button.
2 Type the name of the variable in the Variable Name field. If
you are editing an existing variable and want to change the
variable name, click the right mouse button on the Variable
Name field. On the popup menu, click Rename. A variable
name must:
• Be six characters or less for a scalar variable
• Be five characters or less for a vector variable
• Start with an alphabetic character (A – Z)
• Have subsequent alphanumeric characters (A – Z, 0 – 9)
• Not begin with IZ or ZZ
3 In the Category frame, use the option button to select the
variable category.
4 In the Reference frame, select the variable type from the list in
the Type field.
23-6 • Optimization and Data Fit Aspen Plus 12.1 User Guide
Aspen Plus displays the other fields necessary to complete the
variable definition.
5 Click Close to return to the Define sheet.
See Accessing Flowsheet Variables for more information on
accessing variables.
Tip: Use the Delete button to quickly delete a variable and all of
the fields used to define it.
Use the Edit button to modify the definition of a variable in the
Variable Definition dialog box.
Specifying the You need to specify the constraint as a function of the sampled
Constraint variable and supply a tolerance on the constraint.
Expression
Constraint functions are defined as follows:
• For equality constraints:
-tolerance < expression1 - expression2 < tolerance
• For less than or equal to inequality constraints:
expression1 - expression2 < tolerance
• For greater than or equal to inequality constraints:
expression1 - expression2 > tolerance
To specify a constraint:
1 On the Constraint form, click the Spec tab.
2 In the two Constraint expression specification fields, enter
expression1 and expression2, as constants or Fortran
expressions.
To ensure that you enter accurate variable names, click the
right mouse button. In the popup menu, click Variable List.
The Defined Variable List window appears. You can drag and
drop the variables from the Defined Variable List to the fields
on the Spec form.
3 Select Equal to, Less than or equal to, or Greater than or equal
to, for the specification.
4 In the Tolerance field, enter the constraint tolerance as a
constant or as a Fortran expression.
5 If the constraint is a vector, check the This is a Vector
Constraint box, and specify the elements of the vector that
should be used.
If you need to enter more complex Fortran than can be handled in a
single expression, you can enter additional Fortran statements on
the Constraint Fortran sheet. See Optional Fortran Statements.
Aspen Plus 12.1 User Guide Optimization and Data Fit • 23-7
Entering Optional Fortran Statements
You have the option of entering any Fortran statements needed to
compute the optimization objective function terms or manipulated
variable limits. Any variable computed by the Fortran statements
can be used in the expressions on the following sheets:
• Optimization Objective & Constraint
• Optimization Vary
• Constraint Spec
Fortran statements are needed only if the functions involved are
too complex to enter on these sheets.
You can enter Fortran statements:
• On the Fortran sheet
• In your text editor (for example, Notepad), and then copy and
paste them onto the Fortran sheet.
Using the Fortran To enter executable Fortran statements on the Fortran sheet:
Sheet 1 On the Optimization or Constraint form, click the Fortran tab.
2 Review the rules and restrictions for in-line Fortran
3 Enter your Fortran statements.
To ensure that you enter accurate variable names, click the
right mouse button. In the popup menu, click Variable List.
The Defined Variable List window appears. You can drag and
drop the variables from the Defined Variable List to the Fortran
sheet.
Fortran Declarations
You enter Fortran declarations in the same way as executable
Fortran statements, using the Declarations sheet instead of the
Fortran sheet.
You can include any Fortran declarations in an optimization
problem, including:
• COMMON definitions
• DIMENSION definitions
• Data type definitions (INTEGER and REAL)
If a Fortran variable meets one of these criteria, you should place it
in a COMMON:
• It is also used by another block.
• Its value must be retained from one iteration of an optimization
problem to another.
23-8 • Optimization and Data Fit Aspen Plus 12.1 User Guide
Fortran variables that you defined on the Define sheet should not
be declared on the Declarations sheet.
Convergence of Optimization
Problems
Algorithms for solving process optimization problems can be
divided into two categories:
Path Method Information
Feasible Requires that tear streams and equality
constraints (design specifications), if any, be
converged at each iteration of the optimization.
Infeasible Can converge tear streams, equality constraints,
and inequality constraints simultaneously with
the optimization problem.
Two optimization algorithms are available in Aspen Plus:
• The COMPLEX method
• The SQP method
COMPLEX Method The COMPLEX method uses the well-known Complex algorithm,
a feasible path "black-box" pattern search. The method can handle
inequality constraints and bounds on decision variables. Equality
constraints must be handled as design specifications. You must use
separate convergence blocks to converge any tear streams or
design specifications.
The COMPLEX method frequently takes many iterations to
converge, but does not require numerical derivatives. It has been
widely used for all kinds of optimization applications for many
years, and offers a well-established and reliable option for
optimization convergence.
Sequential Quadratic The SQP method is a state-of-the-art, quasi-Newton nonlinear
Programming (SQP) programming algorithm. It can converge tear streams, equality
Method constraints, and inequality constraints simultaneously with the
optimization problem. The SQP method usually converges in only
a few iterations but requires numerical derivatives for all decision
and tear variables at each iteration.
The SQP method as implemented in Aspen Plus includes a novel
feature: the tear streams can be partially converged using
Wegstein, each optimization iteration and during line searches.
This usually stabilizes convergence, and can reduce the overall
number of iterations.
You can specify the number of Wegstein passes. Choosing a large
value effectively makes SQP a feasible path (but not a black-box)
Aspen Plus 12.1 User Guide Optimization and Data Fit • 23-9
method. The Aspen Plus default is to perform three Wegstein
passes.
You can also use the SQP method as a black-box or partial black-
box method, by converging tear streams and design specifications
as an inside loop to the optimization problem (using separate
Convergence blocks). This reduces the number of decision
variables. The trade-off is the number of derivative evaluations,
versus the time required per derivative evaluation. Whether SQP is
the method of choice depends on your optimization problem.
The default optimization convergence procedure in Aspen Plus is
to converge tear streams and the optimization problem
simultaneously, using the SQP method.
Troubleshooting Optimization
Problems
The convergence of an optimization problem can be sensitive to
the initial values of the manipulated variables. The optimization
algorithm only finds local maxima and minima in the objective
function. Although it occurs rarely it is possible to obtain a
different maximum or minimum in the objective function by
starting at a different point in the solution space.
When an objective function is not satisfied, there are a number of
options to consider:
1 Make sure the objective function does not have a flat region
within the range of a manipulated variable. Avoid the use of
objective functions and constraints that contain discontinuities.
2 Linearize the constraints to the extent possible.
3 If the error improves initially, but then levels off, the
derivatives calculated are sensitive to step size. Some things to
try are:
• Tighten tolerances of unit operation and convergence
blocks within the optimization convergence loop. The
optimization tolerance should be equal to the square root of
the block tolerances. For example, if the optimization
tolerance is 10-3, then the block tolerances should be 10-6.
• Adjust the step size for better accuracy. The step size
should be equal to the square root of the inner tolerances.
• Check to see that the manipulated variable is not at its
lower or upper bound.
• Disable the Use Results from Previous Convergence Pass
option on the BlockOptions SimulationOptions sheet for
23-10 • Optimization and Data Fit Aspen Plus 12.1 User Guide
blocks within the optimization convergence loop. You can
also specify this globally on the Setup SimulationOptions
Calculations sheet
4 Check to ensure that the manipulated variables affect the value
of the objective function and/or the constraints, perhaps by
performing a sensitivity analysis.
5 Provide a better starting estimate for the values of the
manipulated variables.
6 Narrowing the bounds of the manipulated variables or
loosening the tolerance on the objective function might help
convergence.
7 Modify the parameters of the convergence block associated
with the optimization (step size, number of iterations, etc.)
Example for Maximizing The value of a reactor product stream is a function of the flow rate
Product Value of the desired product, P, and the undesired byproduct, G.
Value = P - 30 * G
Optimization is used to find the reaction temperature that
maximizes the product value.
• The molar flow rate of components P and G in stream PROD
are the sampled variables for the optimization. These variables
are called P and G, respectively.
• The optimization objective function is ( P - 30*G ).
• You can use Fortran expressions, such as ( P - 30*G ) in any
part of the optimization problem.
• The reactor temperature is the manipulated variable. The
optimization convergence block finds the reactor temperature
that makes ( P - 30*G ) a maximum.
• The manipulated variable is specified in the reactor block, just
as if there were no optimization. The specified value is the
initial estimate used by the optimization convergence block.
• The optimization convergence block will not try a temperature
less than 300F or greater than 400F, even if the maximum of
the objective function lies outside this range.
• You do not have to specify convergence of the optimization.
Aspen Plus automatically generates a convergence block to
converge the optimization.
• This optimization problem does not have any constraints
associated with it.
Aspen Plus 12.1 User Guide Optimization and Data Fit • 23-11
23-12 • Optimization and Data Fit Aspen Plus 12.1 User Guide
Aspen Plus 12.1 User Guide Optimization and Data Fit • 23-13
Example for Maximizing The value of a process is calculated as the value of the product and
Operating Margin the byproduct, minus the cost of the raw material, and minus the
cost of steam for the reactor. The Fortran sheet is used to calculate
the cost function:
C
C CPROD = PRICE OF PRODUCT, $/LB
CPROD = 1.30
C
C CBYPR = PRICE OF BYPRODUCT, $/LB
CBYPR = 0.11
C
C CFEED = PRICE OF FEED, $/LB
CFEED = .20
C
C CSTEAM = COST OF STEAM, $/MMBTU
CSTEAM = 4.00
C
C COST FUNCTION
CFUNC = CPROD * P + CBYPR * G - CFEED * A - CSTEAM * Q /1D6
23-14 • Optimization and Data Fit Aspen Plus 12.1 User Guide
optimization convergence block finds the combination of
values that makes CFUNC a maximum subject to the
constraints.
• The Fortran sheet is used to calculate the cost function
CFUNC.
• The manipulated variables are specified in the blocks just as if
there were no optimization. The specified value is the initial
estimate used by the optimization convergence block.
• You do not have to specify convergence of the optimization.
Aspen Plus automatically generates a convergence block to
converge the optimization problem.
• There are two constraints associated with the optimization
problem. They are called DUTY and PURITY.
• The constraint DUTY is satisfied when the reactor duty is less
than or equal to 3 MMbtu/hr.
• The constraint PURITY is satisfied when mole fraction of P in
the stream PROD is greater or equal to than 0.9.
On the Optimization sheets:
Aspen Plus 12.1 User Guide Optimization and Data Fit • 23-15
23-16 • Optimization and Data Fit Aspen Plus 12.1 User Guide
Aspen Plus 12.1 User Guide Optimization and Data Fit • 23-17
23-18 • Optimization and Data Fit Aspen Plus 12.1 User Guide
On the DUTY constraint sheets:
Aspen Plus 12.1 User Guide Optimization and Data Fit • 23-19
23-20 • Optimization and Data Fit Aspen Plus 12.1 User Guide
On the PURITY constraint form:
Aspen Plus 12.1 User Guide Optimization and Data Fit • 23-21
Fitting a Simulation Model to Data
This section is about SM data fitting. For EO Reconciliation, see
EO Run Modes.
You can fit Aspen Plus simulation models to plant or laboratory
data using Data-Fit. You provide one or more sets of measured
data for input and results variables of a simulation model. Data-Fit
adjusts (or estimates) input parameters to find the best fit of the
model to the data. If you want Data-Fit to reconcile measured data
for input variables to match the fitted model, it can do this
simultaneously.
23-22 • Optimization and Data Fit Aspen Plus 12.1 User Guide
Data-Fit minimizes the weighted sum of squares of the differences
between the measured data and the model prediction. In statistical
terms, Data-Fit performs either ordinary least squares or maximum
likelihood (errors-in-variables) estimation.
For help on fitting a simulation model to Data, see one of the
following topics:
• Types of Data-Fit applications
• Defining a Data-Fit problem
• Creating Point-Data sets
• Creating Profile-Data data sets
• Defining Data-Fit regression cases
• Ensuring well-formulated Data-Fit problems
• Analyzing convergence problems
• Examining results
Aspen Plus 12.1 User Guide Optimization and Data Fit • 23-23
For example, to fit concentration versus time kinetics data,
create an RBatch model. The kinetics model coefficients you
enter for RBatch using the Reactions forms become initial
estimates for the Data-Fit problem.
2 Creating one or more Data-Fit data sets.
Use this Data Set To fit
type
POINT-DATA • One or more steady-state experiments or
operating points
• Initial charge and final products of a batch
reactor, but not intermediate time points
• Feeds and products of a plug flow reactor,
but not points along the length of the
reactor
PROFILE-DATA • Time series data for a batch reactor
• Measurements along the length of a plug
flow reactor
3 Defining regression cases. Specify Data-Fit cases and input
parameters to be estimated. See Defining Data-Fit Regression
Cases.
23-24 • Optimization and Data Fit Aspen Plus 12.1 User Guide
Use the Define sheet to identify a flowsheet variable and assign it a
variable name. When completing a Define sheet, specify the
variables on the Variable Definition dialog box. The Define sheet
shows a concise summary of all the accessed variables, but you
cannot modify the variables on the Define sheet.
On the Define sheet:
1 To create a new variable, click the New button.
or
To edit an existing variable, select a variable and click the Edit
button.
2 Type the name of the variable in the Variable Name field. If
you are editing an existing variable and want to change the
variable name, click the right mouse button on the Variable
Name field. On the popup menu, click Rename. A variable
name must:
• Be six characters or less for a scalar variable
• Be five characters or less for a vector variable
• Start with an alphabetic character (A – Z)
• Have subsequent alphanumeric characters (A – Z, 0 – 9)
• Not begin with IZ or ZZ
3 In the Category frame, use the option button to select the
variable category.
4 In the Reference frame, select the variable type from the list in
the Type field.
Aspen Plus displays the other fields necessary to complete the
variable definition.
5 Click Close to return to the Define sheet.
See Accessing Flowsheet Variables for more information on
accessing variables.
Tip: Use the Delete button to quickly delete a variable and all of
the fields used to define it.
Use the Edit button to modify the definition of a variable in the
Variable Definition dialog box.
Types of Flowsheet You must identify the flowsheet variables for which you have
Variables measurements. You can also identify results variables for which
you have no measurements. Aspen Plus will estimate the results
variables and tabulate them for each data point.
In Data-Fit, you cannot access vectors. You must access each
stream variable or each component in a composition vector as a
different scalar variable.
Aspen Plus 12.1 User Guide Optimization and Data Fit • 23-25
Always access feed stream compositions as mole, mass, or
standard volume component flows. Do not access them as
fractions. This avoids any problems with normalizing fractions.
You can access both input values and results values for certain
flowsheet variables. For example, the condenser duty of a RadFrac
block can be accessed either as the input variable Q1 or the results
variable COND-DUTY. The reboiler duty can be accessed as the
input variable QN or as the results variable REB-DUTY. Select
either the input or results variable as follows:
Is the measured variable Then select
specified as an input in the base
case simulation?
Yes The input variable
No The results variable
For example, suppose:
• Your base-case model consists of a RadFrac block with Reflux
Ratio and Condenser Duty specified.
• The data you want to fit includes reboiler and condenser duty.
You must select the results variable REB-DUTY for the reboiler
duty, since it is not specified as an input in the base-case model.
You must select the input variable Q1 for the condenser duty, since
it is specified as an input in the base-case model.
If you want to reconcile the measurement for Q1, provide a non-
zero standard deviation. If you do not want to reconcile it, provide
a zero standard deviation.
Entering the Use the Data-Fit Data-Set Data sheet to enter measured data.
Measured Point-Data
For each measured variable:
1 On the Data-Fit Data-Set form, click the Data tab.
2 Specify whether the variable is a simulation Input or Result for
the Data-Fit problem.
Specify these variables As
Measured feed stream Input
Measured product stream Result
Measured variables that were accessed as Input
input variables on the Define sheet
All other measured variables Result
Note: Intermediate stream variables are usually results. However,
when a Data-Fit problem spans only a subset of the flowsheet, you
must specify intermediate streams that are inlets to the Data-Fit
subproblem as inputs.
23-26 • Optimization and Data Fit Aspen Plus 12.1 User Guide
3 Specify a standard deviation for the measurement in the first
row of the data table.
4 Enter one or more data points (rows in the table). If a
measurement is not available for a Result variable, leave its
Data field blank. Data-Fit will estimate it. You must always
enter a value for an Input variable.
You can introduce a new standard deviation row at any time. It
will apply to subsequent data points.
Standard Deviation The standard deviation is the level of uncertainty in the
measurement. You can enter it as an absolute or percent error
(append a percent sign (%) to the value). Statistically determined
standard deviations are seldom available. It is enough to supply an
approximate "expected error," estimated from experiences or
instrument specifications. Each residual (measurement — model
prediction) term in the sum of squares function is weighted by
1/(standard deviation2).
You must specify a standard deviation greater than zero for each
results variable to be fit. If a zero value is entered for standard
deviation, that results variable is not included in the regression.
For inputs, a standard deviation greater than zero invokes
maximum likelihood (errors-in-variables) estimation:
If the standard deviation Then Aspen Plus
for an input variable is
Zero Treats the measurement as exact and Data-
Fit does not adjust it
Greater than zero Adjusts (reconciles) the measurement, along
with results measurements, to match the
fitted model
Note Reconciling inputs can increase
solution time significantly, since each
reconciled input is treated as a decision
variable by the least squares algorithm
Aspen Plus 12.1 User Guide Optimization and Data Fit • 23-27
6 On the Define sheet, identify the flowsheet variables for which
you have measurements (see Identifying Profile Variables).
7 On the Data sheet, enter the measured data (see Entering the
Measured Profile-Data).
8 You can specify the charge (Rbatch) or feed (Rplug) on the
Initial Conditions sheet.
Identifying Profile Profile variables are available for the RBatch and RPlug unit
Variables operation models.
1 On the Data-Set form, click the Define tab.
2 In the Model and Block Name area, select either RBatch or the
RPlug.
3 In the Block field, identify the block where the profiles have
been measured.
4 In the Variable Name field, enter a variable name. A variable
name must:
• Be six characters or less for a scalar variable
• Start with an alphabetic character (A – Z)
• Have subsequent alphanumeric characters (A – Z, 0 – 9)
• Not begin with IZ or ZZ
5 In the Variable list, select a variable. See the prompt for a
description of each variable.
6 For concentration or fraction profile variables, identify the
component being measured in the Component field. You must
identify each component concentration or fraction as a separate
measured variable.
7 Repeat steps 4 through 6 for each measured variable.
You can identify profile variables for which you have no
measurements. Data-Fit will calculate and tabulate them.
Entering the Use the Data-Fit Data-Set Data sheet to enter measured data.
Measured Profile-
For each measured variable:
Data
1 On the Data-Fit Data-Set form, click the Data tab.
2 In the first row of the data table, specify a standard deviation
greater than zero for each measured variable to be fit. If a zero
value is entered for the standard deviation, that results variable
is not included in the regression.
3 Enter the time or length and the measurements for each data
point. Leave missing measurements blank. Aspen Plus will
estimate them.
You can introduce a new standard deviation row at any time. It
will apply to subsequent data points.
23-28 • Optimization and Data Fit Aspen Plus 12.1 User Guide
4 If you want to specify temperature and pressure values to
replace those in the base-case, enter the value(s) on the Initial
Conditions sheet. Data-Fit does not reconcile (adjust) these
values. It assumes they are exact.
5 If the experiment was carried out with a feed or charge
different than that in the base-case model, specify the
component flows on the Profile-Data Initial Conditions sheet.
Select the basis (Mole/Mass/StdVol) and the units. Enter the
component flows. Aspen Plus assumes the values you enter are
exact and does not adjust them. You can only specify flows for
conventional components. If the feed/charge specified in the
base-case model contains nonconventional components, Data-
Fit will use:
• Base-case specifications for nonconventional components
• Conventional component flows entered on this form as
feed/charge to reactor
The standard deviation is the level of uncertainty in the
measurement. See Standard Deviation for more information.
Aspen Plus 12.1 User Guide Optimization and Data Fit • 23-29
Data-Fit leaves a variable at its lower or upper limit if violating the
limit would further decrease the sum-of squares function.
Creating Data-Fit To define a Data-Fit regression case:
Regression Cases 1 On the Data menu, select Model Analysis Tools, then Data Fit.
2 On the left pane of the Data Browser, select Regression
3 In the Regression Object Manager, click New.
4 In the Create New ID dialog box, enter an ID or accept the
default ID.
5 On the Specifications sheet, identify the data sets to be fit in
the case (see Creating Point-Data Data Sets and Creating
Profile-Data Sets). You can also supply Weights to adjust the
relative weighting of the data sets, but this is usually not
necessary. For more information on Weights see Data-Fit
Numerical Formulation.
6 On the Vary sheet, identify any simulation input parameters
you want to estimate. Data-Fit will adjust the variables to find
the best fit to the Data-Sets listed on the Specifications sheet.
7 On the Convergence sheet, you can select the Initialization
Method when reconciling input measurements.
To initialize the reconciled inputs to Use the initialization method
Base-case values Base Case Values (default)
Measured values Measurements
The default base-case initialization method is robust, but it can
take a few more iterations if the measurements are far off from
the base case.
8 you do not need to change any other defaults on the Regression
Convergence sheet. See Convergence Parameters for more
information.
Convergence The Regression Convergence sheet is used to specify optional
Parameters Data-Fit convergence parameters. In most cases, it is unnecessary
to change these parameters from their default values.
The following parameters are available on the Convergence sheet:
Field Default Used To
Maximum Algorithm 50 Specify the maximum number of optimizer iterations.
Iterations
Maximum Passes 1000 Set the maximum number of flowsheet passes allowed in a Data-Fit run.
Through Flowsheet Included in the count of flowsheet passes are the initial base case, passes
required to compute the residuals, and passes required to compute the
Jacobian matrix through perturbation.
23-30 • Optimization and Data Fit Aspen Plus 12.1 User Guide
Field Default Used To
Bound Factor 10 Lower and Upper bounds for reconciled input variables are computed
using Bound Factor times Standard Deviation for that variable.
See Bound Factor for more information about setting the Bound Factor.
Absolute Function 0.01 Specify the absolute sum-of-squares objective function tolerance.
Tolerance If the optimizer finds a point where the objective function value is less
than the Absolute Function Tolerance, the problem is converged.
Relative Function 0.002 Specify the relative function convergence tolerance.
Tolerance If the current model predicts a maximum possible function reduction of
at most the relative function tolerance times the absolute value of the
function value at the start of the current iteration, and if the last step
attempted achieved no more than twice the predicted function decrease,
then the problem is considered converged.
X Convergence 0.002 Specify the X convergence tolerance.
Tolerance If a step is tried that has a relative change in X less than or equal to the X
Convergence Tolerance and if this step decreases the objective function
by no more than twice the predicted objective function decrease, the
problem is considered converged.
Minimum Step 1e-10 Data-Fit returns with suboptimal solution if a step of scaled length of at
Tolerance most Minimum Step Tolerance is tried but not accepted.
Calculate Covariance checked Calculate covariance and correlation matrices and write correlation
Matrix matrix to report file.
Advanced The Regression Advanced sheet is used to specify additional Data-
Parameters Fit convergence parameters. In most cases, it is unnecessary to
change these parameters from their default values.
The algorithm maintains an estimate of the diameter of a region
about the current estimate of the vector of varied values in which it
can predict the behavior of the least-squares objective function,
that is, a trust region.
The following parameters are available on the Convergence sheet:
Trust region tuning Default Used To
parameters field
Switching Parameter 1.5 Data-Fit algorithm uses a trust-region strategy. Switching Parameter is
used in a test to decide when to switch the model for the trust region.
Adjustment Factor 0.75 If the decrease in the value of the objective function is at least
Adjustment Factor*inner product of the step and the gradient, then the
trust region radius is increased
Reduction Factor 0.5 The factor by which the trust region radius is shrunk if current X leads to
errors in function or Jacobian evaluation.
Minimum Reduction 0.1 The minimum factor by which the trust region radius may be shrunk.
Factor
Minimum Expansion 2 The minimum factor by which the trust region radius is increased if it is
Factor increased at all.
Aspen Plus 12.1 User Guide Optimization and Data Fit • 23-31
Trust region tuning Default Used To
parameters field
Maximum Expansion 4 The maximum factor by which the trust region radius may be increased
Factor at one time.
1 Nsets N exp i
Min ∑
Xp , Xri 2 i =1
Wi * ∑ ( term1 + term2)
j =1
Nri
term1 = ∑ (( Xmri − Xri ) / σ Xmri )
2
l =1
Nrr
term2 = ∑ (( Xmrr − Xrr ) / σ Xmrr )
2
m =1
23-32 • Optimization and Data Fit Aspen Plus 12.1 User Guide
Wi = Weight for data set I specified on the
Regression Specifications sheet
Xp = Vector or varied parameters
Xmri = Measured values of the reconciled input
variables
Xri = Calculated values of the reconciled input
variables
Xmrr = Measured values of the results variables
Xrr = Calculated values of the results variables
Sigma = Standard deviation specified for the measured
variables
Reconciled input variables are adjusted to minimize the sum of
square of errors for each experiment independently.
Aspen Plus 12.1 User Guide Optimization and Data Fit • 23-33
The following table describes a well-posed Data-Fit formulation
for this problem:
This Consists of
The base-case • A feed stream with temperature, pressure, and
simulation component mole flows specified
model
• A RadFrac block with Mole Reflux Ratio,
Mole Distillate to Feed Ratio, and pressure
specified
The data set for Inputs:
the operating • Mole flow rate for each component with a non-
points
zero flow in the base-case feed stream
• Feed stream temperature
• Distillate-to-feed ratio, accessed as the
RadFrac Mole-D:F input variable and entered
as an unmeasured input in the data set
Results:
• Distillate and bottoms temperature
• Distillate and bottoms flow rate
The pressure and Mole Reflux Ratio are fixed specifications for
this problem. Data-Fit overrides the base-case feed component
flow rates, temperature, and column distillate-to-feed ratio
specification for the evaluation of each data point. If any inputs
were omitted from the data set, base-case values would be used for
the data point evaluations, causing incorrect results.
The distillate-to-feed ratio specification must be used so that
RadFrac can solve with most any feed. If the distillate flow
specification were used instead, a measure distillate rate that was
not in good mass balance with the measured feeds could result in
an infeasible column specification that RadFrac could not solve.
Bound Factor When you specify non-zero standard deviations for measured
inputs, Data-Fit uses the following limits for the variable estimates:
Lower Bound = Measured value - (Bound Factor) * (Standard
Deviation)
Upper Bound = Measured value + (Bound Factor) * (Standard
Deviation)
Bound Factor has a default value of 10. You can enter a different
value on the Regression Convergence sheet.
Aspen Plus checks to see whether the lower bound for flows is
negative. If so, a warning is given and the lower bound is set to
zero. Care should be taken in setting the Bound Factor to avoid
zero flow rates.
23-34 • Optimization and Data Fit Aspen Plus 12.1 User Guide
Remember that setting bounds that are too tight or too loose could
cause Data-Fit to move into an infeasible region. For example, if
you are reconciling the reflux rate for a tower and using the reflux
rate as a reconciled input variable, and you allow the lower bound
on the reflux rate to be zero, Data-Fit may drive the reflux rate to
zero during the solution process and cause severe errors in
RadFrac.
Instead of setting very tight bounds on the reconciled input
variables, you should treat them as fixed instead.
Estimating Data-Fit can estimate and tabulate any unmeasured result. Access
Unmeasured the calculated variable as a Result in a data set, enter a nonzero
Variables standard deviation, and leave the data field blank.
Data-Fit can also estimate unmeasured input variables. Access the
variable as an Input in a data set. Enter a reasonable initial guess
and a large standard deviation (for example, 50%) for the variable.
Make sure the standard deviation gives reasonable lower and upper
limits for the estimated variable.
Sequencing Data-Fit
For Data-Fit problems, Aspen Plus will:
1 Run the base-case simulation.
2 Execute the Data-Fit loop until it converges or fails to
converge.
3 Replace the base-case values of fitted parameters with the
regressed values, and rerun the base-case simulation
If any Case-Study or Sensitivity blocks are present, Aspen Plus
uses the fitted parameters to generate the Case-Study and/or
Sensitivity tables. The Data-Fit problem is not re-executed each
time.
The Aspen Plus automatic sequencing algorithm places Data-Fit
loops outside any flowsheet convergence loops.
In most cases, Data-Fit should be run standalone. For example, you
may want to estimate kinetic coefficients in the power-law
expression, using a RCSTR block. Run Data-Fit with RCSTR.
Then use the regressed values as input in a larger flowsheet with
that RCSTR block.
You can sequence the execution manually to suit your needs on the
Convergence Sequence form.
Aspen Plus 12.1 User Guide Optimization and Data Fit • 23-35
Using Data-Fit Results
The key Data-Fit results are:
Results On Data-Fit sheet
Chi-Square statistic for the fit Regression Results Summary
Final estimates and standard deviations Regression Results Manipulated
for the estimated parameters Variables
Table of measured values, estimated Regression Results Fitted-Data
values, and normalized residuals for the
data sets
Table of iteration history of the function Regression Results Iteration
results or of the vary results and History
reconciled input
A Chi-Square value greater than the threshold value indicates the
model does not fit the data. This can occur due to errors in the
measured data, or because the model does not represent the data.
You can use the Chi-Square statistic for selecting between models.
If you fit two or more models to the same data set(s), the model
with the lowest Chi-Square value fits the data best.
It is not uncommon for the standard deviations of estimated
parameters to be relatively large. This does not necessarily indicate
a poor fit.
Review the Regression Results Fitted-Data sheet for large
normalized residuals (outliers). A residual value much larger than
the others might indicate a bad data point.
For measured inputs with standard deviations equal to zero, there
are no estimated values or residuals. Data-Fit does not adjust these
measurements.
The Regression Results Fitted-Data sheet allows the plotting of
results. These plots can help you:
• Visualize how well your model fits the data
• Spot poor data points
For information about how to generate plots, see chapter 13,
Working with Plots.
Troubleshooting
If Data-Fit fails to converge, look for:
• Large errors in the values entered for the measurements, such
as data entry errors or incorrect units
• Gross errors in source data
23-36 • Optimization and Data Fit Aspen Plus 12.1 User Guide
Errors may occur in the problem formulation. Check:
• Does the base-case simulation converge?
• Do measured inputs completely determine the measured
results? See Ensuring Well-Formulated Data-Fit Problems.
• Is the base-case simulation formulated to handle measured data
that are not in good mass balance? See Ensuring Well-
Formulated Data-Fit Problems.
• Do the values specified in the base-case simulation provide
good estimates for the estimated parameters?
• Do the estimated parameters affect the measured variables over
the range specified? You can check the sensitivity of the
measured variables to the estimated parameters with a
sensitivity run. A different base-case parameter value or a
smaller parameter range may be needed.
• Do specified bounds allow the decision variables to take the
model into infeasible regions (leading to convergence failures
for unit operation model algorithms or internal convergence
loops)? The recommended action is to tighten the bounds.
• Do the fitted parameters have large differences in order of
magnitude? If so, it may be helpful to scale those values using
a Calculator block.
• Does the model represent the data? If not, either choose
another model or enter new base-case specifications.
Example of Fitting Determine the coefficients of the Aspen Plus power law kinetics
Reaction Kinetics Data model for the liquid phase reaction ALLYL + ACET ! PROD. A
backup file for this problem is included in the Examples library as
datafit1.bkp.
The following data is available:
Initial charge: 0.05 lb ALLYL
0.07 lb ACET
Reaction temperature: 30oC
Mole fractions:
Time ALLYL PROD
600 seconds 0.30149 0.19745
900 seconds 0.25613 Unmeasured
1900 seconds 0.14938 0.45820
Aspen Plus 12.1 User Guide Optimization and Data Fit • 23-37
A base-case simulation is defined with the following
specifications:
Feed Flow Rate
ALLYL 0.05 lb/hr
ACET 0.07 lb/hr
23-38 • Optimization and Data Fit Aspen Plus 12.1 User Guide
Because data is available at only one temperature, the pre-
exponential factor is fit with the activation energy fixed. The
Regression case is entered as follows:
Aspen Plus 12.1 User Guide Optimization and Data Fit • 23-39
After running the Data-Fit problem, the resulting estimate of the
pre-exponential factor appears on the Regression Results
Manipulated Variable sheet:
23-40 • Optimization and Data Fit Aspen Plus 12.1 User Guide
The Regression Results Fitted-Data sheet displays the original
measured values, along with the final estimated values for these
variables.
These original measured values and the final estimated values can
be plotted against each other to see the fit of the data and identify
any outliers.
Aspen Plus 12.1 User Guide Optimization and Data Fit • 23-41
Example for Matching a This example reconciles measurements and fits column Murphree
Column Model to Plant stage efficiency to operating data for a binary distillation column
Data with one feed and two product streams. A backup file for this
problem is in the Examples library as datafit2.bkp.
The following data is available:
Run 1 Run 2 Run 3
Feed
Water flow rate, lbmol/hr 55 45 50
Ethanol flow rate, lbmol/hr 45 55 50
Temperature, oF 77 75 80
Distillate
Total flow rate, lbmol/hr 45 55 50
Temperature, oF 175 170 174
Bottoms
Total flow rate, lbmol/hr 45 55 50
Temperature, oF 180 185 183
A base-case simulation is defined with the following
specifications:
Feed Stream Specification Value
Water flow rate, lbmol/hr 50
Ethanol flow rate, lbmol/hr 50
Temperature, oF 77
Pressure, psia 15
23-42 • Optimization and Data Fit Aspen Plus 12.1 User Guide
RadFrac Specification Value
Number of stages 20
Feed stage 10
Pressure, psia 15
Distillate vapor fraction 0.0
Reflux ratio 3.0
Distillate-to-feed ratio 0.5
Murphree stage efficiencies 0.1
The column specifications (reflux ratio and distillate-to-feed ratio)
ensure that the column can be solved even if the measured feed and
distillate flow rates are not in mass balance.
A Fortran Calculator block is defined to set the stage efficiency of
the column and is executed just before the RadFrac block. This
Calculator block reads a parameter being varied by Data-Fit and
transfers this to the efficiency of the first and last stages of the
column. RadFrac automatically uses this efficiency for all
intermediate stages.
The Point-Data data set is:
Aspen Plus 12.1 User Guide Optimization and Data Fit • 23-43
The distillate-to-feed ratio (COLDF) measurement is given an
arbitrary value (0.5) and a large standard deviation (100.0). This
specification tells Data-Fit to vary the distillate-to-feed ratio as
needed for each data point to find the best fit to the measured data.
The initial guess is 0.5. The distillate-to-feed ratio is an
unmeasured input, to be estimated. Distillate and bottoms flow rate
are treated as measured results. This ensures a feasible solution for
the column for each Data-Fit data point.
The measured distillate or bottoms flow rate could have been used
directly as an input (the RadFrac specification). But, RadFrac
would be unable to find a solution if the flow rate measurements
contained significant error and were not in mass balance.
The Data-Fit Regression case is defined as follows:
23-44 • Optimization and Data Fit Aspen Plus 12.1 User Guide
Aspen Plus 12.1 User Guide Optimization and Data Fit • 23-45
23-46 • Optimization and Data Fit Aspen Plus 12.1 User Guide
C H A P T E R 24
Transfer Blocks
Use a transfer block to copy the values of flowsheet variables from
one part of the flowsheet to another. You can copy to any number
of destinations:
• Whole streams
• Stream composition and flow rate
• Any flowsheet variable (for example, block variables)
The most common application is to copy one stream into another.
For help on transferring information between streams and blocks,
see one of the following topics:
• Defining transfer blocks
• Creating transfer blocks
• Copying streams
• Copying flowsheet variables
• Specifying when to execute a transfer block
• Entering flash specifications for destination streams
• Using Transfer blocks in EO runs
Aspen Plus 12.1 User Guide Transferring Information Between Streams or Blocks • 24-1
Defining a Transfer Block
To define a transfer block:
1 Create the transfer block.
2 Copy either a stream, a stream flow, a substream or a block or
stream variable.
3 Optionally enter flash specifications for destination streams.
By default, Aspen Plus will flash modified streams
automatically, using the values present in the stream and the
flash options established either on the Streams form for process
feeds, or by the source block for other streams.
4 Optionally specify when the transfer block is executed.
By default, Aspen Plus will sequence the block automatically.
24-2 • Transferring Information Between Streams or Blocks Aspen Plus 12.1 User Guide
2 Click the Entire Stream option and specify the stream in the
Stream Name field. The information for an entire stream
including all substreams will be copied.
3 Click the To tab.
4 Specify any number of destination streams in the Stream field.
Copying Stream Flow To copy component flows of a stream:
1 On the Transfer form, click the From tab.
2 Click the Stream Flow option and specify the stream in the
Stream Name field. The component and total flow rates of a
stream will be copied, but not the conditions (temperature,
pressure, vapor fraction, and other intensive variables).
3 Click the To tab.
4 Specify any number of destination streams in the Stream fields.
Copying Substreams To copy a substream:
1 On the Transfer form, click the From tab.
2 Click the Substream option and specify the stream and
substream in the Stream Name and Substream fields. The
information for one substream of a stream will be copied.
3 Click the To tab.
4 Specify any number of destination streams in the Stream and
Substream fields.
Copying Block or To copy a block, stream, or other flowsheet variable:
Stream Variables 1 On the Transfer form, click the From tab.
2 Select the Block or Stream Variable option.
3 In the Type field, select the type of variable you want to copy.
4 Aspen Plus takes you to the remaining fields necessary to
completely identify the variable.
5 Click the To tab.
6 On the Variable Number field, click the down arrow and select
<new>.
7 In the Type field, select the type of variable for the destination
of the copy.
8 Aspen Plus takes you to the remaining fields necessary to
completely identify the variable.
Repeat steps 6 to 8 for all the variables to which the From
variable is to be copied.
Aspen Plus 12.1 User Guide Transferring Information Between Streams or Blocks • 24-3
Specifying Transfer Block Execution
Use the Transfer Sequence sheet to specify when the transfer block
is executed.
You can do either of the following:
• Use the default, Automatically Sequenced, to let Aspen Plus
sequence the block automatically.
• Specify when the Transfer block is to be executed (Before or
After a block, or at the beginning (First) or end (Last) of a
simulation).
To specify transfer block execution:
1 On the Transfer form, click the Sequence tab.
2 This table shows how to specify when the transfer block is to
be executed:
Specify this in the To
Execute field
Automatically Have the Transfer block sequenced automatically
sequenced
First Have the Transfer block executed at the beginning
of the simulation
Before Have the Transfer block executed before a specified
Block, Convergence, Calculator, Transfer, Balance,
or Pressure Relief
The Block Type and Block Name must be specified.
After Have the Transfer block executed after a specified
Block, Convergence, Calculator, Transfer, Balance,
or Pressure Relief
The Block Type and Block Name must be specified.
Last Have the Transfer block executed at the end of the
simulation
3 If you entered Before or After, select the unit operation block,
convergence block, Calculator block, transfer block, balance
block or pressure relief block before or after which you want
the transfer block to be executed.
4 Use the Diagnostics button on this sheet to set the levels of
diagnostic output.
24-4 • Transferring Information Between Streams or Blocks Aspen Plus 12.1 User Guide
either on the Streams form for process feeds, or by the source
block for other streams.
You can use the optional Stream Flash sheet to specify the
thermodynamic condition and flash options for modified streams.
For example, use it when you copy stream flows and need to
specify the temperature and pressure of the destination stream.
Types of Flash The flash type must be specified. The possible flash types are:
• Temperature & Pressure
• Temperature & Vapor Fraction
• Temperature & Enthalpy
• Pressure & Vapor Fraction
• Pressure & Enthalpy
• Do not Flash Stream
Temperature or pressure estimates can be entered if desired.
Also specify the phases the flash calculation should consider and
optionally the maximum iterations and error tolerance for the flash
calculation.
How to Enter Flash To enter flash specifications for a stream:
Specifications 1 On the Transfer form, click the Stream Flash tab.
2 Specify the stream name in the Stream field.
3 Specify the Flash Type.
4 Specify the flash specifications, estimates and/or convergence
parameters.
Example of a Stream A transfer block is used to copy stream F-STOIC into streams F-
Copied to Two Other CSTR, F-GIBBS, and F-PLUG.
Streams
Aspen Plus 12.1 User Guide Transferring Information Between Streams or Blocks • 24-5
Example of Stream The transfer block TEMP sets the temperature of block
Conditions Copied to a TRANSFER equal to the temperature in stream LIQUID2.
Block
The stream LIQUID2 is an outlet from a Flash3 where the
properties are being calculated using the UNIF-LL physical
property methods. Downstream from the Flash3, the properties are
being calculated using the NRTL physical property methods.
When two different physical property methods are being used in a
flowsheet, there may be inconsistencies where they meet. Often it
is good practice to add in a Heater block with a temperature and
pressure specification between the two sections with the different
physical property methods. The Heater should use the temperature
and pressure of the inlet stream and the physical property method
of the new section or block to which the outlet from the Heater is
connected. A Transfer block can be used to transfer the
temperature and pressure of the inlet stream to the Heater block.
In this flowsheet, only the temperature is transferred since the
pressures are all ambient. A similar transfer block could be used to
transfer the pressure from the LIQUID2 stream to the TRANSFER
Heater block.
24-6 • Transferring Information Between Streams or Blocks Aspen Plus 12.1 User Guide
EO Usage Notes for Transfer
In a Transfer block, you can transfer stream variables only if you
specified that variable for the stream. For example, you can
transfer a component mass fraction only if you specified mass
fractions for the stream. You can always transfer the whole stream,
and you can transfer any block variables which have corresponding
EO variables.
Also, flash specifications in Transfer blocks are ignored in EO.
Aspen Plus 12.1 User Guide Transferring Information Between Streams or Blocks • 24-7
Equation Oriented Connection
Equations
Equation Oriented Connection Equations are additional equations
that can be added to a system that equate two variables, thus
ensuring that they have the same value at the solution. Connection
processing automatically adjusts the specifications of the variables
involved in order to preserve the net specification of a problem.
Specifying Equation To specify EO connections:
Oriented Connections 1 From the Data Browser, select the EO Configuration folder,
then select Connection.
The EO Configuration Connection Configuration sheet
appears.
2 Enter data in the following fields:
Use this field To
Name Specify the name of the connection
Destination Specify the target variable to be connected
Source Specify the source variable to be connected
Port Connection Select if the destination is a port
Enabled Select if you wish the connection to be included
in the problem. Clear this to disable processing
of the connection in the problem.
Scale Specify the Scale multiplier in the connection
equation.
Bias Specify the Bias term in the connection equation.
Description Enter optional comments (72 characters max) to
associate with the connection equation.
The destination and the source can be any of the following:
• Open variables
• Aliases
• Streams
• Ports
Bias and Scale Equation oriented connections equate two variables. The equation
Factors in Equation is expressed in the form:
Oriented Connections destination = source x scale - bias
The Scale and Bias factors are used to modify the source value
when connected to the destination variable.
You enter Scale and Bias factors on the EO Configuration
Connection Configuration sheet.
24-8 • Transferring Information Between Streams or Blocks Aspen Plus 12.1 User Guide
Effects of Equation When you specify equation-oriented Connections, connection
Oriented Connections processing automatically adjusts the specifications of the variables
on Variable involved in order to preserve the net specification of a problem.
Specifications
Aspen Plus 12.1 User Guide Transferring Information Between Streams or Blocks • 24-9
24-10 • Transferring Information Between Streams or Blocks Aspen Plus 12.1 User Guide
C H A P T E R 25
Balance Blocks
Convergence Parameters
Use the Advanced Parameters sheet to:
• Specify Balance block convergence parameters
• Check additional implicit mass balance equations
• Adjust the maximum number of iterations, the relative
tolerance of the balance equation residuals, and the relative
tolerance of calculated variables
The implicit mass balance equations are any mass balance or
mass/mole relationships which do not involve any variables to be
calculated or material balance equations for the energy balance.
The additional mass balance equations are checked by default, and
if they are out of balance, the calculated variables are not updated.
It is possible to update calculated variables even if the equations
are out of balance. You can choose not to check the additional
mass balance equations.
Flash Specifications
Use the Stream Flash sheet to specify thermodynamic conditions
or suppress automatic flash calculations for streams updated by a
balance block. Aspen Plus automatically flashes an updated stream
unless the only updated variable is the total flow.
∑S σ F
i =1
i i i =0
∑S F f
i =1
i i ij Z ijk = 0
∑S σ Fh + ∑S σ
i =1
i i i i
j =1
j j H j + ∑ S k σ k Wk = RHS
k =1
∑C
j =1
ij Fij = RHSi
Where:
Cij = Coefficient of Term j in equation i
Case Study
Aspen Plus 12.1 User Guide Specifying Reactions and Chemistry • 27-1
Reactions Rate-controlled and non-electrolyte equilibrium reactions are
specified as Reaction IDs that can be referenced in kinetic reactors,
columns, and pressure relief calculations. These reactions can be
used by:
• RadFrac, RateFrac, and BatchFrac for reactive distillation
• RBatch, RCSTR, and RPlug, the kinetics-based reactor models
• Pressure Relief model for pressure relief calculations in
reactive systems
The reaction kinetics of rate-based reactions can be represented
using any of the following expressions:
• Power Law kinetic model
• Langmuir-Hinshelwood-Hougen-Watson (LHHW) kinetic
model (not applicable to reactive distillation systems)
• User-defined kinetic model
Chemistry Electrolyte solution chemistry is specified as a Chemistry ID that
can be referenced on the Properties Specification Global sheet and
on the BlockOptions Properties sheets for individual unit operation
blocks. Unlike non-electrolyte reactions which are specified and
executed only within certain unit operation blocks and pressure
relief calculations, electrolyte chemistry definitions become part of
the physical property specifications for a simulation or flowsheet
section. They are used for all calculations (in any stream or unit
operation block ) which use that property specification.
27-2 • Specifying Reactions and Chemistry Aspen Plus 12.1 User Guide
There are three types of electrolyte reactions:
Type Example
Partial dissociation equilibria † HCl + H2O ↔ H3O+ + Cl-
Salt precipitation equilibria † NaCl (Salt) ↔ Na+ + Cl-
Complete dissociation NaCl (liquid phase) → Na+ + Cl-
† Equilibrium constants are required to model these reactions. They can be
calculated from correlations (as a function of temperature) or from Gibbs free
energy.
Collectively the species and reactions are referred to as the
electrolytes chemistry. Electrolytes chemistry must be modeled
correctly for accurate simulation results. Normally this requires
expert knowledge of the solution chemistry. In most cases,
however, the Aspen Plus Electrolytes Wizard can generate the
species and reactions for you, using a built-in knowledge base of
reactions, equilibrium constant data, and possible ionic species.
Aspen Plus 12.1 User Guide Specifying Reactions and Chemistry • 27-3
3 To modify an existing Chemistry ID, select its name in the
Object Manager and choose Edit.
4 Follow the instructions in subsequent sections for details on
defining each type of reaction within a Chemistry ID.
The following sections explain how to create new reactions within
an existing Chemistry ID, by specifying stoichiometry and
calculations options for the equilibrium constant. You can specify
any number of reactions within a Chemistry ID.
You also can have any number of Chemistry IDs in your
simulation. Because the Chemistry ID becomes part of the total
Property Method definition, you can specify different Chemistry
IDs anywhere you use different Property Methods, such as
flowsheet sections or individual unit operation blocks.
Defining Equilibrium ionic reactions describe the partial dissociation of
Stoichiometry for weak electrolytes and other liquid phase equilibria. Each
Electrolytes equilibrium ionic reaction within a Chemistry ID is referenced
Chemistry with a reaction number (for example, 1, 2, 3, etc.)
Equilibrium Ionic To define a new reaction number and specify the stoichiometry for
Reactions an ionic equilibrium reaction:
1 On the Reactions Chemistry Stoichiometry sheet for your
Chemistry ID, click New.
2 On the Select Reaction Type dialog box, Equilibrium is the
default reaction type. Enter an ID or accept the default ID and
click OK. The ID must be an integer.
3 On the Equilibrium Reaction Stoichiometry dialog box, enter
the components and stoichiometric coefficients that make up
your reaction. Coefficients should be negative for reactants and
positive for products.
4 Click Close when finished. You should see your new reaction
listed on the Stoichiometry sheet with the information
displayed in equation form.
5 Repeat steps 1-4 for each additional ionic equilibrium reaction.
Salt Precipitation Salt precipitation reactions describe the formation or dissolution of
Reactions salts in equilibrium with the liquid phase. Each salt precipitation
reaction within a Chemistry ID is referenced by the component
name of the salt.
To define the stoichiometry for a new salt precipitation reaction:
1 On the Reactions Chemistry Stoichiometry sheet for your
Chemistry ID, click New.
2 On the Select Reaction Type dialog box, select Salt in the
Choose Reaction Type frame.
27-4 • Specifying Reactions and Chemistry Aspen Plus 12.1 User Guide
3 In the Enter Salt Component ID field, select the name of the
salt for which you are defining the reaction, and click OK.
4 On the Salt Dissolution Stoichiometry dialog box, enter the
components and stoichiometric coefficients for the products
(ions) formed by the dissolution of the salt.
5 Click Close when finished. You should see your new reaction
listed on the Stoichiometry sheet with the information
displayed in equation form.
6 Repeat steps 1-5 for each additional salt precipitation reaction.
Complete Dissociation Complete dissociation reactions describe the complete dissociation
Reactions of strong electrolytes in the liquid phase. These reactions do not
have equilibrium constants. Each complete dissociation reaction
within a Chemistry ID is referenced by the name of the
dissociating component.
To define the stoichiometry for a new complete dissociation
reaction:
1 On the Reactions Chemistry Stoichiometry sheet for your
Chemistry ID, click New.
2 On the Select Reaction Type dialog box, select Dissociation in
the Choose Reaction Type frame.
3 In the Enter Dissociating Electrolyte field, select the name of
the component for which you are defining the reaction, and
click OK.
4 On the Electrolyte Dissociation Stoichiometry dialog box, enter
the components and stoichiometric coefficients for the
dissociation products.
5 Click Close when finished. You should see your new reaction
listed on the Stoichiometry sheet with the information
displayed in equation form.
6 Repeat steps 1-5 for each additional complete dissociation
reaction.
Defining Equilibrium Equilibrium constants are required to model equilibrium ionic
Constants for reactions and salt precipitation reactions. Aspen Plus can calculate
Electrolytes these equilibrium constants from correlations (as a function of
Chemistry temperature) or from reference state Gibbs free energy (available
in the Aspen Plus databanks).
To define how the equilibrium constants will be calculated for the
equilibrium ionic reactions and salt precipitation reactions within
your Chemistry ID:
1 On the Reactions Chemistry form for your Chemistry ID, select
the Equilibrium Constants sheet.
Aspen Plus 12.1 User Guide Specifying Reactions and Chemistry • 27-5
2 Choose the concentration basis for equilibrium constants in the
Concentration Basis For Keq list. The concentration basis
determines how the equilibrium constant is calculated:
Concentration Basis Equilibrium Constant Definition
Mole-Frac (default) K = Π ( xi γ i )ν i
Molal K = Π (mi γ i )ν i
Where:
K = Equilibrium constant
x = Component mole fraction
m = Molality (gmole/kg-H2O)
γ = Activity coefficient
ν = Stoichiometric coefficient
i = Component index
Π is the product operator.
All properties refer to the liquid phase.
3 You can specify a Temperature Approach to Equilibrium that
applies to all ionic equilibrium and salt precipitation reactions
defined in the Chemistry ID. The temperature approach you
specify is added to the stream or block temperature to compute
the equilibrium constants. If you do not specify a temperature
approach, Aspen Plus uses a default value of 0.
4 Use the Hydrate-Check field to select the method that
Aspen Plus uses to determine which hydrate to precipitate
when you have specified multiple hydrates as precipitation
reactions for a salt.
Hydrate-check Method Information
Rigorous (default) Uses Gibbs free energy minimization to select
the hydrate. Allows Aspen Plus to predict the
formation of the correct hydrate for salts with
multiple hydrates.
Approximate Uses the lowest solubility product value at the
system temperature to select the hydrate.
Requires less computation time than the
rigorous method.
5 Select the appropriate reaction type (Equilibrium Reaction or
Salt), and choose the appropriate reaction from the list.
6 Leave the equilibrium coefficients blank.
– or –
Enter coefficients for the built-in equilibrium constant
expression:
ln (Keq) = A + B / T + C*ln (T) + D*T
27-6 • Specifying Reactions and Chemistry Aspen Plus 12.1 User Guide
Where:
Keq = Equilibrium constant
T = Temperature in Kelvin
A, B, C, D = User supplied coefficients
The definition of K depends on the concentration basis
selected.
If coefficients are not entered, Aspen Plus computes the
equilibrium constant from the reference state Gibbs free
energies of formation.
Repeat steps 5 and 6 for all ionic equilibrium reactions and salt
precipitation reactions included in the Chemistry ID. Because
complete dissociation reactions do not have equilibrium constants,
nothing on the Equilibrium Constants sheet applies to reactions of
this type.
Aspen Plus 12.1 User Guide Specifying Reactions and Chemistry • 27-7
Type For
Equilibrium Equilibrium reactions
Kinetic Rate-controlled reactions
5 To specify the individual reactions within your reaction ID,
follow the instructions in subsequent sections for the type of
reaction you want to create.
Equilibrium To add equilibrium type reactions to your Powerlaw Reaction ID:
Reactions (for RCSTR 1 Click New on the Reactions Stoichiometry sheet of your
only) Powerlaw Reaction ID.
2 On the Edit Reaction dialog box, select Equilibrium from the
Reaction Type list. The reaction number is entered
automatically.
3 Enter components and stoichiometric coefficients to define the
reaction. Coefficients should be negative for reactants and
positive for products. You should not specify exponents for
equilibrium reactions.
4 Click Close when finished. You should see your new reaction
number, type, and equation displayed on the Stoichiometry
sheet.
5 Repeat steps 1 through 4 for each additional equilibrium
reaction.
6 Select the Equilibrium tab on the Reactions form to open that
sheet.
7 On the Equilibrium sheet, select a reaction from the list at the
top of the sheet.
8 Specify the phase in which the reaction will occur in the
Reacting Phase list. The default is the liquid phase.
9 If the reaction does not actually reach equilibrium, you can
enter a temperature approach to equilibrium in the Temperature
Approach to Equilibrium field. The number of degrees you
enter will be added to the reactor temperature to compute the
equilibrium constant.
10 Choose whether you want to compute Keq from Gibbs energies
or from a built in polynomial expression by selecting the
appropriate option.
If you choose Compute Keq From Gibbs Energies, you do not
need to enter coefficients for the equilibrium constant.
Aspen Plus will compute the Keq from the reference state
Gibbs free energy of the components.
11 If you choose Compute Keq From Built-In Expression, enter
coefficients for the built-in equilibrium constant expression,
and choose a basis for the equilibrium constant:
27-8 • Specifying Reactions and Chemistry Aspen Plus 12.1 User Guide
ln Keq = A + B/T + C*ln(T) + D*T
Where:
Keq = Equilibrium constant
T = Temperature in Kelvin
A, B, C, D = User-supplied coefficients
The definition of Keq depends on the basis you select in the
Keq Basis list.
Keq Basis Equilibrium Constant Definition
Mole gamma (default) Keq = Π (xi γi)υi (liquid only)
Molal gamma Keq = Π (mi γi)υi (electrolytes, liquid only)
Mole fraction Keq = Π (xi)υi
Mass fraction Keq = Π (xim)υi
Molarity Keq = Π (Ci)υi
Molality Keq = Π (mi)υi (liquid only)
Fugacity Keq = Π (fi)υi
Partial pressure Keq = Π (pi)υi (vapor only)
Mass concentration Keq = Π (Cim)υi
Where:
Keq = Equilibrium constant
x = Component mole fraction
xm = Component mass fraction
C = Molarity (kgmole/m3)
m = Molality (gmole/kg-H2O)
γ = Activity coefficient
f = Component fugacity (N/m2)
p = Partial pressure (N/m2)
m
C = Mass concentration (kg/m3)
υ = Stoichiometric coefficient (positive for products, negative for reactants)
i = Component index
Π is the Product operator
12 If solids are present, click the Solids button and select the
appropriate options for calculation of concentration. For more
information, see Reactions With Solids.
13 Repeat steps 7 through 12 for each equilibrium reaction.
Rate-Controlled To add kinetic type reactions to your Powerlaw Reaction ID:
Reactions 1 Click New on the Reactions Stoichiometry sheet of your
Powerlaw Reaction ID.
2 On the Edit Reaction dialog box, Reaction Type defaults to
Kinetic, and the reaction number is entered automatically.
Enter components and stoichiometric coefficients to define the
reaction. Coefficients should be negative for reactants and
positive for products.
Aspen Plus 12.1 User Guide Specifying Reactions and Chemistry • 27-9
3 Specify power law exponents for the components. These
exponents represent the order of the reaction with respect to
each component. If you do not specify an exponent for a
component, Aspen Plus uses a default value of 0.
4 Click Close when finished. You should see your new reaction
number, type, and equation displayed on the Stoichiometry
sheet.
5 Repeat steps 1 through 4 for each additional kinetic reaction.
6 Select the Kinetic sheet.
7 On the Kinetic sheet, select a reaction from the list at the top of
the sheet.
8 Specify in which phase the reaction will take place in the
Reacting Phase field. The default is the liquid phase.
9 Enter the pre-exponential factor (k), the temperature exponent
(n), and the activation energy (E) in the appropriate fields. The
pre-exponential factor must be in the SI units described later in
this section. The temperature exponent refers to temperature in
Kelvin.
10 In the [Ci] Basis list, select the concentration basis. The
concentration basis determines which form of the power law
expression will be used, as discussed later in this section.
11 If solids are present, click the Solids button and select the
appropriate options for calculation of concentration. For more
information, see Reactions With Solids.
12 Repeat steps 7 through 11 for each kinetic reaction.
The power law expression depends on the concentration basis you
select in the [Ci] Basis list:
[Ci] Basis Power Law Expression Power Law Expression
(To is not specified) (To is specified)
Molarity (default) r = kT n e − E / RT ∏ (Ci ) r = k (T / To ) n e( − E / R )[1 / T −1 / To ] ∏ (Ci )
αi αi
Mass fraction
( )α
r = kT ne − E / RT ∏ xim
i
( )α
r = k (T / To ) n e( − E / R )[1 / T −1 / To ] ∏ xim
i
Partial pressure
(vapor only)
r = kT n e − E / RT ∏ ( pi )α i
r = k (T / To ) n e( − E / R )[1 / T −1 / To ] ∏ ( pi )
αi
∏ (Cim ) ( )α
Mass concentration αi
n − E / RT
r = kT e r = k (T / To ) n e( − E / R )[1 / T −1 / To ] ∏ Cim
i
Where:
r = Rate of reaction
k = Pre-exponential factor
27-10 • Specifying Reactions and Chemistry Aspen Plus 12.1 User Guide
T = Temperature in degrees Kelvin
To = Reference temperature in degrees Kelvin
n = Temperature exponent
E = Activation energy
R = Universal gas law constant
x = Mole fraction
xm = Mass fraction
C = Molarity (kgmole/m3)
m = Molality (gmole/kg-H2O)
Cm = Mass concentration (kg/m3)
p = Partial pressure (N/m2)
α = Concentration exponent
i = Component index
Π is the product operator.
The units of the reaction rate and the pre-exponential factor depend
on the:
• Order of the reaction
• Concentration basis selected in the [Ci] Basis list box
Aspen Plus 12.1 User Guide Specifying Reactions and Chemistry • 27-11
The Solids dialog box allows the following specifications with
regard to the denominator term of component concentrations:
• For liquid and vapor component concentrations, you can
include the reacting phase only, or the reacting phase and the
solid phase, by clicking the appropriate option in the For
Liquid or Vapor Component frame. The default is to include
only the reacting phase.
• For solid component concentrations, you can include the solid
phase only, or the solid and total liquid phases, by clicking the
appropriate option in the For Solid Component frame. The
default is to include only the solid phase.
• For wolid component concentrations, you can also include
solid components in all substreams, or only those in the
substream of the reacting solid, by click the appropriate option.
The default is to include solids in all substreams.
27-12 • Specifying Reactions and Chemistry Aspen Plus 12.1 User Guide
To specify the individual reactions within your LHHW Reaction
ID, follow the instructions in subsequent sections for the type of
reaction you want to create.
Equilibrium Specify equilibrium reactions for LHHW the same way as for
Reactions for LHHW Powerlaw reactions. See Specifying Power Law Reactions for
(for RCSTR only) Reactors and Pressure Relief Systems
Rate-Controlled For rate-controlled reactions, the LHHW rate expression can be
Reactions for LHHW written as:
( kinetic factor)(driving force expression )
γ =
(adsorption expression)
Where:
Kinetic factor (if To is = T
n
specified) k e (− Ea / R )[1 / T −1 / To ]
To
Kinetic factor (if To is = kT n e − Ea / RT
not specified)
Driving force expression = ( )
K1 ∏ Civi − K 2 ∏ C j j ( v
)
Adsorption expression = {ΣK (∏ C )}
i
vj
j
m
Where:
r = Rate of reaction
k = Pre-exponential factor
T = Temperature in Kelvin
To = Reference temperature in Kelvin
n = Temperature exponent
Ea = Activation energy
R = Universal gas law constant
C = Component concentration
m = Adsorption expression exponent
K1 , K 2 , K i = Equilibrium constants
υ = Concentration exponent
i, j = Component index
Π is the product operator, and Σ is the summation operator.
The concentration terms Ci and Cj depend on the concentration
basis you select:
Aspen Plus 12.1 User Guide Specifying Reactions and Chemistry • 27-13
[Ci] basis Concentration term C
Molarity Component molar concentration (kgmole/m3)
Molality Component molality (gmole/kg H2O)
Mole fraction Component mole fraction
Mass fraction Component mass fraction
Partial pressure Component partial pressure (N/m2)
Mass concentration Component mass concentration (kg/m3)
To add kinetic type reactions to your LHHW Reaction ID:
1 Click New on the Reactions Stoichiometry sheet of your
LHHW Reaction ID.
2 On the Edit Reaction dialog box, Reaction Type defaults to
Kinetic, and the reaction number is entered automatically.
Enter components and stoichiometric coefficients to define the
reaction. Coefficients should be negative for reactants and
positive for products.
3 Click Close when finished. You should see your new reaction
number, type, and equation displayed on the Stoichiometry
sheet.
4 Repeat steps 1 through 3 for each additional kinetic reaction.
5 Select the Kinetic sheet.
6 On the Kinetic sheet, select a reaction from the list at the top of
the sheet.
7 Specify in which phase the reaction will take place using the
Reacting Phase list. The default is the liquid phase.
8 Enter the pre-exponential factor (k), the temperature exponent
(n), and the activation energy (E) in the appropriate fields of
the Kinetic Factor frame. The pre-exponential factor must be in
the SI units described in Specifying Power Law Reactions for
Reactors and Pressure Relief Systems. The temperature
exponent refers to temperature in Kelvin.
9 If solids are present, click the Solids button and select the
appropriate options for calculation of concentration. For more
information, see Reactions With Solids.
10 Click the Driving Force button.
11 On the Driving Force Expression dialog box, select the
concentration basis in the [Ci] Basis list. See Specifying Power
Law Reactions for Reactors and Pressure Relief Systems for
the definitions of the concentration basis options.
12 With the Enter Term value at the default of Term 1, enter the
concentration exponents for reactants and products, and the
27-14 • Specifying Reactions and Chemistry Aspen Plus 12.1 User Guide
coefficients for the driving force constant (A, B, C, and D) for
term 1 of the driving force.
13 Select Term 2 in the Enter Term list.
14 Enter the concentration exponents for reactants and products,
and the coefficients for the driving force constant (A, B, C, and
D) for term 2 of the driving force expression.
15 Click Close when finished with both terms.
16 To specify optional adsorption expressions, click the
Adsorption button.
17 On the Adsorption Expression dialog box, enter the overall
exponent for the adsorption term in the Adsorption Expression
Exponent field.
18 Specify concentration exponents by selecting components and
entering an exponent for each term in the adsorption
expression.
19 Specify adsorption constants by entering the Term No. and
specifying the coefficients.
The coefficients are for the following correlation:
ln Ki = Ai + Bi/T + Ci * ln(T) + Di * T
Where:
Ki = Equilibrium constant
T = Temperature in Kelvin
Ai, Bi, Ci, Di= User-supplied coefficients
20 Repeat steps 6 through 19 for each additional LHHW kinetic
reaction.
Aspen Plus 12.1 User Guide Specifying Reactions and Chemistry • 27-15
To create a new distillation reaction ID:
1 From the Data menu, point to Reactions then Reactions.
2 On the Reactions Object Manager, click New to create a new
Reaction ID.
3 In the Create New ID dialog box, enter a reaction name in the
Enter ID field, or accept the default ID.
4 Select REAC-DIST in the Select Type list, and click OK.
Once the Reaction ID is created, you can begin defining
reactions within the Reaction ID. There are four types of
reactions allowed in a Reac-Dist Reaction ID.
Type For
Equilibrium Equilibrium reactions
Kinetic Rate-controlled reaction
Conversion Fractional conversion reaction (RadFrac only)
Salt Electrolyte salt precipitation (RadFrac only)
5 To specify the individual reactions within your Reac-Dist
reaction ID, follow the instructions in subsequent sections for
the type of reactions listed in the previous table.
Equilibrium To add equilibrium type reactions to your Reaction ID:
Reactions 1 Click New on the Reactions Stoichiometry sheet of your Reac-
Dist Reaction ID.
2 In the Select Reaction Type dialog box,
Kinetic/Equilibrium/Conversion is the default reaction type.
Accept the default Reaction No. displayed or enter a new
Reaction No. Click OK.
3 On the Edit Reaction dialog box, Reaction Type defaults to
Equilibrium. Enter components and stoichiometric coefficients
to define the reaction. Coefficients should be negative for
reactants and positive for products. You should not specify
exponents for equilibrium reactions.
4 Click Close when finished. You should see your new reaction
number, type, and equation displayed on the Stoichiometry
sheet.
5 Repeat steps 1 through 4 for each additional equilibrium
reaction.
6 Click the Equilibrium sheet.
7 On the Equilibrium sheet, select a reaction from the list at the
top of the sheet.
8 Specify the phase in which the reaction will occur in the
Reacting Phase list. The default is the liquid phase.
27-16 • Specifying Reactions and Chemistry Aspen Plus 12.1 User Guide
9 Specify a calculation basis for the equilibrium constant by
selecting an option in the Keq Basis list. The basis you choose
defines how the equilibrium constant will be calculated, as
discussed later in this section.
10 If the reaction does not actually reach equilibrium, you can
specify Temperature Approach to Equilibrium. The
temperature approach you enter will be added to the stage
temperature to compute the equilibrium constant.
11 Choose whether you want to compute Keq from Gibbs energies
or from a built in polynomial expression by selecting the
appropriate radio button.
If you choose Compute Keq From Gibbs Energies, you do not
need to enter coefficients for the equilibrium constant.
Aspen Plus will compute Keq from the reference state Gibbs
free energy of the components. You can skip to step 12.
12 If you choose Compute Keq From Built-In Expression, you
must enter coefficients for the built-in equilibrium constant
expression:
ln Keq = A + B/T + C*ln(T) + D*T
Where:
Keq = Equilibrium constant
T = Temperature in Kelvin
A, B, C, D = User-supplied coefficients
The definition of Keq depends on the basis you select in the
Keq Basis list box.
Kbasis Equilibrium Constant Definition
Mole gamma K = ∏ ( xiγ i )υ i
(default) (liquid only)
Molal gamma K = ∏ (miγ i )υ i
(electrolytes, liquid only)
Mole fraction K = ∏ ( xi )υ i
Mass fraction K = ∏ ( xim )υ i
Molarity K = ∏ (Ci )υ i
Molality K = ∏ (mi )υ i
(liquid only)
Fugacity K = ∏ ( fi ) υi
Partial pressure K = ∏ ( pi )υ i
(vapor only)
Mass concentration K =
∏ (Cim )υ i
Aspen Plus 12.1 User Guide Specifying Reactions and Chemistry • 27-17
Where:
K = Equilibrium constant
x = Component mole fraction
xm = Component mass fraction
C = Molarity (kgmole/m3)
m = Molality (gmole/kg-H2O)
γ = Activity coefficient
f = Component fugacity (N/m2)
p = Partial pressure (N/m2)
m
C = Mass concentration (kg/m3)
υ = Stoichiometric coefficient (positive for products, negative for reactants)
i = Component index
Π = Product operator
All properties refer to the phase selected in the Reacting Phase field.
13 Repeat steps 7 through 12 for each equilibrium reaction.
Rate Controlled Reactive distillation kinetics can be represented with a built-in
Reactions Power Law expression, or a user kinetics subroutine. The
following procedure shows how to use either method.
To add kinetic type reactions to your Reaction ID:
1 Click New on the Reactions Stoichiometry sheet of your Reac-
Dist Reaction ID.
2 In the Select Reaction Type dialog box,
Kinetic/Equilibrium/Conversion is the default reaction type.
Accept the default Reaction No. displayed or enter a new
Reaction No. Click OK.
3 On the Edit Reaction dialog box, select Kinetic from the
Reaction Type list.
4 Enter components and stoichiometric coefficients to define the
reaction. Coefficients should be negative for reactants and
positive for products.
5 Specify Power Law exponents for each component. These
exponents represent the order of the reaction with respect to
each component. If you wish to specify a user kinetics
subroutine to compute the reaction rates, do not enter
exponents on this sheet.
6 Click Close when finished. You should see your new reaction
number, type, and equation displayed on the Stoichiometry
sheet.
7 Repeat steps 1 through 6 for each additional kinetic reaction.
8 Select the Kinetic sheet.
9 On the Kinetic sheet, select the appropriate option to use the
built-in Power Law expression, or a user kinetic subroutine to
represent the kinetics for the current Reaction ID.
27-18 • Specifying Reactions and Chemistry Aspen Plus 12.1 User Guide
10 Select a reaction from the list and specify in which phase the
reaction will take place using the Reacting Phase list. The
default reacting phase is liquid.
11 To use a user kinetics subroutine, you do not need to enter any
further information on this sheet. Select the Subroutine tab of
the reaction form, and specify the subroutine name in the Name
field.
For RadFrac and RateFrac, you can also specify user-defined
kinetics on the Reactions User forms (see Using a User-
Kinetics Subroutine). The Reactions User forms is preferred
because you can use the same user-defined kinetics in reactor
or pressure relief calculations. For more information on using
and writing user kinetics models, see Aspen Plus User Models.
The rest of this procedure assumes you are using the built in
Power Law.
12 To use the built-in Power Law expression, enter the pre-
exponential factor (k), the temperature exponent (n), and the
activation energy (E) on the Kinetic sheet of the Reactions
form. The pre-exponential factor must be in the SI units
described later in this section. The temperature exponent refers
to temperature in Kelvin.
13 In the [Ci] Basis list, select the concentration basis. The
concentration basis determines which form of the power law
expression will be used, as discussed later in this section.
14 Repeat steps 10 through 13 for each kinetic reaction.
The power law expression depends on the concentration basis you
select in the [Ci] Basis list box:
[Ci] Basis Power Law Expression Power Law Expression
(To is not specified) (To is specified)
Molarity r = kT n e − E / RT ∏ (Ci )
αi
r = k (T / To ) n e( − E / R )[1 / T −1 / T
(default)
Molality r = kT ne − E / RT ∏ (mi )
αi
r = k (T / To ) n e( − E / R )[1 / T −1 / T
(electrolytes
only)
Mole fraction r = kT ne − E / RT ∏ ( xi )
αi
r = k (T / To ) n e( − E / R )[1 / T −1 / T
Mass fraction
r = kT ne − E / RT ∏ xim( )α i
r = k (T / To ) n e( − E / R )[1 / T −1 / T
Partial pressure r = kT n e − E / RT
(vapor only) ∏ ( pi )α i
r = k (T / To ) n e( − E / R )[1 / T −1 / T
∏ (Cim )
Mass αi
concentration
r = kT n e − E / RT r = k (T / To ) n e( − E / R )[1 / T −1 / T
Aspen Plus 12.1 User Guide Specifying Reactions and Chemistry • 27-19
The units of the reaction rate and the pre-exponential factor depend
on the:
• Order of the reaction
• Holdup basis used by the distillation block
• Concentration basis selected in the [Ci] Basis list box
The units for the pre-exponential factor are as follows:
When [Ci] Units are: Units are:
Basis is (To is not specified) (To is specified)
Molarity kgmole - K -n kgmole
sec − (holdup unit) sec − (holdup unit)
∑ αi ∑ αi
kgmole kgmole
m3 m3
Molality kgmole - K -n kgmole
sec − (holdup unit) sec − (holdup unit)
∑ αi ∑ αi
gmole gmole
kg H 2 O kg H 2 O
Mole fraction kgmole - K -n kgmole
or Mass
sec − (holdup unit) sec − (holdup unit)
fraction
Partial pressure kgmole - K -n kgmole
sec − (holdup unit) sec − (holdup unit)
∑ αi ∑ αi
N N
2 2
m m
Mass kgmole - K -n kgmole
concentration
sec − (holdup unit) sec − (holdup unit)
∑ αi ∑ αi
kg kg
3 3
m m
27-20 • Specifying Reactions and Chemistry Aspen Plus 12.1 User Guide
To add conversion type reactions to your Reac-Dist Reaction ID:
1 Click New on the Reactions Stoichiometry sheet of your Reac-
Dist Reaction ID.
2 In the Select Reaction Type dialog box,
Kinetic/Equilibrium/Conversion is the default reaction type.
Accept the default Reaction No. displayed or enter a new
Reaction No. Click OK.
3 On the Edit Reaction dialog box, select Conversion from the
Reaction Type list.
4 Enter components and stoichiometric coefficients to define the
reaction. Coefficients should be negative for reactants and
positive for products. You should not specify exponents for
conversion reactions.
5 Click Close when finished. You should see your new reaction
number, type, and equation displayed on the Stoichiometry
sheet.
6 Repeat steps 1 through 5 for each additional conversion
reaction.
7 Select the Conversion sheet.
8 If you have multiple conversion reactions within your Reaction
ID, specify whether you want the conversion reactions to be
computed simultaneously, or in series. By default, conversion
reactions are assumed to occur simultaneously. If you want the
conversions to be calculated in series, check the Reactions
Occur in Series box. You must specify the same type for all
conversion reactions. Series reactions take place in the order
they are entered.
9 Select a reaction from the list.
10 In the Conversion Expression frame, select the component on
which you will base the conversion of the selected reaction, in
the Key Component list. Conversion is defined as the fractional
conversion of the key component.
11 Enter the coefficients (A, B, C and D) for the fractional
conversion correlation:
Conv = A + B/T + C*ln(T) + D*T
You can also enter the conversion on the RadFrac Reactions
Conversion sheet, to override the value computed from the
conversion correlation.
Salt Precipitation In addition to liquid and vapor phase reactions, you also can
Reactions (for specify salt precipitation reactions. These reactions are liquid/solid
RadFrac only) phase equilibrium reactions, where the solid phase consists of a
single salt.
Aspen Plus 12.1 User Guide Specifying Reactions and Chemistry • 27-21
To add salt precipitation type reactions to your Reac-Dist Reaction
ID:
1 Click New on the Reactions Stoichiometry sheet of your Reac-
Dist Reaction ID.
2 On the Select Reaction Type dialog box, select Salt
Precipitation in the Choose Reaction Type frame.
3 Select the component name of the salt in the Precipitating Salt
list, and click OK.
4 On the Edit Salt dialog box, enter components and
stoichiometric coefficients for the salt dissociation products.
5 Click Close when finished. You should see the new reaction
displayed on the Stoichiometry sheet referenced by the
component name of the salt.
6 Repeat steps 1 through 5 for each additional salt precipitation
reaction.
7 Select the Salt sheet.
8 On the Salt sheet, select a salt from the Salt list.
9 If the reaction does not actually reach equilibrium, you can
specify the Temperature Approach to Equilibrium. The
temperature approach you enter will be added to the stage
temperature to compute the equilibrium constant.
10 Choose whether you want to compute the equilibrium constant
(solubility product) from Gibbs energies or from a built in
polynomial expression by selecting the appropriate radio
button.
If you choose Compute Keq From Gibbs Energies, you do not
need to enter coefficients for the equilibrium constant.
Aspen Plus will compute Keq from the reference state Gibbs
free energies of the components.
11 If you choose Compute Keq From Built-In Expression, you
need to enter coefficients for the built-in equilibrium constant
expression, and choose a concentration basis for the
equilibrium constant in the Keq Basis field.
27-22 • Specifying Reactions and Chemistry Aspen Plus 12.1 User Guide
• Accesses the Aspen Plus electrolytes reaction database for
equilibrium constant data
See Specifying Electrolytes Chemistry.
Aspen Plus 12.1 User Guide Specifying Reactions and Chemistry • 27-23
11 If solids are present, click the Solids button and select the
appropriate options for calculation of concentration. See
Reactions With Solids for details.
12 Select the Subroutine sheet.
13 On the Subroutine sheet, enter the name of the user subroutine,
in the Name field. For more information on using and writing
user kinetics models, see Aspen Plus User Models.
For any equilibrium reactions within a User type Reaction ID,
specify them as you would for equilibrium reactions within a
Powerlaw Reaction ID. For details, see Specifying Power Law
Reactions for Reactors and Pressure Relief Systems.
27-24 • Specifying Reactions and Chemistry Aspen Plus 12.1 User Guide
C H A P T E R 28
Property Sets
Specifying Phase The default for phase is Total. If a property cannot accept Total
Qualifiers phase as a qualifier, you must enter an appropriate alternative
(Liquid, Vapor, 1st liquid, 2nd liquid, or Solid).
The phases you select should be consistent with the type of
calculation desired. For example, if you request 1st and 2nd liquid
phase properties for a heating/cooling curve for a Heater block, the
block should perform either rigorous three-phase or free-water
calculations.
Specifying By default, Aspen Plus calculates properties at the stream
Temperature and conditions. Alternatively, you can specify the temperature and
Pressure Qualifiers pressure for property calculations in the Temperature and Pressure
fields of the Prop-Sets Qualifiers sheet. These specifications do not
Example of Property Set Define a property set consisting of the activity coefficients for
for Activity Coefficients components C1 and C2 in the liquid phase. The activity
Over a Temperature coefficients are evaluated at 100, 200, and 300°F.
Range
User-Defined Properties
You can define your own properties for use in property sets. You
must supply a Fortran subroutine to calculate each property. See
Aspen Plus User Models for more information about user
subroutines.
To define an additional property for use in property sets:
1 From the Data menu, click Properties.
2 Open the Advanced folder by double-clicking on it in the left
pane of the Data Browser.
3 Select UserProperties.
4 On the UserProperties Object Manager, click New.
5 Enter a user property ID or accept the default ID, and click OK
6 On the Specifications sheet, select whether your user property
will be a standard property or an Assay curve property.
7 For standard properties, enter the name of the subroutine to be
used for calculating the property, in the User Subroutine Name
field.
8 Use the remaining fields on the Specifications sheet to enter
information about the property.
9 On the Units sheet, specify whether you want any units
conversion to be performed automatically by Aspen Plus, or
within your user subroutine.
Analyzing Properties
– or –
Properties for Binary You can generate common phase diagrams for binary systems to:
Systems • Check the validity of data and parameter values
• Assess the degree of nonideality
• Check for existence of azeotropes
• Check for existence of two liquid phases
• Check quality of extrapolation of the model
Completing the To complete the specifications for a Pxy type Binary Analysis, you
Specifications for Pxy can either modify the following specifications or accept the
Binary Analysis defaults:
For You can specify The default
is
Valid Phases Rigorous Vapor-Liquid, Vapor-Liquid- Vapor-Liquid
Liquid, or Vapor-Liquid-FreeWater
calculations
Completing the To complete the specifications for a Gibbs Energy of Mixing type
Specifications for Gibbs Binary Analysis, you can either modify the following
Energy of Mixing specifications or accept the defaults.
Item Information
Units of Gibbs energy If you do not specify the units, they will be
determined by the Units-set specified on the
Setup Specifications Global sheet.
Pressure The default is 1 atm
Temperature(s) The default is 25°C. You can specify more than
one temperature, by entering a list of
temperatures, or you can specify a range of
temperatures and a number of points or an
increment size.
When finished, click Go to generate the Gibbs energy of mixing
versus x diagram, or click Save As Form to save your interactive
Property Analysis to forms within the Data Browser.
Saving an interactive Property Analysis as forms enables you to
preserve the input and results of this Property Analysis to view or
modify at a later time.
For more information on using forms to create Property Analyses,
see Generating Property Analyses Using Forms.
Aspen Plus displays the results in tabular form in a form window
and as a plot. If you specify more than one temperature, Gibbs
energy of mixing diagrams for all the temperatures appear on a
single plot.
Residue Curves Residue Curves (or maps) plot the composition trajectories of a
ternary mixture undergoing distillation at total reflux. You can use
them to visualize the presence of azeotropes and the constraints
azeotropes impose on the degree of separation.
Use Residue Curves to predict feasible splits, select entrainers, and
analyze potential column operability problems.
Use Residue Curves with nonideal chemical systems, and property
methods that represent such systems. Examples are activity-
coefficient-based property methods, such as NRTL, Wilson,
UNIQUAC, and UNIFAC. Do not use electrolyte property
methods.
Generating Residue To generate Residue Curves using the interactive Analysis Residue
Curves commands:
1 Make sure your Setup, Components, and Properties
specifications are complete.
2 From the Tools menu, point to Analysis, then Property, then
Residue.
Stream Properties You can calculate and display stream properties interactively as
you create your simulation model. You do not have to complete the
flowsheet definition or input specifications first. For example, to
check your Property Method, you can analyze a feed stream as
soon as you define it. As you develop a flowsheet model
interactively, you can check the phase behavior of intermediate
streams to help you determine feasible specifications.
The following table shows the types of stream analyses you can
perform:
Type Description
Point Stream properties for the total stream and each of the phases present. Properties
include temperature, pressure, phase fractions, flow rates, and many
thermodynamic and transport properties.
Component Flow Component flow rates for the total stream and each of the phases present. Mole,
mass, and standard liquid volume fractions are available.
Composition Component fractions for the total stream and each of the phases present. Mole,
mass, and standard liquid volume fractions are available. Partial pressure is also
available.
Petroleum Point properties, plus API gravity, specific gravity, Watson K factor, and kinematic
viscosity
Dist-Curve † Petroleum distillation curves (TBP, D86, D160, and vacuum)
Bubble/Dew †† Bubble point temperature and dew point temperature versus pressure curves
PV Curve †† Vapor fraction versus pressure curves at stream temperature
TV Curve †† Vapor fraction versus temperature curves at stream pressure
References
Doherty, M.F. and Perins, J.D., Chem. Eng. Sci., (1978), Vol. 33,
p. 281
Wahnschaft, O., "The Product Composition Regions of Single-feed
Azeotropic Distillation Columns," Ind. Eng. Chem. Res., (1992),
Vol. 31, pp. 2345-2362.
Atoms Numbers and When you enter an existing atom number, Aspen Plus displays the
Types atom type (except for the first pair of atoms). You can omit
specifying values in the Number and Type fields for the first atom
of a pair. Aspen Plus will automatically use the atom number and
type of the second atom for the previously entered pair. Enter a
number for the second atom of the current pair.
You can use the following bond types to simplify the task of
entering the structure of common ring compounds and saturated
hydrocarbons:
Special Bond Type Description
Benzene ring Benzene ring
Sat. 5-member ring Saturated 5-member ring
Sat. 6-member ring Saturated 6-member ring
Sat. 7-member ring Saturated 7-member ring
Sat. hydrocarbon chain Saturated hydrocarbon chain
When you use these special bond types, the atom numbers
assigned to the members of the carbon ring or carbon chain must
be consecutive.
CH 3
CH CH 2 OH
CH 3
i =1 σ T ,i σ σ σ y ,i , j
n =1
P ,i j =1 x ,i , j j =1
Use Plot Wizard from the Plot menu to plot the residual of
pressure for case VLE 1.
Add the results from the NRTL and UNIQUAC cases to the
plot for WILSON. (See Comparing Results From Several
Cases.)
This section explains how to use the Assay Data Analysis and
Pseudocomponent System (ADA/PCS) to define and characterize
petroleum mixtures.
Topics include how to:
• Use ADA/PCS
• Create assays and enter assay data
• Create a blend and enter blend specifications
• Generate and define pseudocomponents
• Define and modify petroleum properties
• Examine ADA/PCS results
About ADA/PCS
Assay data and pseudocomponents are used to represent petroleum
products in which the precise composition in terms of specific
components is not known. Assay data analysis (ADA) and the
pseudocomponent system (PCS) allow you to enter assay data
from industry-standard laboratory tests and generate a set of
pseudocomponents to represent the petroleum mixture.
About Pseudocomponents represent fractions of a petroleum mixture
Pseudocomponents within specified ranges of true boiling point (TBP). You can enter
cut point temperatures to specify these ranges, or use the default
cut points. ADA/PCS cuts the TBP distillation curve at these
temperatures to determine the proportions of the
pseudocomponents. Material which boils at temperatures above the
highest cut point is included in the highest-temperature
pseudocomponent. Material which boils at temperatures below the
Aspen Plus 12.1 User Guide Petroleum Assays and Pseudocomponents • 32-1
lowest cut point is included in the lowest temperature cut point,
except for specific components specified as light ends. (See About
Light Ends.) Pseudocomponents are not created for cut point
temperatures outside the range of the distillation curve data unless
All is selected for the Pseudocomponent generation option on the
Components | Petro Characterization | Generation | Cuts sheet.
ADA/PCS determines the normal boiling point of each
pseudocomponent by integrating the distillation curve to produce a
volume-fraction or weight-fraction average boiling point
(depending on the basis of the entered distillation curve).
You can also create user-defined pseudocomponents on the
Components | Specifications | Selection sheet. Rather than being
generated from assay data, these pseudocomponents are
characterized by the data you enter on the Components |
Pseudocomponents form.
You must enter two of the following types of data for each user-
defined pseudocomponent:
• Molecular weight
• Normal boiling temperature
• Specific gravity or API gravity
About Assay Data Assay data consists of distillation curves and other related curves
such as gravity, molecular weight, and petroelum property curves.
At a minimum, you must provide a distillation curve and a bulk
gravity value or gravity curve for each assay.
The gravity curve (either specific gravity or API gravity) is used in
conjunction with the distillation curve to estimate the specific
gravity of each generated pseudocomponent. If you do not provide
a gravity curve, ADA/PCS estimates the specific gravity of each
pseudocomponent from the bulk gravity value and the distillation
curve by assuming constant Watson UOP K.
Given the normal boiling point and specific gravity, the molecular
weight and other characterization parameters can be estimated. See
About Pseudocomponent Property Methods. Optionally, you can
enter a molecular weight curve. If you do, then the molecular
weight curve is used to estimate the molecular weight of each
pseudocomponent, in a manner analogous to the specific gravity
estimation.
Distillation curves may be in the forms of true boiling point (TBP),
vacuum distillation, ASTM D86, D1160, or simulated distillation
(D2887).
32-2 • Petroleum Assays and Pseudocomponents Aspen Plus 12.1 User Guide
Distillation Curve Type Basis (%) Pressure
TBP volume or weight atmospheric
ASTM D86 volume atmospheric
ASTM D1160 volume vacuum
ASTM D2887 weight vacuum
Vacuum volume or weight vacuum
ADA/PCS will convert the distillation curve you enter to the true
boiling point (TBP) basis at atmospheric pressure, as well as
(optionally) other distillation curve types.
You can enter additional data, such as light-ends analysis, a gravity
curve, or a molecular weight curve. ADA/PCS will estimate any
data you do not enter.
About Petroleum You can also enter curves for petroleum properties (also known as
Property Curves inspection properties), such as sulfur content, metal content, freeze
point, or octane number. These properties are often used as
industrial measures of the quality of a petroleum stream. The
following properties are available:
Property Name Description Default Blending Units
Rule
Anilpt Aniline point – Temperature
Visc Viscosity – Viscosity
Kvisc Kinematic viscosity – Diffusivity
Flashpt Flash point – Temperature
Freezept Freeze point – Temperature
Roc-No Research octane – None
number
Sulfur Sulfur content Weight Contents
Basic-N2 Basic nitrogen content Weight Contents
Hydrogen Hydrogen content Weight Contents
Oxygen Oxygen content Weight Contents
Metal Metal content Weight Contents
Paraffin Paraffin content Volume Contents
Naphthen Naphthene content Volume Contents
Olefin Olefin content Volume Contents
Aromatic Aromatic content Volume Contents
Refindex Refractive index – None
Carbon Carbon residue Weight Contents
Pourpt Pour point – Temperature
Moc-No Motor octane number – None
Mercapta Mercaptan content Weight Contents
Total-N2 Total nitrogen content Weight Contents
Aspen Plus 12.1 User Guide Petroleum Assays and Pseudocomponents • 32-3
Property Name Description Default Blending Units
Rule
Iron Iron content Weight Contents
Nickel Nickel content Weight Contents
Vanadium Vanadium content Weight Contents
Smokept Smoke point – Temperature
Lumi-No Luminometer number – None
Rvp Reid vapor pressure – Pressure
Knockidx Antiknock index – None
Vlockidx Vapor knock index – None
Warmidx Warm-up index – None
Visccrv Viscosity curve
Kvisccrv Kinematic viscosity
curve
Cloudpt Cloud point
Cocarbon Conradson carbon
content
Asphalte Asphaltene content
Bromine Bromine number
Cetane Cetane number
Paraffin, naphthene, olefin, and aromatic content are normally
specified in volume percent. Other properties which represent
composition, such as Sulfur, are normally specified in weight
percent. You can specify these in either basis, and results will be
returned in the same basis, but be sure to specify the blending
method on the Components | Petro Characterization | Analysis
Options | Blend Options sheet if you use a different basis than the
default.
About Light Ends Assay data of certain crude oils, especially light crudes, may
contain detailed analysis of defined components, typically
including methane through n-hexane. You can enter the fractions
(on a mole, mass, or standard volume basis) of these light ends
components. These components will be subtracted from the assay
for the purpose of determining pseudocomponent flows.
You can enter petroleum properties for the specific components in
the light end of the assay, if you know them.
About Blends You can define blends as combinations of defined assays in
specified proportions. ADA/PCS will estimate the properties of
blends from the properties of the assays.
32-4 • Petroleum Assays and Pseudocomponents Aspen Plus 12.1 User Guide
Using ADA/PCS
You can use ADA/PCS in:
• A standalone Assay Data Analysis run
• A flowsheet simulation run
To use ADA/PCS on a standalone basis, specify Assay Data
Analysis in the Run Type field on the Setup | Specifications |
Global sheet, or specify Assay Data Analysis in the Run Type
field on the New dialog box when creating a new run from a
template.
In an Assay Data Analysis run, only ADA/PCS calculations are
performed. You can display and plot the distillation curves for
assays and blends in different bases, and examine the generated
pseudocomponents and their properties.
In a Flowsheet run, you can use assays, blends, and
pseudocomponents to define process feed streams for the
simulation. If you entered petroleum properties, Aspen Plus
automatically associates these properties with the streams.
Creating Assays
You can define an assay using one of the following:
• Components Specifications Selection sheet
• Assay-Blend Object Manager
Defining an Assay To define an assay using the Components Specifications Selection
Using the sheet:
Components 1 From the Data menu, select Components, then Specifications.
Specifications
Selection Sheet 2 On the Components Specifications Selection sheet, enter a
name for the assay in the Component ID field.
3 In the Type list, select Assay as the component type.
4 In the left pane of the Data Browser, click the Assay/Blend
folder.
5 In the Assay/Blend Object Manager, select the Assay ID for
which you are entering assays, then click Edit.
Select the appropriate Assay sheet to enter assay data.
Defining an Assay To define an assay using the Assay-Blend Object Manager:
Using the Assay- 1 From the Data menu, select Components, then Assay/Blend.
Blend Object
Manager 2 On the Assay-Blend Object Manager, click New.
3 In the Create New ID dialog box, choose Assay in the Select
Type list.
Aspen Plus 12.1 User Guide Petroleum Assays and Pseudocomponents • 32-5
4 Enter an ID for the assay, or accept the default ID.
5 Click OK.
The Assay Input menu appears. Select the appropriate assay sheet
to enter assay data.
Entering a Distillation The assay distillation curve and bulk gravity value are entered on
Curve and Bulk the Dist Curve sheet of the Components Assay/Blend Basic Data
Gravity Value form.
To enter the required distillation curve and gravity input:
1 From the Data menu, select Components, then Assay/Blend.
2 On the Assay-Blend Object Manager, select the assay for
which you wish to enter data, and click Edit.
3 On the Dist Curve sheet, select a type of curve in the
Distillation Curve Type list.
4 In the Percent Distilled and Temperature columns, enter at least
four pairs of distillation percent and temperature values for the
curve.
5 In the Bulk Gravity Value frame, enter either Specific Gravity
or API Gravity, by clicking the appropriate radio button, and
typing in the value.
- or -
Click the Gravity/UOPK tab to open that sheet, and enter in a
gravity curve. (See next section for details on entering a gravity
curve.)
By default Aspen Plus reports the distillation curve in the input
and the true boiling (liquid volume) basis. You can use the
Optional sheet to request additional distillation curves to be
reported for the assay.
Use the remaining sheets on the Basic Data form, as well as the
Property Curves form, to enter optional information as
described below.
32-6 • Petroleum Assays and Pseudocomponents Aspen Plus 12.1 User Guide
Entering a Gravity If you do not enter a bulk gravity value on the Components |
Curve Assay | Basic Data | Dist Curve sheet, you must enter a gravity
curve on the Gravity/UOPK sheet. You may enter either specific
gravity or API gravity.
If you entered a bulk gravity value on the Dist Curve sheet, you
may also enter a gravity curve. It will be normalized to match the
specified bulk gravity value.
If you entered a bulk gravity value, and the distillation curve type
is not True Boiling Point (weight basis) or Vacuum (weight basis),
then you may enter a Wilson UOP K curve on the Gravity/UOPK
sheet.
To enter a gravity curve or Wilson UOP K curve:
1 On the Gravity/UOPK sheet of the Components Assay/Blend
Basic Data form, select the type of gravity data you wish to
enter by clicking one of the options in the Type frame.
2 Enter at least four pairs of mid-percent and gravity values to
define the profile in the columns for data.
Entering a Molecular You can enter a molecular weight curve using the Molecular Wt
Weight Curve sheet of the Assay/Blend Basic Input form. If you do not enter a
molecular weight curve, Aspen Plus estimates it from the
distillation curve and gravity you specify.
To enter a molecular weight curve:
• On the Molecular Wt sheet, enter at least four pairs of values in
the Mid Percent Distilled and Molecular Weight fields to
define the curve.
Entering Light-Ends You can enter light-ends analysis for an assay in terms of the
Analysis compositions of light-ends components. If you enter light-ends
analysis, Aspen Plus does not generate pseudocomponents for the
light-ends portion of the assay. If you wish to specify light-ends
analysis, do this on the Light Ends sheet of the Components
Assay/Blend Basic Data form.
To enter a light-ends analysis:
1 In the Light Ends Analysis frame of the Light Ends sheet, use
the Component and Fraction columns to enter the component
IDs and light ends fractions that make up the analysis. For your
fractions, you can select a basis of Mass, Mole, or Standard
Liquid Volume at the top of the column.
2 If the light-ends component is not in the databank, specify
gravity and molecular weight in the Gravity and Molecular
Weight fields of the analysis table.
3 Optionally, at the top of the sheet, enter the light-ends fraction
as a fraction of the assay, in the Light Ends Fraction field.
Aspen Plus 12.1 User Guide Petroleum Assays and Pseudocomponents • 32-7
If you enter this value, the specified individual component
fractions are normalized to this overall value. If you omit this
value, individual component fractions are treated as fractions
of the entire assay mixture.
Entering Petroleum You can enter any number of petroleum property curves for an
Property Curves assay, using the Petro Properties sheet of the Components
Assay/Blend Property Curves form. Aspen Plus allows a variety of
built-in curve types. Based on these curves, Aspen Plus assigns
property values to individual pseudocomponents in the simulation.
Examples of petroleum properties include:
• Sulfur content
• Metal content
• Octane numbers
To enter petroleum property curves:
1 On the Petro Properties sheet, select a petroleum property in
the Property Type list.
2 In the Property Curve Data frame, enter at least four pairs of
values in the Mid Percent Distilled and Property Value fields,
to define the curve.
3 Optionally, enter a bulk value for the property in the Bulk
Value field. If you enter a bulk value, Aspen Plus normalizes
the individual curve values to the bulk value.
4 To enter additional property curves, repeat steps 1 through 3
for each additional property.
Entering Viscosity You can enter viscosity curves at different temperatures for an
Curves assay using the Viscosity sheet of the Components Assay/Blend
Property Curves form. Viscosity curves can be entered as either
absolute or kinematic viscosity values as a function of percent
distilled for the assay. Based on these curves, Aspen Plus will
assign viscosity to pseudocomponents generated for the assay.
To enter viscosity curves:
1 On the Viscosity sheet of the Components Assay/Blend
Property Curves form, choose a type of viscosity (Absolute or
Kinematic) by clicking on the appropriate option in the Type
frame.
2 In the Temperature list, select New.
3 In the New Item dialog box, enter a temperature for the
viscosity curve, and click OK.
4 In the Mid Percent Distilled and Viscosity fields, enter at least
four pairs of values to define the curve.
32-8 • Petroleum Assays and Pseudocomponents Aspen Plus 12.1 User Guide
5 To enter viscosity curves at additional temperatures, repeat
steps 1 through 5 for each curve.
To compute viscosity at multiple temperatures from the curves in
the simulation, you must enter viscosity curves for at least two
temperatures.
Creating a Blend
You can create a blend from any number of assays.
Aspen Plus performs blending on all available assay data:
• Distillation curves
• Gravity curves
• Molecular weight curves
• Light-ends analysis
• Petroleum properties curves
• Viscosity curves
Petroleum and viscosity curves are blended using the built-in or
user-supplied blending rules. See Modifying Petroleum Property
Definitions.
When you define a stream using a blend, Aspen Plus automatically
associates the petroleum properties and viscosity for the blend with
the stream.
You can define a blend using either of the following:
• Components Specifications Selection sheet
• Assay-Blend Object Manager
Defining a Blend To define a blend using the Components Specifications Selection
Using the sheet:
Components 1 From the Data menu, select Components, then Specifications.
Specifications
Selection Sheet 2 On the Components Specifications Selection sheet, enter a
name for the blend in the Component ID field.
3 In the Type list, select Blend as the component type.
4 In the left pane of the Data Browser, click the Assay/Blend
folder.
5 In the Assay/Blend Object Manager, select the Blend ID you
just created, and click Edit. The Components Assay/Blend
Mixture form appears.
To enter the blend specifications, see Entering Blend
Specifications.
Aspen Plus 12.1 User Guide Petroleum Assays and Pseudocomponents • 32-9
Defining a Blend To define a blend using the Assay-Blend Object Manager:
Using the Assay- 1 From the Data menu, select Components, then Assay/Blend.
Blend Object 2 On the Assay-Blend Object Manager, click New.
Manager
3 In the Create New ID dialog box, choose Blend in the Select
Type list.
4 Enter an ID for the blend, or accept the default ID.
5 Click OK.
The Components Assay/Blend Mixture form appears. To enter
the blend specifications, see Entering Blend Specifications.
32-10 • Petroleum Assays and Pseudocomponents Aspen Plus 12.1 User Guide
API Technical Data Book method for D2887 curves, and the 1963
API Technical Data Book method for D1160 curves.
You can specify the methods used for blending petroleum
properties. These methods are used when calculating bulk
properties as well as in determining the properties of blends from
the properties of their constituent assays. The properties can be
blended as a weighted average on a standard volume, mass, or
mole basis, or by a user-supplied subroutine. You can also specify
whether to extrapolate each property beyind the range of available
data.
If you specify the User method, you can also specify a blend
option, an integer code which can be used to select one of multiple
methods implemented by the user blending routine.
You can specify the spline fitting method for distillation curves.
Spline fitting is used for interpolation of the curves. The Hermite
method is recommended for most cases). The Harwell method is
the default. The Linear method uses linear interpolation between
the points on the distillation curves, and is recommended when the
distillation curves contain many closely-spaced points.
If you enter a molecular weight curve, ADA/PCS integrates the
curve to obtain the average molecular weight. You can specify the
integration step size, but the default of 0.1 works well for most
cases.
Use the sheets on the Components | Petro Characterization |
Analysis Options form to specify these options.
Use this sheet To specify
Assay Procedures Assay data analysis procedure, distillation curve
conversion method, and curve processing
options.
Blend Options Blending options for petroleum properties.
Advanced Distillation curves spline fitting method and step
size for molecular weight curve integration.
Overriding the The default assay options are appropriate for most applications. To
Default Assay override the default options:
Analysis Options 1 From the Data menu, select Components.
2 In the left pane of the Data Browser window, double-click
Petro Characterization, then click Analysis Options.
3 On the Assay Procedures sheet, choose the preferred analysis
procedure in the Assay data analysis procedure frame,
Version 9 or later or Version 8 or earlier.
Aspen Plus 12.1 User Guide Petroleum Assays and Pseudocomponents • 32-11
4 In the Curve processing options frame, you can modify the
default values for initial and final boiling point and
extrapolation method.
5 In the Distillation curve conversion method frame, specify
the methods for converting ASTM D86, D2887, and D1160
distillation curves to true boiling point (TBP) data.
6 On the Blend Options sheet, specify the blending method for
each petroleum property and whether to extrapolate the
property beyond the range of available data.
If you select the User method, you can specify a blend option
for each property which will be used by the user-supplied
blending routine.
7 On the Advanced sheet, specify the spline fitting method for
distillation curves and the minimum step size for integration of
molecular weight curves in determining average molecular
weight. If integration fails, reduce the step size.
Entering Optional Use the Assay | Basic Data | Optional sheet to enter optional
Assay Data specifications for assays.
Specifications
You can choose whether to apply the API cracking correction if
you have specified ASTM D86 data.
You can specify whether to match Light Ends with the distillation
curve.
By default, ADA/PCS reports the distillation curve for assays in
input form and in true boiling point form. You can request
additional reports of the distillation curve in ASTM D86, ASTM
D1160, or vacuum (liquid volume basis) forms.
Entering Optional By default, ADA/PCS reports the distillation curve for blends in
Blend Specifications true boiling point form. You can request additional reports of the
distillation curve in ASTM D86, ASTM D1160, or vacuum (liquid
volume basis) forms. Use the Blend | Mixture | Specifications
sheet to request these reports.
32-12 • Petroleum Assays and Pseudocomponents Aspen Plus 12.1 User Guide
• Freeze point
• Octane numbers
You can modify the definition of these pre-defined properties, or
you can define new properties. See Defining a New Petroleum
Property.
To modify the definition of a petroleum property:
1 From the Data menu, select Components, then Petro
Characterization.
2 In the left pane of the Data Browser window, click the Analysis
Options folder.
3 On the Analysis Options form, select the Blend Options sheet.
4 In the Property list, select a petroleum property you wish to
modify.
5 In the Blend Method field, select a property blending method.
6 If you are using a user blending subroutine, enter an option
code in the Blend Option field. See Aspen Plus User Models
for instructions on writing this subroutine.
7 If the property curve does not encompass 0 and 100 percent,
specify whether it is to be extrapolated in the Extrapolate field.
Aspen Plus 12.1 User Guide Petroleum Assays and Pseudocomponents • 32-13
In general, one average set of pseudocomponents is sufficient for
all assays and blends in the simulation. When more than one assay
or blend is used to define a set of pseudocomponents, you can
specify weighting factors to reflect their relative flowrates.
At times, you can improve characterization accuracy by generating
separate sets of pseudocomponents for some assays and blends.
Use multiple sets of pseudocomponents when multiple assays and
blends are used to define flowsheet streams, and the assays or
blends have either of the following characteristics:
• Distillation curves have significant overlaps
• Gravities and Wilson K factors are very different
Multiple sets of pseudocomponents in the simulation increase
computation time.
Pseudocomponent By default, ADA/PCS generates pseudocomponents using the
Cut Points following stanard set of cut points:
TBP Range ( F) Number of Cuts Increments ( F)
100 – 800 28 25
800 – 1200 8 50
1200 – 1600 4 100
By default, ADA/PCS generates pseudocomponents only for cuts
within the true boiling point (TBP) range of an assay or blend.
Use the Components | Petro Characterization | Generation |
Cuts sheet to override the standard cut points. Also on this sheet
you can choose to generate pseudocomponents for all cuts.
Pseudocomponent By default, the generated pseudocomponents are named according
Naming Options to their calculated average normal boiling point. You can use the
Components | Petro Characterization | Generation | Naming
Options sheet to select other naming conventions or to specify
names for the pseudocomponents.
If you select the Generate pseudocomp name checkbox then
Aspen Plus generates the names for the pseudocomponents and
displays them on this sheet.
If you specify names for pseudocomponents, or use the Generate
pseudocomp name option, these names appear on the Input |
Specifications sheets for material streams, allowing you to enter
pseudocomponent flows or estimates.
32-14 • Petroleum Assays and Pseudocomponents Aspen Plus 12.1 User Guide
Entering Specifications for
Generation of Pseudocomponents
To generate a set of pseudocomponents:
1 From the Data menu, select Components, then Petro
Characterization.
2 In the left pane of the Data Browser window, select the
Generation folder.
3 In the Generation Object Manager, click New.
4 In the Create New ID dialog box, enter an ID for the set of
pseudocomponents, or accept the default ID.
5 Click OK.
The Components Petro Characterization Generation form
appears with the Specifications sheet selected.
6 On the Specifications sheet, select the assays and blends for
which an average set of pseudocomponents is to be generated,
using the Assay/Blend ID list.
7 In the Weighting Factor field, you can assign weighting factors
to reflect the relative importance of each assay or blend in the
generation of pseudocomponents. By default each assay or
blend is given an equal weight of one.
8 At the bottom of the sheet, select a property method in the
Property Method list. This property method represents the
models to be used in the estimation of all pseudocomponent
properties. By default ADA/PCS uses the ASPEN
pseudocomponent property method to estimate
pseudocomponent properties. See About Pseudocomponent
Property Methods for a description of the built-in property
methods.
9 If you want to override the default cut points, specify cut points
on the Cuts sheet. You can specify either a list of cut points or
a set of temperature ranges and either a number of cuts or the
cut increment for each range.
10 On the Naming Options sheet, you can override the default
naming convention for pseudocomponents. If you choose User
defined list, enter the names for the pseudocomponents on this
sheet.
Aspen Plus 12.1 User Guide Petroleum Assays and Pseudocomponents • 32-15
Defining Pseudocomponents and
Entering Pseudocomponent
Properties
In addition to allowing Aspen Plus to automatically generate
pseudocomponents for your specified assays and blends, you also
can choose to define pseudocomponents directly.
To create user-defined pseudocomponents, first enter them on the
Components Specifications form:
1 From the Data menu, select Components, then Specifications.
2 On the Selection sheet, enter the names for the user-defined
pseudocomponents in the Component ID fields.
3 Select PseudoComponent as the component type in the Type
list. Leave the Component Name and Formula fields blank for
pseudocomponents.
Entering Basic Once the pseudocomponents are defined on the Components
Properties for Specifications form, enter the basic properties for the
Pseudocomponents pseudocomponent on the Components Pseudo Components
Specifications sheet:
1 From the Data menu, select Components, then
PseudoComponents.
The Components PseudoComponents form appears with the
Specifications sheet displayed.
2 On the Specifications sheet, the pseudocomponents you
defined on the Components Specification form are listed in the
Pseudocomponents column. For each pseudocomponent, enter
at least two of the following properties to characterize the
pseudocomponent:
• Average normal boiling point
• Gravity/Density
• Molecular weight
Gravity or density can be entered in any of the following
formats:
• API gravity
• Specific gravity
• Standard liquid density
3 If you wish to modify the default pseudocomponent property
method, select a new method in the Property Method list. See
About Pseudocomponent Property Methods for descriptions of
the built-in option sets.
32-16 • Petroleum Assays and Pseudocomponents Aspen Plus 12.1 User Guide
The default view of the PseudoComponents Specification sheet is
the Basic Layout view. This view allows for a single
pseudocomponent property method, and a single type of gravity or
density to represent all pseudocomponents. If you wish to specify
different property methods, or different types of gravity or density
for individual pseudocomponents, you can select Advanced Layout
from the View list at the top of the sheet. The Advanced Layout
allows individual specifications of property methods and gravity or
density types for each pseudocomponent.
Entering From the basic pseudocomponent properties you entered on the
Temperature- PseudoComponents Specifications sheet, Aspen Plus estimates all
Dependent Properties pure component properties needed for flowsheet simulation.
for
Optionally, you also can provide vapor pressure, viscosity, and
Pseudocomponents
water solubility data as a function of temperature for
pseudocomponents. This improves the accuracy of the
characterization.
To enter these temperature-dependent properties:
1 From the Data menu, select Components, then
PseudoComponents.
2 On the Components PseudoComponents form, there are
separate sheets for Vapor Pressure, Viscosity, and Water
Solubility. Click the appropriate sheet for the type of data you
wish to enter.
3 On the selected sheet, choose a pseudocomponent from the
Component ID list.
4 In the frame below the Component ID, enter the property data
as a function of temperature.
5 To enter data for other components, repeat steps 3 and 4.
6 To enter another property, repeat steps 2 through 4.
Aspen Plus 12.1 User Guide Petroleum Assays and Pseudocomponents • 32-17
• Liquid molar volume
• Water solubility
• Viscosity
• Ideal gas heat capacity
• Enthalpy of vaporization
• Standard enthalpy and free energy of formation
• Equation of state properties
You can use a pseudocomponent property method in one of two
ways:
On sheet Specify a pseudocomponent
property method for
Components Petro Characterization Pseudocomponents generated from
Generation Specifications assays
Components PseudoComponents User-defined pseudocomponents
Specifications
You can choose from five built-in pseudocomponent property
methods:
Method Description
API-METH Uses procedures recommended by the American
Petroleum Institute (API) Data Book.
COAL-LIQ Uses correlations developed for coal liquids.
ASPEN Based on the API-METH property method, with
proprietary AspenTech enhancements for selected
properties. (Default option set)
LK Uses correlations by Lee and Kesler.
API-TWU Based on the ASPEN property method, but uses
correlations by Twu for critical properties.
EXTTWU Uses API procedures with AspenTech modifications
and extended Twu correlations for critical properties
EXTAPI Uses API procedures and extended Twu correlations
for critical properties
EXTCAV Uses extended Cavett and extended Edmister
correlations for critical properties
You also can create your own pseudocomponent property methods.
Use your own property methods in the same way as the built-in
option sets.
32-18 • Petroleum Assays and Pseudocomponents Aspen Plus 12.1 User Guide
Creating Pseudocomponent Property
Methods
You can create your own pseudocomponent property methods by
starting with a built-in method, and modifying individual models
for different pseudocomponent properties.
Aspen Plus provides several built-in models for each
pseudocomponent property. Or you can supply your own model
using a user-supplied subroutine. See Aspen Plus User Models for
instructions on writing this subroutine.
To create a new pseudocomponent property method:
1 From the Data menu, select Components, then Petro
Characterization.
2 In the left pane of the Data Browser window, click the
Properties folder.
3 In the Petro Characterization Properties Object Manager, click
New.
4 In the Create New ID dialog box, enter an ID (name) for the
new method, or accept the default ID.
5 Click OK.
6 On the Basic sheet of the Properties form for the new method,
select one of the built-in methods, by selecting from the Copy
All Models From list. The chosen property method will be used
as a basis for the new method.
The remaining fields on the sheet (as well as the
Thermodynamic sheet and the EOS sheet) display the models
used by the base method for each property.
7 Use the remaining fields on the Basic sheet, the
Thermodynamic sheet and the EOS sheet, to specify the
property models which make up the property method.
Aspen Plus 12.1 User Guide Petroleum Assays and Pseudocomponents • 32-19
2 In the left pane of the Data Browser window, click the User
Properties folder.
3 In the User Properties Object Manager, click New.
4 In the Create New ID dialog box, enter an ID (name) for the
new property, or accept the default ID.
5 Click OK.
6 On the Specifications sheet of the Properties Advanced User
Properties form, click the Assay Curve Property radio button at
the top of the sheet.
7 In the Assay Curve Property Frame, select a blending method
from the choices provided. The default method is Standard
Liquid Volume Averaging.
If you choose to use a user blending subroutine, enter an option
code in the Blending Option field. See Aspen Plus User Models
for instructions on writing this subroutine.
8 In the Default Property Used for Light Ends list, select a
property to provide values for light-ends components.
9 At the bottom of the sheet, you can choose whether you want
to extrapolate curve data that does not encompass the entire
composition range (0-100%). Extrapolation is turned on by
default. To turn off this option, click the check box to deselect
it.
10 Click the Units sheet.
11 Click the appropriate check box to specify how you want the
units conversion to be calculated.
12 If you choose to let Aspen Plus perform the units conversion,
select the type of units in the Units type list.
13 If you choose to perform the units conversion in a user
subroutine, enter a units label in the Units Label field. This
label will be used in stream reports and property curve results.
32-20 • Petroleum Assays and Pseudocomponents Aspen Plus 12.1 User Guide
3 In the left pane of the Data Browser window, click the Results
form beneath the selected assay or blend.
The Assay-Blend Results form appears, containing these
sheets:
Sheet Shows
Light Ends Analysis Results of the light ends analysis
Pseudocomp Pseudocomponent and light ends breakdown
Breakdown results
Curves Distillation curves and bulk properties results
Blend Fraction (Blends Compositions of blends
only)
4 From the Curves sheet, you can generate plots of distillation
temperatures versus percent distilled.
Examining To examine pseudocomponent property results:
Pseudocomponent 1 From the Data menu, select Components, then Petro
Property Results Characterization.
2 In the left pane of the Data Browser, click the Results folder.
The Petro Characterization Results form appears, containing these
sheets:
Sheet Shows
Summary Key properties of each pseudocomponent including
normal boiling point, API gravity, specific gravity,
molecular weight, and critical properties.
Petro Properties Petroleum properties of each pseudocomponent
generated from the petroleum property curves you
enter on the Assay/Blend Property Curves form.
These properties include, for example: aniline point,
flash point, sulfur content, and pour point.
Viscosity Viscosity of each pseudocomponent at different
reference temperatures corresponding to the
viscosity curves you enter on the Assay/Blend
Property Curves Viscosity sheet.
Use the type field to select absolute viscosity or
kinematic viscosity. You can also select the units of
measure for the viscosity results.
You can generate plots of pseudocomponent properties versus
boiling points or any other property.
Aspen Plus 12.1 User Guide Petroleum Assays and Pseudocomponents • 32-21
32-22 • Petroleum Assays and Pseudocomponents Aspen Plus 12.1 User Guide
C H A P T E R 33
Design Rules
Use the Rules sheet of the Pressure Relief Setup form to specify
rules regarding:
• Maximum vessel pressure (dynamic scenarios only)
• Inlet pipe pressure loss
Specifying Design To specify design parameters for your dynamic pressure relief
Parameters scenario:
1 On the Pressure Relief DynamicInput Design Parameters sheet,
first enter the Maximum Allowable Working Pressure in the
Vessel Design Pressure frame.
2 In the MAWP Temperature field, enter the temperature
corresponding to the specified maximum allowable working
pressure.
Inserts
An insert is a partial backup file that you can import into a run at
any time. Aspen Plus provides special data packages as inserts
which can be used as starting points for building new simulations,
or they can be imported into existing simulations. You can create
your own inserts for later use.
For help on inserts, see one of the following topics:
• What is an insert?
• Creating an insert
• Importing inserts
• Creating a property package
• Resolving ID conflicts
• Using electrolyte inserts from the Aspen Plus insert library
• Hiding objects
What is an Insert?
An insert is a partial backup file that you can import into a run at
any time. You can use an insert to create a:
• Property package, consisting of component and property
definitions
• Standard process unit, such as a crude column and its preheat
train
You can create your own inserts, or you can import inserts from
the Aspen Plus library of inserts. For more information, see Using
Electrolyte Inserts From the Aspen Plus Insert Library.
Creating an Insert To create an insert, you need to save a backup file containing the
information you want in your insert:
Example
Suppose you develop a property package for ethanol-water using
the NRTL property method. Specify the following information in
Aspen Plus, and save the specifications as a backup file:
• Components Specifications Selection sheet
• Properties Specifications Global sheet
• Properties Parameters Binary Interaction NRTL-1 form
Hiding Objects
You can use the Hide feature to temporarily remove optional
objects from a simulation, without deleting them. For example, you
STRLIB Commands
This table lists a summary of the commands you can use in
STRLIB.
You can abbreviate any STRLIB command. Enter all commands at
the STRLIB> prompt, typing enough letters to identify the
command as unique.
Command Description
ADD Add a stream to the library.
CASE Change the current case.
DELCASE Delete a case from the library.
DELSTREAM Delete a stream from the library.
DIRECTORY List the cases in the library and the streams in a case.
DUMP Write stream information to a file.
END End STRLIB and update the library.
EXIT End STRLIB and update the library.
HELP Display interactive help on STRLIB commands.
INITIALIZE Initialize a library.
LIST List streams in the summary file.
LOAD Load stream information from a dump file.
OPEN Open a summary file.
PACK Pack (compress) the library.
Creating a TFF
You can:
• Edit the TFFs provided with Aspen Plus to customize your
stream summary and stream tables. These files are located in
the Program Files\AspenTech\Aspen Plus 12.1\xeq directory if
you installed Aspen Plus in the default directory.
• Use TFF language to create your own TFF.
TFF File Format and Use TFF language to customize your stream summary or stream
Options table. Follow these rules:
• TFF sentences are not case sensitive.
• Any line beginning with a semi-colon in column 1 is treated as
a comment line.
Regular Properties
Prop-Name Description
MOLEFLMX Total mole flow
MASSFLMX Total mass flow
VOLFLMX Total volume flow
TEMP Temperature
FORMAT Stream property value display format string, enclosed in double quotes.
(Default=customized G format designed to show maximum precision) See
Formats for Numbers. Applies to both DISPLAY and PROP sentences.
PROP-LABEL Stream property label to override the Aspen Plus property label. Can be used, for
example, to replace the Aspen Plus property name MUMX with the label
Viscosity. Applies to PROP sentence only. May be truncated in the stream
summary, but displays in full in the stream tables.
UNITS Stream property value units of measurement (Setup.Units-Set1, Setup.Units-Set2
and Setup.Units-Set3 forms), enclosed in double quotes. Property value is
converted to your specifications. A stream property may be available in more
than one type of unit. For example, enthalpy for a stream may have units-types of
mole-enthalpy, mass-enthalpy, and enthalpy-flow. In this case the specified units
define both the units and the units types to be displayed. If no units are specified,
the stream property is displayed in all available units types. The units
specification is overridden if you select a units-set on the Results Summary
Streams form, but the units-types selection is sustained. Applies to PROP only.
(Default=global out-units for basic stream result properties and local units for
each additional prop-set).
UNITS-LABEL Label for units of measurement. The Units label is a character string enclosed in
double quotes. Overrides the Aspen Plus Units label. Can be used, for example,
to print the units label in lowercase characters. Applies to PROP sentence only,
and only if the UNITS qualifier is used.
NORMALIZE Normalization flag for component flow or fraction properties
NORMALIZE=YES Normalize property values. See The NORMALIZE
Option.
NORMALIZE=NO Do not normalize values. (Default)
Applies to DISPLAY and PROP sentences.
SCALE Scale factor. Property value is divided by scale factor before it is displayed. Used
to reduce the magnitude of printed values. You must also specify SCALE-
LABEL. Applies to PROP sentence only.
SCALE-LABEL Scale factor label enclosed in double quotes. Appears in front of the units label or
UNITS-LABEL you supply. Applies to PROP sentence only.
PPM Parts per million cut-off value. Property values below the specified number are
displayed as PPM. For example, if you specify PPM=1E-3, any property values
smaller than 0.001 are displayed as 1 PPM to 999 PPM. Applies only to
component flow or fraction properties. See The NORMALIZE Option and PPM,
PPB, and TRACE Options. Applies to both DISPLAY and PROP sentences.
PPB Parts per billion cut-off value. Property values below the specified number are
displayed as PPB. For example, by specifying PPB=1E-6, property values
smaller than 0.000001 are displayed as 1 PPB to 999 PPB. Applies only to
component flow or fraction properties. See The NORMALIZE Option and PPM,
PPB, and TRACE Options. Applies to both DISPLAY and PROP sentences.
Aspen Plus 12.1 User Guide Working with Other Windows Programs • 37-1
engineering changes. The benefits to you are quick and error-free
data transfer and consistent engineering results throughout the
engineering work process.
Copying and Pasting In Aspen Plus, data contained in the fields of input and result
Simulation Data forms can be copied and pasted using the standard Copy and Paste
commands on the Edit menu. For example, you can copy
information from a field or group of fields in Aspen Plus, and then
paste it into:
• Another location within the same Aspen Plus simulation
• Another Aspen Plus simulation
• Any other Windows application such as Word, Excel, or
Access®
Copying Data To copy information in Aspen Plus using the Copy command:
1 Select (or highlight) the information you wish to copy.
To select an individual field of data, simply click the mouse in
the field.
To select multiple fields of data, hold down the Ctrl key while
clicking the mouse on multiple fields.
When copying values from a table, you can:
• Click-and-drag the mouse over a desired range of results
• Select an entire column of data by clicking the column
heading
• Select an entire row of data by clicking the row selector
button (on the left of the row of data)
• Select the entire table by clicking the button on the top left
corner of the table
2 From the Edit menu, click Copy, or on the keyboard, press Ctrl
+ C.
The selected values are now contained in the Windows paste
buffer, and can be pasted into Aspen Plus, or another Windows
application.
Note: When selecting data to be copied from a field in Aspen Plus,
the entire field of information is copied, not just a selected portion
of the field. For example, if a field contains as its value the number
"1234.567", you cannot use the mouse to highlight a portion of the
value (such as "123") for copying.
The Copy command always copies the whole field, with these
exceptions:
• The Setup Specifications Description sheet
• Any Fortran or Declarations input sheet
37-2 • Working with Other Windows Programs Aspen Plus 12.1 User Guide
• The Comments dialog box for individual forms
Use the text box on these sheets for entering information, and to
select and copy information.
Copying with Format By default, the Copy command copies only the value (or values) of
information. Use the Copy with Format command from the Edit
menu to request that the label, units and basis for the values be
included with the value.
To copy information in Aspen Plus using the Copy with Format
command:
1 Select (or highlight) the information you wish to copy.
To select an individual field of data, click the mouse in the
field.
To select multiple fields of data, hold down the Ctrl key while
clicking the mouse on multiple fields.
Tip: When copying values from a table, you can click-and-drag
the mouse over a desired range of results, or you can select an
entire column or row of data by clicking the column heading or
row selector button.
2 From the Edit menu, click Copy with Format.
3 On the Copying dialog box that appears, click the check boxes
representing the type(s) of information that you want to be
included in the copy buffer.
4 Click OK.
The selected information is now contained in the Windows
paste buffer, and can be pasted into Aspen Plus, or another
Windows application.
Note: You can change the default formats included with the
standard Copy command, by selecting options in the Copy Buffer
Format frame of the General sheet on the Tools Options dialog
box.
Pasting To paste information in Aspen Plus using the Paste command:
1 First, ensure that the paste buffer contains information that has
been copied from Aspen Plus, or another Windows application.
Aspen Plus 12.1 User Guide Working with Other Windows Programs • 37-3
2 Click the mouse in the input field where you wish to paste the
information. For multiple fields of information, click in the
upper-left most field.
3 From the Edit menu, click Paste or on the keyboard, press Ctrl
+ V.
4 If prompted with a message asking if you want to extend the
grid, click Yes. Aspen Plus needs to extend the grid if you are
pasting more rows or columns of data than are currently
displayed.
The information contained in the paste buffer will now appear
in the field, or group of fields you selected with the cursor.
This information remains in the paste buffer, and can be pasted
into additional locations by repeating steps 2 through 4.
Note: The Paste command has automatic filtering which prevents
the pasting of inconsistent or inappropriate information. For
example, you cannot paste a real value into an integer input field.
Example of Cutting and In this example, stream results are pasted into stream input fields.
Pasting Within Aspen This is a common task when you want to save final results as
Plus initial estimates for tear streams.
1 Open stream results. To do this, click the tear stream to select
it, then click it with the right mouse button. On the popup menu
that appears, click Results.
2 In the Data Browser, click the left mouse button on the molar
flowrate of the first component in the list, and drag the mouse
down to select all the values for component molar flowrates.
Tip: If all the component flowrates are not displayed, you can
expand the Data Browser window to display more components. Or
37-4 • Working with Other Windows Programs Aspen Plus 12.1 User Guide
you can select the component flowrates by holding down the Ctrl
key and clicking with the mouse.
3 From the Edit menu, click Copy.
4 Using the Data Browser, open the Streams Input Specifications
sheet for the tear stream.
5 In the Composition frame, click in the first cell in the Value
column.
6 From the Edit menu, click Paste.
The molar flowrates from the stream results have been copied into
the stream input specifications. You can now enter two state
variables (you could also copy these values if you wish) to
complete the initial estimates for this tear stream.
Example of Pasting This example shows the steps necessary to paste column profile
Aspen Plus Results Into results from a RadFrac block in Aspen Plus into an Excel
Other Applications spreadsheet.
1 Open the column profile results. To do this, in the Process
Flowsheet window, click the RadFrac column to select it, then
click it with the right mouse button. From the menu that
appears, click Results.
2 In the left pane of the Data Browser window, click the Profiles
results form.
3 On the Profiles result form, click and drag over the results you
wish to copy.
– or –
Hold down the Ctrl key while you click the column headings
for the data you wish to copy.
Aspen Plus 12.1 User Guide Working with Other Windows Programs • 37-5
4 From the Edit menu, click Copy.
5 Open a spreadsheet in Excel.
6 Select a cell in the Excel spreadsheet where you want to paste
the information.
7 From the Edit menu in Excel, click Paste.
The copied RadFrac results profile has been pasted into the
spreadsheet, where it can be manipulated, reformatted,
combined with additional data, and plotted using the features of
Excel. This same data could also be pasted into other
applications such as a table in Word, or a database in Access.
37-6 • Working with Other Windows Programs Aspen Plus 12.1 User Guide
Example of Pasting Data In this example, atmospheric Txy data for ethyl acetate and ethanol
From Another Application will be copied from an Excel spreadsheet and pasted into a
Into Aspen Plus Properties Data form in Aspen Plus.
Aspen Plus 12.1 User Guide Working with Other Windows Programs • 37-7
1 In the Aspen Plus simulation, create a properties data set of an
appropriate type to input the data. In this case, open or create a
mixture Txy data set (from the Properties Data Object
Manager) for the components ethyl acetate and ethanol, at a
pressure of 1 atmosphere.
2 Open the Properties Data mixture form for the newly created
data set, and examine the format for the columns of data.
Modify units and standard deviations if necessary.
Notice that there are columns for the compositions of ethanol,
as well as ethyl acetate.
37-8 • Working with Other Windows Programs Aspen Plus 12.1 User Guide
5 From the Edit menu in Excel, click Copy.
6 In Aspen Plus, on the Data sheet for the newly created data set,
select the first empty cell in the Temperature column.
7 From the Aspen Plus Edit menu, click Paste.
8 In the Paste dialog box, click Yes to extend the data grid.
The temperature and liquid composition data is transferred into
the Data sheet.
Aspen Plus 12.1 User Guide Working with Other Windows Programs • 37-9
9 Return to the Excel spreadsheet, and select the vapor
composition data, by clicking and dragging the mouse.
10 From the Edit menu in Excel, click Copy.
11 In Aspen Plus, on the Data sheet, select the first empty cell in
the Y column for ethyl acetate.
12 From the Aspen Plus Edit menu, click Paste.
The vapor composition data is transferred into the Data sheet.
You can now use this data set to estimate or regress property
parameters in Aspen Plus.
Copying and Pasting After generating plots in Aspen Plus, you can copy the plots and
Plots and Other paste them into the process flowsheet or into other Windows
Images applications as images. You can also copy images created in other
Windows applications, such as graphs created in Excel, and paste
them into the Aspen Plus process flowsheet.
See one of the following topics for help:
• Copying a plot or image in Aspen Plus
• Pasting a plot or image to the Process Flowsheet window
• Attaching plots or images to flowsheet blocks
Copying a Plot in Aspen To copy a plot in Aspen Plus:
Plus
1 Generate the desired plot and format the appearance of the plot
as you want it to appear when pasted. For details on creating
and formatting plots, see chapter 13, Working with Plots.
2 Select the plot in the Aspen Plus main window.
3 From the Edit menu, click Copy.
The plot is copied to the paste buffer.
Use Paste to paste the plot into the process flowsheet, or into
other Windows applications.
Pasting a Plot or Image To paste a plot into the process flowsheet:
onto the Aspen Plus
1 Ensure that the paste buffer contains the desired plot or other
Process Flowsheet
image. See Copying a Plot in Aspen Plus for more information.
2 Click in an empty part of the process flowsheet.
3 From the Edit menu, click Paste.
The image appears as an icon in the process flowsheet.
You can move or resize the image, like any object in the
flowsheet drawing. If the image is a plot, you can also change
its formatting. To do this, click the plot with the right mouse
button. From the menu that appears, click Properties. For more
information on formatting plots, see chapter 13, Working with
Plots.
37-10 • Working with Other Windows Programs Aspen Plus 12.1 User Guide
Attaching Plots or Images When a plot or image has been pasted onto the process flowsheet,
to Flowsheet Blocks you can attach (or associate) the image to a block on the flowsheet.
Attaching an image to a flowsheet block ensures that when the
block is moved, the image will maintain is location with respect to
the block.
To attach an image to a flowsheet block:
1 Select the image that you wish to attach.
2 Click with the right mouse button on the image, and from the
menu that appears, click Attach.
The cursor changes to a cross-hair symbol.
3 Click the flowsheet block to which you want to attach the
image.
The image is now attached to the selected flowsheet block. If
the block is later moved to another location on the flowsheet,
the image will maintain its spatial arrangement with respect to
the block.
Example of Copying a In this example, a plot of RadFrac composition profiles will be
Plot and Pasting it onto copied and pasted onto the process flowsheet.
the Process Flowsheet
1 First, use the Plot Wizard to generate the plot of composition
profiles, and format it as you wish.
2 Select the plot and from the Edit menu, click Copy.
3 Click in an empty area of the process flowsheet.
4 From the Edit menu, click Paste.
Aspen Plus 12.1 User Guide Working with Other Windows Programs • 37-11
5 Position and size the plot as needed.
Example of Pasting a Plot In this example, the plot copied in the previous example will be
into Another Application pasted into a Word document.
1 First, use the Plot Wizard to generate the plot of composition
profiles, and format it as you wish.
2 Select the plot, then from the Edit menu, click Copy.
3 Start Word, and open the file in which you want to paste the
plot.
4 Click in the Word document where you want to paste the plot.
5 From the Edit menu, click Paste.
37-12 • Working with Other Windows Programs Aspen Plus 12.1 User Guide
Example of Pasting In this example, an Excel graph will be placed onto the Aspen Plus
Images From Other process flowsheet.
Windows Applications 1 First, generate the desired graph or image in another
Onto the Aspen Plus application. In this case, a pie chart is created in Excel.
Process Flowsheet
2 In Excel, select the graph, and from the Edit menu, click Copy.
3 Open the Aspen Plus simulation where you want to paste the
Excel graph.
4 Click on an empty area of the process flowsheet.
5 From the Edit menu in Aspen Plus, click Paste.
6 Move and resize the graph, and adjust the flowsheet view as
necessary.
The Excel graph now appears on the process flowsheet.
Aspen Plus 12.1 User Guide Working with Other Windows Programs • 37-13
process model is modified to automatically propagate results of
engineering changes.
Creating Active Links To create active links between a result in Aspen Plus and another
Between an Aspen Windows application:
Plus Result and 1 Make sure you have both applications open:
another Windows
Application • Aspen Plus open with the completed simulation and results
available
• Another Windows application open with the file where you
wish to paste the active link to Aspen Plus results
2 Open the Aspen Plus results form containing the information to
be linked.
3 Select the desired results.
To select an individual field of data, simply click in the field.
To select multiple fields of data, hold down the Ctrl key while
clicking the mouse on multiple fields.
When copying values from a table, you can:
• Click-and-drag the mouse over a desired range of results
• Select an entire column of data by clicking the column
heading
• Select an entire row of data by clicking the row selector
button
• Select the entire table of data by clicking the button on the
top left corner of the table
4 From the Edit menu, click Copy (or Copy with Format). If you
choose Copy with Format, in the Copying dialog box, check
the items you want included with the value (Label, Units or
Basis), and click OK.
5 Go to the appropriate location in another Windows application,
where you wish to paste the active link.
6 From the Edit menu in the other application, choose Paste
Special.
7 In the Paste Special dialog box, click the Paste Link radio
button and make sure you are pasting as text by selecting Text
in the As box.
8 Click OK to close the Paste Special dialog box.
Now an active link has been established between Aspen Plus
(the source document) and another application.
9 When you exit, be sure you save both the Aspen Plus file and
the other application file. If you do not, the link will not work
when you open the files. If you save the link source file
(Aspen Plus in this case) with another name, you must save the
37-14 • Working with Other Windows Programs Aspen Plus 12.1 User Guide
link container (other application file) after saving the
Aspen Plus run.
The link source is the program that is providing the data.
The link container is the program into which you paste the link.
Example of Creating In this example, RadFrac condenser duty results will be copied
Active Links from with units, and pasted into an Excel spreadsheet as an active link.
Aspen Plus Results into
Excel 1 Open the RadFrac ResultsSummary Summary sheet to view the
results for condenser duty.
5 Open the Excel spreadsheet, and select the cell where you want
to create the link to the Aspen Plus results for condenser duty.
Aspen Plus 12.1 User Guide Working with Other Windows Programs • 37-15
6 From the Edit menu in Excel, choose Paste Special.
7 In the Paste Special dialog box, click the Paste Link radio
button.
8 Select Text in the As: list, and click OK.
The condenser duty and units are copied into the specified
location.
The pasted value is an active link between Aspen Plus (the source
document) and the Excel spreadsheet (the destination document.)
As inputs are changed in the Aspen Plus model, and the simulation
is rerun to generate new results, the active link displayed in the
Excel spreadsheet will reflect the changes.
You can review the source of the link in Excel by selecting the
linked cell in Excel. The source will display in the Excel Formula
Bar below the toolbar.
37-16 • Working with Other Windows Programs Aspen Plus 12.1 User Guide
You can view and modify the status of the link in Excel by
selecting Links from the Edit menu.
Creating Active Links In addition to creating active links from Aspen Plus to other
from a Windows applications, you can also create active links from other
Application to Aspen applications such as Word or Excel, to input fields within
Plus Input Fields Aspen Plus simulations. This can be used to create a simple
interface to your simulation models for non Aspen Plus users (e.g.
operators or other engineers.)
1 Make sure you have:
• Aspen Plus open at the completed simulation where you
will add the active link
• Another Windows application open at the source file from
where you will originate the active link to an Aspen Plus
input field
2 In the source file of the other application, select the
information to be linked. For example, in Excel, click in the
cell containing the data to be linked.
3 From the Edit menu in the other application, click Copy.
4 In Aspen Plus, open the appropriate input form, and select the
field where the information will be pasted to create the active
link.
5 From the Edit menu in Aspen Plus, click Paste Special.
6 In the Paste Special dialog box, click the Paste Link button and
ensure you are pasting as text by selecting Text in the As list.
7 Click OK to close the Paste Special dialog box.
Now an active link has been established between another
application (the source document) and Aspen Plus (the
destination document); if you change a value in the source
document, the change will be reflected on the appropriate
Aspen Plus input forms.
8 When you exit, ensure you save both the Aspen Plus file and
the other application file. If you do not, the link will not work
when you open the files. If you save the link source (the other
application in this case) with a different file name, you must
save the link container (Aspen Plus) after saving the other
application file.
Example of Creating a In this example, an active link will be established from Excel that
Link from Excel to an controls the reflux ratio of a column in Aspen Plus.
Aspen Plus Input Field
1 Open the Excel spreadsheet to display the data from where you
will establish the link (the source file.)
2 Select the cell containing the information that will be linked.
3 From the Edit menu in Excel, click Copy.
Aspen Plus 12.1 User Guide Working with Other Windows Programs • 37-17
4 In the Aspen Plus simulation, open the RadFrac Setup
Configuration sheet, and select the field for the value of Reflux
Ratio.
5 From the Edit menu in Aspen Plus, click Paste Special.
6 In the Paste Special dialog box, click the Paste Link radio
button and make sure you are pasting as text by selecting Text
in the As list.
7 Click OK to close the Paste Special dialog box.
The reflux ratio displayed on the RadFrac Setup Configuration
sheet is now an active link to the source cell in the Excel
spreadsheet. Any changes made to the linked cell in the Excel
spreadsheet will automatically be reflected in the simulation
input.
To illustrate the effect of the active link established in this
example:
1 Open the Excel spreadsheet, and change the reflux ratio in the
linked cell from 8 to 10.
2 Open the RadFrac Setup Configuration sheet again, and note
that the new value for reflux ratio has been automatically
changed.
37-18 • Working with Other Windows Programs Aspen Plus 12.1 User Guide
• If you have active links in both directions between the two
applications and you change the name of both files, you must
do three Save operations:
• Save the first application with a new name
• Save the second application with a new name
• Save the first application again
For example, if you have links in both directions between
Aspen Plus and Excel:
• Use Save As in Aspen Plus to save the run as MYRUN
• Go to Excel and use Save As
• Return to Aspen Plus and Save
Note: Links are saved when you save in Aspen Plus Document
format (.apw) or Aspen Plus Backup format (.bkp).
Opening Files with When you open the link source file, there is nothing special that
Active Links you need do.
When you open the link container file, you will usually see a
dialog box asking you if you want to re-establish the links.
Applications will behave differently or may show different dialog
boxes.
If you:
Click Then And
No The link will not be active Any changes you make in
the link source will not be
reflected in the link
container.
Yes Windows will re-establish the link You will not see the
and open the link source application on the
application in background. That is, Windows taskbar. You
the application will be open and might notice a pause as
running, but there will be no visible Windows activates the
windows for the application. application.
In some cases, when the link source is running in background, you
might want to make the application visible (have its windows
displayed) so that you can make changes.
Making the Link Source In some cases, when the link source is running in background, you
Visible might want to make the application visible (have its windows
displayed) so that you can make changes.
For example, you may be using Excel (as link source) to supply
feed stream data to an Aspen Plus simulation (the link container).
Normally, you can just open Aspen Plus, re-establish the links, and
run the simulation. But if you want to change the feed stream data
Aspen Plus 12.1 User Guide Working with Other Windows Programs • 37-19
or add links to a another piece of data in the Excel spreadsheet, you
need to make Excel visible.
The method to make the link source application visible depends on
the application:
• For some applications, for example Aspen Plus and Microsoft
Word, you can open the file in the normal way using Open
from the File menu or double-clicking the file in Windows
Explorer.
• For other applications, like Excel, if you try to open the file in
the normal way, you will receive a message that the file is
locked or in use by another user. If you proceed and open the
file, you are actually working on another copy of the document
and links will not work properly.
Because of problems with some applications, follow this procedure
to make the link source application visible:
1 From the Edit menu in the link container application, select
Links.
The Links dialog box appears.
2 In the Links dialog box, select the source file and click Open
Source.
Now the link source application is visible. The application will
appear on the Windows taskbar.
Updating References in Microsoft Excel has an option which you must use to ensure that
Excel links are correctly re-established when you open files with active
links. To check the option:
1 In Excel, from the Tools menu, click Options.
2 In the Options dialog box, click the Calculations tab.
3 Ensure the Update Remote References checkbox is selected.
There is also an option to Save External Link Values. This
controls the behavior of Excel when you have links but do not
37-20 • Working with Other Windows Programs Aspen Plus 12.1 User Guide
re-establish them when you open the file or the links become
broken.
If this option is Excel will display
Selected The last value it had before the link was broken
Clear An error
Aspen Plus 12.1 User Guide Working with Other Windows Programs • 37-21
To embed an object from an existing file, select Create From
File and specify the file.
Modifying an You can modify an embedded object:
Embedded Object
To Do this
Edit the object using the Double-click on the object.
source application – or –
within Aspen Plus 1. Click the object to select it
2. Click the right mouse button.
3. On the popup-menu, point to Objecttype Object, then Edit.
The menus and toolbar in Aspen Plus are replaced with those of the source
application. You can edit the object. When you are done, click anywhere in the
Process Flowsheet Window to exit the application.
Activate the source 1. Click the object to select it
application to edit the 2. Click the right mouse button.
object 3. On the popup-menu, point to Objecttype Object, then Open.
The source application opens in another window. You can edit the object. When
you exit the application, the object is updated in Aspen Plus.
Move the object 1. Click the object to select it.
The mouse pointer becomes the move shape
2. Click and hold the left mouse button while dragging the object
Resize the object 1. Click the object to select it.
2. Move the mouse to the edge or corner of the object.
The mouse pointer becomes to the resize shape
3. Hold down the left mouse button and drag the cursor until the object is the
desired size.
Attach the object to a 1. Click the object to select it.
block or stream in the 2. Click the right mouse button.
flowsheet 3. On the popup menu, click Attach.
4. Click the block or stream in the flowsheet.
The object is now attached to the selected block or stream. If the block or stream
is later moved to another location in the flowsheet, the image will maintain its
spatial arrangement with respect to the block.
Objecttype will depend on the source application.
Saving a Run With an Embedded objects are saved as part of a run only when you save in
Embedded Object Aspen Plus Document format (.apw files). When you save in
Backup format (.bkp files), the embedded object is not saved.
37-22 • Working with Other Windows Programs Aspen Plus 12.1 User Guide
C H A P T E R 38
See one of the following topics for help on the Aspen Plus ActiveX
Automation Server:
• About the Automation server
• Viewing the properties and methods of Aspen Plus objects
• Objects exposed by the Automation server
• Using the Variable Explorer to navigate the tree structure
• Navigating the tree structure in the Automation interface
• Data values and Node attributes
• Physical quantities and Units of Measure
• Referencing non-scalar data
• Flowsheet connectivity and automation
• Controlling the user interface
• Controlling a simulation problem
• Exporting files
• Members of Aspen Plus classes
This topic assumes that you are familiar with Visual Basic and
understand the concepts of object-oriented programming.
The examples in this topic use Visual Basic 5.0 and Visual Basic
for Applications (VBA) as the Automation Client. Examples are
based on the pfdtut example problem which is provided with the
standard Aspen Plus installation as a backup file named pfdtut.bkp.
If you installed Aspen Plus in the default location, this file is in
C:\Program Files\AspenTech\Aspen Plus 12.1\GUI\xmp.
If you installed Aspen Plus in the default location, the Visual Basic
examples in this topic are located in
C:\Program Files\AspenTech\Aspen Plus 12.1\GUI\vbexample.
Aspen Plus 12.1 User Guide Using the Aspen Plus ActiveX Automation Server • 38-1
About the Automation Server
The Aspen Plus Windows user interface is an ActiveX Automation
Server. The ActiveX technology (also called OLE Automation)
enables an external Windows application to interact with
Aspen Plus through a programming interface using a language
such as Microsoft's Visual Basic. The server exposes objects
through the COM object model.
With the Automation interface, you can:
• Connect both the inputs and the results of Aspen Plus
simulations to other applications such as design programs or
databases.
• Write your own user interface to an Aspen Plus plant model.
You can use this interface to distribute your plant model to
others who can run the Aspen Plus model without learning to
use the Aspen Plus user interface.
Using the Automation In order to use the Aspen Plus Automation Server, you must:
Server • Have Aspen Plus installed on your PC
• Be licensed to use Aspen Plus
Aspen Plus and Aspen Properties now share the same type library,
happ.tlb, which is located in the APrSystem GUI\xeq directory. If
you installed the APrSystem in the default directory, this will be:
C:\Program Files\AspenTech\APrSystem 12.1\GUI\xeq
The out-of-process server is apwn.exe. An in-process server
apwn.dll is also available.
Before you can access the Aspen Plus type library from Visual
Basic, in the Visual Basic Project References dialog box, you must
check the Aspen Plus GUI 12.1 Type Library box.
Before you can access the Aspen Plus type library from Excel
VBA, in the Excel Tools | References dialog box, you must check
the Aspen Plus GUI 12.1 Type Library box.
If Aspen Plus GUI 12.1 Type Library does not exist in the list,
click Browse and find happ.tlb in the directory listed above.
Error Handling Errors may occur in calling methods or accessing properties of the
Aspen Plus objects. It is important to create an error handler for all
code which accesses an automation interface. An automation
interface may return a dispatch error for many reasons, most of
which do not indicate fatal or even serious errors.
Unless there is an error handler in place any error will normally
cause a dialog box to be displayed on the user's screen. In VB the
error handler is in the form of an On Error statement, e.g. On Error
38-2 • Using the Aspen Plus ActiveX Automation Server Aspen Plus 12.1 User Guide
Goto <line>. It is usual to create an error handling subroutine
which will tidy up and exit the application cleanly if any severe
errors are encountered.
Aspen Plus 12.1 User Guide Using the Aspen Plus ActiveX Automation Server • 38-3
The HappLS and HappIP The HappLS (IHapp) and HappIP objects are the principal objects
Objects exposed by Aspen Plus. These objects provide methods and
properties such as:
• Opening a simulation problem
• Controlling the visibility of the Aspen Plus GUI
• Saving a problem
• Outgoing events
Example of Opening A The following VB example obtains the simulation object for an
Simulation existing simulation problem stored in the backup file pfdtut.bkp,
and sets the Visible property to display the Aspen Plus graphical
user interface.
Function OpenSimulation() As HappLS
Dim ihAPSim As HappLS
On Error GoTo ErrorHandler
' open existing simulation
Set ihAPSim = _
GetObject("C:\Aspen Plus 12.1\GUI\xmp\pfdtut.bkp")
' display the GUI
ihAPSim.Visible = True
Set OpenSimulation = ihAPSim
Exit Function
ErrorHandler:
MsgBox "OpenSimulation raised error " & Err & ": " & Error(Err)
End
End Function
End Sub
38-4 • Using the Aspen Plus ActiveX Automation Server Aspen Plus 12.1 User Guide
The final step, calling CoFreeUnusedLibraries, is needed to allow
apwn.dll to be unloaded. This allows global variables to be
reinitialized if it is loaded again by the same executable.
The Aspen Plus Tree The input and results data in an Aspen Plus simulation problem are
Structure organized in a tree structure.
In order to access the data of interest in an Aspen Plus simulation,
you need to understand and navigate through the tree structure and
locate and identify the variables of interest. To do this, you can use
the Variable Explorer in the Aspen Plus User Interface.
Aspen Plus 12.1 User Guide Using the Aspen Plus ActiveX Automation Server • 38-5
The Variable Explorer exposes the underlying variables within the
simulation problem.
The Variable Explorer is important to the Automation user because
it shows the names and the structure of the variables which may be
accessed through the Automation interface.
Note: The Variable Explorer is read-only. You cannot use the
Variable Explorer to change values or other attributes of variables.
If you navigate through the tree structure in the Variable Explorer,
it is possible to create new objects which you may not be able to
delete. For this reason, you should save your Aspen Plus run
before using the Variable Explorer and not save it after you use the
Variable Explorer.
Example of Using the This example gives instructions for using the Variable Explorer to
Variable Explorer access data in the RadFrac block (Block B6) in pfdtut.bkp.
1 From the Tools menu, click Variable Explorer to open the
Variable Explorer.
The tree view on the left displays just the node labeled Root.
2 Double-click on the Root folder icon or click on the + icon to
display the nodes immediately below this: Data, Unit Table and
Settings.
3 Expand Data to display the next level of nodes: Setup through
to Results Summary.
4 Expand the Blocks icon to reveal a list of blocks on the
flowsheet: B1 through B6.
5 Expand B6 to display nodes labeled Input through to Work
Results.
6 Expand Input to display a list of nodes labeled Unit Set through
to Y_EST.
These nodes represent the simulation input data for the
RadFrac block. For example, below the Input node, the node
labeled NSTAGE holds the input value for the number of
stages in the column.
7 Click on the Output node to display a list of nodes labeled Unit
Set through Y_MS.
These nodes represent the output data for the RadFrac block.
For example, below the Output node, the node labeled
BU_RATIO holds the result value for the boilup ratio.
The Path to Node field of the Variable Explorer displays the
path to the node which is currently open. From this field, you
can copy and paste directly into your program. To do this,
complete these steps:
38-6 • Using the Aspen Plus ActiveX Automation Server Aspen Plus 12.1 User Guide
8 Select the text in the Path to Node field, then click the right
mouse button.
9 From the menu that appears, click Copy.
10 Go to your application (for example, Visual Basic or the Excel
Module sheet).
11 From the Edit menu, click Paste.
Aspen Plus 12.1 User Guide Using the Aspen Plus ActiveX Automation Server • 38-7
The collection object ihcolOffspring contains the collection of
nodes immediately below the root, i.e. those nodes with the labels
Data, Unit Table and Settings as observed in the Variable Explorer.
Nodes within each collection object may be accessed in one of two
ways:
• You can iterate through the collection object using a For Each
… Next structure, accessing each node in turn.
• You can access a node explicitly using the Item property of the
IHNodeCol object. In order to identify a particular item in a
collection, the Item property takes one or more arguments.
Each argument is either a string specifying the label or item
name of an offspring node in the next level of the tree, or an
integer specifying the ordinal number of the node in the
collection of offspring nodes. The number of arguments
required to the Item property is given by the Dimension
property of the parent.
Thus:
For Each ihOffspring In ihcolOffspring
.
.
.
Next
iterates through each node in the ihcolOffspring collection, and
Set ihDataNode = ihcolOffspring.Item("Data")
obtains the node with the label "Data". Note that the item names
are case sensitive.
The Dimension property determines the number of arguments
required:
if ihcolOffspring.Dimension = 1 then
Set ihDataNode = ihcolOffspring.Item("Data")
else if ihcolOffspring.Dimension = 2 then
Set ihDataNode = ihcolOffspring.Item("Data","id2")
endif
The Item property is the default property of IHNodeCol, so this
statement may be abbreviated simply by writing:
Set ihDataNode = ihcolOffspring("Data")
Dot Notation for To navigate down the tree you can chain the Item property
Navigating the Tree references together. For example, to get to the node labeled
NSTAGE which represents the number of stages in a RadFrac
block:
Set ihNStageNode = ihAPsim.Elements("Data"). _
Elements("Blocks").Elements("B6"). _
Elements("Input").Elements("NSTAGE")
38-8 • Using the Aspen Plus ActiveX Automation Server Aspen Plus 12.1 User Guide
without specifying either the Elements or the Item properties. For
example, the above assignment may be written:
Set ihNStageNode =
ihAPSim.Tree.Data.Blocks.B6.Input.NSTAGE
However, although this 'dot' notation is convenient in many
situations it has some restrictions:
• It will only work if the item names are consistent with the
syntax of an identifier within the language used by the
automation client, in this example Visual Basic. So the item
name must not contain embedded spaces or special characters.
For example the item name "Unit Table" would be invalid in
this notation.
• Certain node types do not support the dot notation. The node
types that do not support dot notation are connection, port,
setting table, route, label, & unit table.
Data Values
Once you have the leaf node containing the data value of interest,
you can obtain the data value associated with the node from the
Value property. Data values have an associated data type which is
held in the ValueType property.
ValueType returns one of the following:
ValueType Description Visual Basic Data Type
0 Value not defined
1 Integer Long
2 Real Double
3 String String
4 Node IHNode
Note that Aspen Plus returns 32bit integer and 64bit real values.
Therefore when using Visual Basic, integer and real valued
properties should be assigned to Long and Double variables
respectively in order to avoid potential overflow errors.
Example of Navigate to and display the number of stages in a RadFrac column
Accessing Data (an input data value) and the boilup ratio (a results data value) in a
Values message box.
Sub GetScalarValuesExample(ihAPsim As HappLS)
' This example retrieves scalar variables from a block
Dim ihColumn As ihNode
Dim nStages As Long
Dim buratio As Double
On Error GoTo ErrorHandler
' navigate the tree to the RADFRAC block
Set ihColumn = ihAPsim.Tree.Data.Blocks.B6
' Get the number of stages
Aspen Plus 12.1 User Guide Using the Aspen Plus ActiveX Automation Server • 38-9
nStages = ihColumn.Input.Elements("NSTAGE").Value
' get the boilup ratio
buratio = ihColumn.Output.Elements("BU_RATIO").Value
MsgBox "Number of Stages is: " & nStages _
& Chr(13) & "Boilup Ratio is: " & buratio, , "GetScalarValuesExample"
Exit Sub
ErrorHandler:
MsgBox "GetScalarValuesExample raised error" & Err & ": " & Error(Err)
End Sub
Node Attributes
You can obtain information called attributes about the node from
the AttributeValue and AttributeType properties. These take an
attribute number argument which is an enumerated value from
the HAPAttributeNumber class.
See these topics to see some commonly used attributes and their
descriptions.
The Attribute Name corresponds to the field in the Variable
Explorer.
• Value-related Attributes
• Meta-data Attributes for Records
• Attributes for Variable Nodes
• Attributes for Multi-dimensioned Variables Nodes
• Flowsheet Connectivity Port Attributes
• Other attributes
You can see the full range of possible values and descriptions in
the Object Browser of your Automation client (e.g., VB5). In
general, you will only need a small subset of the attributes.
Each node typically only supports a subset of the attributes. You
can check whether an attribute is supported by querying the
AttributeType for the attribute. The attribute types returned are as
shown above for ValueType. If the AttributeType property returns
a value of zero for an attribute then the attribute is not defined for
that node.
Value-related This table shows commonly used value related attributes:
Attributes
38-10 • Using the Aspen Plus ActiveX Automation Server Aspen Plus 12.1 User Guide
Attribute HAP_AttributeNumber Description
Name
Units of HAP_UNITCOL The column in the Unit Table for the physical quantity of the
Measure value
Basis HAP_BASIS The basis e.g. MOLE or MASS for a value
Option List HAP_OPTIONLIST A node whose offspring contain the valid values for this node
Meta-data Attributes This table shows commonly used meta-data attributes for records:
for Records
Aspen Plus 12.1 User Guide Using the Aspen Plus ActiveX Automation Server • 38-11
Flowsheet This table shows commonly used flowsheet connectivity port
Connectivity Port attributes:
Attributes
Attribute Name HAP_AttributeNumber Description
In or Out HAP_INOUT Is the port node an inlet or outlet?
For blocks
0 = Inlet
1 = Outlet
For Streams:
0 = Outlet
1 = Inlet
Gender HAP_PORTSEX Block or Stream port type:
0 = Stream
1 = Block
Multiport HAP_MULTIPORT Can the port node be connected to multiple streams?
0=No
1=Yes
Port Type HAP_PORTTYPE The type of the port node.
1 = Material
2 = Heat
3 = Work
Other Attributes This table shows a commonly used attribute:
Attribute Name HAP_AttributeNumber Description
Has Children HAP_HASCHILDREN Returns True if the node has offspring nodes.
Example of Using The following example subroutine uses AttributeValue to display a
AttributeValue list of blocks showing the block type, flowsheet section, and status
for each block.
Sub ListBlocksExample(ihAPSim As HappLS)
' This example ilustrates retrieving a list of blocks and their attributes
Dim ihBlockList As IHNodeCol
Dim ihBlock As ihNode
Dim strOut As String
On Error GoTo ErrorHandler
Set ihBlockList = ihAPSim.Tree.Data.Blocks.Elements
strOut = "Block" & Chr(9) & "Block Type" _
& Chr(9) & "Section " & Chr(9) & "Results status"
For Each ihBlock In ihBlockList
strOut = strOut & Chr(13) & ihBlock.Name & Chr(9) & _
ihBlock.AttributeValue(HAP_RECORDTYPE) & " " & Chr(9) & _
ihBlock.AttributeValue(HAP_SECTION) & Chr(9) & _
Status(ihBlock.AttributeValue(HAP_COMPSTATUS))
Next ihBlock
MsgBox strOut, , "ListBlocksExample"
Exit Sub
ErrorHandler:
MsgBox "ListBlocksExample raised error" & Err & ": " & Error(Err)
End Sub
38-12 • Using the Aspen Plus ActiveX Automation Server Aspen Plus 12.1 User Guide
Function Status(CompStat As Integer) As String
' This function interprets a status variable and returns a string
Aspen Plus 12.1 User Guide Using the Aspen Plus ActiveX Automation Server • 38-13
Units of Measure as a The unit of measurement symbol for a value can be obtained from
String the UnitString property.
The Units Table Physical quantities and the corresponding units of measurement are
described in Aspen Plus by references to a Unit Table. Sometimes
it is convenient to use the units table directly, instead of dealing
with the UnitString of a particular value.
The unit table consists of rows representing physical quantities
and columns representing the units of measurement in which the
quantities can be expressed. The unit table is exposed in the
automation interface below the root node as a node labeled "Unit
Table". The elements in the collection below the Unit Table node
represent the rows of the table i.e. physical quantities. The labels of
these nodes are the names of the physical quantities. Below each
physical quantity node is a collection of nodes whose labels are
strings representing the symbols of the units of measurement in
which the owning physical quantity may be expressed.
For a node in the tree containing a physical value, the physical
quantity, or Unit Table row number, is obtained by reference to the
property AttributeValue(HAP_UNITROW). The unit of
measurement symbol, or Unit Table column number, is referenced
by the property AttributeValue(HAP_UNITCOL). Note that the
attribute values are actual row and column numbers and that when
referencing the row numbers with the Unit Table collections, you
must subtract one from these values.
Converting the Units You can retrieve a value in a specific unit with the ValueForUnit
of Measure for a property. The ValueForUnit property takes two arguments, the
Value desired unit row and the desired unit column.
38-14 • Using the Aspen Plus ActiveX Automation Server Aspen Plus 12.1 User Guide
Example of Converting Units of Measure
Retrieve the pressure of block B3, both in the units specified in the
run (psi) and in atm. atm is column 3 in the Unit Table.
Sub UnitsConversionExample(ihAPSim As HappLS)
' This example retrieves a value both in the display units and an alternative
Dim ihPres As ihNode
Dim nRow As Long
Dim nCol As Long
Dim strDisplayUnits As String
Dim strConvertedUnits As String
On Error GoTo ErrorHandler
Set ihPres = ihAPSim.Tree.Data.Blocks.B3.Output.B_PRES
' retrieve the attributes for the display units (psi)
nRow = ihPres.AttributeValue(HAP_UNITROW)
nCol = ihPres.AttributeValue(HAP_UNITCOL)
strDisplayUnits = UnitsString(ihAPSim, nRow, nCol)
'select the alternative unit table column (atm)
nCol = 3
strConvertedUnits = UnitsString(ihAPSim, nRow, nCol)
MsgBox "Pressure in Display units: " & ihPres.Value & _
" " & strDisplayUnits & Chr$(13) & _
"Pressure in Converted units: " & _
ihPres.ValueForUnit(nRow, nCol) & " " & strConvertedUnits, _
, "UnitsConversionExample"
Exit Sub
ErrorHandler:
MsgBox "UnitsConversionExample raised error " & Err & ": " & Error(Err)
End Sub
Public Function UnitsString(ihAPSim As IHApp, nRow As Long, nCol As Long)
' This function returns the units of measurement symbol given
' the unit table row and column
On Error GoTo UnitsStringFailed
UnitsString = ihAPSim.Tree.Elements("Unit Table"). _
Elements(nRow - 1).Elements.Label(0, nCol - 1)
Exit Function
UnitsStringFailed:
UnitsString = ""
End Function
Changing the Units of You can use the HAP_UNITCOL attribute to directly change the
Measure for the units of measurement in the Aspen Plus run.
Aspen Plus Run
Changing the HAP_UNITCOL attribute value has a different effect
depending on whether the value in an Input or Output value, as
follows:
• Changing the HAP_UNITCOL attribute of an output value will
convert the retrieved output value into the selected unit of
measurement. This is equivalent to changing the units on a
Results sheet in the Aspen Plus GUI.
• Changing the HAP_UNITCOL attribute for an input value
node will change the input specification units. It does not
convert the value into the selected unit of measurement. This
is equivalent to changing the units on an Input sheet in the
Aspen Plus GUI.
Aspen Plus 12.1 User Guide Using the Aspen Plus ActiveX Automation Server • 38-15
Sub UnitsChangeExample(ihAPsim As HappLS)
Example of Changing Dim ihPres As ihNode
Units of Measure On Error GoTo ErrorHandler
Set ihPres = ihAPsim.Tree.Data.Blocks.B3.Output.B_PRES
MsgBox "Pressure in default units: " _
& ihPres.Value _
& Chr(9) & ihPres.UnitString
' change units of measure to bar
ihPres.AttributeValue(HAP_UNITCOL, True) = 5
MsgBox "Pressure in selected units: " _
& ihPres.Value _
& Chr(9) & ihPres.UnitString
Exit Sub
ErrorHandler:
MsgBox "UnitsChangeExample raised error " & Err & ": " _
& Error(Err)
End Sub
38-16 • Using the Aspen Plus ActiveX Automation Server Aspen Plus 12.1 User Guide
Offspring nodes are obtained in one of two ways:
• Using an iterator to loop through the collection object. For
example, using a For Each loop in Visual Basic.
• Using the Item property of the collection object and specifying
an argument for each Dimension of the collection. The
argument may be either:
• An integer Location (also known as RowNumber) which
represents the ordinal number within the dimension. The
first Location in each dimension is numbered zero.
• A string Label which identifies the offspring node within
in the Dimension
For each dimension you can obtain the number of valid locations
or labels from the RowCount property of the collection.
Note: Collections are not guaranteed to be in any particular order.
If it is important to you to access the items in a collection in a
particular order, use the string Labels of the items to access each
one in its proper order. Use For Each loops or loops over the
integer Location values only when you need to process all
elements of a collection and order is not important.
Accessing Variables The temperature profile in a RadFrac column is an example of a
With a Single variable with a single identifier. For the pfdtut simulation results,
Identifier: Column the temperature profile is displayed in the Data Browser in tabular
Temperature Profile form under Blocks>B6>Profiles>TPFQ.
The same information is located in the Variable Explorer under the
Root>Data>Blocks>B6>Output>B_TEMP variable node. Under
this node there are fifteen leaf nodes labeled 1 through 15,
corresponding to the temperatures on the stages.
Aspen Plus 12.1 User Guide Using the Aspen Plus ActiveX Automation Server • 38-17
Example Showing How to To obtain the B_TEMP variable node:
Access Column Set ihTVar =ihAPSim.Tree.Data.Blocks.B6.Output.B_TEMP
Temperature Profile
through the Automation
Next, create a simple iteration loop to access the offspring nodes
Interface representing the stages.
For Each ihStage In ihTVar.Elements
.
.
Next ihStage
The identifier representing the stage number is retrieved by the
Name property of the stage node. The temperature value is
retrieved from the Value property of the stage node.
Sub TempProfExample(ihAPsim As HappLS)
' This example retrieves values for a non-scalar variable
' with one identifier
Dim ihTVar As ihNode
Dim ihStage As ihNode
Dim strOut As String
On Error GoTo ErrorHandler
Set ihTVar = ihAPsim.Tree.Data.Blocks.B6.Output.B_TEMP
strOut = ihTVar.Elements.DimensionName(0) & Chr(9) _
& ihTVar.Name
For Each ihStage In ihTVar.Elements
strOut = strOut & Chr(13) & ihStage.Name _
& Chr(9) & Format(ihStage.Value, "###.00") _
& Chr(9) & ihStage.UnitString
Next ihStage
38-18 • Using the Aspen Plus ActiveX Automation Server Aspen Plus 12.1 User Guide
MsgBox strOut, , "TempProfExample"
Exit Sub
ErrorHandler:
MsgBox "TempProfExample raised error " & Err & ": " _
& Error(Err)
End Sub
The first level of nodes below the variable X represents the stages
in the column and each node has the Name property set to the stage
number. The second level of nodes contains the nodes for each of
the component compositions and the Name property of these nodes
is the component id. The Value property of the second level node
is the composition of the component in the stage represented by the
first level node.
Aspen Plus 12.1 User Guide Using the Aspen Plus ActiveX Automation Server • 38-19
The following code fragment illustrates how to retrieve the
component compositions from this structure. It contains two nested
loops which iterate through the levels to access the value nodes.
Public Sub CompProfExample(ihAPsim As HappLS)
' This example retrieves values for a non-scalar variable with two
' identifiers
Dim ihTrayNode As ihNode
Dim ihXNode As ihNode
Dim ihCompNode As ihNode
Dim strOut As String
On Error GoTo ErrorHandler
Set ihXNode = ihAPsim.Tree.Data.Blocks.B6.Output.Elements("X")
For Each ihTrayNode In ihXNode.Elements
For Each ihCompNode In ihTrayNode.Elements
strOut = strOut & Chr(13) & ihTrayNode.Name & _
Chr(9) & ihCompNode.Name & Chr(9) & _
ihCompNode.Value
Next ihCompNode
Next ihTrayNode
MsgBox strOut, , "CompProfExample"
Exit Sub
ErrorHandler:
MsgBox "CompProfExample raised error " & Err & ": " & Error(Err)
End Sub
Accessing Variables The Variable Explorer tree view for the the RStoic reactor block
With 3 Identifiers: B2 in the pfdtut simulation is shown in this diagram.
Reaction Coefficients
38-20 • Using the Aspen Plus ActiveX Automation Server Aspen Plus 12.1 User Guide
In the RStoic reactor model, the stochiometric coefficients of the
reactions are held in the input variables COEF and COEF1 which
represent the reaction coefficients for the reactants and products,
respectively.
Both these nodes have a list of offspring nodes, each of which
represents a reaction equation.
As this block has only one reaction, both COEF and COEF1 have
just one offspring node labeled "1" representing the single reaction
with the reaction number "1".
The reaction node has two dimensions so the Dimension property
of this node returns a value of 2. There are two identifiers
associated with each offspring. The identifier for the first
dimension is the component of the reactant. The identifier for the
second dimension is the substream, in this case the MIXED
substream.
The reaction node is an example of a node which uses paired
scrolling of identifiers. Here the only significant offspring nodes
are those with the same row number in each dimension. The
existence of paired scrolling may be determined from the value of
the property AttributeValue (HAP_FIRSTPAIR). If the node uses
paired scrolling of offspring, this property returns the 1-based
index of the first item of the scrolling pair.
The following example code shows how to retrieve the coefficients
under the COEF node together with the associated identifiers. Note
that because paired scrolling is used, only the nodes with the same
value of location in each dimension are accessed.
Sub ReacCoeffExample(ihAPsim As HappLS)
' This example illustrates retrieving values for a non-scalar variable
' with three identifiers
Dim ihReacNode As ihNode
Dim ihCoeffNode As ihNode
Dim intOff As Long
Dim strHeading As String
Dim strTable As String
Dim nReacCoeff As Integer
On Error GoTo ErrorHandler
Set ihCoeffNode = ihAPsim.Tree.Data.Blocks.B2.Input.COEF
' loop through reaction nodes
For Each ihReacNode In ihCoeffNode.Elements
strHeading = ihCoeffNode.Elements.DimensionName(0) _
& Chr(9) & ihReacNode.Elements.DimensionName(0) _
& Chr(9) & ihReacNode.Elements.DimensionName(1)
nReacCoeff = ihReacNode.Elements.RowCount(0)
' loop through coefficient nodes retrieving component and substream
' identifiers and coefficient values
For intOff = 0 To nReacCoeff - 1
strTable = strTable & Chr(13) & ihReacNode.Name & Chr(9) _
& Chr(9) & ihReacNode.Elements.Label(0, intOff) & Chr(9) _
& Chr(9) & ihReacNode.Elements.Label(1, intOff) & Chr(9) _
& Chr(9) & ihReacNode.Elements.Item(intOff, intOff).Value
Aspen Plus 12.1 User Guide Using the Aspen Plus ActiveX Automation Server • 38-21
Next intOff
MsgBox strHeading & strTable, , "ReacCoeffExample"
Next ihReacNode
Exit Sub
ErrorHandler:
MsgBox "ReacCoeffExample raised error " & Err & ": " & Error(Err)
End Sub
38-22 • Using the Aspen Plus ActiveX Automation Server Aspen Plus 12.1 User Guide
strDestBlock = ihDestBlock.Elements(0).Value
strDestPort = ihBlockList.Elements(strDestBlock). _
Connections.Elements(strStreamName).Value
Else
' it's a flowsheet product
strDestBlock = ""
strDestPort = ""
End If
' get the source connections
Set ihSourceBlock = ihStream.Elements("Ports").Elements("SOURCE")
If (ihSourceBlock.Elements.RowCount(0) > 0) Then
' there is a source port
strSourceBlock = ihSourceBlock.Elements(0).Value
strSourcePort = ihBlockList.Elements(strSourceBlock). _
Connections.Elements(strStreamName).Value
Else
' it's a flowsheet feed
strSourceBlock = ""
strSourcePort = ""
End If
ErrorHandler:
MsgBox "ConnectivityExample raised error" & Err & ": " & Error(Err)
End Sub
Manipulating Blocks You can add and delete streams and blocks, and connect and
and Streams disconnect streams froms blocks, using the Add and Remove
methods of Block, Stream, and Port collection objects.
Adding and Deleting To add a block, call the Add method of the Blocks collection, with
Blocks an input argument of "block name!block type". For example:
Dim problem as HappLS
Dim blocknode as IHNode
Set problem = CreateObject("Apwn.document")
set blocknode = problem.Tree.Elements("Data").Elements("Blocks")
blocknode.Elements.Add("B1!RADFRAC")
Aspen Plus 12.1 User Guide Using the Aspen Plus ActiveX Automation Server • 38-23
To delete a stream, call the Remove method of the Streams
collection with an input argument of the stream name. For
example:
streamnode.Elements.Remove("S1")
Connecting and To connect a stream, call the Add method of a specific Port object
Disconnecting Streams in the Ports collection of the given block. The element name
should be the name of the stream to be connected. For example:
For an inlet material stream:
blocknode.Elements("B1").Elements("Ports").Elements("F(IN)").Add("S1")
38-24 • Using the Aspen Plus ActiveX Automation Server Aspen Plus 12.1 User Guide
• Handle Aspen Plus events
• Suppress dialog boxes
• Disable user interface features
• Automate the initial connection to the simulation engine
Handling Aspen Plus The Aspen Plus application object, HappLS, supports an outgoing
Events event interface, IAPHappEvent, consisting of events for the
HappLS class. See The IAPHappEvent Event Interface, for details
on each event.
In Visual Basic or VBA, the events are available by declaring a
variable of type HappLS using the WithEvents keyword. This must
be done in a form or class module. That variable is then set to the
simulation problem. Be sure to release this object with an
appropriate termination method.
In C++, implement an object that supports the IAPHappEvent
interface, which is defined as a dispinterface. Use the connection
point interfaces to connect this outgoing interface to application
object.
The following code fragment implements a Visual Basic
automation client that displays control panel messages.
Dim WithEvents sim As HappLS
Dim fCP As frmControlPanel ' a form with a text box
Private Sub LoadSimulation(fn As String)
On Error GoTo ErrorHandler
set fCP = new frmControlPanel
' a label control on the main form
LabelProblem.Caption = "loading " & fn
MousePointer = vbHourglass
' reset the ole message filter to get rid of annoying Server busy message
App.OleRequestPendingTimeout = 100000
Set sim = CreateObject("Apwn.Document")
Call sim.InitFromArchive2(fn, 0)
sim.Visible = false
App.OleRequestPendingTimeout = 10000
MousePointer = vbDefault
Exit Sub
ErrorHandler:
Debug.Print Err.Description
Err.Clear
labelProblem.Caption = "failed to load problem"
Set sim = Nothing
MousePointer = vbDefault
App.OleRequestPendingTimeout = 10000
End Sub
Private Sub Sim_OnControlPanelMessage(ByVal Clear As Long, ByVal msg As String)
If Clear Then
fCP.txtMsg.Text = ""
Else
fCP.txtMsg = fCP.txtMsg.Text & vbCrLf & msg
End If
On Error GoTo ErrHandler
Exit Sub
ErrHandler:
Aspen Plus 12.1 User Guide Using the Aspen Plus ActiveX Automation Server • 38-25
Debug.Print "Error " & Err.Description
Err.Clear
End Sub
Suppressing Dialog When starting Aspen Plus 12.1 as an automation server, the default
Boxes behavior is to display no messages or dialog boxes unless an
automation method to specifically meant to show a dialog is used
or the GUI is visible and the user selects an operation that shows a
dialog, such as a menu item. This behavior can turned off with the
IHapp SuppressDialogs property. This property should normally be
set to false when the application is made visible for interactive use.
When dialogs are suppressed, the outgoing event
OnDialogSuppressed() is triggered whenever a warning message
or a suppressed dialog is encountered while dialogs are suppressed.
See Handling Aspen Plus Events for more information.
Some automation interface methods explicitly show an interactive
dialog, such as ConnectDialog(). Some other automation methods
show an interactive dialog only sufficient arguments are not
supplied. For example,
call IHapp.Engine.Reinit()
will show the reinit dialog while
call IHapp.Engine.Reinit(IAP_REINIT_SIMULATION)
will not show a dialog.
Disabling User A method, UIDisable, has been added to the IHapp interface to
Interface features allow the automation client to disable user interface features before
making the automation server interactive.
To disable a menu item, call UIDisable with a string input
argument containing the slash-delimited path to the menu item.
Once an item has been deactivated it cannot be reactivated.
38-26 • Using the Aspen Plus ActiveX Automation Server Aspen Plus 12.1 User Guide
Automating the Initial One set of user interactions that is not covered with dialog
Connection to the suppression is the initial connection to the simulation engine when
Simulation Engine no activator is present. The IHAPEngine Host and
ConnectionDialog methods can be used when an activator is
present or for subsequent connections. The IHapp file loading
routines InitFromArchive2 and InitFromFile2 methods have
optional arguments to supply the information that normally might
be shown in the connection dialog.
The Visual Basic GetObject() call always shows the connection
dialog in this situation. To avoid this use the Visual Basic
CreateObject() call followed by an InitFromArchive2() or an
InitFromFile2() call. In C++, use CoCreateInstance() followed by
the Init call rather than a BindToObject() call. For testing a Visual
Basic client, using GetObject() to connect to a running Aspen Plus
problem is often the better solution.
The example under Handling Aspen Plus Events shows the
CreateObject() call. See Initialization Methods to be Used with
CreateObject(), for more information about the InitFromArchive2
and InitFromFile2 methods.
Aspen Plus 12.1 User Guide Using the Aspen Plus ActiveX Automation Server • 38-27
Call ListBlocksExample(ihAPsim)
Call TempProfExample(ihAPsim)
GoTo EditSimulation
finish:
Exit Sub
ErrorHandler:
MsgBox "RunExample failed with error " & Err & Chr(13) & Error(Err)
End Sub
AspenPlu.cls
VERSION 1.0 CLASS
BEGIN
MultiUse = -1 'True
Persistable = 0 'NotPersistable
DataBindingBehavior = 0 'vbNone
DataSourceBehavior = 0 'vbNone
MTSTransactionMode = 0 'NotAnMTSObject
END
Attribute VB_Name = "AspenPlus"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = True
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = False
Option Explicit
38-28 • Using the Aspen Plus ActiveX Automation Server Aspen Plus 12.1 User Guide
Private Sub Class_Terminate()
On Error Resume Next
' Release automation server
Set simulationObject = Nothing
End Sub
End Property
Exit Property
' simple error handler
SetSimulationErr:
Set simulationObject = Nothing
End Property
RunError:
isRunning = False
End Sub
Aspen Plus 12.1 User Guide Using the Aspen Plus ActiveX Automation Server • 38-29
Public Property Get InputComplete() As Boolean
On Error GoTo InputCompleteErr
Dim problemData As IHNode
Dim completionMask As Long
InputComplete = False
If simulationObject Is Nothing Then
' Throw user defined exception
Exit Property
End If
Exit Property
InputCompleteErr:
InputComplete = False
End Property
LoadBkpErr:
Err.Clear
' log error or throw user defined exception
End Sub
Mainform.frm
VERSION 5.00
Begin VB.Form Form1
Caption = "Form1"
ClientHeight = 3195
ClientLeft = 60
ClientTop = 345
ClientWidth = 4680
LinkTopic = "Form1"
ScaleHeight = 3195
ScaleWidth = 4680
StartUpPosition = 3 'Windows Default
Begin VB.CommandButton Load
Caption = "Load"
Height = 375
Left = 720
TabIndex = 1
Top = 480
Width = 1095
End
38-30 • Using the Aspen Plus ActiveX Automation Server Aspen Plus 12.1 User Guide
Begin VB.CommandButton Run
Caption = "Run"
Height = 375
Left = 720
TabIndex = 0
Top = 1200
Width = 1095
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim WithEvents problem As AspenPlus
Aspen Plus 12.1 User Guide Using the Aspen Plus ActiveX Automation Server • 38-31
Exporting Files from an Automation
Client
A new automation method,.Export, has been added to the IHapp
interface to export file formats other that Aspen Archive and
Aspen Document formats.
38-32 • Using the Aspen Plus ActiveX Automation Server Aspen Plus 12.1 User Guide
Properties to Access
Other Parts of the Object
Model
Aspen Plus 12.1 User Guide Using the Aspen Plus ActiveX Automation Server • 38-33
Initialization Methods to
be Used with
CreateObject()
Name and Arguments Member Read-only Description
Type
InitFromArchive2( Sub Open an Aspen Plus archive file and connect to the
filename as String, simulation engine.
host_type as Integer, filename is the name of the problem to open,
node as String, host_type is a zero-based index of the entry of the host
username as String, in the initialization file,
password as String, node is the name of the remote machine to connect to,
working_directory as username, password, and working_machine are the
String, account name, password, and working directory to use to
failmode as Integer) connect to the remote machine,
failmode is 0 (default) if connection failure show show
the connect dialog, or non-zero if failure exits the
automation server.
All arguments but filename are optional.
InitFromTemplate2 Sub Opens a template and initializes
(filename As String, …) InitFromTemplate2 has the same arguments as
InitFromArchive2.
InitFromFile2( Sub Open an Aspen Plus document and connect to the
filename as String, ...) simulation engine.
InitFromFile2 has the same arguments as
InitFromArchive2.
Basic Run Operations
Name and Arguments Member Read-only Description
Type
Reinit() Sub Reinitialize the simulation case. To reinitialize specific
blocks or streams, use the Reinit member of the
IHAPEngine class.
Run2 Sub Run the simulation case, asynchronously if the argument
([asynchronous]) is True. If the user interface is visible, simulations
should always be run asynchronously.
Selection Buffer
Operations Used to do
Cut and Paste Strictly Via
Automation
Name and Arguments Member Read-only Description
Type
DeleteSelection(Key As Sub Delete a selection buffer.
String)
NewSelection(Key As Function Create and return a new selection buffer.
String) As IHSelection
38-34 • Using the Aspen Plus ActiveX Automation Server Aspen Plus 12.1 User Guide
Name and Arguments Member Read-only Description
Type
SaveSelection(Key As Sub Save a selection buffer.
String)
Selection(Key As Property Yes Retrieve a selection buffer.
String) As IHSelection
Disabling User Interface
Items
Name and Arguments Member Read-only Description
Type
UIDisable(key as Sub Disable user interface item denoted by key.
String) Key is a slash-delimited path of the menu item, such as
File/Save.
Once an item has been deactivated it cannot be
reactivated.
The IAPHappEvent Event
Interface Events in the Event Interface
Aspen Plus 12.1 User Guide Using the Aspen Plus ActiveX Automation Server • 38-35
Property related to the Event Interface
Name and Arguments Member Read-only Description
Type
SuppressDialogs as Property Specifies whether Aspen Plus suppresses most messages
Boolean and dialog boxes, normally True when Aspen Plus is
started as an automation server. Should be set False is
such an invocation is subsequently made available for
interactive use.
Members of Class
Standard VB Properties
IHNode
38-36 • Using the Aspen Plus ActiveX Automation Server Aspen Plus 12.1 User Guide
Name and Arguments Member Read-only Description
Type
SetValueUnitAndBasis Sub Store the value attribute, the Unit of Measurement
(Value, unitcol As attribute, and the basis for the object simultaneously.
Integer, basis As String,
[force])
Value([force]) Property Get the value attribute of the object.
ValueForUnit (unitrow Property Gets the value in the specified units.
As Integer, unitcol As
Integer)
ValueType As Integer Property Yes Get type of value attribute:
0=not defined
1=int
2=real
3=string
4=node
5=memory block
Helper Methods
Name and Arguments Member Read-only Description
Type
FindNode(path As Function Navigate to a different node.
String) As IHNode
Name([force]) As Property Returns the name of the object (force argument is
String unused).
UnitString As String Property Yes Returns the unit of measurement symbol of the node
value as a string.
Aspen Plus 12.1 User Guide Using the Aspen Plus ActiveX Automation Server • 38-37
Main Navigation Method
Name and Arguments Member Read-only Description
Type
Item(loc_or_name, Property Yes Given a set of indices or names, returns an element in
[loc_or_name2], the collection
[loc_or_name3],
[loc_or_name4],
[loc_or_name5]) As
IHNode
38-38 • Using the Aspen Plus ActiveX Automation Server Aspen Plus 12.1 User Guide
Important Properties About the Data
Name and Arguments Member Read-only Description
Type
Dimension As Long Property Yes Returns the number of dimensions in the directory.
Label(dimension As Property Returns the row label for the specified row location in
Long, location As the specified dimension (force argument is unused).
Long, [force]) As String
LabelLocation (Label Property Yes Returns the location, or row number, of the label along
As String, dimension the dimension, dim.
As Long) As Long
RowCount(dimension Property Yes Returns the number of elements in the dimension.
As Long) As Long
Aspen Plus 12.1 User Guide Using the Aspen Plus ActiveX Automation Server • 38-39
Members of Class Basic Run Operations
IHAPEngine
Name and Arguments Member Read-only Description
Type
MoveTo(object_type Sub Move current simulation step to object or begining of
As sequence.
IAP_MOVETO_TYPE,
[object_id])
Reinit([object_type], Sub Reinitialize all or portion of simulation (if object_type is
[object_id]) used it must be an IAP_REINIT_TYPE.)
Run2 ([asynchronous]) Sub Run simulation problem, asynchronously if the
argument is True. If the user interface is visible,
simulations should always be run asynchronously.
Stop() Sub Stop simulation run.
38-40 • Using the Aspen Plus ActiveX Automation Server Aspen Plus 12.1 User Guide
Name and Arguments Member Read-only Description
Type
HostDescription Function Returns a description for the host type specifed by the
(host_type As Long) As host_type index (0-based).
String
Aspen Plus 12.1 User Guide Using the Aspen Plus ActiveX Automation Server • 38-41
Name and Arguments Member Read-only Description
Type
CategorySelected Property Is 1 if specified category has been selected to display on
(name as String) as the Model Library
Integer
CategoryLocSelected Property Is 1 if specified category (by 0 based index) has been
(index as Integer) as selected to display on the Model Library
Integer
MoveCategory (fromloc Sub Moves a category in the category list
as Integer, toloc as
Integer)
38-42 • Using the Aspen Plus ActiveX Automation Server Aspen Plus 12.1 User Guide
C H A P T E R 39
This chapter describes how to use the Aspen Plus heat exchanger
design program interface (HTXINT) to transfer heating/cooling
curve data from an Aspen Plus run to a heat exchanger design
program.
See one of the following topics for more information:
• Generating property data
• Starting HTXINT
• Selecting heating/cooling curve results
• Generating the interface file
• Using the interface in a design program
Aspen Plus 12.1 User Guide Heat Exchanger Design Program Interface • 39-1
Run HTXINT after completing an Aspen Plus run and before
starting the design program. HTXINT guides you through a series
of prompts. Select the heating/cooling curves for the design
program.
HTXINT is an application written using the Aspen Plus summary
file toolkit.
39-2 • Heat Exchanger Design Program Interface Aspen Plus 12.1 User Guide
Starting HTXINT
To run HTXINT interactively, select the appropriate command:
Version Command
Windows HTXINT runid
Where:
runid is the ID of the Aspen Plus run
HTXINT reads the data from the summary file named runid.SUM.
If runid.SUM does not exist, HTXINT reads the data from the
backup file named runid.BKP.
The program guides you with a series of prompts. To leave the
HTXINT program at any time, type EXIT or QUIT.
HTXINT asks for the name of the target design program:
Please enter the required interface. (BJAC, HTFS, M-
HTFS or HTRI) >
Enter the vendor's name for the target design program:
Enter To write data for
BJAC Hetran
HTFS TASC, ACOL, and APLE
M-HTFS M-TASC, M-ACOL, and M-APLE
HTRI ST, CST, ACE, PHE, and RKH
HTXINT prompts for the units of measure:
Please select the units to display the data. (SI, ENG
or MET) >
Select the units to use for displaying the heating/cooling curve data
on the screen. The options are Aspen Plus units sets.
The B-JAC, HTFS, and HTRI interfaces use the vendor-specific
units set closest to the selected Aspen Plus units set, when writing
data to the interface file. Different vendors use slightly different
combinations of units in their units of measure. The interface uses
the most appropriate one. See Using the Interface File in your Heat
Exchanger Design Program, this chapter, for a list of the
corresponding units of measurement. The M-HTFS interface is
always written in SI units.
HTXINT prompts you for the name of the output file:
Please enter the output file name (Default is
runid.ext) >>
The default output file is created in your default directory with the
same filename as the summary file. The extension depends on the
target program. See Using the Interface File in Your Heat
Aspen Plus 12.1 User Guide Heat Exchanger Design Program Interface • 39-3
Exchanger Design Program, this chapter, for examples of the file
extensions.
If you choose the name of a file that already exists, HTXINT asks
if you want to overwrite it or choose another filename.
39-4 • Heat Exchanger Design Program Interface Aspen Plus 12.1 User Guide
If you enter Y to view the data, the heating/cooling curve points
appear. For example:
+----------+--------------+---------------+---------+
| TEMP | DUTY | PRES | VFRAC |
| (K) | (WATT) | (N/SQM) | |
+----------+--------------+---------------+---------+
| 322.039 | 0.31907E+04 | 0.41024E+07 | 1.000 |
| 317.775 | -0.71198E+05 | 0.41024E+07 | 1.000 |
| 311.584 | -0.21327E+06 | 0.41024E+07 | 0.994 |
| 301.130 | -0.46122E+06 | 0.41024E+07 | 0.980 |
| 290.675 | -0.72166E+06 | 0.41024E+07 | 0.963 |
| 280.221 | -0.99223E+06 | 0.41024E+07 | 0.941 |
| 269.766 | -0.12693E+07 | 0.41024E+07 | 0.916 |
| 259.312 | -0.15503E+07 | 0.41024E+07 | 0.888 |
| 248.857 | -0.18344E+07 | 0.41024E+07 | 0.857 |
| 238.403 | -0.21230E+07 | 0.41024E+07 | 0.822 |
| 227.948 | -0.24205E+07 | 0.41024E+07 | 0.779 |
| 217.493 | -0.27370E+07 | 0.41024E+07 | 0.724 |
| 207.039 | -0.30963E+07 | 0.41024E+07 | 0.639 |
+----------+--------------+---------------+---------+
Indicate whether you want to write the data for the heating/cooling
curve by responding to this prompt:
Do you want this Hcurve to be written to the
interface file? (Y/N) >
If you enter Y, the heating/cooling curve data is written to the
output file. If you enter N, you can enter another heating/cooling
curve number.
If the heating/cooling curve contains calculation errors, any points
with errors are indicated with an asterisk (*) and the following
prompt appears:
Do you want data for the points with the calculation
errors to be suppressed? (Y/N) >
If you enter Y, the points with errors will be excluded.
Aspen Plus 12.1 User Guide Heat Exchanger Design Program Interface • 39-5
Please provide a one line case description of up to
70 characters.
> BASE CASE
Enter the cold fluid name. 12 characters maximum > C1
Data for curve has been written to the interface
file.
Do you want to select another Hcurve? (Y/N) > N
39-6 • Heat Exchanger Design Program Interface Aspen Plus 12.1 User Guide
C H A P T E R 40
This section describes how to use the interface between the Aspen
Plus flowsheet simulator, FACT, and ChemApp. Before using
this interface, you should have a working knowledge of Aspen
Plus, FactSage, and ChemApp. Within Aspen Plus specifically,
you should be familiar with the concepts presented in Getting
Started Customizing Unit Operation Models.
The Aspen/FACT/ChemApp Interface was developed to given
Aspen Plus users access to the thermodynamic data and solution
models in FactSage in the context of a flowsheet simulation. It is
expected that this will be used primarily for simulations of
pyrometallurgical processes.
FACT/ChemApp Software
Requirements
In addition to Aspen Plus 12.1, use of the Aspen/FACT/ChemApp
interface requires the installation of third party software:
• FactSage™ 5.0 is used to generate transparent ChemSage files
(*.cst) which can be read by the Aspen/FACT/ChemApp
interface. For more information about FactSage, see
www.factsage.com.
• ChemApp is the application called by Aspen/FACT/ChemApp
interface to perform thermochemical calculations. For more
information about ChemApp, see www.gtt-technologies.de.
The Compaq Visual FORTRAN compiler is not required, but is
strongly recommended. If the Fortran compiler is present, the
name of the ChemSage file can be specified with the ChemSage
Calculator block.
Aspen Plus 12.1 User Guide Using FACT and ChemApp with Aspen Plus • 40-1
Specifying a Simulation Using FACT
and ChemApp
To create a simulation using FACT and ChemApp, perform the
following steps:
1 Configure Aspen Plus to use the Aspen/FACT/ChemApp
interface.
2 Specify FACT components.
3 Specify the FACT property method.
4 Prepare the ChemSage file.
5 Configure the ChemApp unit operation model.
Configuring Aspen The following instructions assume that GUI is the subdirectory
Plus to Use the where the Aspen Plus graphical user interface is installed (typically
Aspen/FACT/ C:\Program Files\AspenTech\Aspen Plus 12.1\GUI), and that
ChemApp Interface APRSYS is the subdirectory where the Aspen Plus property system
engine files are installed (typically C:\Program
Files\AspenTech\AprSystem 12.1\Engine).
Accessing ChemApp
Aspen Plus needs to be able to access the ChemApp executable
file. The ChemApp executable file is not delivered as part of
Aspen Plus, it must be licensed from GTT Technologies.
Copy ca_vc_e.dll from the ChemApp installation to
APRSYS\XEQ\chemapp.dll .
Note that GTT may change the name of the ChemApp executable
file from ca_vc_e.dll to something else. Aspen Plus will only
recognize the file if it has been renamed to chemapp.dll.
40-2 • Using FACT and ChemApp with Aspen Plus Aspen Plus 12.1 User Guide
Testing the Aspen/FACT/ChemApp interface
If you have installed the FORTRAN compiler:
1 Copy GUI\xmp\ChemApp\*.* to a working directory.
2 Start the Aspen Plus GUI.
3 Open pbzn-ls.bkp from the working directory.
4 Run the simulation. If it completes successfully, the
preparation for the Aspen/FACT/ChemApp interface is
complete.
If you do not have the FORTRAN compiler:
1 Copy GUI\xmp\ChemApp\*.* to a working directory.
2 Start the Aspen Plus GUI.
3 Open no-fortran.bkp from the working directory.
4 From the Run pulldown menu, select Settings.
5 In the Linker Options field, ensure that the path for
nofort.dlopt is correct.
6 In the working directory, use Notepad to edit nofort.dlopt.
Enter the correct path to find AFC.dll in the working directory.
7 Run the simulation. If it completes successfully, the
preparation for the Aspen/FACT/ChemApp interface is
complete.
Aspen Plus 12.1 User Guide Using FACT and ChemApp with Aspen Plus • 40-3
Plus components in that they represent a component in a particular
phase.
Before you can specify FACT components, you must tell Aspen
Plus to use the FACTPCD:
1 Go to the Databanks sheet of the Components | Specifications
form.
2 Select FACTPCD and click > to move it to the Selected
Databanks frame.
3 In the Selected Databanks frame, select FACTPCD and click
the up arrow repeatedly to move it to the top of the list.
Next, specify all FACT components in the simulation on the Aspen
Plus Component | Specifications | Selection sheet. Note that you
must specify each component in all phases you expect to find it in.
For example, if the simulation will be used to simulate the
condensation of zinc in a Heater block, two components will be
required:
• ZN:G1
• ZN:L1
All component names for components in the FACTPCD follow the
same syntax. A colon is used to separate the molecular formula
from the phase. The phases may be pure component phases (e.g.
L1, S1, S2) or solution phases (e.g. G1, PBLQ).
The component type should reflect the state of the species. Liquids
and gases should be designated as Conventional, while solids and
solid solutions should be designated as Solids. This will be useful
when assigning products to substreams after an equilibrium
calculation.
Note that not all the components present in the ChemSage file need
to be listed in the Component | Specifications | Selection form.
Mixing FACT You cannot mix FACT components and calculations with
Components and Aspen traditional Aspen Plus components and calculations. This means
Plus Components that the FACT property method cannot be used to calculate the
thermodynamic properties of components originating from the
Aspen Plus databanks, nor can the properties of components
originating from the FACT databases be calculated using native
Aspen Plus property methods.
Components from the FACT database can be used in the same
simulation with other components, but exercise extreme caution.
The recommended usage is to divide the flowsheet into sections:
• A section where FACT components are used
• A section where traditional Aspen Plus components are used
40-4 • Using FACT and ChemApp with Aspen Plus Aspen Plus 12.1 User Guide
Under no circumstances can FACT and traditional Aspen Plus
components come into contact in any stream or block.
Defining Property The FACT property method must be used for physical property
Methods for the calculations wherever FACTPCD components are present. The
Aspen/FACT/ FACT property method can be specified at several different levels
ChemApp Interface in the simulation: globally, at the flowsheet section level, at the
block level, or at the part-of-block level (for one side of a heat
exchanger). In addition:
• Do not change the routes or models of the FACT property
method. Specific solution models cannot be manipulated
through modification of the FACT property method. Solution
models are assigned to a component in the ChemSage file
based on its phase designation. Several solution models may be
used together within any stream or unit operation model.
• Do not enter specifications for Henry Components.
• Do not select the Free Water option.
Only the FACT property method and FACT components can be
used with the ChemApp unit operation model.
Aspen Plus unit operation models can be used with the
Aspen/FACT/ChemApp interface. Anytime that the FACT
property method is used, the Aspen/FACT/ChemApp interface will
be called automatically.
Note that the FACT property method has no provisions to calculate
transport properties. Therefore, unit operation models that require
transport properties (such as RateFrac and rigorous HeatX) cannot
be used with the interface.
When using the FACT property method, you may need to define
an appropriate chemistry block for flash calculations.
Specifying Flash Since the Aspen Plus components are really FACT species
Calculations with the assigned to a specific phase, the concept of using a simple flash
Aspen/FACT/ChemApp calculation to determine phase equilibrium is not meaningful.
Interface Instead, phase equilibrium must be described to Aspen Plus as a
reaction. These reactions are specified in a Chemistry block.
Consider a heater block cooling water at 1 atm from 150 C to 70 C.
From the FACT point of view, this involves a "reaction":
H2O:G ! H2O:L
In order for Aspen Plus to perform this flash correctly with the
FACT property method, you must set up a Chemistry block with
this reaction.
While there is no inherent limit to the number of reactions that can
be provided in a Chemistry block, it is recommended that complex
Aspen Plus 12.1 User Guide Using FACT and ChemApp with Aspen Plus • 40-5
flash calculations be done with the ChemApp User2 block, where
feasible.
Preparing the The ChemApp module does not read the FACT databases directly.
ChemSage File Simulation thermodynamic data files (referred to as ChemSage
files) that can be read by the ChemApp module must be prepared.
This can be done through the EQUILIB program of FactSage. See
the FactSage documentation for more information.
Binary ChemSage files from FACT-Win (*.bin) cannot be used.
Only ASCII ChemSage files (*.dat) or transparent ChemSage files
(*.cst) are recognized by the Aspen/FACT/ChemApp interface.
Only one ChemSage file can be read in a single simulation.
Note: If FactSage and Aspen Plus are located on different
machines, you can copy the ChemSage file from the PC with
FactSage to the PC with Aspen Plus and ChemApp.
Referencing the If the Fortran compiler is installed, all runs should include the
ChemSage File ChemSage Calculator block. This is delivered as
GUI\xmp\ChemApp\ChemSage.bkp. This .bkp file can be
imported into any existing .bkp file. It executes first and sets two
variables:
1 Ppfact_FILEN: the name of the ChemSage file. It must be in
the local directory.
2 Ppfact_CADBG: controls whether or not debugging
information is sent to the Control Panel.
If ppfact_FILEN is not defined in the ChemSage Calculator
block, the Aspen/FACT/ChemApp interface looks for the file
ChemSage.CST. If ChemSage.CST cannot be found, the
interface will fail with an error message stating that the ChemSage
file cannot be found.
Using ChemApp as a The ChemApp unit operation model provides the most flexibility
Unit Operation Model in the use of the Aspen/FACT/ChemApp interface.
Note that the ChemApp unit operation model is actually a User2
block with some customized variables. Although input data for the
User2 can be specified on the User Arrays sheet, it is intended
that you enter data on the Configured Variables sheet.
Use of the ChemApp unit operation requires access to the RFACT
and AFC subroutines. The objects for these subroutines must be
present in the working directory for all simulations. They are
delivered both as Fortran files and as objects in
GUI\xmp\ChemApp. If you do not have the Fortran compiler,
they must be accessed through AFC.dll, also delivered in
GUI\xmp\ChemApp. A dlopt file is required to point to
40-6 • Using FACT and ChemApp with Aspen Plus Aspen Plus 12.1 User Guide
GUI\xmp\ChemApp\AFC.dll, as described in the Configuring
Aspen Plus section.
The default entries on the Subroutines sheet indicate what
subroutine is used to call the interface. RFACT.F is delivered in
the GUI\xmp\ChemApp directory. You may modify this
subroutine, for example, to identify which equilibrium phase
should go in which stream. If there are multiple instances where
you must identify which phase should go in which stream, you can
make multiple copies of RFACT.F (perhaps named RFACT1.F,
RFACT2.F, etc.), and reference them appropriately.
The type of equilibrium calculation to perform, the equilibrium
conditions and the list of possible product species are all specified
on the Configured Variables sheet. The example shown in the
figure below shows the specifications for equilibrium at a specified
pressure and temperature.
ChemApp Calculation There are four calculation types. Each one has a code value that is
Types indicated in the first field (CALC_TYPE_1_TO_4). The codes are
Aspen Plus 12.1 User Guide Using FACT and ChemApp with Aspen Plus • 40-7
summarized below. Target codes 3 and 4 require the specification
of a target phase or species and a temperature range.
Calculation State variables (in Comments
Code order of
specification)
1 P, T
2 P, ∆H
3 P, Tmin, Tmax Formation target on first
phase/species in product list
4 P, Tmin, Tmax Precipitation target on first
phase/species in product list
The state variables are specified in the real array. The choice and
number of state variables depends on the Calculation Code as
indicated above. Pressure is always the first variable, followed by
either a temperature, ∆H, or temperature range. Target calculations
require that the user enter a temperature range with Tmin always
being the first.
All specifications for state variables must use these units of
measure:
State Variable Units
Pressure Pa
Temperature K
Enthalpy W
Specifying the ChemApp For target calculations, the number of targets
Target Phase (NO_OF_TARGETS_1_MAX) should be specified as one. The
only valid specifications for the number of targets is zero or one.
The target phase or component can specified once
NO_OF_TARGETS_1_MAX has been set to one.
Specifying ChemApp Product species and phases (other than a target) can be specified in
Products two ways. You can specify a solution phase, or individual species
within a phase (or a combination of the two). Certain rules must
apply to avoid ambiguity.
Pure component species can be referenced as a group by specifying
their state name(s). When a state name is used, all species with the
appropriate phase designation are considered as possible product
species. The GAS state name will consider all the gases to be an
ideal gas phase mixture. These interpretations are summarized in
the table below.
40-8 • Using FACT and ChemApp with Aspen Plus Aspen Plus 12.1 User Guide
State Name Interpretation
GAS All gaseous species in an ideal gas phase (phase
designation G)
LIQUIDS All pure component liquids as stoichiometric species
(phase designation L)
SOLIDS All pure component solids as stoichiometric species
(phase designation S)
Solutions can be referenced by their phase designations (solution
names) as well. When a solution name is specified, all species in
that solution are considered as possible products. Entering the
solution name twice indicates the possibility of phase separation in
partially miscible solutions.
In certain cases you may want to consider only specific species
from solution phase or state. To do this, specify the Component ID
of those species as it is given on the Components | Specifications
| Selection sheet. Interpretations differ depending on the phase
designation. If the phase designation is a solution name or is G,
then it is still considered a member of a solution, unless it is the
only member of that solution present in the list. If the phase
designator is L or S, then it is treated as a pure compound. When a
solution uses the quasichemical solution model, the specification
of a component in the solution will automatically activate other
components in the same solution.
Note: When specifying components individually, it is often easiest
to use copy/paste to copy the entire list of component names from
the Components | Specifications | Selection sheet.
Aspen Plus 12.1 User Guide Using FACT and ChemApp with Aspen Plus • 40-9
40-10 • Using FACT and ChemApp with Aspen Plus Aspen Plus 12.1 User Guide
C H A P T E R 41
Utilities
Creating a Utility
To create a utility block:
1 From the Data menu, select Utilities.
2 On the Utility object manager, click New.
3 In the Create New ID dialog box, enter an ID, or accept the
default. Click OK.
4 Enter specifications, such as utility type, heating value, and
price, in the form for the new utility.