Vous êtes sur la page 1sur 6

Integration of Templates 1

1
Integration of Templates
1999 AEA Technology plc - All Rights Reserved.
ADV-2 4.pdf
2 Integration of Templates
2
Workshop
In this module, you will add two prebuilt templates to the simulation.
These templates are models of refrigeration processes. By attaching
them to the simulation used throughout this course, we will be able to
determine the compressor power and cooling water duty required to
provide the calculated duty for Cooler 1.
The two templates differ in that one uses pure propane as the
refrigerant and the other uses a blend of ethylene (25% molar) and
propane. By installing both templates, we will be able to compare both
setups and determine which is better able to meet our requirements.
Learning Objectives
By completing this module, you will learn how to:
Attach templates to a simulation.
Use the multiple connections feature of HYSYS.
Use the "Show Table" command to display process information
on the PFD.
Prerequisites
Before beginning this module, you will need to have access to the
required template files (Refrig1.tpl and Refrig2.tpl). As well, you should
also have access to the flowsheet that you have been using throughout
this course.
Integration of Templates 3
3
Subflowsheets In HYSYS
The simulation cases Main Flowsheet is the location where most of the
modelling work takes place in the majority of simulations. Here, you
will add and define streams and unit operations. On the Main
Flowsheet, you can also add Subflowsheets.
Each Subflowsheet can contain its own streams and operations, as well
it can contain its own subflowsheets. One of the best features of
subflowsheets is that they can be assigned a property package that is
different than the one used in the main flowsheet. We will not use this
feature in this module, but it is important enough that it deserves to be
mentioned here.
You will be able to tell when you are in a subflowsheet because HYSYS
will display another icon in the button bar at the top of the screen. This
new icon will only be visible when you are in a subflowsheet. The icon
is called the "Return to Parent Environment" button.
There are several advantages to using subflowsheets in a simulation.
With Subflowsheets you are able to:
Assign different property packages to subflowsheets.
Divide large simulations into several smaller pieces. Simulating
an enter gas plant in one flowsheet would be time consuming
and difficult. However, if we break the plant into several key
areas and use subflowsheet to model each area, the task
becomes more manageable.
Build a key process once, and create template (a version of a
subflowsheet). This template can then be saved and read into
a number of HYSYS cases without recreating the model. In this
module, we will load two prebuilt templates into our simulation.
The Return to Parent
Environment button.
4 Integration of Templates
4
Attaching the Templates
In HYSYS there are several ways to add a template to your simulation.
In this example, we will use the Object Palette.
If the Object Palette is currently hidden, press the <F4> hot key to reveal
it. On the palette, double-click on the Subflowsheet button. From the
menu that appears, press the Read An Existing Template button.
HYSYS will now open a file explorer window that will allow you to find
the desired *.tpl file.
1. Locate the Refrig1.tpl file and select it using the file explorer.
2. Change the name of the template to C3-refrig. This template
contains the pure propane refrigerant loop. Note that you can
access the subflowsheet at this time by pressing the Subflowsheet
Environment button.
We now have to connect the streams in the main flowsheet (External
Streams) to the streams in the subflowsheet (Internal Streams). We
need to make the following connections between the flowsheets.
3. Click on the <empty> cell to the left Chill-Q and select Stage 1 Q
using the drop-down menu. Once the stream is selected, you may
notice that the name of the internal stream (Chill-Q) has changed
to match the name of the external stream (Stage 1 Q).
4. Complete the other two connections; note that because these
streams do not exist in the main flowsheet, they have to be
created. Simply type the name of the stream into the <empty>
cell to the left of the internal streams name.
The Subflowsheet icon in the
Object Palette.
External Stream Internal Stream
Stage 1 Q Chill-Q
C3-Ref-Comp-HP Comp HP
C3-Ref-Cond-Q Q-100
Integration of Templates 5
5
5. The completed interface should look something like this:
Exercise
Attach the Refrig2.tpl to the Stage 1 Q stream in the same manner. Use
appropriate names for the external streams. This template contains a
refrigeration loop that operates with a blend of ethane (25% molar) and
propane (balance).
In order to attache one stream (Stage 1 Q) to multiple operations (two
templates). The appropriate option must be selected on the
Preferences page. If HYSYS will not permit the multiple connection of
the Stage 1 Q stream and reports that "Stage 1 Q stream can not be
attached here," ask the instructor for assistance.
Multiple connections are useful when comparing different process
schemes or setups, as was done here. It is easy to compare several
processes simultaneously for different feed conditions.
6 Integration of Templates
6
Adding Information Tables
Information tables can be displayed on the PFD to show information
about streams or operations.
Right-click on the C3-Ref-Comp-HP stream in the main flowsheet and
select Show Table from the menu that appears.
By default, HYSYS will create a table that displays the name of the
object and one or more variables. For energy streams, the default
variable is Heat Flow. This can be modified by right-clicking on the
table and selecting View Properties. The Heat Flow variable can be
removed and another variable (e.g. Power) can be added by pressing
the Remove Variable and Add Variable buttons respectively.
By adding tables to all four energy streams that reference the two
flowsheets, you will end up with a collection that looks like this:
Adding tables to the PFD like this allows us to quickly compare values.
Note also that the numbers displayed in the table are linked to the
actual values. It will be updated instantaneously whenever the value of
the variable changes.

Vous aimerez peut-être aussi