Professional Documents
Culture Documents
Extensions
1
© 2004 AspenTech - All Rights Reserved.
EA1000.32.02
02 Extensions
2 Extensions
Introduction
One of the most powerful features of HYSYS is that users are able to
create and add their own unit operations to the program through
extensibility. In this module, the power of this feature will be
demonstrated, however the process required to build an extension in
HYSYS will not be covered.
With unit operation extensions users can create models for unit
operations that are not available in HYSYS. Unit operations can also be
used to perform calculations, much like the depressuring utility also
examined in this course.
The Virtual Stream extension to be used in this module allows the user
to transfer information from one stream to another, creating a “Live
Link” between them.
Learning Objectives
By completing this module, you will learn how to:
2
Extensions 3
Registering Extensions
Before extensions can be used in a simulation, they must be registered.
Figure 1
3
4 Extensions
Figure 2
Figure 3
4
Extensions 5
Figure 4
If an extension that has just been registered does not show in the list of
available extensions, then restart HYSYS.
5
6 Extensions
Workshop
In this workshop, you will add the Virtual Stream extension to various
Don’t worry if you haven’t
built the Turbo Expander streams in the Turbo Expander case built in the Getting Started module.
plant case. You can use the
“ADV1_GettingStarted_Soln The files for this extension (VirtualStream.dll, VirtualStream.edf and
.hsc” file.
Virtual Stream User Guide.doc) have been supplied to you on the course
disk. In addition to this extension, there are several others available on
the AspenTech support website (support.aspentech.com).
It is not important where on the hard disk you copy these files, but
remember the location as you will need to find these files in order to
register them with the system.
2. Once the files have been copied to the hard disk, move to the
Extensions tab of the Preferences view. (Accessed through the Tools
menu in the main menu bar.)
3. Click the Register an Extension button, and use the file explorer to
locate the VirtualStream.dll file. Opening this file will register it with
the system and allow you to use it in the simulation.
4. Return to the PFD of the simulation and add the extension using the
procedure described previously.
5. On the extension’s Connections tab, use the drop-down list to select
the Reference stream as Feed Gas, and for the Target Stream create a
new stream called Feed Gas VS.
6
Extensions 7
If the Feed Gas stream doesn't appear in the Reference stream drop-
down then the Allow Multiple Stream Connections option must be set
in the preferences (Tools-Preferences menu).
Figure 5
7
8 Extensions
Figure 6
This means that stream Feed Gas VS automatically maintains the same
Pressure, Molar flow, and composition as the Feed Gas stream, but will
always have a vapour fraction of 0. In this way, the temperature of Feed
Gas VS is always the bubble point of stream Feed Gas.
Challenge
Connect to the web and investigate the additional extensions available
within the Sample Macros and Extensions section of the Knowledgebase
on the AspenTech support web page at http:\\support.aspentech.com.
In order to access the Knowledgebase you will need to have previously
registered and obtained a login ID.
These can be downloaded and registered in exactly the same way as the
Virtual Stream extension.