Tutorial ACM 10.1
Tutorial ACM 10.1
10.1-0
ADSIM , Aspen Custom Modeler, Aspen Dynamics, Aspen Engineering Suite, Aspen Plus ,
® ®
® ® ®
Polymers Plus , Properties Plus , SPEEDUP , and the aspen leaf logo are either registered
trademarks, or trademarks of Aspen Technology, Inc., in the United States and/or other countries.
Élan License Manager is a trademark of Élan Computer Group, Inc., Mountain View, California, USA.
Microsoft Windows, Windows NT, and Windows 95 are either registered trademarks or trademarks of
Microsoft Corporation in the United States and/or other countries.
All other brand and product names are trademarks or registered trademarks of their respective
companies.
Although AspenTech has tested the software and reviewed the documentation, the sole warranty for Aspen
Custom Modeler may be found in the applicable license agreement between AspenTech and the user.
ASPENTECH MAKES NO WARRANTY OR REPRESENTATION, EITHER EXPRESS OR IMPLIED,
WITH RESPECT TO THIS DOCUMENTATION, ITS QUALITY, PERFORMANCE,
MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE.
Contents
Introduction
What You Need To Use This Book .....................................................................................v
Tutorials in this Book.........................................................................................................v
For More Information....................................................................................................... vi
Online Help.................................................................................................................. vii
Printed Manuals ......................................................................................................... viii
Portable Document Format Files (PDFs) ................................................................... viii
World Wide Web ......................................................................................................... viii
Technical Support......................................................................................................... ix
1 Flowsheeting Tutorial
Starting Aspen Custom Modeler .................................................................................... 1-2
Understanding the Aspen Custom Modeler Windows ................................................... 1-2
The Simulation Explorer ............................................................................................ 1-3
Review of Understanding the Aspen Custom Modeler Windows............................... 1-4
Placing a Model on the Flowsheet.................................................................................. 1-4
Loading the Flowsheeting Tutorial File..................................................................... 1-4
Placing a Model on the Flowsheet.............................................................................. 1-5
Fixing the Feed Flow Rate for One Tank................................................................... 1-6
Running the Simulation in Steady State ................................................................... 1-6
Viewing Results .......................................................................................................... 1-7
Review of Placing a Model on the Flowsheet ............................................................. 1-7
Building Your Own Flowsheet ....................................................................................... 1-7
Connecting Tanks on the Flowsheet .......................................................................... 1-8
Review of Building Your Own Flowsheet................................................................... 1-9
Running a Dynamic Simulation....................................................................................1-10
Setting up a Dynamic Run ........................................................................................1-10
Defining a Plot...........................................................................................................1-11
Running the Dynamic Simulation.............................................................................1-12
Review of Running a Dynamic Simulation ...............................................................1-12
Tutorial Review .............................................................................................................1-13
2 Modeling Tutorial
Starting Aspen Custom Modeler .................................................................................... 2-2
About the Aspen Custom Modeler Windows.................................................................. 2-2
Understanding the Simulation Explorer.................................................................... 2-3
Review of About the Aspen Custom Modeler Windows ............................................. 2-4
Building Your Own Model.............................................................................................. 2-4
Loading the Modeling Tutorial File ........................................................................... 2-4
Accessing the Tank Model .......................................................................................... 2-5
Completing the Tank Model ....................................................................................... 2-6
Introduction
To Complete
• Become familiar with Aspen Custom Modeler Tutorial 1
• Define and specify a flowsheet
• Control the running of your simulation
• Become familiar with Aspen Custom Modeler Tutorial 2
• Build your own models
• Define and specify your own flowsheet
• Control the running of your simulation
This section explains how to use the online help, print PDF files, find Aspen
Technology on the web, and contact Technical Support.
1
Aspen Modeler products include Aspen Custom Modeler™, Aspen Dynamics™, Aspen
ADSIM™, and Aspen Chromatography™.
Online Help
The Aspen Modeler online Help includes:
➤ From the Help menu, click Contents and then do one of the following:
To Do this
Display a hierarchy of topics by category Click the Contents tab
Display an index of all Help topics Click the Index tab and then type the word you require
Search for words or phrases within the Help topics Click the Find tab and then type the word or phrase you
require
Tip To display Help on buttons, fields, menu commands, and other screen
elements, click the What's This button: or , at the top of the window, and
then click the element.
Improving Help
We value your comments, suggestions, and criticisms. If you could not find the
information you wanted, needed more assistance, or have any suggestions for
improvements to our online information, we want to know.
Docs@AspenTech.com
Printed Manuals
The following printed manuals are supplied with your product:
• Installation Guide This guide provides instructions on installing the
product(s) under Windows 95, Windows 98, and Windows NT.
• Getting Started guide These tutorials include several basic hands-on
sessions to familiarize you with Aspen Modeler products.
After you have installed the Adobe Acrobat Reader and the PDF files, you can
open the files to view and print the manuals. To do this:
➤ Click the Start button, point to Programs, AspenTech, AM Documentation
and then click the file you want to open. For a description of each file, see the
online Help or the Installation Guide.
http://www.aspentech.com/
Technical Support
You can get help from AspenTech's technical support resources on the World Wide
Web, or by contacting an AspenTech office.
http://www.aspentech.com/ts
Approximately three days after registering, you will receive a confirmation e-mail
and you will then be able to access this information.
AspenTech Hotline
If you need help from an AspenTech Customer Support engineer, contact the
Hotline at any of these locations:
❖ ❖ ❖ ❖
1 Flowsheeting Tutorial
This tutorial helps you learn to use Aspen Custom Modeler™ to define a
flowsheet and run simulations.
Simulation
Explorer
window
Contents pane
Simulation
Messages
window
Configuration Indicator
The default pane orientation displays the Simulation Explorer with the All Items
pane above the Contents pane.
If the pane orientation is set as Side by Side, with the All Items pane next to the
Contents pane, change it back to the default. All illustrations in this manual will
show the default pane orientation (Top to Bottom).
To change the orientation of the Simulation Explorer panes back to the default:
1. Make sure that the Simulation Explorer window is active by clicking in it.
2. From the View menu, point to Pane Orientation and then click Top To
Bottom.
C:\program files\aspentech\modeler\10.1\examples\tutorial
3. In the Files of Type box, ensure that Aspen Custom Modeler Files (*.acmd;
*.acmf) is selected.
4. Click the file Flowsheeting Tutorial.acmf then click Open.
Wait for a few moments while Aspen Custom Modeler loads the file.
In this session, you will build a tank model and then build a flowsheet to form a
series of tanks. The file you have loaded contains a tank model.
2. Under Models, click the Tank icon and drag it onto the flowsheet.
The block has been automatically named and given the default icon.
To correct this, you need to define one variable as a known value for the
simulation. In this case, you need to fix the feed flow rate:
1. In the flowsheet window, double-click the block.
1. Click the Run button on the Run Control toolbar at the top of the Aspen
Custom Modeler window.
A dialog box appears, to tell you that your simulation has solved.
2. Click OK.
Viewing Results
To see the results of your simulation, look in the AllVariables table. This table
shows you information about all the variables in the block's equations.
If you have closed the AllVariables table, reopen it by double-clicking the block.
When you have finished viewing the table, click the Close button to close the
AllVariables table.
The next step is to link a number of tank models together on your flowsheet.
2. In the All Items pane of the Simulation Explorer, under Custom Modeling,
expand Stream Types.
3. Click Connection and drag it to the flowsheet. Release the mouse button on a
blank area of the flowsheet.
All the ports are shown as blue arrows.
4. Move the pointer over the blue input arrow for the tank B1.
The name of the port, In1, is displayed.
5. Click the port In1.
A stream is placed with the automatically defined name S1.
6. In the All Items pane, drag another Connection stream onto the flowsheet,
release the mouse button over the blue arrow coming out of the tank B1
(Out1) and then click the arrow going into the tank B2.
Defining a Plot
Before you run the dynamic simulation, define a plot so that you can view
simulation results. To do this:
1. From the Tools menu, click New Plot.
2. In the Enter Flowsheet Plot Name, type a name and click OK.
An empty plot appears:
7. Close the AllVariables table for B1 and open those for B2 and B3.
8. In the same way, add the Levels from tanks B2 and B3 to the plot, then close
these table windows.
You can change the value of a Fixed variable during a dynamic simulation, for
example the feed flow rate. To do this:
1. Open the AllVariables table for B1.
2. Click the Value cell for variable In1.Flow.
3. Type a new value of 2 for the flow rate, then press Enter.
Tip If you want to run the simulation again from time zero, select the
Restart button on the Run Control toolbar.
4. When you have seen enough, click the Pause button.
Tutorial Review
In this basic tutorial, you have learnt how to:
• Build a flowsheet
• Run dynamic simulations
• View results as plots
To view and run more complex examples, see Chapter 2, or the help on Examples.
❖ ❖ ❖ ❖
2 Modeling Tutorial
In this tutorial, you will learn how to use Aspen Custom Modeler to build models
and run simulations.
Simulation
Explorer
window
Contents pane
Simulation
Messages
window
The default pane orientation displays the Simulation Explorer with the All Items
pane above the Contents pane.
If the pane orientation is set as Side by Side, with the All Items pane next to the
Contents pane, change back to the default pane orientation. All illustrations will
show the default pane orientation (Top to Bottom).
C:\program files\aspentech\modeler\10.1\examples\tutorial
3. In the Files of Type box, ensure that Aspen Custom Modeler Files (*.acmd;
*.acmf) is selected.
4. Click the file Modeling Tutorial.acmf then click Open.
Wait for a few moments while Aspen Custom Modeler loads the file.
The Contents pane now contains objects related to the tank model.
3. Double-click the 3-D equals sign labeled Tank.
Tank
model
icon
A text editor window opens and you can edit the equations and variables
contained in the tank model.
When the model compiles successfully, you see a message in the Simulation
Messages Window that there are no errors or warnings.
Tip You can use the Windows menu to view the Simulation Messages
window.
If you see an error, check you have added the equation correctly. If you have
further problems, go back to the beginning of Completing the Tank Model on
page 2-6.
3. Close the Text Editor window by clicking the Close button .
2. Under Models, click the Tank icon and drag it onto the flowsheet.
3. Release the mouse button on the flowsheet where you want to place the block.
The block has been automatically named and given the default icon.
To solve, the number of equations must equal the number of unknowns in the
simulation.
The tooltip that appears tells you that you are underspecified by three
variables, so to correct the specifications, you need to fix three variables.
1. Click the Run button on the Run Control toolbar at the top of the Aspen
Custom Modeler window.
A dialog box appears, to tell you that your simulation has solved.
2. Click OK.
Reviewing Results
To see the results of your simulation, look in the AllVariables table. This table
displays information about all the variables in the block's equations.
When you have finished viewing the results, click the Close button to close the
AllVariables table.
The next step is to link a number of tank models together on your flowsheet.
To link your tank model with other tank models, you need to add ports to your
model. (Ports define which variables are passed between blocks on the flowsheet.)
Defining a Port
To define a port, you need to:
• Define the port name
• Define the variables carried by the port
3. In the Create Port Type dialog box, type a name for the port, for example,
Material, and click OK.
The Text Editor window opens, showing the new port.
Note Flow_Vol is a predefined type. If you want to view it, in the Simulation
Explorer, under Modeler, click Variable Types. In the Contents pane, double-
click the Flow_Vol icon.
2. Compile the new port in the same way as you did for the tank model on page
2-7.
To do this:
1. Comment out the line that defines InFlow and OutFlow, using //.
2. The syntax for the port variables is PortName.PortVariableName. Therefore,
in the Material Balance and Flow Out equations, replace InFlow with
In1.Flow and OutFlow with Out1.Flow (your new port variables).
3. Compile the model. That is, in the Text Editor window, click the right mouse
button. Point to Build and then click Compile.
If there are errors or warnings, check that you have replaced all instances of
InFlow and OutFlow then check your model against the following full
description:
2. In the All Items pane of the Simulation Explorer, under Custom Modeling,
expand Stream Types.
3. Click Connection and drag it to a blank area of the flowsheet.
4. Move the pointer over the blue input arrow for the tank B1.
The name of the port, In1, is displayed.
5. Click the port In1.
A stream is placed with the automatically defined name S1.
6. In the All Items pane, drag another Connection stream onto the flowsheet,
release the mouse button over the blue arrow coming out of the tank B1 and
then click the arrow going into the tank B2.
7. Join B2 out to B3 in.
8. Drag the Connection stream again onto the blue arrow out of B3 and click an
empty region of the flowsheet.
Your flowsheet should now contain the three tanks and four streams.
The flowsheet is now complete, but you need to fix some of the variables.
3. Compile the model again. The simulation is now square, shown by the
specification indicator, which has changed to a green square.
4. Click the Run button to perform another steady-state run.
5. In the Run Complete dialog box, click OK, and then close the Text Editor.
2. With the run mode as Dynamic, you see that the specification indicator has
changed to a green square with a red arrow on top, like this:
The specification indicator on the Status bar changes and the dynamic simulation
is now ready to run.
Defining a Plot
Before you run the dynamic simulation, define a plot so that you can view
simulation results. To do this:
1. From the Tools menu, click New Plot.
2. In the Enter Flowsheet Plot Name, type a name and click OK.
An empty plot appears.
7. Close the AllVariables table for B1 and open those for B2 and B3.
8. In the same way, add the Levels from tanks B2 and B3 to the plot, then close
these table windows.
Note You can change the appearance of the plot by double-clicking the main
plot area. A Plot Control Properties dialog box appears:
3. In the Create Task dialog box, type a name for the task, for example, Task1,
and click OK.
4. In the Text Editor, add text so your task looks like this:
You can change the value of a Fixed variable during a dynamic simulation, for
example, the feed flow rate. To do this:
1. Open the AllVariables table for B1.
If you want to run the simulation again from time zero, click Pause then click
Rewind on the Run Control toolbar.
In the Rewind dialog box, select the initialization point to rewind to, then click
Rewind and run the simulation again.
❖ ❖ ❖ ❖