APLUS 111 User Guide
APLUS 111 User Guide
1
September 2001
Copyright (c) 1981-2001 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: [Link]
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
Overview ........................................................................................................................17-1
SM Convergence ............................................................................................................17-1
Flowsheet Recycles and Design Specifications..............................................................17-2
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-7
Initial Estimates for Tear Streams ......................................................................17-8
Specifying User-Defined Convergence Blocks..............................................................17-8
Convergence Methods ....................................................................................................17-9
WEGSTEIN Method ..........................................................................................17-9
DIRECT Method ..............................................................................................17-11
Secant Method ..................................................................................................17-11
BROYDEN Method .........................................................................................17-12
NEWTON Method ...........................................................................................17-13
COMPLEX Method..........................................................................................17-14
SQP Method .....................................................................................................17-14
Specifying Convergence Order ....................................................................................17-16
Specifying the Calculation Sequence ...........................................................................17-16
Using Initial Guesses ....................................................................................................17-18
Sensitivity 20-1
Overview ........................................................................................................................20-1
About Sensitivity Analysis .............................................................................................20-1
SM Sensitivity ................................................................................................................20-2
About Sensitivity Blocks ....................................................................................20-2
Defining a Sensitivity Block...........................................................................................20-3
Creating a Sensitivity Block ...............................................................................20-3
Inserts 34-1
Overview ........................................................................................................................34-1
What is an Insert? ...........................................................................................................34-1
Creating an Insert................................................................................................34-2
Importing Inserts.................................................................................................34-2
Resolving ID Conflicts .......................................................................................34-3
Creating a Property Package...........................................................................................34-5
Using Electrolyte Inserts From the Aspen Plus Insert Library.......................................34-5
Hiding Objects................................................................................................................34-6
Revealing Objects...............................................................................................34-6
Technical Support
World Wide Web For additional information about AspenTech
products and services, check the AspenTech World Wide Web
home page on the Internet at: [Link]
Technical resources AspenTech customers with a valid license
and software maintenance agreement can register to access the
Online Technical Support Center at
[Link]
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
• Submit and track technical issues
• Send suggestions
• Report product defects
• Review lists of known deficiencies and defects
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 and Service Pack 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 [Link]
The following contact information was current when this product
was released:
Hours
Support Centers Operating Hours
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
Overview
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.
Aspen Plus Toolbars Use the buttons on the toolbars to perform actions quickly and
easily.
The default toolbars are shown here:
Tip: You can also place blocks in your flowsheet by dragging and
dropping from the Model Library to the Process Flowsheet
window.
Tip: You can undock the Model Library and use it as a floating
palette.
Displaying Forms and Use the Data Browser to view and edit the forms and sheets that
Sheets in the Data define the input and display the results for the flowsheet
Browser simulation. When you have a form displayed, you can view any
sheet on the form by clicking on the tab for that sheet.
There are several ways to display forms. You can display a form in
a new Data Browser by using:
• The Data menu
• Block or stream popup menus
• The Check Results button on the Control Panel, the Check
Results command from the Run menu, or the Check Results
button on the Simulation Run toolbar
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
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.
Overview
For help on creating a simulation model, see one of the following
topics:
• Process Simulation Using Aspen Plus
• Creating a new run
• Selecting a Template
• Selecting a Run Type
• Completing the input specifications for a run
• About the templates
• The Aspen Plus online applications library
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, Customizing
Application Template Files.
About the Built-In There are built-in Templates for the following applications:
Templates • Air Separation
• Chemicals
• Electrolytes
• Gas Processing
Completion Status for When you are on an Object Manager for a block or other object,
Objects the completion status for each object appears in the Status column.
Status Means You can
message
Input Input specifications for Use Next from the Data
Incomplete the object are Browser toolbar
incomplete. to go to an incomplete form, or
select an incomplete object
from the
Object Manager, and click Edit.
Input Complete Required input Use Next from the Data
specifications for the Browser toolbar
object are complete. to go to the next step, or enter
optional specifications by
selecting an object
from the Object Manager and
clicking Edit.
Results Present Results are present View results, make input
changes,
and re-run the simulation
Input Changed Results are present, the View results, make further input
input specifications changes,
have been changed and and re-run the simulation
the input is complete.
Overview
Aspen Plus has a online Help, prompts and expert system
messages, to give you information as you use the program.
For more information on Help, see one of the following topics:
• Getting online Help
• Using the Back button
• Searching for help on a topic
• Printing help
• Linking to the AspenTech home page
• Contacting Technical Support
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 Press F1.
mouse pointer 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.
Aspen Plus 11.1 User Guide Using Aspen Plus Help • 3-1
Use the Back button to move back through help screens you have
Using the Back
seen. If there is no previous topic to view, the Back button is
Button
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 11.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.
Aspen Plus 11.1 User Guide Using Aspen Plus Help • 3-3
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 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,
available physical properties methods and models, tables of
Aspen Plus databank parameters, equations, and a wide range of
other reference information. The set comprises:
• Unit Operation Models
• User Models
• System Management
• System Administration Guide
• Summary File Toolkit
• Input Language Guide
3-4 • Using Aspen Plus Help Aspen Plus 11.1 User Guide
• Search for tech tips, solutions and frequently asked questions
(FAQs)
• Search for and download application examples
• Submit and track technical issues
• Send suggestions
• Report product defects
• Review lists of known deficiencies and defects
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 and Service Pack announcements
The most up-to-date contact information for your nearest support
office is also available on AspenTech’s web page at
[Link]
For information current when this product was released, see below
for your location. All hours listed are local to their locations.
North America & the Caribbean
Telephone: +1-888/996-7100 (toll-free) or +1-281/584-4357
Fax: +1-617/949-1724 (Cambridge, 08:00-18:00)
or +1-281/584-1807 (Houston, 08:00-17:00)
Email: support@[Link]
Europe, Gulf Region, and Africa (Brussels office)
Hours: 08:00 – 17:00
Telephone: +32-2/724-0100
Fax: +32-2/705-4034
Email: atesupport@[Link]
Europe, Gulf Region and Africa (UK office)
Hours: 08:00 – 17:00
Telephone: +44/1223-312220
Fax: +44/1223-366980
Email: atesupport@[Link]
Aspen Plus 11.1 User Guide Using Aspen Plus Help • 3-5
Japan
Hours: 09:00 – 17:30
Telephone: +81-3/3262-1743
Fax: +81-3/3262-1744
Email: atjsupport@[Link]
Asia and Australia
Singapore office:
Hours: 09:00 – 17:30
Telephone: +65/395-39-00
Fax: +65/395-39-50
Email: [Link]
South America (Argentina office)
Hours: 08:00 – 17:00
Telephone: +54-11/4361-7220
Fax:+54-11/4361-7220
Email: info@[Link]
South America (Brazil office)
Hours: 09:00 – 17:00
Telephone: +55-11/5012-0321
Fax: +55-11/5012-4442
Email: tecnosp@[Link]
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@[Link]
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 11.1 User Guide
CHAPTER 4
Overview
For help on defining a flowsheet, see one of the following topics:
• Creating a process flowsheet
• Using heat and work streams
• Using pseudoproduct streams
• Viewing a process flowsheet
• Checking flowsheet completeness
• Modifying a process flowsheet
• Using flowsheet sections
• Printing
For descriptions and information about the user interface,click the
relevant topic:
• Main window
• Process Flowsheet window
• Model Library
• Data Browser
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.
Tip: Hold down the CTRL key during drag and drop to remain in
Insert mode after completing connections for the first stream.
2 Drag the block to the location you want and release the mouse
button.
When you place or move blocks, the center of the block icon
snaps to a grid location if Snap to Grid is enabled. For
Tip: You can also select the block and then use the arrow keys
(←↑→↓) to make minor adjustments to the position of the block.
Tip: You can also use the buttons on the Process Flowsheet
toolbar to rotate and flip an icon.
To resize an icon:
1 Click the block whose icon you wish to resize.
Resizing Icons 2 Click with the right mouse button on the block.
3 From the menu that appears, point to Resize Icon, then Shrink
or Enlarge to shrink or enlarge the icon by a built-in factor.
– or –
Position the mouse pointer over one of the corners of the block
icon until the Resize mode pointers appear. Drag the mouse
pointer until the icon until it is the desired size.
Aligning Blocks To align two blocks:
1 Click the stream between the two blocks.
Tip: You can also select one or more streams and press CTRL +
B.
Moving Stream To move the point where a stream connects to a unit operation
Connection Locations block without changing the stream's connection to its current port
on the icon:
1 Click the stream that you want to move or click the block to
which it is connected. The stream is selected
Relocated
stream end
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.
Tip: You can also select the stream and then use the arrow keys
(←↑→↓) to make minor adjustments to the position of the stream.
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 ( ).
2 Drag the block to the location you want and release the mouse
button.
Rerouting Streams To reroute a stream automatically:
1 Click the stream you wish to reroute.
2 Click the right mouse button on the stream.
3 From the menu that appears, click Reroute Stream.
Tip: You can also select one or more streams and then press CTRL
+ J to reroute them.
Using Place and Unplace When you want to make several changes to the layout of all or part
to Redraw the Flowsheet of a flowsheet, you might find it easier to temporarily remove
(unplace) one or more blocks and then replace them.
To do this, use Place and Unplace to redraw all or part of the
flowsheet at any time. You can place:
• All of the blocks at once and let Aspen Plus choose the layout
Tip: You can also select one or more blocks and then press CTRL
+ U to unplace them.
Using Place to Place a Use Place to place an individual block on the flowsheet. Do this
Block on the Flowsheet when you want to achieve a specific layout.
To place an unplaced block on the flowsheet yourself:
1 In the Unplaced Blocks dialog box, click and hold down the
mouse button on the ID of the block that you want to place.
2 Drag the block to the flowsheet and drop it where you want the
block located.
If you want Aspen Plus to place the next block automatically:
• In the Unplaced Blocks dialog box, click Place Next.
Aspen Plus selects the block that logically should appear next
in the flowsheet and places it in the appropriate position. This
will not necessarily be the block listed first in the Unplaced
Blocks dialog box.
If you do not like where Aspen Plus has placed the block,
move it to a different location.
As you place blocks, the streams that connect them also appear.
You can move stream segments or corners to achieve the desired
routing.
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.
Overview
For help on specifying and changing all types of global
information, see one of the following topics:
• About global information
• Entering global specifications
• Overriding default simulation options
• Units of measure
• Stream classes
• Report options
Aspen Plus 11.1 User Guide Global Information for Calculations • 5-1
Enter global specifications on the Setup forms. To access the Setup
forms:
1 From the Data menu, click Setup.
2 The following table shows which form to use to enter
information:
Use this form To
Specifications Enter global information
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 11.1 User Guide
Basis, Ambient Pressure, Valid Phases, and Use Free Water
Calculation.
You can override global specifications for individual unit
operations blocks using the Block Options form for each block.
Changing the Run Type You specify a Run Type when you create a new run. You can
change this run type at any time. See Selecting a Run Type for a
description of the available run types.
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.
Aspen Plus 11.1 User Guide Global Information for Calculations • 5-3
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.
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.
5-4 • Global Information for Calculations Aspen Plus 11.1 User Guide
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.
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.
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
Aspen Plus 11.1 User Guide Global Information for Calculations • 5-5
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,
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.
5-6 • Global Information for Calculations Aspen Plus 11.1 User Guide
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.
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 11.1 User Guide Global Information for Calculations • 5-7
You can also use this sheet to specify reactions stoichiometry error
checking options.
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.
5-8 • Global Information for Calculations Aspen Plus 11.1 User Guide
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 HyCyc
Crusher Mixer
Cyclone Mult
Dupl Screen
ESP Sep
FabFl Sep2
Filter SSplit
FSplit VScrub
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.
Aspen Plus 11.1 User Guide Global Information for Calculations • 5-9
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.
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.
5-10 • Global Information for Calculations Aspen Plus 11.1 User Guide
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
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.
See 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.
Aspen Plus 11.1 User Guide Global Information for Calculations • 5-11
Flash Convergence Use the Flash Convergence sheet to specify calculation options for
Sheet setting:
• Upper and lower limits of temperature for flash calculations
• Upper and lower limits of 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.
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.
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.
5-12 • Global Information for Calculations Aspen Plus 11.1 User Guide
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.
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.
Aspen Plus 11.1 User Guide Global Information for Calculations • 5-13
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.
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 For results
sheets sheet
Global units sets Entire run Yes Yes
Sheet units set Individual form or object Yes Yes
Field units Individual fields or a group Yes Yes
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.
5-14 • Global Information for Calculations Aspen Plus 11.1 User Guide
The unit types used by Aspen Plus appear on six sheets:
Standard, Heat, Transport, Concentration, Size, and
Miscellaneous.
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.
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.
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.
Aspen Plus 11.1 User Guide Global Information for Calculations • 5-15
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 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.
5-16 • Global Information for Calculations Aspen Plus 11.1 User Guide
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
• 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.
Aspen Plus 11.1 User Guide Global Information for Calculations • 5-17
On this sheet Specify
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.
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.
5-18 • Global Information for Calculations Aspen Plus 11.1 User Guide
Customizing the You can customize the stream format using these options:
Stream Report Stream Report Description
Options
Flow basis Display flow rate of each component in each streams
in the basis specified. Any combination of Mole,
Mass, or Standard Liquid Volume can be chosen.
Fraction basis Display fraction of each components in each streams
in the basis specified. Any combination of Mole,
Mass, or Standard Liquid Volume can be chosen.
TFF Table Format File used to specify the order and
format of values printed in the stream report. For
more information, see Specifying Stream Results
Format.
Report width Print five streams (80 column) or ten streams (132
column) across a page. Applies only to Report file.
Sort stream Streams sorted alphanumerically. Applies only to
alphanumerically Report file.
Include Include components in the stream report, even if they
components with have zero flow or fraction.
zero flow or If this option is not selected, components with zero
fraction flow or fraction are not printed for that stream
Include Streams Specify which streams are printed in the report and
order the streams. Applies to the Report file and does
not apply to the Stream Results Summary.
Property Sets Specify property sets for additional properties to be
calculated and printed for all of the streams.
Component Component attributes, particle size distribution
Attributes values, particle size distribution size limits and
stream structure information can be printed for all of
the streams. Applies to the Report file and does not
apply to the Stream Results Summary.
Batch Operations Designated streams can be reported on a batch basis.
Supplementary Specify additional (supplementary) stream reports. A
stream 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.
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
Aspen Plus 11.1 User Guide Global Information for Calculations • 5-19
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
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
5-20 • Global Information for Calculations Aspen Plus 11.1 User Guide
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
− 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.
Aspen Plus 11.1 User Guide Global Information for Calculations • 5-21
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 11.1 User Guide
CHAPTER 6
Specifying Components
Overview
For help on specifying components, see one of the following
topics:
• Forms for specifying component information
• Specifying databank and non-databank components
• Adding, deleting, and changing components
• Generating electrolyte components and reactions
• Identifying solid components
• Assigning attributes for conventional and nonconventional
components
• Specifying supercritical (HENRY) components
• Specifying UNIFAC groups
• Defining component groups
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.
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.
3 Select the Advanced sheet where you can also search for
components based on the chemical class, molecular weight
range, boiling point range and CAS number.
4 In the Boiling Point boxes, enter from 200 to 250 K.
5 Click Find Now.
Aspen Plus searches its databanks for components that contain
the characters C3 in the name or formula and have a Boiling
point between 200 and 250 K and then displays the results in
the bottom half of the window.
Specifying Non-Databank
Components
To define a component that is not in the databanks:
1 From the Data menu, click Components.
2 On the Specifications Selection sheet, enter only the
Component ID.
3 If Aspen Plus finds a match in a databank for the ID you enter,
delete the Formula or Component Name. Aspen Plus then
recognizes the component as a non-databank component.
Using the User- You can use the User-Defined Component Wizard to define the
Defined Component properties needed for conventional, solid, and nonconventional
Wizard components. You can modify the parameters supplied at any time
by returning to the User-Defined Component Wizard or by going
to the forms where the information is saved.
Use this wizard to define components that are not in any pure
component databanks. You can define conventional components,
solid components, and nonconventional components. The wizard
also helps you enter commonly available data for the components,
such as molecular weight, normal boiling point, vapor pressure and
heat capacity data.
6 Optionally enter the data shown in this table. This data can be
found later on the Properties Parameters Pure Component
USRDEF-1 form.
Physical Property Information
Specific gravity at 60°F
(SG)
Standard enthalpy of Most simulations involve energy balance
formation (DHFORM) calculations so enthalpy is required.
Standard enthalpy of formation of ideal gas at
25°C (DHFORM) is used in the enthalpy
calculation, but is not required unless the
simulation contains chemical reactions, because
DHFORM defaults to zero.
Standard Gibbs energy Enter the standard Gibbs energy of formation of
of formation ideal gas at 25°C (DGFORM) if either:
(DGFORM) • The simulation contains chemical reactions.
• You use the RGibbs unit operation model.
7 If you wish to enter additional property information, such as
molecular structure, vapor pressure or ideal gas heat capacity
data, click Next. The wizard will help you enter property data,
property parameters, and molecular structure or activate
property estimation.
– or –
Click Finish to save the data you have entered and exit the
wizard.
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.
Renaming a Component
To rename an existing component:
1 From the Data menu, click Components.
2 On the Specifications Selection sheet, move to the Component
ID box for the component you want to rename.
3 Type over the existing ID.
Aspen Plus prompts you to either delete or rename the existing
component.
4 Select Rename.
The component is renamed on this form and on all other forms
where it appears. No data is lost.
If you select Delete, both the Component ID and its data is
deleted.
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.
Overview
Choosing the appropriate property method is often the key decision
in determining the accuracy of your simulation results. For help on
property methods, see one of the following topics:
• What is a property method
• Available property methods
• Choosing a property method
• Creating new property methods
• Specifying the global property method
• Specifying a property method for a flowsheet section
• Specifying a local property method
• Defining supercritical components
• Specifying properties for the free-water phase
• Special method for K-value of water in the organic phase
• Specifying electrolyte calculations
• Modifying property methods
• Property methods for nonconventional components
Activity Coefficient Activity Coefficient Liquid Phase Activity Vapor Phase Fugacity
Property Methods 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 Redlich-Kwong-Soave
UNIFAC
UNIF-HOC UNIFAC Hayden-O'Connell
UNIF-LBY Lyngby-modified Ideal gas
UNIFAC
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
Systems Y
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.
To specify the global property method:
1 From the Data menu, click Properties.
2 On the Global sheet, in the Property Method list box, specify
the property method.
3 You can also use the Process Type list box to help you select
an appropriate property method. In the Process Type list box,
select the type of process you want to model. Each process type
has a list of recommended property methods.
4 In the Base Method list box, select a base property method.
5 If you are using an activity coefficient property method and
want to use Henry’s law for supercritical components, specify
the Henry component list ID in the Henry Components list box.
6 If you have a petroleum application that requires free water
calculations, specify the property method for the free water
phase in the Free-Water Method list box and water solubility
option in the Water Solubility list box
7 For electrolyte applications, you must select an electrolytic
property method, then select the Chemistry ID in the Chemistry
ID list box. You can also specify the electrolyte computation
method in the Use True-Components check box.
Note: You can also specify free water calculations on a local basis
in individual streams and blocks.
wϕ w
*,l
Kw =
ϕ wv
Where:
γw = Activity coefficient of water in the organic
phase
ϕ w *,l = Fugacity coefficient of pure liquid water
calculated using the free-water phase property
method
ϕ wv = Fugacity coefficient of water in the vapor phase
mixture
0 1 Free-water property
γw = sol method
xw
1 1 Primary property
γw = sol method
xw
2 γ w = f (T , x w ) Primary property
method
1
where γ w = xw = xw
sol
when
sol
xw
3† The K-value of water is calculated by the primary property
method
† Water solubility option 3 is not recommended unless binary
interaction parameters regressed from liquid-liquid equilibrium
data are available.
sol
Note: X w is solubility of water in the organic phase, calculated
using the water-solubility correlation. (WATSOL).
Overview
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 11.1 User Guide Physical Property Parameters and Data • 8-1
In order to understand this topic, it is important to distinguish
between the terms Parameters and Data:
Item Definition Example
Parameters The constants used in the These can be scalar constants such as
many different physical molecular weight (MW) and critical
property models, or temperature (TC), or they can be
equations, used by temperature-dependent property correlation
Aspen Plus to predict parameters such as the coefficients for the
physical properties extended Antoine vapor pressure equation
(PLXANT).
Data Raw experimental property Vapor pressure vs. Temperature data could
data that can be used for be used to estimate or regress the extended
estimation or regression of Antoine parameters (PLXANT).
parameters
8-2 • Physical Property Parameters and Data Aspen Plus 11.1 User Guide
This table gives further information:
If you These parameters Enter them on this
are required type of Properties
Parameters form
Use the standard liquid Standard liquid Pure Component Scalar
volume basis for any volume parameters
flowsheet or unit operation (VLSTD)
model specification
Request free-water Parameters for the Pure Component
calculations water solubility T-Dependent
model (WATSOL)
Aspen Plus 11.1 User Guide Physical Property Parameters and Data • 8-3
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)
8-4 • Physical Property Parameters and Data Aspen Plus 11.1 User Guide
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
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
Aspen Plus 11.1 User Guide Physical Property Parameters and Data • 8-5
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
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.
8-6 • Physical Property Parameters and Data Aspen Plus 11.1 User Guide
Henry’s law constants are available for a large number of solutes in
Retrieving Henry’s
solvents. The solvents are water and many organic components.
Law Constants
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
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 11.1 User Guide Physical Property Parameters and Data • 8-7
• Electrolyte pair parameters
• Ternary parameters
Forms for Entering The table below shows where to enter the different types of
Property Parameters property parameters:
Use the Input sheet To enter
of this Properties
Parameters form
Pure Component Scalar pure component parameters, such as critical
Scalar temperature (TC) or molecular weight (MW)
Pure Component Temperature-dependent pure component property
T-Dependent correlation parameters, such as PLXANT for the
extended Antoine vapor pressure model
Pure Component Unary parameters for nonconventional
Nonconventional components
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 Scalar group-group interaction parameters for the
Binary 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,
8-8 • Physical Property Parameters and Data Aspen Plus 11.1 User Guide
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:
• 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.
Aspen Plus 11.1 User Guide Physical Property Parameters and Data • 8-9
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.
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 11.1 User Guide
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 component from the Component
list. For the chosen temperature dependent parameter, use this
sheet to enter values for all components for which you have
parameters.
10 Specify the appropriate units and enter the coefficients of each
parameter as sequential elements. For a more detailed
description of models and parameters, see chapter 3 of Physical
Property Methods and Models.
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
Aspen Plus 11.1 User Guide Physical Property Parameters and Data • 8-11
6 In the New Pure Component Parameters dialog box, select
Nonconventional.
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 this 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.
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.
8-12 • Physical Property Parameters and Data Aspen Plus 11.1 User Guide
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 11.1 User Guide Physical Property Parameters and Data • 8-13
Example for Entering NRTL Binary Parameters
The NRTL binary parameters aij and bij are asymmetric, that is, aij
≠ aji and bij ≠ bji. The binary parameter cij and dij are symmetric;
eij and fij default to zero. Enter the following NRTL binary
parameters for the components C1-C2. The units for the binary
parameters are in Kelvins.
a12 = 0
a21 = 0
b12 = -74.18
b21 = 270.8
c12 = 0.2982
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.
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.
8-14 • Physical Property Parameters and Data Aspen Plus 11.1 User Guide
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 11.1 User Guide Physical Property Parameters and Data • 8-15
You can request the estimation of missing binary parameters for
Estimating Binary
the Wilson, NRTL, and UNIQUAC models, using the Properties
Parameters for
Activity Coefficient Parameters Binary Interaction form. For convenience, Aspen Plus
provides this capability in addition to the Property Constant
Models
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 11.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 11.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.
8-18 • Physical Property Parameters and Data Aspen Plus 11.1 User Guide
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
Aspen Plus 11.1 User Guide Physical Property Parameters and Data • 8-19
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
Liquid enthalpy Normal
Liquid enthalpy departure Normal
Liquid entropy Normal
Liquid entropy departure Normal
Liquid fugacity coefficient for a component in a mixture Logarithmic
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
8-20 • Physical Property Parameters and Data Aspen Plus 11.1 User Guide
Property Model Form
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 a mixture Logarithmic
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
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.
Aspen Plus 11.1 User Guide Physical Property Parameters and Data • 8-21
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 You can use the Data Generation Options on the
capacity data Specifications sheet to generate entropy and
Gibbs free energy.
Vapor enthalpy data Also enter ideal gas enthalpy data to ensure
consistency.
Enthalpy, entropy, and Make sure they are consistent (G = H – TS).
Gibbs free energy
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.
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.
8-22 • Physical Property Parameters and Data Aspen Plus 11.1 User Guide
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
Aspen Plus 11.1 User Guide Physical Property Parameters and Data • 8-23
Entering Polynomial To enter polynomial coefficients for a general polynomial model:
Coefficients for the 1 From the Data menu, click Properties.
General Polynomial 2 In the left pane of the Data Browser, double-click the
Model 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
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 a5 a6 a7
= a1 + a2T + a3T + a4T + + 2 + + a8 ln T
2 3
or
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.
8-24 • Physical Property Parameters and Data Aspen Plus 11.1 User Guide
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.
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.
Aspen Plus 11.1 User Guide Physical Property Parameters and Data • 8-25
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
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 11.1 User Guide
Using Property Data Packages
This topic describes the Property Data Packages available in
Aspen Plus.
You can use these data packages to model many important
industrial processes. Theses data packages have been developed
using publicly available literature data. They will be updated as
new data becomes available. For your particular process, you may
need to add or remove components and provide additional
interaction parameters.
• Ammonia-water
• Ethylene
• Flue gas treatment
• Formaldehyde-methanol-water
• Glycol dehydration of natural gas
• Mineral solubilities in water using the Pitzer model
• Gas treating processes using amines: MDEA, DEA, DGA,
AMP and MEA
• Methyl-amine
Using a Data Package To use a data package:
1 From the File menu, click Import.
2 In the Import dialog box, click the Look In Favorites button.
3 From the list of favorite folders, select Data Packages.
4 Select the data package that you want and click Open.
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
Aspen Plus 11.1 User Guide Physical Property Parameters and Data • 8-27
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.
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.
8-28 • Physical Property Parameters and Data Aspen Plus 11.1 User Guide
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-ACID CO2/H2S absorption KEMDEA
MEA-CO2 CO2 absorption KEMEA
MEA-ACID CO2/H2S absorption KEMEA
DEA-CO2 CO2 absorption KEDEA
DEA-ACID CO2/H2S absorption KEDEA
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.
Valid temperature range: 0 to 100 C
Mole fraction of Formaldehyde: 0 - 0.6
Pressure: 0 - 3 bar
Aspen Plus 11.1 User Guide Physical Property Parameters and Data • 8-29
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-
Mg2CaCl6*12H2O- Na2SO4*10H2O- MgSO4*6H2O-
MgSO4*7H2O- K2Mg(SO4)2*6H2O
Valid temperature range : -60 to 25 C
8-30 • Physical Property Parameters and Data Aspen Plus 11.1 User Guide
Use this data package to model methyl-amines process. This
Methyl-amine Data
system is highly non-ideal. The components included are:
Package
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
Aspen Plus 11.1 User Guide Physical Property Parameters and Data • 8-31
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
[Link] H2O - HCL (as Henry-comps)
[Link] H2O - HNO3
[Link] H2O - NAOH
[Link] H2O - H2SO4 - HBR
[Link] H2O - HBR
[Link] H2O - HI
[Link] H2O - H2SO4
[Link] H2O - HCL - MGCL2
[Link] H2O - NAOH - SO2
[Link] H2O - H2SO4 - HCL
[Link] H2O - NAOH - NACL - NA2SO4 -NA2SO4.10H2O -
[Link] - [Link]
[Link] H2O - KOH
[Link] H2O - NAOH - NACL - NA2SO4
[Link] H2O - HCL (as solvent)
[Link] H2O - HCL (as solvent, recommend for LLE)
[Link] H2O - DEA - H2S - CO2
[Link] H2O - DEA - K2CO3 - H2S - CO2
[Link] H2O - MEA - H2S - CO2
[Link] H2O - CL2 - HCL
[Link] H2O - NH3 - CO2
[Link] H2O - NH3 - SO2
[Link] H2O - NH3 - H2S - CO2 - NAOH
[Link] H2O - DGA - H2S - CO2
[Link] H2O - NH3 - H2S
[Link] H2O - AMP - H2S - CO2
[Link] H2O - K2CO3 - CO2
[Link] H2O - NH3 - HCN
[Link] H2O - CO2 - H2S - NACL
[Link] H2O - CO2 - H2S - NACL (extended Temperature range)
[Link] H2O - CL2 - CO2 - HCL - NAOH - NACL - NA2CO3
[Link] H2O - KOH (high concentration)
[Link] H2O - HF
[Link] H2O - K2CO3 - CO2 - KHCO3
[Link] H2O - MDEA - CO2 - H2S
[Link] H2O - NH3 - H3PO4 - H2S
[Link] H2O - NH3 - H2S - CO2
8-32 • Physical Property Parameters and Data Aspen Plus 11.1 User Guide
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
[Link] H2O - CO2 - H2S - NACL
[Link] H2O - NAOH - NACL - NA2SO4
[Link] H2O - NAOH - NACL - NA2SO4 -NA2SO4.10H2O -
[Link] - [Link]
[Link] H2O - DEA - H2S - CO2
[Link] H2O - DGA - H2S - CO2
[Link] H2O - HBR
[Link] H2O - HCL
[Link] H2O - HF
[Link] H2O - HI
[Link] H2O - K2CO3 - CO2
[Link] H2O - K2CO3 - CO2 - KHCO3
[Link] H2O - DEA - K2CO3 - H2S - CO2
[Link] H2O - CL2
[Link] H2O - MDEA - H2S - CO2
[Link] H2O - MEA - H2S - CO2
[Link] H2O - H2SO4
[Link] H2O - HBR
[Link] H2O - HCL
[Link] H2O - HCL
[Link] H2O - HCL - MGCL2
[Link] H2O - HF
[Link] H2O - HF (to 100% HF)
[Link] H2O - HNO3
[Link] H2O - NAOH
[Link] H2O - NAOH
[Link] H2O - H2SO4 - HBR
[Link] H2O - H2SO4 - HCL
[Link] H2O - NAOH - SO2
[Link] H2O - NH3 - CO2
[Link] H2O - NH3 - H2S
[Link] H2O - HCN
[Link] H2O - NH3 - H2S - H3PO4
[Link] H2O - NH3 - SO2
[Link] H2O - NH3 - H2S - CO2
[Link] H2O - NH3 - H2S - CO2 - NAOH
Aspen Plus 11.1 User Guide Physical Property Parameters and Data • 8-33
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
[Link] H2O - NH3 - CO2
[Link] H2O - NH3
[Link] H2O - NH3 - SO2
[Link] H2O - NH3 - H2S - CO2
8-34 • Physical Property Parameters and Data Aspen Plus 11.1 User Guide
CHAPTER 9
Specifying Streams
Overview
Streams connect unit operation blocks in a flowsheet and carry
material and energy flow from one block to another. Streams can
be:
• Feed streams to the flowsheet
• Internal (interconnecting) streams within the flowsheet
• Product streams from the flowsheet
• Pseudo-product streams representing flows internal to a block
Use the Stream forms to enter data for the feed streams and to give
initial estimates for any internal streams that are tear (recycle)
streams.
For help on specifying streams, see one of the following topics:
• Specifying material streams
• Analyzing stream properties interactively
• Specifying stream classes and substreams
• About particle size distributions
• Accessing stream libraries
• Specifying work streams
• Specifying heat streams
• Using pseudoproduct 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.
Example for Specifying a A process feed stream contains 5 lbmol/hr of C1, 5 lbmol/hr of C2,
Stream with Two Liquid and 10 lbmol/hr of H2O. Two partially miscible liquid phases are
Phases anticipated. The vapor-liquid-liquid equilibrium is treated
rigorously. Aspen Plus performs a three-phase flash to determine
phase condition.
Overview
The unit operation models are used to represent actual pieces of
equipment, such as distillation columns or heat exchangers,
commonly found in processing plants. To run a flowsheet
simulation you must specify at least one unit operation model.
You choose unit operation models for flowsheet blocks when you
define your simulation flowsheet.
Aspen Plus has a wide range of unit operation models to choose
from. See one of the following topics for more information:
• Select the right unit operation model
• Enter model specifications
• Override global specifications at the block level
• Request heating/cooling curve calculations
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
This table shows you what to set the molar vapor fraction as:
To Determine Set the Molar Vapor Fraction
The dew point of a mixture 1
The bubble point of a mixture 0
The combination of heat duty and molar vapor fraction is not
allowed in the flash models.
Flash2 Flash2 performs rigorous 2 (vapor-liquid) or 3
(vapor-liquid-liquid) phase equilibrium calculations. Flash2
produces one vapor outlet stream, one liquid outlet stream, and an
optional water decant stream.
You can use Flash2 to model flashes, evaporators, knock-out
drums, and any other single-stage separators, with sufficient vapor
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.
HeatX HeatX can perform shortcut or detailed rating calculations for most
types of two-stream heat exchangers. The main difference between
the two calculation methods is the procedure for the calculation of
the overall heat transfer coefficient.
The shortcut method always uses a user specified (or default) value
for the overall heat transfer coefficient.
The detailed method uses rigorous heat transfer correlations for
film coefficients and combines the resistances due to shell and tube
side films with the wall resistance to calculate the overall heat
transfer coefficient. You need to know the geometry to use the
detailed method.
You must specify the hot and cold inlet streams and one of these
performance specifications for your heat exchanger:
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
force for the convective heat transfer is calculated as a function of
log-mean temperature difference or LMTD.
You can specify variables among the inlet and outlet stream
temperatures, duty, heat transfer coefficient, and heat transfer area.
HxFlux calculates the unknown variable and determines the log
mean temperature differences, using either the rigorous or the
approximate method.
Hetran Hetran is the interface to the Aspen Hetran program for designing
and simulating shell and tube heat exchangers. Use Hetran to
simulate shell and tube heat exchangers with a wide variety of
configurations.
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
and heavy key components, DSTWU estimates the minimum for
either:
• Reflux ratio
• Number of theoretical stages
DSTWU estimates one of the following requirements:
• Reflux ratio given the number of theoretical stages
• Number of theoretical stages given the reflux ratio
The reactions occur only in the reboiler. The reaction rate and
stoichiometry are referenced from a Reaction ID defined in the
Reactions folder.
The first sidestripper has 2 equilibrium stages and strips light ends
from the 7,200 BPD of Kerosene product stream which is drawn
from stage of the main column. The stripped vapors are returned to
main column on stage 8. The reboiler duty is 1.2 MMkcal/hr.
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
DAIS Trader When you place a CAPE-OPEN unit operation on the Process
Requirements of CAPE- Flowsheet in Aspen Plus, you may notice a sequence of messages
OPEN Models on the status bar. Aspen Plus shows these messages because
CAPE-OPEN unit operations work differently than other Aspen
Plus unit operations. These models require the DAIS Trader, a
program which provides CORBA services.
To create an instance of a CAPE-OPEN unit operation, Aspen Plus
starts the Simulation Engine, if necessary, and sends it an input
file. The input file contains the class id of the unit operation being
created. The Simulation Engine processes the file and creates an
instance of the class identified by the class id. Once the unit has
been created, the Simulation Engine makes it available to clients
by telling the DAIS Trader that it exists. When the engine has
created the unit operation, the Aspen Plus User Interface connects
to the trader and establishes a connection with the unit operation.
This connection is used to query the unit for its list of ports, its list
Using Aspen Modeler You can use an exported Aspen Modeler flowsheet in Aspen Plus
Flowsheets Without the without having the Aspen Modeler product installed by copying to
Aspen Modeler Product your machine:
• The flowsheet DLL
• The Aspen Plus User Model Library generated by Aspen
Custom Modeler™
• Any other DLLs on which the flowsheet DLL is dependent
Put the extra DLLs in a directory which is always searched when
the exported DLL is loaded into Aspen Plus. Any directory on the
path will be searched, as will the Engine\xeq directory of the
Aspen Plus installation.
Necessary DLLs
Hierarchy
Use Hierarchy blocks to provide hierarchical structure to complex
simulations. Also, Hierarchy blocks may be added automatically
when importing templates into a simulation. Hierarchy blocks may
contain streams and other blocks (even other Hierarchy blocks), as
well other features like design specifications and sensitivity
problems.
Overview
For help on running your simulation, see one of the following
topics:
• Running the simulation interactively
• Reinitializing simulation calculations
• Viewing the run status of the simulation
• Checking simulation history
• Running the simulation on the Aspen Plus host computer
• Running a simulation in batch (background) mode
• Running Aspen Plus in standalone (text only) mode
• Specifying run settings and user databanks
• Activating and Deactivating blocks
When your problem specifications are complete, you are ready to
run the simulation. The status of your specifications is shown at all
times in the status bar of the main window and the Data Browser.
You can run your simulation if the status is any of these:
• Input Complete
• Input Changed
• Ready to Execute Block
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 calculations
Click the Start button on the toolbar.
Pause simulation calculations
Click the Stop button on the toolbar.
Step through the flowsheet one
Click the SM Step button on the toolbar. You can use the SM Step
block at a time
button to step through an SM simulation to the point where you wish to
change to EO 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.
Set stop points in the simulation From the Run menu, click Stop Points.
Change the next block to be From the Run menu, click Move To.
executed
Update results From the Run menu, click Load Results to load all results from the
simulation engine if Interactive Load Results is:
Off and you stopped the simulation
On and you want to load all results at one time
For more information, see Changing Run Settings and User Databanks.
Check simulation results
Click the Check Results button on the toolbar.
Display block or stream results 1. On the flowsheet, click the block or stream.
2. Then click with the right mouse button on the block or stream.
3. From the popup menu that appears, click Results.
Animate Flowsheet Use the Animate flowsheet option to turn flowsheet animation on
or off. When it is off, the block icons are not highlighted in the
graphical flowsheet as they are executed. Turning animation off
can sometimes result in a slight increase in simulation speed.
Allow Run Only When This option is designed primarily for advanced users who are
Input is Complete familiar with keyword input language. Turning off the Allow Run
only when input is complete option allows you to initiate an
interactive or batch run even if the status in the main window
toolbar is not Required Input Complete.
Edit Keyword Input This option is designed primarily for advanced users who are
Data Before Starting familiar with Aspen Plus keyword input language. The Edit input
Calculations before beginning simulation option displays the generated
Aspen Plus input language in your text editor before starting
interactive calculations. This gives you a chance to make small
modifications or additions to the file, or to diagnose problems.
These modifications will not be reflected on the input forms.
Copy Data When the option is on, parameters regressed during a Data
Regression and Regression run or estimated by a Property Constant Estimation run
Property Constant are automatically retrieved and displayed on the Parameters forms.
Estimation Results The parameters will be used in all subsequent runs. When the
onto Property option is off, the parameters are available on the List, but are not
Parameter Forms displayed on the forms. The parameters will not be used in
subsequent runs.
Selector Blocks
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.
Access the Convergence EO Conv Options sheet. On this sheet you can
Solver Settings button
select the EO solver to use and set various convergence options.
In addition to the EO Toolbar, the EO Control Panel offers several
options to interactively control your EO simulation.
During long runs, it is possible to change the behavior of the DMO
solver. In the Control Panel, the Interrupt DMO Solver frame
contains a set of buttons:
Click this button To
Close Residuals Fix all of the independent variables at their
current values and close the residuals.
No Creep Take DMO out of creep mode.
Abort Stop the DMO solver.
The EO control panel also allows you to select two script-
executing options:
Presolve Script, which executes the specified presolve script
commands before solving the problem.
Postsolve Script, which executes the specified postsolve script
commands after the problem is solved.
The Command Line text box allows you to enter script commands
to be executed.
Overview
For help on examining results and generating reports, see one of
the following topics:
• Viewing simulation results interactively
• Checking the completion status of a run
• Checking the convergence status of a run
• Displaying stream results
• Generating an Aspen Plus report file
Aspen Plus 11.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 11.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 11.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 11.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 11.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 1. Click the block.
outlet streams of 2. Click with the right mouse button on the block.
a 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.
12-6 • Examining Results and Generating Reports Aspen Plus 11.1 User Guide
Displaying Stream This table shows which sheets display which results:
Results from Sheets
Select this Results Summary To display
Stream sheet
Material Results for all or selected material streams in a spreadsheet format
If you designate any batch streams, Aspen Plus displays the batch stream
results (such as cycles/day, cycle time, down time).
You can format the stream results, transfer the stream results to the
Process Flowsheet as a table, or print the results. For more information,
see Adding Stream Tables.
For more information about stream summary formats, see Formatting
Stream Results.
Heat Heat flow results for all or selected heat streams in a spreadsheet format
Aspen Plus uses heat streams to transfer duties to or from unit operation
blocks.
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.
Aspen Plus 11.1 User Guide Examining Results and Generating Reports • 12-7
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.
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 11.1 User Guide
• You changed settings on the Report Options forms since
running simulation.
• You opened a run saved in backup format, and have not run the
simulation in the current session.
To make an interactive Run:
• On the Simulation Run toolbar, click the Run button .
– or –
• From the Run menu, click Run.
To generate a report:
• From the View menu, click Report.
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.
Aspen Plus 11.1 User Guide Examining Results and Generating Reports • 12-9
To view the entire report or a selected portion of a report in a text
Viewing a Section of
editor:
the Report
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 Contents Table of contents for the report
Flowsheet Balance Material and energy balance for the flowsheet
Connecting Streams The connecting streams (feeds and products) for a selected block
Measurement A detailed report of all measurements and their SM and EO connections.
Measurement Report A summary of the EO measurements, including the 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.
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 11.1 User Guide
C H A P T E R 13
Overview
For help on generating, customizing, and printing plots from any
input or results sheet that has tabular data, see one of the following
topics:
• Generating plots
• Working with plots
• Printing plots
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.
Note: The Plot menu is only visible when you have the Data
Browser in the current window.
Overview
For help on annotating Process Flowsheets, see one of the
following topics:
• Adding annotations
• Displaying global data
• Using PFD mode
• Printing
Adding Stream You can add stream tables to your flowsheets to display stream
Tables properties in a birdcage format.
To generate a stream table in your flowsheet:
1 Ensure that the flowsheet has results available. If results are not
available, run the simulation.
2 From the View menu, ensure Annotation is selected.
3 Display the Results Summary Streams sheet. To do this, in the
left pane of the Data Browser, click Results Summary, then
Streams.
Results for all of the streams are displayed. If you only want
selected streams to be displayed:
• In the Display box, select Streams instead of All Streams.
• Then select the desired stream from the list at the top cell of
each column.
4 In the Format box, select the format you want. The format
controls how Aspen Plus displays results. Options include
order, labels, units, and precision.
The different formats are created using Stream Summary
Format Files (*.tff files). All of the files with this extension in
Grouping Objects
You can create temporary or permanent groups of text and
graphics objects in your flowsheet.
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
You can use Page Break Preview on the View menu to see where
the page breaks are located on the drawing.
Aspen Plus scales drawings proportionally to fill the page in the
limiting direction (horizontal or vertical), within built-in margins.
It does not distort the drawing to fill the page in both directions.
Specify your settings for printing the flowsheet window on the
Page Setup dialog box:
• From the File menu, click Page Setup.
Viewing Page Breaks You can view the page breaks in order to visualize the layout and
adjust what is going to be printed. You should avoid printing
drawings with icons or IDs spanning page boundaries.
Adjust the position of the drawing on the page by:
• Repositioning the flowsheet objects on the individual pages
• Moving and resizing the page layout frame
You can change the page layout at any time by changing the
settings on Page Setup. Aspen Plus will redraw the page breaks.
4 You can also move elements of the flowsheet such as the unit
operation icons, tables, and annotation to a desired location. In
this way, you can determine what is present in the print area.
Tip: It is often helpful to select Zoom Full from the View menu in
order to view the entire Flowsheet before adjusting the page
breaks.
5 You can also move elements of the flowsheet such as the unit
operation icons, tables, and annotation and arrange them to fit
on a desired page.
Overview
For help on managing files, see one of the following topics:
• File formats used during Aspen Plus runs
• Saving Aspen Plus document files
• Exporting Aspen Plus files
• Importing Aspen Plus files
• Saving an Aspen Plus run
• Managing files in a client-server environment
• Converting Pro/II input keyword files
The default options for this dialog box are specified on the
Upward Compatibility tab of the Tools | Options dialog box. On
this tab, you can also tell Aspen Plus not to display the Upward
Compatibility dialog box. If you do so, then the defaults specified
on the Tools | Options | Upward Compatibility tab are
automatically applied when you open a backup file not made by
the current version of the Aspen Plus user interface.
Saving a Backup File To save an Aspen Plus backup file after a completed run:
1 From the File menu, click Save As.
2 In the Save As dialog box, select Aspen Plus Backup File
(*.bkp) from the Save as Type list.
Tip: The format for a template file is the same as for a backup file.
It is possible to create a template from a backup file, by changing
the extension from .bkp to .apt.
Types of Files You You can open the following types of Aspen Plus Files:
Can Open Type of File Extension Description
Document *.apw Quick restart file containing simulation input
and results and intermediate convergence
information
Backup *.bkp Archive containing simulation input and results
Template *.apt ASCII file used as template
Summary *.sum Simulation results
Input *.inp Simulation input information without graphics
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.
4 Click Save.
Tip: If the history file is large, copying the history file to your
local computer can take a long time. In such a case, you should log
onto the host computer and view the file.
Overview
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 11.1 User Guide Customizing Your Aspen Plus Environment • 16-1
Choosing Settings for the Current
Run
To change your configuration option settings for the current run:
From the You can select
View menu Any command
Tools menu Options
Window menu Any command
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.
16-2 • Customizing Your Aspen Plus Environment Aspen Plus 11.1 User Guide
You can change which elements are visible by using the options on
Choosing View
the View menu. Display or hide elements, depending upon what
Options
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 Only Select if only the current flowsheet section is displayed. For more
information on 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.
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.
Aspen Plus 11.1 User Guide Customizing Your Aspen Plus Environment • 16-3
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 (PFS) Buttons used to manipulate the unit operation, graphical or text objects
located in the 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.
The toolbars that are checked are those that appear by default.
See Using Toolbars for more information on using the toolbars.
16-4 • Customizing Your Aspen Plus Environment Aspen Plus 11.1 User Guide
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
Aspen Plus 11.1 User Guide Customizing Your Aspen Plus Environment • 16-5
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 as Startup
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
Specify an online problem id Online
Specify default options for opening files from older Upward
versions of Aspen Plus Compatibility
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.
16-6 • Customizing Your Aspen Plus Environment Aspen Plus 11.1 User Guide
The following parameters are available on the Tools Options
General tab:
Use this To Saved with
box Simulation?
Allow run Allow a run only when input is complete Yes
only when Turning off this option allows you to initiate an interactive or batch run even if
input is the status in the toolbar is not Required Input Complete.
complete
This option is primarily for advanced users who are familiar with keyword
input language.
Check inline Check inline Fortran for syntax errors Yes
Fortran for When this option is checked, basic Fortran syntax error checking is done on all
syntax errors the Fortran and Declarations sheets. This option sometimes needs to be turned
off when advanced Fortran is used.
Accounting Allow a run only when accounting information has been completed. No
information When this option is checked, you are required to specify accounting
required to information on the Setup Specifications Accounting sheet. The accounting
complete information includes an account number, a project ID, a project name, and a
input 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 file (*.bkp) is
backup copy created whenever an Aspen Plus document file (*.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 quickly restart
documents previously saved simulation, using a binary file. Saving as backup files (*.bkp)
as stores the same run information in a condensed ASCII file.
Copy buffer Specify what information is included when a cell is copied into the copy Yes
format buffer.
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 which Aspen Plus is No
Conversion capable of mapping from the Pro/II input file to Aspen Plus block variables. If
Option 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 Stamp Specify what information is included on a time stamp and whether the time Yes
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.
Aspen Plus 11.1 User Guide Customizing Your Aspen Plus Environment • 16-7
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.
16-8 • Customizing Your Aspen Plus Environment Aspen Plus 11.1 User Guide
To move a databank to the Searched list:
Choosing Which
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 a databank from the Searched list:
1 Click the databank you wish to move.
2 Click the left arrow to move the databank to the Not Searched
list.
To move all of the databanks at once from one list to the other:
1 Click the appropriate double arrow.
Aspen Plus 11.1 User Guide Customizing Your Aspen Plus Environment • 16-9
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.
16-10 • Customizing Your Aspen Plus Environment Aspen Plus 11.1 User Guide
The Tools Options Results View tab includes options for
Using the Results
displaying global results information on the process flowsheet. The
View Tab
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 (if available) Yes
variables 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 available) on the Yes
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) on the Yes
flowsheet, when the view global data menu option is enabled.
Use the Format box to specify the variable format.
Vapor fraction Specify the display of stream vapor fraction results (if available), when Yes
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 available for Yes
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 available), when Yes
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 available), when Yes
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 available), Yes
rate when the view global data menu option is enabled.
Use the Format box to specify the variable format.
Aspen Plus 11.1 User Guide Customizing Your Aspen Plus Environment • 16-11
Format for Numbers You can control the format of global data on the process flowsheet
window. There are three conversion formats:
• %-[Link]
• %-[Link]
• %-[Link]
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 [-][Link][+]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 [-][Link]. 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.
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.
%[Link] 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.
16-12 • Customizing Your Aspen Plus Environment Aspen Plus 11.1 User Guide
Use the Tools Options Flowsheet tab to set various naming,
Using the Flowsheet
display, and placement options on the Process Flowsheet.
Tab
The following parameters are available on this tab:
Use this box To Saved with
simulation?
Automatically Have blocks automatically assigned a name beginning with the specified Yes
Assign Block character string. For example, if B is entered, the blocks will be named B1,
Name with B2, B3, etc.
Prefix When this option is off, Aspen Plus will prompt you to enter an ID each time
a block is created.
Display Block Have future block names displayed with the icon on the Process Flowsheet. Yes
Name To see how to hide or display the ID for an existing block see Hiding a Block
or Stream ID..
Automatically Have streams automatically assigned a name beginning with the specified Yes
Assign Stream character string. When this option is off, then Aspen Plus will prompt you to
Name with enter an ID each time a stream is created.
Prefix
Display Have future stream names displayed on the streams in the Process Flowsheet. Yes
Stream Name To see how to hide or display the ID for an existing stream see Hiding a
Block or Stream ID.
Automatically Automatically place blocks when importing a flowsheet Yes
Place Blocks Use this option to specify whether or not Aspen Plus automatically places
When any new blocks when you import an Aspen Plus backup file that does not
Importing 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.
Lock Block Lock the block spacing factor at a specified value. A spacing factor of 2.5 is No
Spacing Factor generally appropriate for flowsheets drawn with the block icons. For
at flowsheets drawn with pictorial icons, a factor of 1.5 is often better.
Label Size Control the size of block and stream IDs for printing. Yes
Scale Factor 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 Specify whether to display connection streams on the flowsheet. No
connection
streams
Display Specify whether to display measurements on the flowsheet. No
measurements 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.
Aspen Plus 11.1 User Guide Customizing Your Aspen Plus Environment • 16-13
Use the Tools Options Grid/Scale tab to set and display the grid
Using the Grid/Scale
and scale on the process flowsheet window.
Tab
The following parameters are available on the Grid/Scale tab:
Use this To Saved with
box simulation?
Show Scale Display a scale at the top and left of the process flowsheet window Yes
Show Grid Display the grid in the process flowsheet window. The grid lines can help Yes
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 they are No
Grid 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
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 box To Saved with
simulation
Default Fonts Change the default font for the Title, Axis label, Axis scale, No
Annotation, and Legend
Grid Style Define the type of grid for the plot. Mesh, Horizontal, Vertical, or No
No grid can be selected.
Line Style Select the line style for the data curves. Lines & markers, Lines, or No
Markers can be selected.
Marker Size Select the size for the markers. Values from 1-20 can be selected. No
Show Legend Show a legend No
Show Time Stamp Show a time stamp No
16-14 • Customizing Your Aspen Plus Environment Aspen Plus 11.1 User Guide
Use the Tools Options Run tab to select run options for interactive
Using the Run Tab
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 the Yes
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 editor
Starting before starting interactive calculations. This gives you a chance to make
Calculations 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 remote No
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
Aspen Plus 11.1 User Guide Customizing Your Aspen Plus Environment • 16-15
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,
16-16 • Customizing Your Aspen Plus Environment Aspen Plus 11.1 User Guide
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.
Using the Online Tab Use the Online tab to specify an online problem ID.
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.
Tip: You can also select any visible part of a window behind the
current window by clicking it.
Aspen Plus 11.1 User Guide Customizing Your Aspen Plus Environment • 16-17
Customizing Application Template
Files
An Application Template file contains simulation defaults
commonly used by specific industries or companies. You can
select an Application Template when you create a new run. You
can use and modify a built-in file, or you can create your own
Application Template files.
Use the built-in Application Templates as a guide when creating
your own customized Application Template files.
There is no limit to the amount of information that can be included
in a template: setup information, components, unit sets, property
specifications, and even unit operation models can all be saved in a
template if desired. Too much information may be inconvenient;
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.
16-18 • Customizing Your Aspen Plus Environment Aspen Plus 11.1 User Guide
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.
Aspen Plus 11.1 User Guide Customizing Your Aspen Plus Environment • 16-19
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.
16-20 • Customizing Your Aspen Plus Environment Aspen Plus 11.1 User Guide
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 11.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 11.1 User Guide
8 Type a name for the new model. In some cases additional
options related to icons and user models may be available.
Aspen Plus 11.1 User Guide Customizing Your Aspen Plus Environment • 16-23
10 The new model should appear in its own category in the Model
Library.
16-24 • Customizing Your Aspen Plus Environment Aspen Plus 11.1 User Guide
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.
Changing Icons for You can add custom icons to the models in user model libraries.
Models in User To add, change, and delete icons for a model in a user library:
Libraries
1 Open the user library for editing.
2 Select the model in the Model Library Editor.
3 From the Model menu, select New Icon to open the Icon
Editor to create a new icon for this model.
Aspen Plus 11.1 User Guide Customizing Your Aspen Plus Environment • 16-25
4 If more than one icon exists for the model, click the arrow to
the left of the model’s current icon on the Model Library Editor
to change the currently-selected icon.
5 From the Model menu, select Edit Current Icon to open the
Icon Editor to change the currently-selected icon.
6 From the Model menu, select Delete Current Icon to delete
the currently-selected icon. If the model has only one icon, that
icon cannot be deleted.
Using the Icon Editor In the Icon Editor, use the drawing toolbar to add text, lines,
rectangles, arbitrary polygons, circles, and arcs to the icon by
clicking on the appropriate drawing tool and clicking in the
drawing area to specify the location and size of the drawing
objects. The list on the left side of the Icon Editor includes all the
defined ports for the block. Click one of these and click on the
drawing area to associate the port with a specific location on the
icon.
You can also select objects already present in the drawing area and
drag them around, or resize them using their resize handles, or
delete them by pressing the Delete key.
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.
16-26 • Customizing Your Aspen Plus Environment Aspen Plus 11.1 User Guide
C H A P T E R 17
Convergence
Overview
This chapter contains information about sequential-modular
convergence and equation-oriented 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 Options
Use the Convergence ConvOptions sheets to specify the following
for convergence blocks:
• Tear Convergence tolerance
• Convergence methods for tear streams, design specifications,
and optimization problems used in convergence blocks
generated by Aspen Plus
• Parameters that affect sequencing
• Convergence parameters for each method. The specified
parameters are used as defaults for convergence blocks you
define and convergence blocks generated by Aspen Plus.
Specifying Tear A tear stream is converged when the following is true for all tear
Convergence convergence variables:
Parameters
X calculated − X assumed
− tol ≤ ≤ tol
X assumed
For streams, the default convergence variables are total mole flow,
all component mole flows, pressure, and enthalpy. When the Trace
Option is Cutoff (specified on the Convergence Conv Options
Defaults Tear Convergence sheet), Aspen Plus bypasses this
convergence test for components that have a mole fraction less
than the Trace threshold. The default Trace threshold is
Tolerance/100. The alternative trace option, Trace-option =
Gradual, adds a 100*Trace threshold term to the denominator. This
setting gradually relaxes the convergence test for trace
components.
Specifying Tear To specify tear convergence parameters for convergence blocks:
Convergence Parameters
for Convergence Blocks
Field Default To
Tolerance 0.001 Specify Tear convergence tolerance
A tear stream is converged when the following is true for all stream
variables:
X calculated − X assumed
− tol ≤ ≤ tol
X assumed
Trace Tolerance/100 Specify the trace component threshold
Threshold Aspen Plus bypasses this convergence test for components that have a
mole fraction less than the Trace threshold.
Trace Option Cutoff Select the Convergence test option for trace components. Trace option =
Gradual adds 100*TraceThreshold term to the denominator. This setting
gradually relaxes the convergence test for trace components.
Component All components Identify the Component group ID for components to be converged in tear
Group streams
Component groups are defined on the Components Comp-Group form .
Use a component group when you know that some components have
zero or constant flow rates. A Component Group may cause convergence
problems if the unconverged components have significant flow.
Component group specifications are intended primarily for use with the
matrix convergence methods (Broyden, Newton, and SQP) to reduce the
matrix size and the number of numerical derivative perturbations.
State Pressure & Select the State variables to be converged
Enthalpy You can select a State option other than the default (Pressure and
enthalpy) when pressure is known to be constant or enthalpy is not
calculated (mass-balance-only simulations).
State specifications are intended primarily for use with the matrix
convergence methods (Broyden, Newton, and SQP) to reduce the matrix
size and the number of numerical derivative perturbations.
Restore Tears checked Restore tear to last guessed value when there is a convergence error.
on Error
Specifying User-Defined
Convergence Blocks
Use the Convergence sheets to specify convergence method,
tolerance, and convergence variables for user-defined convergence
blocks. System-generated convergence blocks generated by
Aspen Plus do not use these specifications.
To define a convergence block:
1 From the Data menu, point to Convergence, then Convergence.
2 In the Convergence Object Manager click New.
3 In the Create New ID dialog box, enter an ID or accept the
default name.
4 In the Create New ID dialog box, select the type of
convergence block you want to create.
Use this method To converge
BROYDEN or Tear streams; two or more design specifications; or tear streams and design
NEWTON specifications simultaneously. Use when the recycle loops and/or design
specifications are highly interrelated. Use Newton when Broyden is unable to
converge.
COMPLEX Optimization with inequality constraints
DIRECT Tear streams by simple direct substitution. Convergence may be slow, but sure.
SECANT Single design specifications. Recommended for design specification convergence
blocks.
SQP Sequential quadratic programming. Optimization with any combination of tear
streams, equality constraints, and inequality constraints.
WEGSTEIN Tear streams. You can apply Wegstein to any number of streams simultaneously.
Recommended tear stream convergence method.
For more information on the numerical methods, see
Convergence Methods.
5 Click the Tear Streams, Design Specifications, Calculator
Tears or Optimization tab to select the elements that you want
the convergence block to solve.
6 To specify optional parameters, click the Parameters sheet.
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.
Secant Method Secant is the secant linear approximation method, with higher
order enhancements. You can select a bracketing/interval halving
option. Select this option whenever the function is discontinuous,
non-monotonic, or flat over a region. Bracketing will eliminate the
flat region and switch back to Secant method if possible.
You can use Secant for converging single design specifications.
Secant is the default method for design specification convergence,
and is recommended for user-generated convergence blocks.
You can control the Secant method by specifying:
Field Default To specify
Maximum Flowsheet 30 Maximum number of flowsheet evaluations
Evaluations
Step Size 0.01 Initial step size, as a fraction of range, for the design specification
manipulated variable
Maximum Step Size 1 Maximum step size, as a fraction of range, for the design specification
manipulated variable
X Tolerance 1e-8 Alternative tolerance on the manipulated variable
Iteration stops when the change in the scaled manipulated variable is less
than X Tolerance.
X Final on Error Last Which value of manipulated variable to use as the final value when the
value convergence block encounters an error
Options are Last value, Initial value, Minimum value of function, Lower
bound, and Upper bound.
COMPLEX Method You can use the Complex method to converge optimization
problems with bounds on the manipulated variables and inequality
constraints. COMPLEX is a direct search method; it does not
require numerical derivatives. It may be useful for simple problems
without recycle loops or equality constraints (design
specifications).
SQP Method You can use the state-of-the-art sequential quadratic programming
(SQP) method for flowsheet optimization for simultaneous
convergence of optimization problems with constraints (equality or
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.
— 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
Err/Tol down to a Nested loops, Do one of the following:
threshold level, but and the • Set a tighter tolerance for the blocks and convergence
no further convergence
blocks in the inner loop, using the Tolerance field for these
tolerance of the
inner loops is blocks. Block tolerance can be changed globally on the
too loose Setup Simulation Options Flash Convergence sheet or
locally on the block’s Flash Options sheet. Convergence
block tolerances can be changed globally on the Conv
Options sheet for that method or locally on the
convergence block’s Parameter sheet.
• 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.
Broyden or Newton — Increase the value of Wait to 4 (on the Convergence ConvOptions
failing to converge sheet or Convergence block Parameters sheet).
Spec function For the Secant method, select Bracket=Yes on the Conv Options or
flat over some Convergence block Parameters sheet, to use interval-halving method.
range of the
manipulated
variable
Err/Tol down to a Nested loops, Do one of the following:
threshold level, but and the • Set a tighter tolerance for the blocks and convergence
no further convergence
blocks in the inner loop, using the Tolerance field for these
tolerance of the
inner loops is
blocks.
too loose • 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 Conv
variable bound Spec function 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.
Some other general strategies for Design Specification
convergence are:
• Formulate specifications to avoid discontinuities.
• Formulate specifications to reduce non-linearity with respect to
design variables. For example, set a specification on the log of
a concentration when it is near zero.
• Make sure the limits are reasonable. Try to avoid limits
spanning more than one order of magnitude.
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
100
80
60
Err/Tol
40
20 Initial
Temp
0
Temp Temperature Temp
Lower Upper
Bound Bound
Wegstein Description
Acceleration
Parameters
Lower bound The lower limit for the Wegstein
acceleration parameter (q).
Upper bound The upper limit for the Wegstein
acceleration parameter (q).
R1 Objective function
xmax ∈ R
n Vector of upper bounds on x
How you change the DMO solver parameters determines the effect
the change has in a specified run mode.
• Any change you make to a parameter setting in Default run
mode changes the default value of that parameter for all run
modes.
• Any change you make to a parameter setting for a specific run
mode is valid only for that run mode.
If you change any Default run mode parameter setting, a
checkmark appears to the left of "Default."
Use the Basic sheet of the EO Convergence DMO Basic Form to
change these parameters for the solver:
• Maximum number of allowed iterations
• Objective function convergence tolerance
• Residual convergence tolerance
To change basic DMO parameters:
1 From the menu bar, click Data | Convergence | EO Conv.
2 Select the DMO Basic form to display its input sheets.
3 On the DMO Basic sheet, select the run mode for which you
want to change the parameter settings.
– or –
Select Default to change the parameter settings for all run
modes.
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.
To specify the active set initialization parameters,
1 From the menu bar, click Data | Convergence | EO Conv.
2 Select the DMO Adv form to display its input sheets.
3 On the QP2 sheet, specify the parameters.
Active Set Initialization Description
Parameters
Save active set When set to Yes, writes to the <prob>.set file every time a QP
subproblem successfully converges in Optimization and
Reconciliation run mode. The file contains information on which
variables were active at bounds. When the "restore active set"
parameter is set to Yes, the information in the file can be used to
initialize the active set of another run.
Restore When set to Yes, the information in the <prob>.set file is used to
initialize the active set as an initial guess of the active set.
Using Micro- This option pertains to the situation where a problem may become
Infeasibility Handling infeasible due to very small errors in one or more constraints. This
often happens in optimization cases as a result of round-off or
machine precision errors, or loose convergence tolerance.
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
C2S = 0.69071
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.
To use this mode, change the algorithm line search parameter to
square. This parameter is on the Convergence | EO Conv Options
| DMO Basic DMO | Search sheet.
In general, it is not recommended to heavily bound an optimization
problem for reasons that are both practical and algorithmic.
Bounds on independent variables are recommended in order to
avoid unbounded problems. All other bounds should be used only
if they are absolutely necessary. Finally, redundant bounds should
be avoided.
Run-Time During long runs, it is possible to change the behavior of the DMO
Intervention solver. In the Control Panel, the Interrupt DMO Solver frame
contains a set of buttons:
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.
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
• Engineering units
For example:
Current Shadow Unit
Variable Value Price ST Label
============================== =========== ========== == =======
[Link].T_APPR_VARY_HOT_OUT 2.46022D+0 6.97669D+1 LB
[Link].STM2HC 3.13771D-1 5.02803D-5 UB
[Link] 6.9686D-22 1.03365D10 LB KMOL/SEC
[Link] 1.32479D-7 2.55533D+8 LB KMOL/SEC
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
========================== =========== ========== ==========
[Link].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
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([Link].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([Link].REFL_RATIO_MASS) from 0.11488 to 0.00000E+00
Sum of residuals, original: 2.8143E-02 after trunc corr: 2.8143E-02
Overview
This chapter contains information about:
• Accessing sequential-modular variables
• Equation-oriented variables
• Accessing equation-oriented variables
• EO aliases
• EO ports
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
• EO Variables dialog box
For example:
You can also use the Column short-cut menu to control the display
of the first three attributes to the right of the Index and Variable
name. Right-click on an attribute column header to display the
short-cut menu and click the desired column header to show or
hide it.
4 Click Select.
The selected variable automatically appears in the sheet.
Customizing the EO You can rearrange and resize the columns in the details view of the
Variables Display EO variables, using standard Windows techniques:
• To rearrange a column, drag the column header left or right to
change the position of the column in the table.
NAME = *.[Link].*
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.
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.
EO Ports
A port is any collection of variables associated with a block. They
are similar to, but not the same as, streams. A stream is a collection
of variables that represents the flow from one block to the next. All
streams are attached to a port on the block. Not all ports have
streams attached to them.
Ports are useful for defining connections of many variables. They
allow the connection definition to be made with a single command
that refers to the port.
There are five types of ports:
• Material stream (fraction basis) — a mole fraction stream
consisting of the variables for component mole fractions, total
molar flow, temperature, pressure, specific enthalpy and molar
volume. All of the models use the fraction basis for their
material streams.
• Material stream (flow basis) — a mole flow stream consisting
of the variables for component mole flows, total molar flow,
pressure and specific enthalpy
• Heat stream – an information stream consisting solely of the
heat variable
Attribute Description
Open Variable The name of the EO variable.
Clicking displays the EO Variable dialog box,
which you can use to select the open variable. You
can also copy and paste variables from any EO
Variables form.
Through When checked, the port includes the set of
consecutive variables starting from the variable in
this row and ending on the variable in the next row.
This checkbox is convenient for including blocks of
variables, such as components.
Initial value The initial value of the EO variable. This value is set
just before the command is made to solve the
problem.
Physical type The physical quantity that the variable represents.
These types correspond to the standard Aspen Plus
types.
Units Units of measure, based on physical type, which
correspond to the standard Aspen Plus units.
Internally, all values are stored in SI units.
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.
Overview
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 11.1 User Guide Calculator Blocks and In-Line Fortran • 19-1
sequence of unit operations each Calculator block is to be
executed. You can do this by specifying one of these:
• 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 11.1 User Guide
Aspen Plus module. Because dynamic linking is used, the
overhead for in-line Fortran requiring compilation is small.
Aspen Plus 11.1 User Guide Calculator Blocks and In-Line Fortran • 19-3
Note: Excel 97 is required to use this feature.
If you want to use Excel to simulate a unit operation block, use the
Excel interface of the User2 block instead of the Excel Calculator.
See Aspen Plus User Models, chapter 5.
19-4 • Calculator Blocks and In-Line Fortran Aspen Plus 11.1 User Guide
sheet, click the Open Excel Spreadsheet button. In Excel, select
the cell and click the Define button on the Aspen Plus toolbar.
2 Type the name of the variable in the Variable Name field.
A Fortran 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
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. In order to ensure proper operation of
the Calculator block in EO mode, each defined variable
must be connected to the EO variable corresponding to its
definition. 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
Aspen Plus 11.1 User Guide Calculator Blocks and In-Line Fortran • 19-5
block variables will be [Link], 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.
• 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.
19-6 • Calculator Blocks and In-Line Fortran Aspen Plus 11.1 User Guide
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.
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 11.1 User Guide Calculator Blocks and In-Line Fortran • 19-7
In the Execute field on the Sequence sheet, specify when to
execute the block.
Option When Executed
First At the beginning of a simulation
Before Before a block. Specify the block type and name.
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 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.
If you specify a variable as a Tear Variable on the Variable
Definition dialog box, that variable is also treated as an Export
Variable.
19-8 • Calculator Blocks and In-Line Fortran Aspen Plus 11.1 User Guide
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.
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.
Aspen Plus 11.1 User Guide Calculator Blocks and In-Line Fortran • 19-9
Using the specifications above, all five variables are defined as in
the example below:
19-10 • Calculator Blocks and In-Line Fortran Aspen Plus 11.1 User Guide
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 11.1 User Guide Calculator Blocks and In-Line Fortran • 19-11
Rules for In-Line Fortran Statements
To achieve successful compilation of your Fortran statements,
follow these rules:
• By default, variables beginning with A through H, or O
through Z, are double precision real. Variables beginning with
I through N are integer. Use double precision functions (for
example, DSQRT) and double precision constants (for
example, 1D0).
• Do not use variable names beginning with IZ or ZZ.
• Because Fortran is column-sensitive, this table shows how to
do certain things:
To do this Use
Indicate comments Column one for C and leave column two
blank
Enter statement labels Only columns three, four, and five
Begin executable statements Column seven or beyond
• You can call your own subroutines or functions. You can use
labeled or blank (unlabeled) COMMON blocks.
• Fortran variables you define on the Specification sheet cannot
be placed in a COMMON.
• Do not use IMPLICIT, SUBROUTINE, ENTRY, RETURN,
END statements, nor arithmetic statement functions.
Disabling Syntax By default, Aspen Plus interactively checks your Fortran
Checking statements. You can turn off interactive syntax checking. You
might need to do this, for example, if you are using a compiler that
accepts nonstandard Fortran extensions, or if the syntax checker
incorrectly flags correct Fortran as incomplete.
To turn off Fortran syntax checking:
1 From the Tools menu, click Options.
2 Ensure the Check Inline Fortran for Syntax Errors checkbox is
clear.
19-12 • Calculator Blocks and In-Line Fortran Aspen Plus 11.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 11.1 User Guide Calculator Blocks and In-Line Fortran • 19-13
In Excel Calculator blocks, use a VBA macro to create a dialog
box for interactive input.
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 11.1 User Guide
In Excel Calculator blocks, all data in the Workbook at the end of
one calculation pass is present when the block is next started,
except that the Import variables will be overwritten by new values
from Aspen Plus.
Aspen Plus 11.1 User Guide Calculator Blocks and In-Line Fortran • 19-15
• REAL or INTEGER statements
• DOUBLE PRECISION statements
• DIMENSION statements
• COMMON statements
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 11.1 User Guide
EO Usage Notes for Calculator
The Calculator block runs in EO mode only via the Perturbation
Layer. In addition, there are the following restrictions:
• Calculator blocks using the Excel interface are not supported in
EO.
• Vector variable specifications are not supported in EO.
• Execute-time specifications are ignored by the Perturbation
Layer, except that Calculator blocks specified to run during the
creation of the report file will do so.
• Calculator block flash specifications cannot be modified from
EO variables, but any flashes specified in the block will be
carried out when it is executed by the Perturbation Layer.
• 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.
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.
Connecting Calculator Variables in EO Mode
Aspen Plus 11.1 User Guide Calculator Blocks and In-Line Fortran • 19-17
19-18 • Calculator Blocks and In-Line Fortran Aspen Plus 11.1 User Guide
C H A P T E R 20
Sensitivity
Overview
This chapter contains information about:
• Sensitivity analysis
• Sequential-modular sensitivity
• Equation-oriented sensitivity
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.
Identifying Use the Vary sheet to identify the flowsheet variables to vary in
Manipulated generating a table. You can only vary block input variables,
Flowsheet Variables process feed stream variables, and other input variables. You must
specify values, or a range of values, for the varied variables.
You can manipulate integer variables, such as the feed location of
a distillation column. You can specify up to five manipulated
variables.
To identify manipulated variables and specify values:
1 On the Sensitivity Input form, click the Vary sheet.
2 In the Variable Type field, select a variable type.
Aspen Plus takes you to the remaining fields necessary to
uniquely identify the flowsheet variable.
3 Specify a list or range of values for the manipulated variable.
You can enter one of the following:
• List of values
• Lower limit, Upper limit, and number of equally spaced
points (# Points)
• Lower limit, Upper limit, and increment between points
(Incr)
You can enter either a constant or a Fortran expression.
4 You have the option of labeling the varied variables for the
report and the Results Summary sheet. Use the Line1 through
Line4 fields to define these labels.
5 To identify additional variables, select New from the list in the
Variable Number field. Repeat Steps 2 through 5.
Aspen Plus generates one row of the table for each combination of
varied variable values. The number of possible combinations can
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:
Design Specifications:
Feedback Control
Overview
This chapter provides information about:
• Sequential-modular design specifications
• Equation-oriented specification groups
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 11.1 User Guide Design Specifications: Feedback Control • 21-1
impurities in a recycle stream. Design specifications can be used to
simulate the steady state effect of a feedback controller.
When you use a design specification, you specify a desired value
for a flowsheet variable or some function of flowsheet variables.
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 11.1 User Guide
Defining a Design Specification
There are five steps involved in defining a design specification:
1 Creating the design specification
2 Identifying the sampled flowsheet variables used in the
specification.
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
Aspen Plus 11.1 User Guide Design Specifications: Feedback Control • 21-3
• 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.
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.
21-4 • Design Specifications: Feedback Control Aspen Plus 11.1 User Guide
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.
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
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)
Aspen Plus 11.1 User Guide Design Specifications: Feedback Control • 21-5
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.
• 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
21-6 • Design Specifications: Feedback Control Aspen Plus 11.1 User Guide
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 11.1 User Guide Design Specifications: Feedback Control • 21-7
21-8 • Design Specifications: Feedback Control Aspen Plus 11.1 User Guide
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.
Aspen Plus 11.1 User Guide Design Specifications: Feedback Control • 21-9
• 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.
• You do not have to specify convergence of the design
specification. Aspen Plus will automatically generate a
convergence block to converge the specification.
21-10 • Design Specifications: Feedback Control Aspen Plus 11.1 User Guide
Aspen Plus 11.1 User Guide Design Specifications: Feedback Control • 21-11
21-12 • Design Specifications: Feedback Control Aspen Plus 11.1 User Guide
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.
Aspen Plus 11.1 User Guide Design Specifications: Feedback Control • 21-13
21-14 • Design Specifications: Feedback Control Aspen Plus 11.1 User Guide
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.
Aspen Plus 11.1 User Guide Design Specifications: Feedback Control • 21-15
Examples
21-16 • Design Specifications: Feedback Control Aspen Plus 11.1 User Guide
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.
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.
Aspen Plus 11.1 User Guide Design Specifications: Feedback Control • 21-17
Examples
21-18 • Design Specifications: Feedback Control Aspen Plus 11.1 User Guide
C H A P T E R 22
EO Run Modes
Overview
EO works well when all variables are "near" the solution.
However, EO is not suited to solving a simulation without good
estimates for all variables. Thus, before you solve your flowsheet
in EO, you must initialize it in SM.
SM initialization does not require a completely converged SM
solution. The minimum requirement is that each block be solved
once. How tightly the SM flowsheet must be solved to ensure a
robust EO formulation is problem-dependent.
This section contains information about the following topics:
• The Four Equation-Oriented (EO) Run Modes
• EO Simulation Run Mode
• EO Parameter Estimation Run Mode
• EO Reconciliation Run Mode
• EO Optimization Run Mode
• Fixed, free, and degree-of-freedom variables
• Net specification
• EO variable specifications
• EO objective functions
• Selecting degree-of-freedom variables
• Other EO Variable Attributes
• Parameter Estimation Versus Reconciliation
• Measurements
• Configuring Specifications for Measurements
• Measurements that Pass Information to the Model
• Measurements that Report Information from the Model
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
EO Objective Functions
The objective function is an equation that is used in EO
reconciliation and optimization modes to determine how to
manipulate the degrees of freedom in a problem. You may have
more than one objective function in a problem, but only one is
used by the engine during the solution. Aspen Plus has three
different kinds of EO objective functions.
Use this type To create this type of objective function
Custom A user-defined objective function. For example,
variable1 * 0.5 {$/kg} – sqrt(variable2) * 0.1{$/kg}
Linear The sum of variable values times costs.
Sum-of-squares The sum of squared weighted variable deviations.
Selecting Degree-of-Freedom
Variables
You can define the variables that will be degrees of freedom
during Reconciliation and Optimization mode runs.
Set the Variable to To be Degree of Freedom in
Optimized Optimization mode
Reconciled Reconciliation mode
Independent Reconciliation and Optimization modes
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 [Link].tag_PLANT)
• Model (named [Link].tag_MODEL)
• Offset (named [Link].tag_OFFSET)
These variables are related by an equation: offset = plant – 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.
Cause 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
Optimization Overview
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
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.
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.
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.
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)
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.
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
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.
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.
l =1
m =1
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.
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
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.
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.
Transferring Information
Between Streams or Blocks
Overview
This chapter provides information about:
• Transfer blocks
• Equation-oriented connection equations
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 11.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 11.1 User Guide
Copying Streams To copy a stream:
1 On the Transfer form, click the From tab.
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 11.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 11.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 11.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 11.1 User Guide
EO Usage Notes for Transfer
Transfer blocks connecting stream variables or stream vectors are
converted to EO connection equations. Transfer blocks involving
block variables are ignored in the EO problem.
Also, flash specifications in Transfer blocks are ignored in EO.
Aspen Plus 11.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 11.1 User Guide
When you specify equation-oriented Connections, connection
Effects of Equation
Oriented Connections processing automatically adjusts the specifications of the variables
involved in order to preserve the net specification of a problem.
on Variable
Specifications
Aspen Plus 11.1 User Guide Transferring Information Between Streams or Blocks • 24-9
24-10 • Transferring Information Between Streams or Blocks Aspen Plus 11.1 User Guide
C H A P T E R 25
Balance Blocks
Overview
Balance blocks only apply to sequential-modular simulations.
There is no equation-oriented equivalent.
You can use a Balance block to calculate heat and material
balances around an envelope of one or more unit operation blocks.
The Balance block updates stream variables entering or leaving the
envelope with the calculated results. For example, the Balance
block can calculate:
• Flow rate of make-up streams in recycle calculations. (This
eliminates Calculator blocks.)
• Feed stream flow rate and conditions, based on other stream
and block information. (This eliminates design specifications
and convergence loops.)
For help on balance blocks, see one of the following topics:
• Defining a Balance block
• Specifying blocks and streams for balance calculations
• Specifying and updating stream variables
• Sequencing Balance blocks
• Flash specifications
• Material and energy balance equations
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 i i i j j H j + ∑ S k σ k Wk = RHS
i =1 j =1 k =1
Where:
Si = +1 for inlet streams, -1 for outlet streams
∑C ij Fij = RHS i
j =1
Case Study
Overview
Case Study only applies to sequential-modular simulations. There
is no equation-oriented equivalent.
This section includes information about:
• Using Case Study
• Creating a Case Study
• Identifying Case Study variables
• Specifying values for Case Study variables
• Specifying report options for Case Study
Overview
This chapter describes how to define reaction systems in
Aspen Plus including:
• About Reactions and Chemistry
• About Electrolytes Chemistry
• Specifying Electrolytes Chemistry
• Specifying Power Law Reactions for Reactors and Pressure
Relief Systems
• Reactions With Solids
• Specifying LHHW Reactions for Reactors and Pressure Relief
Systems
• Specifying Reactions for Reactive Distillation
• Using a User Kinetic Subroutine
Aspen Plus 11.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 11.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 11.1 User Guide Specifying Reactions and Chemistry • 27-3
To define, view, or modify electrolyte chemistry:
1 From the Data menu, point to Reactions then Chemistry.
2 To create a new Chemistry ID, click New on the Reactions
Chemistry Object Manager. Enter an ID in the Create new ID
dialog box or accept the default ID, and click OK.
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.
27-4 • Specifying Reactions and Chemistry Aspen Plus 11.1 User Guide
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.
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).
Aspen Plus 11.1 User Guide Specifying Reactions and Chemistry • 27-5
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.
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.
27-6 • Specifying Reactions and Chemistry Aspen Plus 11.1 User Guide
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
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 11.1 User Guide Specifying Reactions and Chemistry • 27-7
3 In the Create New ID dialog box, enter a reaction ID in the
Enter ID field, or accept the default ID.
4 Select Powerlaw in the Select Type list, and click OK.
Once the Reaction ID is created, Aspen Plus brings you to the
Stoichiometry sheet where you can begin defining reactions
within the Reaction ID. There are two types of reactions
allowed in a Powerlaw type Reaction ID.
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.
27-8 • Specifying Reactions and Chemistry Aspen Plus 11.1 User Guide
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:
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
m
x = 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.
Aspen Plus 11.1 User Guide Specifying Reactions and Chemistry • 27-9
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.
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.
27-10 • Specifying Reactions and Chemistry Aspen Plus 11.1 User Guide
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)
Mass fraction
( )
r = kT n e− E / RT ∏ xim
αi
( )
r = k (T / To ) n e( − E / R )[1 / T −1 / To ] ∏ xim
αi
r = kT n e − E / RT ∏ ( pi ) r = k (T / To ) n e( − E / R )[1 / T −1 / To ] ∏ ( pi )
Partial pressure αi αi
(vapor only)
Mass concentration
( )
r = kT n e − E / RT ∏ Cim
αi
( )
r = k (T / To ) n e( − E / R )[1 / T −1 / To ] ∏ Cim
αi
Where:
r = Rate of reaction
k = Pre-exponential factor
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)
m
C = 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 11.1 User Guide Specifying Reactions and Chemistry • 27-11
rate, and volume basis for concentrations. The information in this
section is designed to help you specify Reaction IDs that most
accurately reflect your reactions.
Stoichiometry and When specifying a reaction on the Edit Reaction dialog box:
Reaction Rate For Solids that Specify
Participate in reactions and Both stoichiometric coefficients and
control the reaction rate. exponents.
Participate in reactions without Only the stoichiometric coefficients
controlling the reaction rate. for these solids, without entering
exponents.
Act as catalysts by controlling Only the exponents for these solids,
reaction rates without without entering stoichiometric
participating in the reactions. coefficients.
Are inert. Neither stoichiometric coefficients nor
exponents.
Volume Basis for When specifying information for the calculation of an equilibrium
Concentrations constant for equilibrium reactions, or a reaction rate for kinetic
reactions, solid components can either be included or ignored in
the denominator term of concentrations. To control how these
calculations are performed, use the Solids button on Equilibrium
sheet or the Kinetic sheet of your Reaction ID.
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 11.1 User Guide
Specifying LHHW Reactions for
Reactors and Pressure Relief
Systems
To specify Langmuir-Hinshelwood-Hougen-Watson (LHHW)
kinetics for the reactor models RCSTR, RPlug, and RBatch, or for
the pressure relief calculations in Pres-Relief, you need to:
• Define the type and stoichiometry of the reactions
• Enter equilibrium or kinetic parameters
• Specify optional adsorption expressions
To specify LHHW reactions:
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 LHHW 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 two types of
reactions allowed in a LHHW type Reaction ID.
Type For
Equilibrium Equilibrium reactions
Kinetic Rate-controlled reactions
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
Aspen Plus 11.1 User Guide Specifying Reactions and Chemistry • 27-13
For rate-controlled reactions, the LHHW rate expression can be
Rate-Controlled
written as:
Reactions for LHHW
( kinetic factor)(driving force expression )
γ =
(adsorption expression)
Where:
Kinetic factor (if To is specified) = T
n
k e (− Ea / R )[1 / T −1 / To ]
To
Kinetic factor (if To is not specified) = kT n e − Ea / RT
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:
[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)
27-14 • Specifying Reactions and Chemistry Aspen Plus 11.1 User Guide
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
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.
Aspen Plus 11.1 User Guide Specifying Reactions and Chemistry • 27-15
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.
27-16 • Specifying Reactions and Chemistry Aspen Plus 11.1 User Guide
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.
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.
Aspen Plus 11.1 User Guide Specifying Reactions and Chemistry • 27-17
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 (default) K = ∏ ( xiγ i )υ i
(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
Where:
K = Equilibrium constant
x = Component mole fraction
m
x = Component mass fraction
C = Molarity (kgmole/m3)
m = Molality (gmole/kg-H2O)
γ = Activity coefficient
f = Component fugacity (N/m2)
p = Partial pressure (N/m2)
27-18 • Specifying Reactions and Chemistry Aspen Plus 11.1 User Guide
Cm = 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.
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
Aspen Plus 11.1 User Guide Specifying Reactions and Chemistry • 27-19
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)
Mass fraction
( )
r = kT n e− E / RT ∏ xim
αi
( )
r = k (T / To ) n e( − E / R )[1 / T −1 / To ] ∏ xim
αi
r = kT n e − E / RT ∏ ( pi ) r = k (T / To ) n e( − E / R )[1 / T −1 / To ] ∏ ( pi )
Partial pressure αi αi
(vapor only)
Mass concentration
( )
r = kT n e − E / RT ∏ Cim
αi
( )
r = k (T / To ) n e( − E / R )[1 / T −1 / To ] ∏ Cim
αi
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
27-20 • Specifying Reactions and Chemistry Aspen Plus 11.1 User Guide
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)
∑ ∑
kgmole i
kgmole i
m3 m3
Molality kgmole - K -n kgmole
sec − (holdup unit) sec − (holdup unit)
∑ ∑
gmole i
gmole i
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)
∑ ∑
N i
N i
2 2
m m
Mass kgmole - K -n kgmole
concentration
sec − (holdup unit) sec − (holdup unit)
∑ ∑
kg i
kg i
3 3
m m
Aspen Plus 11.1 User Guide Specifying Reactions and Chemistry • 27-21
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.
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.
27-22 • Specifying Reactions and Chemistry Aspen Plus 11.1 User Guide
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.
Aspen Plus 11.1 User Guide Specifying Reactions and Chemistry • 27-23
Using a User-Kinetics Subroutine
To use a user-supplied kinetics subroutine to calculate reaction
rates, you need to specify the Fortran subroutine name. Use the
Reactions User forms to specify user-defined kinetics for:
• Reactor models (RCSTR, RPlug, and RBatch)
• Distillation models (RadFrac and RateFrac)
• Pressure relief calculations in Pres-Relief
For RadFrac and RateFrac, you can also use the Reactions
Reac-Dist forms to specify user-defined kinetics (see Specifying
Reactions for Reactive Distillation). You can define equilibrium
reactions to be solved simultaneously with rate-controlled
reactions. Only RCSTR, RadFrac and RateFrac can handle
equilibrium reactions.
To specify a user Fortran subroutine for reaction rates:
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 User in the Select Type list, and click OK.
5 On the Reactions Stoichiometry sheet click New.
6 On the Edit Reaction dialog box, the default reaction type is
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.
7 Click Close when finished. You should see your new reaction
displayed on the Stoichiometry sheet.
8 Repeat steps 7 through 9 for each additional user kinetic
reaction.
9 Select the Kinetic sheet.
10 On the Kinetic sheet, select a reaction from the list and specify
in which phase the reaction will take place using the Reacting
Phase list. The default is the liquid phase.
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.
27-24 • Specifying Reactions and Chemistry Aspen Plus 11.1 User Guide
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.
Aspen Plus 11.1 User Guide Specifying Reactions and Chemistry • 27-25
27-26 • Specifying Reactions and Chemistry Aspen Plus 11.1 User Guide
C H A P T E R 28
Property Sets
Overview
For help on property sets, see one of the following topics:
• About Property Sets
• How to specify a new or existing property set
• How to specify user properties for use in property sets
Tip: Use the Search button to find the properties you want
included in the property set. For information on using the search
dialog box see Using the Search Dialog Box.
6 Select one or more units for the property, using the Units
fields.
If you select multiple units the property is reported in each of
the units selected.
7 On the Prop-Sets Qualifiers sheet, specify the following
qualifiers for the properties to be calculated:
• Phase (total mixture, total liquid, vapor, 1st or 2nd liquid,
and solid)
• Components
• 2nd liquid key components (key component to identify the
2nd liquid phase)
• Temperature
• Pressure
• Percent distilled(points on petroleum distillation curves)
• Water basis (wet or dry)
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.
The units for the temperatures entered will be the temperature units
of the ENG Units-Set, °F.
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.
Analyzing Properties
Overview
After you complete property specifications, you should analyze the
properties predicted by your model to ensure correct results. You
can do this using the Aspen Plus Property Analysis feature.
Property Analysis generates tables of physical property values,
which can be plotted to visualize and better understand the
behavior of properties as predicted by your property specifications.
You can access Property Analysis via the following methods:
• Many commonly used tables and plots can be generated
quickly and easily through an interactive method accessed from
the Tools menu.
• Alternatively, generating Property Analyses from the
Properties Analysis folder in the Data Browser Menu provides
the most flexibility.
You can also use Aspen Split™ (a separately-licensed product of
the Aspen Engineering Suite) to perform azeotrope searches and to
construct ternary maps.
This section discusses using the Property Analysis features.
Topics include:
• About Property Analysis
• Generating Property Analyses Interactively
• Generating Property Analyses Using Forms
• Property Method Specifications for Property Analysis
• Examining Analysis Results
• Using Aspen Split
– or –
Plotted Results:
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
Plotted results:
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.
Plotted results:
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.
Plotted results:
Overview
This chapter is about estimating property parameters. In the
equation-oriented environment there is a more general parameter
estimation feature, the parameter estimation run mode. For more
information on this mode, see EO Run Modes.
Aspen Plus stores physical property parameters in databanks for a
large number of components. If a required parameter is not in any
Aspen Plus databank, it can be:
• Entered directly
• Estimated using Property Estimation
• Regressed from experimental data using Data Regression
CH CH 2 OH
CH 3
CH CH 2 OH
CH 3
Identifying Parameters to be
Estimated
In a standalone Property Estimation run, Aspen Plus estimates all
missing parameters listed in the tables in What Property
Parameters Can Aspen Plus Estimate, using default [Link]
can use the Properties Estimation Input form to request parameter
estimation and to:
Example for Estimating Estimate Wilson binary parameters from infinite-dilution activity
Binary Parameters coefficients generated by UNIFAC. Estimate the infinite-dilution
activity coefficients at 30 and 40°C for component pair C1-C2; and
at 30°C for component pair C2-C3. For C1-C2, the WILSON/1
and WILSON/2 binary parameters are estimated because two
temperatures are requested. For C2-C3, only the WILSON/2
parameter is estimated because only one temperature is requested.
Overview
You can use experimental property data to determine the physical
property model parameters you need for an Aspen Plus simulation.
The Aspen Plus Data Regression System fits parameters of
physical property models to measured data for pure component or
multicomponent systems. You can enter almost any kind of
experimental property data, such as:
• Vapor-liquid equilibrium
• Liquid-liquid equilibrium
• Density
• Heat capacity
• Activity coefficients
You can use Data Regression for all property models in
Aspen Plus, including electrolyte and user models.
This section includes the following information about Data
Regression:
• Setting up a regression
• Entering pure component, phase equilibrium, and mixture data
• Plotting experimental data
• Formulating a regression case
• Evaluating the accuracy of known model parameters
• Examining and plotting regression results
• Comparing results from several cases
• Using the Dortmund Databank (DDB) interface
• Data regression example
Add the results from the NRTL and UNIQUAC cases to the
plot for WILSON. (See Comparing Results From Several
Cases, this chapter.)
Overview
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
You can use ADA/PCS for defining and characterizing petroleum
mixtures.
You can enter data for any number of assays. The minimum assay
data consists of a distillation curve and a bulk gravity value. You
can enter optional data, such as:
• Light-ends analysis
• Gravity curve
• Molecular weight curve
Aspen Plus 11.1 User Guide Petroleum Assays and Pseudocomponents • 32-1
You can enter any number of petroleum property curves, such as:
• Sulfur content
• Metal content
• Freeze point
• Octane numbers
Given data for any number of assays, ADA/PCS:
• Converts the distillation data into the true boiling point basis
• Performs extrapolations on assay curves and estimates any
missing data
• Generates blends from two or more assays
• Develops sets of pseudocomponents to represent the assays and
blends
• Reports distillation curves for assays and blends in user-
specified bases
• Estimates physical properties for each pseudocomponent
You can define your own pseudocomponents and use ADA/PCS to
estimate their physical properties.
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 list on the Setup Specifications Global
sheet. Or specify Assay Data Analysis in the Run Type list on the
New dialog box when creating a new run.
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.
32-2 • Petroleum Assays and Pseudocomponents Aspen Plus 11.1 User Guide
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.
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.
Aspen Plus 11.1 User Guide Petroleum Assays and Pseudocomponents • 32-3
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.
Entering a Gravity If you do not enter a bulk gravity value on the Dist Curve sheet,
Curve you must enter a gravity curve using the Gravity/UOPK sheet. You
may enter either:
• Gravity curve data
• Watson UOP K curve data
Gravities you specify on this sheet are normalized to match the
bulk gravity value specified on the Dist Curve sheet.
To enter a gravity 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.
If you enter a Watson UOPK curve, you must enter an average
gravity on the Assay Basic Data Dist Curve sheet. If the distillation
32-4 • Petroleum Assays and Pseudocomponents Aspen Plus 11.1 User Guide
type is True Boiling Point (weight basis) or Vacuum (weight
basis), you cannot enter a Watson UOPK curve.
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.
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
Aspen Plus 11.1 User Guide Petroleum Assays and Pseudocomponents • 32-5
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.
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.
32-6 • Petroleum Assays and Pseudocomponents Aspen Plus 11.1 User Guide
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.
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
Manager 2 On the Assay-Blend Object Manager, click New.
3 In the Create New ID dialog box, choose Blend in the Select
Type list.
Aspen Plus 11.1 User Guide Petroleum Assays and Pseudocomponents • 32-7
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-8 • Petroleum Assays and Pseudocomponents Aspen Plus 11.1 User Guide
To override the default options:
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 Assay Procedures sheet, choose the preferred analysis
procedure by clicking one of the options in the Assay Data
Analysis Procedure frame:
Version 9 or later
– or –
Version 8 or earlier
Aspen Plus 11.1 User Guide Petroleum Assays and Pseudocomponents • 32-9
If the integration fails, reduce the step size using the Minimum
step size for MW curve integration field.
About Pseudocomponents
You can specify how assays and blends are used to generate
pseudocomponents. ADA/PCS can generate one or more sets of
pseudocomponents for a group of assays and blends. You can use a
particular assay or blend to generate only one set of
pseudocomponents.
32-10 • Petroleum Assays and Pseudocomponents Aspen Plus 11.1 User Guide
If you do not enter any specifications for pseudocomponent
generation, ADA/PCS generates one average set of
pseudocomponents for all the assays and blends. The average set
uses equal weighting for each assay and blend.
You should use ADA/PCS to generate pseudocomponents only for
assays and blends used to define flowsheet streams. This achieves
the best characterization for a simulation. Typically you enter data
for several assays to create a blend, then use the blend to define
flowsheet streams. Generate pseudocomponents for the blend only.
In general, one average set of pseudocomponents for all assays and
blends in the simulation is sufficient. Assign weighting factors to
assays and blends to reflect their relative flow rates.
At times you can improve characterization accuracy by generating
a separate set of pseudocomponents for each assay and blend. Use
separate sets of pseudocomponents when multiple assays and
blends define flowsheet streams, and in the assay/blend:
• Distillation curves have significant overlaps.
• Gravities and Watson K factors are very different.
Multiple sets of pseudocomponents in the simulation increase
computation time.
Aspen Plus 11.1 User Guide Petroleum Assays and Pseudocomponents • 32-11
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.
Specifying Cut Points By default Aspen Plus generates pseudocomponents using a
standard set of cut points:
TBP Range ( F) Number of Cuts Increments ( F)
100 – 800 28 25
800 – 1200 8 50
1200 – 1600 4 100
To override the standard cut points, use the Generation Cuts sheet
to specify a list for one of the following:
• Cut temperatures
• Cut ranges. For each range, enter either the number of cuts or
the temperature increment for each cut.
By default, Aspen Plus generates pseudocomponents only for cuts
that are within the true boiling point temperature (TBP) range of an
assay or blend. Cuts outside the TBP range are ignored. Use the
Pseudocomponent generation option field on the Generation Cuts
sheet to change the default. Select All to generate
pseudocomponents for all cuts regardless of the TBP range of the
assay or blend. Select In-Range to generate the pseudocomponents
only for cuts within the TBP range of the assay or blend.
Pseudocomponent By default the generated pseudocomponents are named according
Naming Options to their mean average normal boiling point. You can use the
Naming Options sheet on the Generation form to select from five
built-in naming conventions. If you choose User Defined List, you
must enter the pseudocomponent IDs in the Pseudocomponent
fields of the Preview of Pseudocomponent Names frame. These
IDs then appear on the Stream Input Specifications sheets,
allowing you to enter pseudocomponent flows.
32-12 • Petroleum Assays and Pseudocomponents Aspen Plus 11.1 User Guide
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.
Aspen Plus 11.1 User Guide Petroleum Assays and Pseudocomponents • 32-13
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.
32-14 • Petroleum Assays and Pseudocomponents Aspen Plus 11.1 User Guide
• 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.
You also can create your own pseudocomponent property methods.
Use your own property methods in the same way as the built-in
option sets. .
Aspen Plus 11.1 User Guide Petroleum Assays and Pseudocomponents • 32-15
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.
32-16 • Petroleum Assays and Pseudocomponents Aspen Plus 11.1 User Guide
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.
Aspen Plus 11.1 User Guide Petroleum Assays and Pseudocomponents • 32-17
The Assay-Blend Results form appears, containing these
sheets:
Sheet Shows
Light Ends Results of the light ends analysis
Analysis
Pseudocomp Pseudocomponent and light ends breakdown results
Breakdown
Curves Distillation curves and bulk properties results
Blend Fraction Compositions of blends
(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.
32-18 • Petroleum Assays and Pseudocomponents Aspen Plus 11.1 User Guide
C H A P T E R 33
Overview
This topic describes how to use the Pressure Relief (Pres-Relief)
features of Aspen Plus to:
• Determine the steady-state flow rating of pressure relief
systems
• Dynamically model vessels undergoing pressure relief due to a
fire or heat input specified by the user.
For help on pressure relief calculations, see one of the following
topics:
• About pressure relief calculations
• About pressure relief scenarios
• Selecting a pressure relief scenario
• Design rules
• Specifying the venting system
• Specifying dynamic input
• Examining results of pressure relief calculations
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
• Tail pipe pressure loss
• Valve differential set pressure
Except for the limit on maximum vessel pressure, these rules apply
only when the relief device is selected to be a PSV (safety relief
valve) or PSV in combination with a PSD (rupture disk) for gas or
two-phase service.
Inserts
Overview
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.
Hiding Objects
You can use the Hide feature to temporarily remove optional
objects from a simulation, without deleting them. For example, you
can hide a design specification when you don’t want it to be
applied to the simulation.
You cannot hide:
• Global specifications, such as the Setup Specifications and
Properties Specifications forms
• Components
• Blocks and streams
• Properties Parameters and Molecular Structure objects
To hide objects:
1 Display the Object Manager for the type of object you want to
hide.
2 Select one or more objects you want to hide. If the Hide button
is dim, you cannot hide this type of object.
3 Click the Hide button.
Aspen Plus removes the selected objects from the Object
Manager list. They are no longer part of the problem definition.
Revealing Objects To reveal (unhide) objects:
1 Open the Object Manager for the type of object you want to
reveal.
2 Click the Reveal button.
Note: The Reveal button will only be active if there are hidden
objects.
Overview
This topic describes how to create stream libraries. For information
on how to retrieve information from a stream library for use in a
simulation, see About Stream Libraries in chapter 9.
For help on creating stream libraries, see one of the following
topics:
• Creating or modifying a stream library
• STRLIB command summary
You can retrieve information about stream composition and
conditions from a stream library, instead of entering this data on
stream forms.
This table shows what you can do with the stream library
capability:
To Do This
Create a library of Store the composition and conditions of frequently used feed streams in a stream
frequently used feed library. Retrieve this information from different models in a simulation without
streams re-entering it.
Transfer stream Simulate one section of your flowsheet, store the outlet streams in a library, and
information from one retrieve the information in another simulation. Or use a stream library to share
simulation to another information between two groups that are simulating different sections of a
process.
Initialize tear streams Store final tear stream values from a simulation in a library. When you simulate
another case, retrieve the desired values as an initial guess for the tear stream. If
you do not know which stream will be chosen as the tear stream, store all the
streams from the first simulation and retrieve all the streams in the new run.
Isolate a block from a Store streams for a large flowsheet in a library. Retrieve and analyze one block
large flowsheet from the stored flowsheet and simulate the block by itself, perhaps with higher
diagnostics or at different conditions. This eliminates re-entering the stream
information for the isolated block run.
This is a general TFF that handles any stream class and any
number of property sets. The BEGLOOP and ENDLOOP
statements enclose the DISPLAY ALL keyword, which instructs
Aspen Plus to loop through all substreams and display all
properties found in each substream.
The header sentences (TITLE, STREAM-ID-LABEL, SOURCE-
LABEL, DEST-LABEL, and PHASE-LABEL) are specified to
take on the default values. The order of the header sentences
dictates how they are printed in the stream table. Since these
sentences are specified before any DISPLAY sentences, the header
information is displayed above the stream values in the stream
table.
Whenever Aspen Plus displays a property that is mentioned in the
system default TFF, the corresponding property label is used. For
example, when Aspen Plus displays density, the label "Density" is
used. The default label is used for any property without a specified
label. For example, the label RHOMX is used if PROP-
LABEL="Density" is not specified.
Overview
The Aspen Plus Windows user interface is built using Microsoft’s
OLE Automation (ActiveX™) technology. This technology
enables you to transfer data easily to and from other Windows®
programs. It enables you to access simulation data and methods
through an Automation client, such as Visual Basic® (VB).
See one of the following topics for help on Windows
interoperability features:
• About copying, pasting and OLE
• Copying and pasting simulation data
• Copying and pasting plots
• Creating active links between Aspen Plus and other Windows
applications
• Using embedded objects in your flowsheet
Aspen Plus 11.1 User Guide Working with Other Windows Programs • 37-1
word processor for reporting and documentation, into a design
program, or into a database for case storage and management.
Live data links can be established that update these applications as
the process model is changed to automatically propagate results of
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.
37-2 • Working with Other Windows Programs Aspen Plus 11.1 User Guide
The Copy command always copies the whole field, with these
exceptions:
• The Setup Specifications Description sheet
• Any Fortran or Declarations input sheet
• 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.
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.
Aspen Plus 11.1 User Guide Working with Other Windows Programs • 37-3
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.
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.
37-4 • Working with Other Windows Programs Aspen Plus 11.1 User Guide
Tip: If all the component flowrates are not displayed, you can
expand the Data Browser window to display more components. Or
you can select the component flowrates by holding down the Ctrl
key and clicking with the mouse.
Aspen Plus 11.1 User Guide Working with Other Windows Programs • 37-5
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.
37-6 • Working with Other Windows Programs Aspen Plus 11.1 User Guide
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.
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 11.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 11.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 11.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 11.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 11.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.
Example of Pasting In this example, an Excel graph will be placed onto the Aspen Plus
Images From Other process flowsheet.
Windows Applications
Onto the Aspen Plus 1 First, generate the desired graph or image in another
Process Flowsheet application. In this case, a pie chart is created in Excel.
2 In Excel, select the graph, and from the Edit menu, click Copy.
37-12 • Working with Other Windows Programs Aspen Plus 11.1 User Guide
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 11.1 User Guide Working with Other Windows Programs • 37-13
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
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.
37-14 • Working with Other Windows Programs Aspen Plus 11.1 User Guide
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 1 Open the RadFrac ResultsSummary Summary sheet to view the
Excel 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 11.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 11.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 11.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 11.1 User Guide
When you save files with active links:
Saving Files with
Active Links • Be sure to save both the link source file and the link container
file. If you do not, the link will not be there when you open the
files again.
• If you save the link source with a different name (for example,
using Save As), you must save the link container after saving
the link source. This is because the link container contains the
file name of the link source.
• 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 and You will not see the
open the link source application in application on the
background. That is, the application Windows taskbar. You
will be open and running, but there might notice a pause as
will be no visible windows for the Windows activates the
application. application.
Aspen Plus 11.1 User Guide Working with Other Windows Programs • 37-19
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
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.
37-20 • Working with Other Windows Programs Aspen Plus 11.1 User Guide
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
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 11.1 User Guide Working with Other Windows Programs • 37-21
If you are using You should
Workbook mode Click the Process Flowsheet tab
Flowsheet as Wallpaper Click the flowsheet in the background
Normal View Select the Process Flowsheet window
2 From the Edit menu, point to Insert, then New Object.
3 To embed a new object, click Create New and in the Object
Type list, select the application or object.
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 Double-click on the object.
using the source – or –
application within 1. Click the object to select it
Aspen Plus 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 1. Click the object to select it
source application 2. Click the right mouse button.
to edit the 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 1. Click the object to select it.
to a block or 2. Click the right mouse button.
stream in the 3. On the popup menu, click Attach.
flowsheet 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.
37-22 • Working with Other Windows Programs Aspen Plus 11.1 User Guide
Embedded objects are saved as part of a run only when you save in
Saving a Run With an
Aspen Plus Document format (.apw files). When you save in
Embedded Object
Backup format (.bkp files), the embedded object is not saved.
Aspen Plus 11.1 User Guide Working with Other Windows Programs • 37-23
37-24 • Working with Other Windows Programs Aspen Plus 11.1 User Guide
C H A P T E R 38
Overview
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 [Link].
If you installed Aspen Plus in the default location, this file is in
C:\Program Files\AspenTech\Aspen Plus 11.1\GUI\xmp.
Aspen Plus 11.1 User Guide Using the Aspen Plus ActiveX Automation Server • 38-1
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 11.1\GUI\vbexample.
38-2 • Using the Aspen Plus ActiveX Automation Server Aspen Plus 11.1 User Guide
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
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 11.1 User Guide Using the Aspen Plus ActiveX Automation Server • 38-3
The following code illustrates a method for creating a new Aspen
Plus simulation from the automation interface:
Dim MyAspenPlus As Object
Set MyAspenPlus = CreateObject("[Link]")
MyAspenPlus.InitNew2
’ Do stuff with Aspen Plus
’ When done with Aspen Plus:
Set MyAspenPlus = Nothing
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 [Link],
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 11.1\GUI\xmp\[Link]")
’ display the GUI
[Link] = True
Set OpenSimulation = ihAPSim
Exit Function
ErrorHandler:
MsgBox "OpenSimulation raised error " & Err & ": " & Error(Err)
End
End Function
38-4 • Using the Aspen Plus ActiveX Automation Server Aspen Plus 11.1 User Guide
Example of Starting The following VB example obtains the simulation object for an
Aspen Plus as an In- existing simulation problem stored in the backup file [Link],
Process Server while loading Aspen Plus as an in-process server, then illustrates
the proper way to shut down the in-process server to allow for
reuse by the same process.
Private Sub Command1_Click()
Dim aspen As HappIP
End Sub
Aspen Plus 11.1 User Guide Using the Aspen Plus ActiveX Automation Server • 38-5
The Variable Explorer displays a tree view similar to the Data
Browser. The difference is that the Data Browser displays the
variables conveniently grouped and laid out on forms with prompt
text, scrolling controls, selection boxes and fields for data entry.
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.
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 [Link].
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.
38-6 • Using the Aspen Plus ActiveX Automation Server Aspen Plus 11.1 User Guide
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:
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 11.1 User Guide Using the Aspen Plus ActiveX Automation Server • 38-7
determines how the offspring nodes are organized. A leaf node (i.e.
one with no offspring) has a Dimension of zero.
The offspring nodes of a node object may be obtained as a
collection object, IHNodeCol from the Elements property of an
IHNode object.
To illustrate this, consider this example.
Example to Illustrate
a Collection Object
Sub GetCollectionExample(ihAPsim As HappLS)
’ This example illustrates use of a collection object
Dim ihRoot As ihNode
Dim ihcolOffspring As IHNodeCol
Dim ihOffspring As ihNode
Dim strOut As String
On Error GoTo ErrorHandler
’get the root of the tree
Set ihRoot = [Link]
’now get the collection of nodes immediately below the Root
Set ihcolOffspring = [Link]
For Each ihOffspring In ihcolOffspring
strOut = strOut & Chr(13) & [Link]
Next
MsgBox "Offspring nodes are: " & strOut, , "GetCollectionExample"
Exit Sub
ErrorHandler:
MsgBox "GetCollectionExample raised error" & Err & ": " & Error(Err)
End Sub
38-8 • Using the Aspen Plus ActiveX Automation Server Aspen Plus 11.1 User Guide
iterates through each node in the ihcolOffspring collection, and
Set ihDataNode = [Link]("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 [Link] = 1 then
Set ihDataNode = [Link]("Data")
else if [Link] = 2 then
Set ihDataNode = [Link]("Data","id2")
endif
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 = [Link]("Data"). _
Elements("Blocks").Elements("B6"). _
Elements("Input").Elements("NSTAGE")
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.
Aspen Plus 11.1 User Guide Using the Aspen Plus ActiveX Automation Server • 38-9
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 = [Link].B6
’ Get the number of stages
nStages = [Link]("NSTAGE").Value
’ get the boilup ratio
buratio = [Link]("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
38-10 • Using the Aspen Plus ActiveX Automation Server Aspen Plus 11.1 User Guide
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
Aspen Plus 11.1 User Guide Using the Aspen Plus ActiveX Automation Server • 38-11
This table shows commonly used meta-data attributes for records:
Meta-data Attributes
for Records
Attribute HAP_AttributeNumber Description
Name
Record Type HAP_RECORDTYPE If the node is record structured, e.g. a block or a stream, this
property is a string containing the record type, e.g
RADFRAC for a RADFRAC block and MATERIAL for a
material stream.
Completion HAP_COMPSTATUS Returns an integer code giving completion status. Bit masks
Status for interpretation are available in the enum
HAPCompStatusCode.
Attributes for This table shows commonly used attributes for variable nodes:
Variable Nodes
38-12 • Using the Aspen Plus ActiveX Automation Server Aspen Plus 11.1 User Guide
This table shows commonly used flowsheet connectivity port
Flowsheet
attributes:
Connectivity Port
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.
Aspen Plus 11.1 User Guide Using the Aspen Plus ActiveX Automation Server • 38-13
The following example subroutine uses AttributeValue to display a
Example of Using
list of blocks showing the block type, flowsheet section, and status
AttributeValue
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 = [Link]
strOut = "Block" & Chr(9) & "Block Type" _
& Chr(9) & "Section " & Chr(9) & "Results status"
For Each ihBlock In ihBlockList
strOut = strOut & Chr(13) & [Link] & Chr(9) & _
[Link](HAP_RECORDTYPE) & " " & Chr(9) & _
[Link](HAP_SECTION) & Chr(9) & _
Status([Link](HAP_COMPSTATUS))
Next ihBlock
MsgBox strOut, , "ListBlocksExample"
Exit Sub
ErrorHandler:
MsgBox "ListBlocksExample raised error" & Err & ": " & Error(Err)
End Sub
38-14 • Using the Aspen Plus ActiveX Automation Server Aspen Plus 11.1 User Guide
Physical Quantities and Units of
Measure
For a value which represents a physical quantity, there are two
important attributes:
• The physical quantity (for example, temperature or pressure)
• The units of measurement in which the physical quantity is
expressed (for example, degrees Kelvin or degrees Fahrenheit)
The following sections describe how to:
• Retrieve the physical quantity and the units for a value
• Convert a value to a different units of measurement
• Change the units in the Aspen Plus run
Retrieving Units of You can retrieve:
Measure • Units of measure for a value as a string
• Physical quantity and units of measure as references to the Unit
Table
Units of Measure as a The unit of measurement symbol for a value can be obtained from
String the UnitString property.
Example of Using Units of Measure
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
Aspen Plus 11.1 User Guide Using the Aspen Plus ActiveX Automation Server • 38-15
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.
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 = [Link].B_PRES
’ retrieve the attributes for the display units (psi)
nRow = [Link](HAP_UNITROW)
nCol = [Link](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: " & [Link] & _
" " & strDisplayUnits & Chr$(13) & _
"Pressure in Converted units: " & _
[Link](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 = [Link]("Unit Table"). _
Elements(nRow - 1).[Link](0, nCol - 1)
Exit Function
UnitsStringFailed:
UnitsString = ""
End Function
38-16 • Using the Aspen Plus ActiveX Automation Server Aspen Plus 11.1 User Guide
Changing the Units of You can use the HAP_UNITCOL attribute to directly change the
units of measurement in the Aspen Plus run.
Measure for the
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.
Sub UnitsChangeExample(ihAPsim As HappLS)
Example of Changing Dim ihPres As ihNode
Units of Measure On Error GoTo ErrorHandler
Set ihPres = [Link].B_PRES
MsgBox "Pressure in default units: " _
& [Link] _
& Chr(9) & [Link]
’ change units of measure to bar
[Link](HAP_UNITCOL, True) = 5
MsgBox "Pressure in selected units: " _
& [Link] _
& Chr(9) & [Link]
Exit Sub
ErrorHandler:
MsgBox "UnitsChangeExample raised error " & Err & ": " _
& Error(Err)
End Sub
Aspen Plus 11.1 User Guide Using the Aspen Plus ActiveX Automation Server • 38-17
Referencing Non-Scalar Variables in
the Automation Interface
Most of the data in a simulation problem is organized into arrays,
lists or tables, and therefore is contained in multi-valued variables.
Non-scalar data is accessed through the automation interface one
value at a time via the Value property of a leaf node. The
organization of the nodes which yield the values depends both
upon on the number of identifiers required to identify the value,
and upon the context. For example:
• A value in a column temperature profile requires the variable
name and one additional identifier: the stage number.
• A value in a column composition profile requires the variable
name and two additional identifiers: the stage number and the
component
• A reaction coefficient within a reactor requires the variable
name and three additional identifiers: the reaction number, the
component and the substream
Once a multi-valued variable node is located, selection of
identifiers to reach the required individual value involves
traversing down the tree. In some cases a single node traversal
represents selection of a single identifier. In other cases traversal of
a node represents selection of more than one identifier. Each node
has the property Dimension. If the value of Dimension is > 0 then
the node has offspring. The value of the Dimension property for a
node determines the number of identifiers associated with an
offspring of that node. Dimensions are referenced by an offset; the
first dimension number is zero and the last dimension number is
the value of the Dimension property minus one.
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
38-18 • Using the Aspen Plus ActiveX Automation Server Aspen Plus 11.1 User Guide
For each dimension you can obtain the number of valid locations
or labels from the RowCount property of the collection.
Aspen Plus 11.1 User Guide Using the Aspen Plus ActiveX Automation Server • 38-19
Example Showing How to To obtain the B_TEMP variable node:
Set ihTVar =[Link].B_TEMP
Access Column
Temperature Profile Next, create a simple iteration loop to access the offspring nodes
through the Automation representing the stages.
Interface For Each ihStage In [Link]
.
.
Next ihStage
38-20 • Using the Aspen Plus ActiveX Automation Server Aspen Plus 11.1 User Guide
The liquid composition profile for RadFrac is an example of a
Accessing Variables
variable with two identifiers. For the pfdtut simulation results, the
with 2 Identifiers:
variable X in the Variable Explorer tree view is shown in this
Column Composition
diagram.
Profile
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.
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 = [Link]("X")
Aspen Plus 11.1 User Guide Using the Aspen Plus ActiveX Automation Server • 38-21
For Each ihTrayNode In [Link]
For Each ihCompNode In [Link]
strOut = strOut & Chr(13) & [Link] & _
Chr(9) & [Link] & Chr(9) & _
[Link]
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-22 • Using the Aspen Plus ActiveX Automation Server Aspen Plus 11.1 User Guide
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 = [Link]
’ loop through reaction nodes
For Each ihReacNode In [Link]
strHeading = [Link](0) _
& Chr(9) & [Link](0) _
& Chr(9) & [Link](1)
nReacCoeff = [Link](0)
’ loop through coefficient nodes retrieving component and substream
’ identifiers and coefficient values
For intOff = 0 To nReacCoeff - 1
strTable = strTable & Chr(13) & [Link] & Chr(9) _
& Chr(9) & [Link](0, intOff) & Chr(9) _
& Chr(9) & [Link](1, intOff) & Chr(9) _
& Chr(9) & [Link](intOff, intOff).Value
Next intOff
MsgBox strHeading & strTable, , "ReacCoeffExample"
Next ihReacNode
Exit Sub
ErrorHandler:
MsgBox "ReacCoeffExample raised error " & Err & ": " & Error(Err)
End Sub
Aspen Plus 11.1 User Guide Using the Aspen Plus ActiveX Automation Server • 38-23
Flowsheet Connectivity and
Automation
The connections between blocks and streams in the flowsheet may
be accessed via the Automation server. In addition, these
connections may be modified, and blocks and streams may be
added or deleted.
Accessing Flowsheet The Port and Connection nodes of both Block and Stream nodes
Connectivity hold information about their ports and what is connected to the
ports.
This code sample displays a table showing source and destination
Example Code
blocks and ports for all streams in the flowsheet.
Showing Flowsheet
Connectivity
38-24 • Using the Aspen Plus ActiveX Automation Server Aspen Plus 11.1 User Guide
’ there is a source port
strSourceBlock = [Link](0).Value
strSourcePort = [Link](strSourceBlock). _
[Link](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("[Link]")
set blocknode =
[Link]("Data").Elements("Blocks")
[Link]("B1!RADFRAC")
Adding and Deleting To add a stream, call the Add method of the Streams collection
Streams with an input argument of "stream name!stream type". The
streamtype is optional; it defaults to MATERIAL. For example:
Dim problem as HappLS
Dim streamnode as IHNode
Set problem = CreateObject("[Link]")
set streamnode =
[Link]("Data").Elements("Streams")
[Link]("S1!MATERIAL")
[Link]("S2")
[Link]("S3!HEAT")
Aspen Plus 11.1 User Guide Using the Aspen Plus ActiveX Automation Server • 38-25
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:
[Link]("B1").Elements("Ports").Elements("F(IN)").Add("S1")
And show problem so that you can see the model library and
library references:
[Link] = TRUE
38-26 • Using the Aspen Plus ActiveX Automation Server Aspen Plus 11.1 User Guide
The Aspen Plus application object, HappLS, supports an outgoing
Handling Aspen Plus
event interface, IAPHappEvent, consisting of events for the
Events
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
[Link] = "loading " & fn
MousePointer = vbHourglass
’ reset the ole message filter to get rid of annoying Server busy message
[Link] = 100000
Set sim = CreateObject("[Link]")
Call sim.InitFromArchive2(fn, 0)
[Link] = false
[Link] = 10000
MousePointer = vbDefault
Exit Sub
ErrorHandler:
[Link] [Link]
[Link]
[Link] = "failed to load problem"
Set sim = Nothing
MousePointer = vbDefault
[Link] = 10000
End Sub
Private Sub Sim_OnControlPanelMessage(ByVal Clear As Long, ByVal msg As String)
If Clear Then
[Link] = ""
Else
[Link] = [Link] & vbCrLf & msg
End If
On Error GoTo ErrHandler
Exit Sub
ErrHandler:
[Link] "Error " & [Link]
[Link]
End Sub
Aspen Plus 11.1 User Guide Using the Aspen Plus ActiveX Automation Server • 38-27
Suppressing Dialog When starting Aspen Plus 11.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 [Link]()
will show the reinit dialog while
call [Link](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.
Example of Disabling Save and SaveAs
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
38-28 • Using the Aspen Plus ActiveX Automation Server Aspen Plus 11.1 User Guide
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 11.1 User Guide Using the Aspen Plus ActiveX Automation Server • 38-29
MsgBox "RunExample failed with error " & Err & Chr(13) & Error(Err)
End Sub
38-30 • Using the Aspen Plus ActiveX Automation Server Aspen Plus 11.1 User Guide
End Sub
End Property
Exit Property
’ simple error handler
SetSimulationErr:
Set simulationObject = Nothing
End Property
’ Do asynchronous run
isRunning = True
simulationObject.Run2 True
Exit Sub
RunError:
isRunning = False
End Sub
Aspen Plus 11.1 User Guide Using the Aspen Plus ActiveX Automation Server • 38-31
InputComplete = False
If simulationObject Is Nothing Then
’ Throw user defined exception
Exit Property
End If
Exit Property
InputCompleteErr:
InputComplete = False
End Property
LoadBkpErr:
[Link]
’ log error or throw user defined exception
End Sub
[Link]
VERSION 5.00
Begin [Link] Form1
Caption = "Form1"
ClientHeight = 3195
ClientLeft = 60
ClientTop = 345
ClientWidth = 4680
LinkTopic = "Form1"
ScaleHeight = 3195
ScaleWidth = 4680
StartUpPosition = 3 ’Windows Default
Begin [Link] Load
Caption = "Load"
Height = 375
Left = 720
TabIndex = 1
Top = 480
Width = 1095
End
Begin [Link] Run
Caption = "Run"
Height = 375
Left = 720
TabIndex = 0
Top = 1200
38-32 • Using the Aspen Plus ActiveX Automation Server Aspen Plus 11.1 User Guide
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 11.1 User Guide Using the Aspen Plus ActiveX Automation Server • 38-33
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.
Example of using the Export method
38-34 • Using the Aspen Plus ActiveX Automation Server Aspen Plus 11.1 User Guide
Basic File Operations Name and Arguments Member Read- Description
Type only
Save() Sub Saves current file
SaveAs Sub Saves current file under new
(filename As String, name
[overwrite])
Restore2 Property Yes Restores, or merges, an archive
(filename As String) file into the current problem
WriteArchive2 Sub Exports an archive file.
(filename As String,
savechildren as long)
Export(reptype as Sub Export a file of a type
HAPEXPType, determined by reptype with the
filename as String) specified name. Possible
values of reptype:
Aspen Plus 11.1 User Guide Using the Aspen Plus ActiveX Automation Server • 38-35
Initialization Methods to Name and Arguments Member Read- Description
be Used with Type only
CreateObject() InitFromArchive2( Sub Open an Aspen Plus archive
filename as String, file and connect to the
host_type as Integer, simulation engine.
node as String, filename is the name of the
username as String, problem to open, host_type is a
password as String, zero-based index of the entry
working_directory as of the host in the initialization
String, file, node is the name of the
failmode as Integer) remote machine to connect to,
username, password, and
working_machine are the
account name, password, and
working directory to use to
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
(filename As String, …) initializes
InitFromTemplate2 has the
same arguments as
InitFromArchive2.
InitFromFile2( Sub Open an Aspen Plus document
filename as String, ...) and connect to the simulation
engine.
InitFromFile2 has the same
arguments as
InitFromArchive2.
38-36 • Using the Aspen Plus ActiveX Automation Server Aspen Plus 11.1 User Guide
Selection Buffer Name and Arguments Member Read- Description
Operations Used to do Type only
Cut and Paste Strictly Via DeleteSelection(Key As Sub Delete a selection buffer.
Automation String)
NewSelection(Key As Function Create and return a new
String) As IHSelection selection buffer.
SaveSelection(Key As Sub Save a selection buffer.
String)
Selection(Key As Property Yes Retrieve a selection buffer.
String) As IHSelection
Aspen Plus 11.1 User Guide Using the Aspen Plus ActiveX Automation Server • 38-37
OnGUIClosing() Event Indicates the user interactively
closed the application. May be
used to notify an automation
client that it should disconnect
from the automation server.
Note this does not indicate that
the automation server is
closing, that will not occur
until both the GUI is closed
and automation client release
any objects that they hold from
the automation server.
OnDataChanged Event Indicates a data entry value is
(pObj as Object) changed. Used to notify clients
that they may need to check
the completion status of the
simulation problem or an
object within the simulation.
pObj is the object that was
modified, usually an IHNode
Property related to the Event Interface
Name and Arguments Member Read- Description
Type only
SuppressDialogs as Property Specifies whether Aspen Plus
Boolean suppresses most messages 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 Name and Arguments Member Read- Description
Type only
Application As HappLS Property Yes Returns the application of the
object.
Parent As HappLS Property Yes Returns the creator of the
object.
38-38 • Using the Aspen Plus ActiveX Automation Server Aspen Plus 11.1 User Guide
Properties to Access Other Parts of the Object Model
Name and Arguments Member Read- Description
Type only
Dimension As Long Property Yes Return the number of
dimensions in the directory (0
for scalar).
Elements As Property Yes Return a collection object
IHNodeCol containing the node’s offspring
nodes
Access Data Values
Name and Arguments Member Read- Description
Type only
AttributeType Property Yes Get type of attribute for
(attrnumber As Integer) attrnum:
As Integer 1=int 2=real
3=string 4=node
5=memory block
(see Enum
HAPAttributeNumber for
possible values).
AttributeValue Property Get the value of the attribute
(attrnumbe As Integer, for attrnum (see Enum
[force]) HAPAttributeNumber for
possible values).
HasAttribute Property Yes Checks whether attribute is
(attrnumber As Integer) defined for attrnum (see
As Boolean HAPAttributeNumber for
possible values).
SetValueAndUnit Sub Store the value attribute and
(Value, unitcol As the Unit of Measurement
Integer, [force]) attribute of the object
simultaneously.
SetValueUnitAndBasis Sub Store the value attribute, the
(Value, unitcol As Unit of Measurement attribute,
Integer, basis As String, and the basis for the object
[force]) simultaneously.
Value([force]) Property Get the value attribute of the
object.
ValueForUnit Property Gets the value in the specified
(unitrow As Integer, units.
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
Aspen Plus 11.1 User Guide Using the Aspen Plus ActiveX Automation Server • 38-39
Helper Methods
Name and Arguments Member Read- Description
Type only
FindNode(path As Function Navigate to a different node.
String) As IHNode
Name([force]) As Property Returns the name of the object
String (force argument is unused).
UnitString As String Property Yes Returns the unit of
measurement symbol of the
node value as a string.
Methods Used to Manipulate the Data
Name and Arguments Member Read- Description
Type only
Clear() Sub Clear contents of the node.
Delete() Sub Delete element.
RemoveAll() Sub Remove all elements.
Members of Class Standard VB Properties
IHNodeCol Name and Arguments Member Read- Description
Type only
Application As HappLS Property Yes Returns the application of the
object.
Parent As HappLS Property Yes Returns the creator of the
object.
Main Navigation Method
Name and Arguments Member Read- Description
Type only
Item(loc_or_name, Property Yes Given a set of indices or
[loc_or_name2], names, returns an element in
[loc_or_name3], the collection
[loc_or_name4],
[loc_or_name5]) As
IHNode
Principal Data Manipulation Methods
Name and Arguments Member Read- Description
Type only
Add([loc_or_name], Function Creates and adds a child of
[loc_or_name2], type:
[loc_or_name3], 1 = scalar
[loc_or_name4], 4 = list
[loc_or_name5]) As 5 = named list, with value type
IHNode of:
0=not defined
1=int 2=real
3=string 4=node
5=memory block.
38-40 • Using the Aspen Plus ActiveX Automation Server Aspen Plus 11.1 User Guide
Insert(element As Sub Inserts an element into
IHNode, collection.
[loc_or_name],
[loc_or_name2],
[loc_or_name3],
[loc_or_name4],
[loc_or_name5])
InsertRow(dimension Sub Inserts a new row at location in
As Long, location As the specified dimension, dim.
Long)
Remove(loc_or_name, Function Removes an element.
[loc_or_name2],
[loc_or_name3],
[loc_or_name4],
[loc_or_name5]) As
IHNode
RemoveRow(dimension Sub Removes a row at location in
As Long, location As the specified dimension, dim.
Long)
Important Properties About the Data
Name and Arguments Member Read- Description
Type only
Dimension As Long Property Yes Returns the number of
dimensions in the directory.
Label(dimension As Property Returns the row label for the
Long, location As specified row location in the
Long, [force]) As String specified dimension (force
argument is unused).
LabelLocation(Label Property Yes Returns the location, or row
As String, dimension number, of the label along the
As Long) As Long dimension, dim.
RowCount(dimension Property Yes Returns the number of
As Long) As Long elements in the dimension.
Other Properties About the Data
Name and Arguments Member Read- Description
Type only
Count Property Yes Returns total number of object
slots in collection.
DimensionName Property Yes Gets a display name for the
(dimension As Long) given dimension for variable or
As String table.
LabelNode(dimension Property Yes Returns a node for
As Long, location As manipulating the label.
Long, [Label]) As
IHNode
Aspen Plus 11.1 User Guide Using the Aspen Plus ActiveX Automation Server • 38-41
IsNamedDimension Property Yes Returns whether the rows for
([dim]) As Boolean this dimension of the collection
are named.
ItemName(location As Property Returns name or row name for
Long, [dim], [force]) As element at location (force
String argument is unused).
LabelAttribute Property Returns the value of an
(dimension As Long, attribute for the label in the
location As Long, row, location, along the
attrnum As Integer, dimension, dim, for attrnum
[force]) (see HAPAttributeNumber for
possible values), (force
argument is unused).
LabelAttributeType Property Yes Returns the type of an attribute
(dimension As Long, for the label in the row,
location As Long, location, along the dimension,
attrnum As Integer) As dim, for attrnum (see
Integer HAPAttributeNumber for
possible values).
Members of Class Basic Run Operations
IHAPEngine Name and Arguments Member Read- Description
Type only
MoveTo(object_type Sub Move current simulation step
As to object or begining of
IAP_MOVETO_TYPE, sequence.
[object_id])
Reinit([object_type], Sub Reinitialize all or portion of
[object_id]) simulation (if object_type is
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.
Manipulate Stop Points
Name and Arguments Member Read- Description
Type only
AddStopPoint(type As Sub Add a stop point,
IAP_STOPPOINT_TYPE, before_or_after:
object_id As String, 1 = before
before_or_after As 2 = after.
Long)
ClearStopPoints() Sub Clear all stop points.
38-42 • Using the Aspen Plus ActiveX Automation Server Aspen Plus 11.1 User Guide
DeleteStopPoint(index Sub Delete stop point based on 1-
As Long) based index.
StopPointCount As Property Yes How many stop points are set?
Long
GetStopPoint(index As Sub Retrieve information about a
Long, type As stop point, index: 1-based
IAP_STOPPOINT_TYPE, index of stop point
object_id As String, before_or_after:
before_or_after As 1 = before , 2 = after.
Long)
Manipulate the Client-Server Communications
Name and Arguments Member Read- Description
Type only
Host(host_type As Function Connect to host specified by
Long, [node], host_type (0-based index of
[username], [password], available host types).
[working_directory])
As Boolean
HostCount As Long Property Yes Returns the number of host
types available to connect to.
HostDescription Function Returns a description for the
(host_type As Long) As host type specifed by the
String host_type index (0-based).
Miscellaneous Option Settings
Name and Arguments Member Read- Description
Type only
EngineFilesSettings Property Retrieve setting for engine
(file As files.
IAP_ENGINEFILES)
As String
OptionSettings(type As Property Retrieve setting for simulation
IAP_RUN_OPTION) run options.
As Boolean
Members of Class Manipulate the Libraries Associated with a Problem
IHAPLibRef Name and Arguments Member Read- Description
Type only
CountLibs() as Integer Property Yes Returns the number of libraries
currently referenced by a
problem
LibraryName(index as Property Yes Returns the library name of the
Integer) as String library specified by the index.
In all these methods, the index
is zero-based (first library is
specified by 0).
Aspen Plus 11.1 User Guide Using the Aspen Plus ActiveX Automation Server • 38-43
LibraryPath(index as Property Yes Returns the full path and
Integer) as String filename of the library
specified by index
InsertLibrary(path as Function Inserts a library into the
String, location as reference list at a location
Integer) as String specified by index. Returns
displayname of library
RemoveLibrary Sub Removes the library location
(location as Integer) specified by index from
reference list
MoveLibrary(fromloc Sub Moves a library in search path
as Integer, toloc as
Integer)
Manipulate the Categories Shown on the Model Library
Name and Arguments Member Read- Description
Type only
CategoryName(index as Property Yes Returns the name of the
Integer) as String category specified by the
index.
In all these methods, the index
is zero-based (first category is
specified by 0).
CategorySelected Property Is 1 if specified category has
(name as String) as been selected to display on the
Integer Model Library
CategoryLocSelected Property Is 1 if specified category (by 0
(index as Integer) as based index) has been selected
Integer to display on the Model
Library
MoveCategory (fromloc Sub Moves a category in the
as Integer, toloc as category list
Integer)
38-44 • Using the Aspen Plus ActiveX Automation Server Aspen Plus 11.1 User Guide
C H A P T E R 39
Overview
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 11.1 User Guide Heat Exchanger Design Program Interface • 39-1
You can extend the default data produced by the heating/cooling
curves to include all of the properties each design program needs.
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 11.1 User Guide
HTRI programs accept up to three curves per side at different
pressures. For maximum accuracy, define three heating/cooling
curves for:
• Inlet pressure
• Outlet pressure
• Intermediate pressure where phase change occurs
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 [Link].
If [Link] does not exist, HTXINT reads the data from the
backup file named [Link].
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
Aspen Plus 11.1 User Guide Heat Exchanger Design Program Interface • 39-3
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
[Link]) >>
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
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 11.1 User Guide
Entering the Enter the heating/cooling curve number from the list of
Heating/Cooling Curve heating/cooling curves for the block. The screen displays:
Number
The Hcurves for block E01 are as follows.
+--------------------------------------------------------------------+
|NUMBER|Side | Type| Pressure range | Temp. range | Vfrac range|
| | | | (N/SQM) | (K) | |
+------+-----+-----+--------------------+---------------+------------+
| 1 | HOT | HOT |0.410E+07 0.410E+07 |322.039 207.039|1.000 0.639 |
| 2 |COLD |COLD |0.445E+07 0.445E+07 |183.150 200.656|0.000 0.000 |
+--------------------------------------------------------------------+
Please select an Hcurve from the list by entering its number. > 2
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 11.1 User Guide Heat Exchanger Design Program Interface • 39-5
Generating the Interface File
After you choose a heating/cooling curve to write to the interface
file, HTXINT provides prompts for descriptive data for the target
design program. Examples of information you may want to provide
are a problem description, case name, and hot or cold fluid name.
HTXINT indicates when the number of characters you can use is
restricted, and validates your data entry.
HTXINT generates the input, then asks you if you want to select
another heating/cooling curve.
The following text shows an example of providing descriptive data
for the HTRI interface.
Please provide a one line description of the
problem up to 70 characters.
> HCURVE DATA COPIED FROM HEAT EXCHANGER E01
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 11.1 User Guide
Using the Interface File in Your Heat
Exchanger Design Program
The interface program creates a file containing heating/cooling
curve data. This file includes the descriptive data you entered at the
prompts. The file format, name, and how the file is used depends
on the design program. The input file that HTXINT produces
contains only heating/cooling curve data. It does not contain the
complete data necessary to run the design program.
Maximum Maximum No.
Design Interface Units of No. of H/C of H/C Curve
Program Filename Measure Curves Points How to Use
B-JAC [Link] SI, US, Hot side = 1 13 (inlet, outlet, Run B-JAC. Select Shell&Tube
metric Cold side = dew point, Heat Exchanger Programs, then
1 bubble point, Thermal Design, then Establish
and up to 9 the Filename, then Create or
others) Modify Input File.
HTFS [Link] SI, British, Hot side = 1 12 Edit and complete the data in
metric Cold side = the input file.
1
HTFS M- [Link] SI only Hot side = 1 12 Run DOS program. Select Input
Series Cold side = Data Editor. Then either create
1 or edit input and import the
interface file, using function
key F5.
Or
Run Windows program. Select
Import Simulator Input File
from File menu.
HTRI [Link] SI, US, Hot side = 3 10 Edit and complete the data in
MKH Cold side = the input file.
3 Or
Enter the program and select the
input file.
These are the vendors’ names for units of measurement sets that
correspond approximately to the SI, ENG, and METRIC sets in
Aspen Plus.
Use the process simulator (psf) file in the way described in this
table. The format and units of a process simulator file are different
from the usual HTFS input file.
Aspen Plus 11.1 User Guide Heat Exchanger Design Program Interface • 39-7
39-8 • Heat Exchanger Design Program Interface Aspen Plus 11.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 11.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
[Link].
• ChemApp is the application called by Aspen/FACT/ChemApp
interface to perform thermochemical calculations. For more
information about ChemApp, see [Link].
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 11.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 11.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 11.1\Engine).
Accessing ChemApp
40-2 • Using FACT and ChemApp with Aspen Plus Aspen Plus 11.1 User Guide
3 Open [Link] 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 [Link] from the working directory.
4 From the Run pulldown menu, select Settings.
5 In the Linker Options field, ensure that the path for
[Link] is correct.
6 In the working directory, use Notepad to edit [Link].
Enter the correct path to find [Link] in the working directory.
7 Run the simulation. If it completes successfully, the
preparation for the Aspen/FACT/ChemApp interface is
complete.
Troubleshooting simulations with the Aspen/FACT/ChemApp interface
1 In the ChemSage Calculator block, set ppfact_cadbg =
.true.
2 From the Run pulldown menu, select Stop points
3 Set a Stop point after the block that is reporting an error.
4 Run the simulation until it stops at the stop point.
5 Examine the last section of extra diagnostic information written
to the Control Panel.
6 In your working directory, use Notepad to view the file
[Link]. This file contains the input and output (if any) of
the last call to the ChemApp chemical equilibrium calculations.
7 Examine the stream results of the streams in and out of the
block.
FACT Components Aspen Plus has a databank, FACTPCD, containing components
required for the Aspen/FACT/ChemApp interface. These
components are actually FACT species, which differ from Aspen
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.
Aspen Plus 11.1 User Guide Using FACT and ChemApp with Aspen Plus • 40-3
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
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:
40-4 • Using FACT and ChemApp with Aspen Plus Aspen Plus 11.1 User Guide
• 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
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.
Aspen Plus 11.1 User Guide Using FACT and ChemApp with Aspen Plus • 40-5
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.
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\[Link]. 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
[Link]. If [Link] 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 [Link], also delivered in
GUI\xmp\ChemApp. A dlopt file is required to point to
GUI\xmp\ChemApp\[Link], 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
40-6 • Using FACT and ChemApp with Aspen Plus Aspen Plus 11.1 User Guide
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.
Aspen Plus 11.1 User Guide Using FACT and ChemApp with Aspen Plus • 40-7
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
summarized below. Target codes 3 and 4 require the specification
of a target phase or species and a temperature range.
Calculation State variables (in order Comments
Code 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.
40-8 • Using FACT and ChemApp with Aspen Plus Aspen Plus 11.1 User Guide
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.
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.
Aspen Plus 11.1 User Guide Using FACT and ChemApp with Aspen Plus • 40-9
40-10 • Using FACT and ChemApp with Aspen Plus Aspen Plus 11.1 User Guide
Index
template: 2-14
A Air separation: 2-14
Algorithms
Accounting report information: 5-6
optimization: 23-9
Accuracy
sequencing: 17-18
evaluating of parameters: 31-14
Algorithms: 17-18, 23-9
Accuracy: 31-14
Aliases
ACM
equation-oriented (EO): 18-40
licensing of exported flowsheets 10-33
Aliases: 18-40
using with Aspen Plus: 10-31
Ambient pressure
ACM flowsheets
changing default: 5-5
modifying: 10-32
Ambient pressure: 5-5
ACM flowsheets: 10-32
Analysis
ACM: 10-31
light ends: 32-5
Active links
Analysis: 32-5
saving files: 37-18
Annotations
Active links: 37-13, 37-18
adding to plots: 13-7
Active set initialization parameters (DMO)
specifying text attributes: 14-4
specifying: 17-42
Annotations: 13-7, 14-4
Active set initialization parameters (DMO):
Appearance
17-42
changing for flowsheets: 4-13
ActiveX automation
Appearance: 4-13
using: 38-1
Applications
ActiveX automation: 38-1
examples: 2-22
Activity coefficient models
Applications: 2-22
binary parameters: 8-6
Aspen Custom Modeler
Activity coefficient models: 8-6
using with Aspen Plus: 10-31
AD
Aspen Custom Modeler: 10-31
using with Aspen Plus: 10-31
Aspen Dynamics
AD: 10-31
using with Aspen Plus: 10-31
ADA/PCS
Aspen Dynamics: 10-31
about: 32-1
Aspen Modeler flowsheets
ADA/PCS: 32-1
modifying: 10-32
Add New Curve: 13-14
Aspen Modeler flowsheets: 10-32
Adding
Aspen Modeler products
components to lists: 6-15
using with Aspen Plus: 10-31
text: 13-7
Aspen Modeler products: 10-31
Adding: 6-15, 13-7
AspenPlus
Air separation