0% found this document useful (0 votes)
33 views

01_GettingStarted-rev

Uploaded by

ELDE
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
33 views

01_GettingStarted-rev

Uploaded by

ELDE
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 29

Process Modeling Using HYSYS Getting Started

Getting Started

.
Process Modeling Using HYSYS Getting Started

Workshop
The Getting Started module introduces you to some of the basic
concepts necessary for creating simulations in HYSYS. You will use
HYSYS to define three gas streams to be used as feeds to a gas plant.
In addition, you will learn how to determine properties of these streams
by using the Phase Envelope and the Property Table utilities.

Learning Objectives
• Define a fluid package (property package, components,
hypotheticals)
• Add streams
• Understand flash calculations
• Attach stream utilities
• Customize the Workbook

Simulation Basis Manager


HYSYS uses the concept of the fluid package to contain all necessary
information for performing flash and physical property calculations.
This approach allows you to define all information (property
package, components, hypothetical components, interaction
parameters, reactions, tabular data, etc.) inside a single entity. There
are four key advantages to this approach:
• All associated information is defined in a single location,
allowing for easy creation and modification of the information.
• Fluid packages can be stored as completely defined entities for
use in any simulation.
• Component lists can be stored out separately from the Fluid
Packages as completely defined entities for use in any
simulation.
• Multiple Fluid Packages can be used in the same simulation.
However, they are all defined inside the common Basis
Manager.
The Simulation Basis Manager is a property view that allows you to
create and manipulate multiple fluid packages or component lists in the
simulation. The opening tab of the Simulation Basis Manager allows
for the creation of component lists, which are independent of but can
be associated with the individual fluid packages in the case.

.
Process Modeling Using HYSYS Getting Started

The first tab of the Basis Manager allows you to manage the
component list(s) used in your case. There are a number of buttons
available:

Button Description
View Allows you to access the property view for the selected Component List.
Allows you to create a Component List.
Add Note: Component Lists can be added via the Fluid Package property
view.
Delete Removes the selected Component List from the simulation.
Copy Makes a copy of the selected Component List.
Import Allows you to import a predefined Component List from disk.
Component Lists have the file extension (.cml).
Allows you to export the selected Component List to disk. The exported
Export Component List can be retrieved into another case, by using the Import
function.
Refresh Updates the pure component properties from the database.

You can use the Ctrl B hot key to re-enter the Simulation Basis
Manager from any point in the simulation or click the Basis
Environment icon from the tool bar.

.
Process Modeling Using HYSYS Getting Started

Inside the Current Fluid Packages group, there are a number of


buttons:
Basis Environment
Icon

Button Description
View This is only active when a fluid package exists in the case. It allows you to
view the property view for the selected fluid package.
Add Allows you to create and install a fluid package in the simulation.
Delete Removes the selected Fluid Package from the simulation.
Makes a copy of the selected fluid package. Everything is identical in the
Copy copied version except the name. This is useful for modifying fluid
packages.
Import Allows you to import a predefined fluid package from disk. Fluid packages
have the file extension (.fpk).
Allows you to export the selected fluid package to a disk. The exported
Export fluid package can be retrieved into another case by using the Import
function.
The Fluid Pkgs tab allows you access to the fluid packages/flowsheet
associations list as well as the fluid package definition. As with older
versions, HYSYS allows the user to use multiple fluid packages within
a single simulation by associating the fluid packages with various
flowsheets and linking the flowsheets together. However, beginning
with HYSYS version 3.0, the user no longer requires the use of
flowsheets to employ multiple fluid packages within a single
simulation. The user can now utilize the Stream Cutter operation to
incorporate multiple fluid packages into a single flowsheet.

.
Process Modeling Using HYSYS Getting Started

Defining the Simulation Basis


Add a Property Package
1. Start a new case by selecting the New Case icon.

2. Go to the Fluid Pkgs tab and create a fluid package by clicking the
New Case Add button.
icon 3. Scroll down the list and select the Peng-Robinson Equation of
State model.

4. Change the Name from the default Basis-1 to GasPlant.


5. Click the View button in the Component List Selection section of
the Set Up tab. This will allow you to add components to the
Component List that is now associated with the GasPlant fluid
package.
Add Components
You can select components for your simulation using several different
methods.
To use... Do this...
You can add a range of
components by
highlighting the entire
range and clicking the
Add Pure button.

.
Process Modeling Using HYSYS Getting Started

1. adds
Select one of the three a hydrocarbon
name class hypo
formats, SimName, Fullby default.
Name/Synonym, or Formula by selecting the corresponding
If you want to add a hypo from another class, click the Hypo Manager button
radio button. and then in the view that appears, click the View Group button.
2. 6. input
Click in the Match Select
fieldthe
andlibrary
enter thecomponents
name of the N2, H2S, CO2, C1, C2, C3, i-C4, nC4,
component. As you start
i-C5to, n-C
type,5,the
C6listand
willHchange
2O byto match each one and then clicking
clicking
what you have entered.
Match Cell Add Pure.
3. Once the desired component is highlighted, either:
4. Click the ENTER key.
5. Click the Add Pure button.
6. Double-click the component to add it to your simulation.

1. Using the scroll bar for the main component list, scroll through
the list until you find the desired component.
2. To add the component, either:
Component
List 3. Press the ENTER key.
4. Click the Add Pure button.
5. Double-click the component to add it to your simulation.

1. Ensure the Match cell is empty, and click the View Filter button.
2.
7. Click the Hypothetical menu item in the Add Component box to
Select the Use Filter checkbox to display the various family
filters. add a hypothetical component to the Fluid
Package.
Filter 3. Select the desired family (i.e., Hydrocarbons) from the list of
Family Filters to display only that type of component.
4. Use either of the two previous methods to then select the desired
component.

When you click


the
Quick Create a
Hypo Component
button, HYSYS
This will open the
Tabular Hypothetical Input,
where you can add non-
hydrocarbon class
hypotheticals.

.
Process Modeling Using HYSYS Getting Started

8. Click the Name cell type C7+.


Quick Create
a Hypo
Component
button to create
a hypothetical
component.

HYSYS always
places an “*” after a
hypo name so it can
be distinguished
from library
components.
A hypothetical
component can be
used to model non-
library
components,
defined mixtures, Since you do not know the structure of the hypothetical component and
undefined you are modeling a mixture, the Structure Builder will not be used.
mixtures, or solids. 10. Click the Critical tab. The only property supplied by the lab for the
You will be using a C7+ component is the Normal Boiling Pt. Enter a value of 110°C
hypothetical (230°F).
component to 11. Click the Estimate Unknown Props button to estimate all the
model the other properties and fully define the hypothetical component.
components in the
gas mixture heavier
than hexane.
9. In the hypo
component
view, click the
ID tab and in The minimum
the Component information required for defining a hypo is the Normal Boiling Pt or the
Molecular Weight and Ideal Liq Density.

.
Process Modeling Using HYSYS Getting Started

component C7+* view.


13. Add the hypo component to the Selected Components list by
selecting it in the Available Hypo Components list and then
clicking the Add Hypo button.
You can use the
Sort
List button to
order the
Component
List.

You will need to add components C7 and C8 to the component list in order to
view their properties. Ensure that you delete them once this exercise is
finished.
12. When the hypo
Every hypo you create is part of a Hypo Group. By default, this hypo
component has
is placed in HypoGroup1. You can add additional groups and move
been defined,
hypo components between groups. This is done on the Hypotheticals
return to the
tab of the Simulation Basis Manager.
fluid package
Compare the properties of C7+ with C7 and C8.
by closing the
hypo C7+ C7 C8

.
Process Modeling Using HYSYS Getting Started

Normal Boiling Point GasPlant fluid package.


Ideal Liquid Density
Molecular Weight

You have now


finished defining
the fluid package.
You can view the
Peng-Robinson
binary coefficients
for your selected
components by
selecting the
HYSYS will
Binary Coeffs tab
automatically add the file extension .fpk when it saves your fluid package. The file
on the Fluid is automatically saved to the
Package tab. \HYSYS\paks folder.
2. Click the Export button.
Exporting
3. Enter a unique name (GasPlant) for the fluid package and click the
Fluid Save button.
Packages
HYSYS allows
you to export
fluid packages
for use in other
simulations.
This
functionality
allows you to
create a single
common fluid
package, which
you may then
use in multiple
cases. 1. On the
Fluid Pkgs tab,
highlight the

.
Process Modeling Using HYSYS Getting Started

Now that the fluid building the simulation.


package has been
defined, you can
start building the
simulation. Click
Building the Simulation
the Enter When you build the simulation, you will:
• Select a unit set
Simulation
Environment • Add streams
button to begin • Attach utilities

Select a Unit Set


In HYSYS, it is possible to change the unit set used to display the
different variables.
1. From the Tools menu, choose Preferences.
2. Click the Variables tab.

3. Select the SI unit set.


4. Close this view to return to the simulation.

.
Process Modeling Using HYSYS Getting Started

You can scroll through


the unit list by starting to
type the units, by using
the arrow keys, or by
using the scroll bar.
Changing
Units for a
Specification
To change the units
for a specification,
simply type the
numerical value of
the specification and
press the space bar or
click the unit drop-
down list. Choose Adding Streams
the units for the In HYSYS, there are two types of streams, Material and Energy.
value you are Material streams have a composition and parameters such as
providing. HYSYS temperature, pressure, and flowrates. They are used to represent
will convert the units process streams. Energy streams have only one parameter: heat flow.
back to the default They are used to represent the duty supplied to or by a unit operation.
units.
There are a variety of ways to add streams in HYSYS.
To use
this... Do this...

From the Flowsheet menu select Add Stream. or


Press the F11 Hot Key.
Menu Bar The Stream property view opens.

Open the Workbook and go to the Material Streams tab. Type a


Workbook stream name into the **New** cell.

Object From the Flowsheet menu, select Open Object Palette or press F4 to
Palette open the Object Palette. Double-click the stream icon.

In this case, you will add three streams to represent three different gas
wells. Each stream will be added using a different method of
installation.

.
Process Modeling Using HYSYS Getting Started

Adding a Stream from the Menu Bar


To add a stream using the F11 hot key:
1. Press F11. The stream property view appears. If the stream
property view is not displayed, double-click the newly created
stream (from the PFD) to bring up the property view.

Highlight the Stream Name cell. Change the stream name by typing
in a new name:
2. Change the stream name to GasWell 1.
3. Press ENTER.

Entering Stream Compositions


There are two different pages for entering stream composition:
On this
page... Do this...

.
Process Modeling Using HYSYS Getting Started

• Double-click the Molar Flow cell to enter mole


fractions.
or
• Double-click the Mass Flow cell to enter mass
Conditions fractions.
or
• Double-click the Std Ideal Liquid Volume Flow
cell to enter volume fractions.
The Input Composition for Stream view appears.

Click the Edit button.


Composition The Input Composition for Stream view appears.

4. If the Input Composition for Stream view is not already open,


double-click the Mass Flow cell.

5. Click the Mole Fractions radio button in the Composition Basis


group to change the basis from mass to mole fractions.
6. Enter the following compositions.
composition values have a numerical input.

If there are <empty>


values either enter 0 or
click the Normalize
Workbook icon
button. The stream is not
fully defined until all For this component... Enter this mole fraction...

.
Process Modeling Using HYSYS Getting Started

N2 0.0002 n-C5 0.0130

H2S 0.0405 C6 0.0090

CO2 0.0151 H2O 0.0000

C1 0.7250 C7+ 0.0252

C2 0.0815 7. Click the OK button when all the mole fractions have been
entered.
C3 0.0455
8. Close the Stream property view.
i-C4 0.0150
Adding a Stream from the Workbook
n-C4 0.0180
To open the Workbook, click the Workbook icon on the tool bar.
i-C5 0.0120 1. Enter the stream name, GasWell 2
in the **New** cell.
2. Double-click the Molar Flow cell and enter the following
compositions:
For this component... Enter this mole fraction...

N2 0.0025

H2S 0.0237

CO2 0.0048

C1 0.6800

C2 0.1920

C3 0.0710

i-C4 0.0115

n-C4 0.0085

i-C5 0.0036

n-C5 0.0021

C6 0.0003

H2O 0.0000

C7+ 0.0000

3. Click the OK button to close the Input Composition for Stream


view.

.
Process Modeling Using HYSYS Getting Started

Adding a Stream from the Object Palette


1. If the Object Palette is not open on the Desktop, press F4 to open
it.
2. Double-click the Material Stream icon. The Stream property
view appears.

3. Change the name of the stream to GasWell 3.


4.
Double-click Molar Flow.
Material Stream icon
(Blue)
C6 0.0060

C7+ 0.0090

H2O 0.0909
Save your case
often to avoid 6.
Click OK to close the Input Composition for Stream: GasWell 3 screen.
losing
information. 7.
Click the Save icon. Enter a case name.

Save icon You can use one of several different methods to save a case in
5.
Enter the HYSYS:
following • From the File menu, select Save to save your case with the same
stream name.
compositions: • From the File menu, select Save As to save your case in a different
location
For this component... Enter this moleorfraction...
with a different name.
• Click the Save icon on the tool bar to save your case with the same
N2 name.
0.0050

H2S 0.0141

CO2 0.0205

C1 0.5664

C2 0.2545

C3 0.0145

i-C4 Only0.0041
two of these three stream parameters (Vapour Fraction, Temperature, or Pressure) can
be supplied.
n-C4 Changing Units for a Specification
0.0075

i-C5 To change
0.0038 the units for a specification, type the numerical value of the
specification and press the space bar to switch to the inline unit drop down
n-C5 0.0037

.
Process Modeling Using HYSYS Getting Started

menu. Choose the fraction are known, HYSYS performs a flash calculation on the stream,
units for the value calculating the third parameter.
you are providing.
HYSYS will
convert the units
back to the default With the flash capabilities of HYSYS, it is possible to perform dew and
units. bubble point calculations. By specifying a vapour fraction of 1.0 and either
the pressure or temperature of the stream, HYSYS will calculate the dew
temperature or pressure. To calculate the bubble temperature or pressure, a
vapour fraction of 0.0 and either pressure or temperature must be entered.

Flash
Calculation
s
HYSYS can
perform three
types of flash
calculations on
streams: P-T, Vf-P,
and Vf-T. Once the
composition of the
stream and two of
either temperature,
pressure or vapour

.
Process Modeling Using HYSYS Getting Started

____________________________________________________________________

Attaching Utilities
The utilities available in HYSYS are a set of useful tools that interact with
The Envelope can your process, providing additional information or analysis of streams or
only be calculated operations. Once installed, the utility becomes part of the flowsheet,
on a dry basis (any
water is ignored).
automatically recalculating when conditions change in the stream or
Perform a P-T flash operation to which it is attached.
calculation on the As with the majority of objects in HYSYS, there are a number of ways to
stream GasWell 2. Set attach utilities to streams:
the pressure to 7500
To use the... Do this...
kPa and the
temperature to 10°C. • From the Tools menu, select Ubtilities.
What is the vapour
or
fraction? Menu Bar
• Press CTRL U.
__________________
__________________ The Available Utilities view appears.
__________________ 1. Open the Stream property view.
______________ 2. On the Attachments tab, click the Utilities page.
Perform a dew point Stream Property View 3. Click the Create button.
calculation on the
stream GasWell 2. Set The Available Utilities view appears.
the pressure to 7500 Next, you will add a utility using each method of installation.
kPa. What is the dew
point temperature?
__________________
Adding a Utility from the Stream Property View
__________________ The Envelope utility (in the Available Utilities list) allows you to examine
__________________ relationships between selected parameters for any stream of known
______________ composition, including streams with only one component. Vapour-Liquid
Perform a bubble Envelopes may be plotted for the following variables:
point calculation on • Pressure - Temperature
the stream GasWell 2.
• Pressure - Volume
Set the pressure to
7500 • Pressure - Enthalpy
kPa. • Pressure - Entropy
What is • Temperature - Volume
the • Temperature - Enthalpy
bubble point • Temperature - Entropy
temperature?
An Envelope utility will be added to the stream Gas Well 2 from the
Stream property view.
1. Open the Stream property view by double-clicking the stream in either
the Workbook or the PFD.
2. On the Attachments tab, click Utilities.

.
Process Modeling Using HYSYS Getting Started

3.Click the Create button. The Available Utilities view appears.


4.Select Envelope. Click the Add Utility button. The Envelope
Utility view appears.
5. The Design tab shows the critical and maxima values for the envelope.
What is the critical temperature and pressure for the stream GasWell 2?
Tc_______________ Pc_______________

view the envelope.

Numerical values can be


copied from HYSYS to
Microsoft Excel using the
copy command, CTRL C,
in HYSYS, and then the
paste command, CTRL V,
in Excel.
6. Switch
to the
Perfor
mance
tab to

.
Process Modeling Using HYSYS Getting Started

7. Click the Table page to view the envelope data in a


tabular format.

Adding a Utility from the Menu Bar


The Property Table utility allows you to examine property trends over
a range of conditions in both tabular and graphical formats. The utility
calculates dependent variables for user specified independent variable
ranges or values.
A Property Table utility will be added to the stream Gas Well 2.
1. From the Tools menu select Utilities, or
press CTRL U. The Available Utilities view
appears.
2. Select Property Table.

3. Click the Add Utility button. The Property Table view appears.

4. Click the Select Stream button and select the stream GasWell 2.
5. Click the OK button to return to the Design tab.
6. In the Independent Variable section, select Pressure as the first
Independent Variable.
7. Change the mode to State, use the drop-down menu bar.
8. In the State Values matrix, enter values of 2500, 5000, 7500, and
9000 kPa. If you are using field units, the values will be 350, 700,
1050, 1400 psbia.

.
Process Modeling Using HYSYS Getting Started

9. Choose Temperature as the second Independent Variable. Ensure


the mode is set to Incremental.
10. Change the Lower and Upper Bounds to 0°C (32°F) and 100°C
(212°F) respectively. Leave the Increments at the default value of
10.

11. On the Design tab, click Dep. Prop.


12. On the Dep. Prop. page, click the Add button.
13. Choose Mass Density from the list. Click OK to accept.
14. Click the Add button again. Select the Thermal Conductivity and
click OK to accept.
15. Click the Calculate button to generate the property table.
16. Examine the property table results in either graphical or tabular
format on the Performance tab.
17. Close the Property Table.

.
Process Modeling Using HYSYS Getting Started

Analyzing the Results


Stream Property View
Within HYSYS, it is possible to view the properties of the individual
phases for any stream.
1. Open the Stream property view for GasWell 3 by double-clicking
GasWell 3 in the PFD, and view the Conditions page.
2. Add Temperature and Pressure values of -20°C (-4°F) and 5000
kPa (725 psia).
3. Move the mouse arrow to the left or right side of the view until the
arrow changes to the double-headed resizing arrows.
4. Press and hold the left mouse button and drag the edge of the view
until all the phases can be seen as shown below.

.
Process Modeling Using HYSYS Getting Started

5. Go to the Properties page. This page contains more detailed


information about the stream.

6. Close the worksheet for GasWell 3.


Customizing the Workbook
HYSYS allows you to customize the Workbook at several different
levels. You can add additional pages, change the variables which are
displayed on the current pages, or change the format of the values.
In this exercise, a new Workbook tab containing stream properties,
Cp/Cv, Heat of Vaporization, and Molar Enthalpy, will be added.
1. Open the Workbook by clicking the Workbook icon on the tool
bar.

.
Process Modeling Using HYSYS Getting Started

2. From the Workbook menu, select Setup. The Setup view appears
as shown below.
Workbook icon

3. Under the Workbook Tabs group, click the Add button. The new
Object Type view appears.

4. Select Stream and click OK.

.
Process Modeling Using HYSYS Getting Started

5. A new Workbook tab, Streams, will be listed in the Workbook Tabs


group. Ensure that this new tab is highlighted.
6. Highlight the Name cell and change the name to Other Prop.
7. In the Variables group, click the Delete button until all the default
variables are removed.
8. Click the Add button to add a new variable to the tab.
9. From the Variable list, select Cp/Cv and click OK.
10. Repeat steps #8 and #9 to add Mass Heat of Vaporization and
Molar Enthalpy as shown below.

11. Exit the view when you are done to return to the Workbook.
12. The Workbook now contains the tab Other Prop. which shows the
values of Cp/Cv, Mass Heat of Vaporization, and Molar
Enthalpy as shown below.

.
Process Modeling Using HYSYS Getting Started

operations, and Workbooks.

Printing the Workbook Datasheet


1. Open the Workbook.
To print all streams: 2. Right-click (object inspect) the Workbook title bar. The Print
• Customize the Datasheet pop-up menu appears.
Workbook to
contain all the
stream data you
want.
• Print the
Workbook Specsheet.
Printing
Stream and
Workbook
Datasheets
In HYSYS you have the
ability to print
Datasheets for streams,

.
Process Modeling Using HYSYS Getting Started

3. Select Print
Datasheet. The
Select Datablock
view appears.

4. From the list, you can choose to print or preview any of the available
datasheets.
Printing an Individual Stream Datasheet
To print the datasheet for an individual stream, object inspect the
stream property view title bar and follow the same procedure as with
the Workbook.

Finishing the Simulation


The final step in this section is to add the stream information
necessary for the case to be used in future modules.
Add the following temperature, pressure, and flowrate to the streams:
Temperature Pressure Flowrate

425 kgmole/h
GasWell 1 40°C (105°F) 4135 kPa (600 psia) (935 lbmole/hr)

375 kgmole/h
GasWell 2 45°C (113°F) 3450 kPa (500 psia) (825 lbmole/hr)

575 kgmole/h
GasWell 3 45°C (113°F) (1270 lbmole/hr)

.
Process Modeling Using HYSYS Getting Started

Exploring the Simulation


Exercise 1: Phase Behavior and Hydrate
Prediction
A. Use the Phase Envelope to find the following points:
Critical Point for GasWell 1. ___________________________________________
Cricondenbar (maximum pressure) for GasWell 1. ______________________
Bubble Point temperature for GasWell 3 at 6000 kPa. ___________________
Dew Point temperature for GasWell 1 at 4000 kPa. ______________________
GasWell 1 temperature for 50% quality at 8000 kPa. ____________________
Hydrate Formation temperature for GasWell 2 at 7500 kPa. ______________

B. Use the Workbook to find the following values:


Bubble Point temperature for GasWell 3 at 6000 kPa. ___________________
Dew Point temperature for GasWell 1 at 4000 kPa. ______________________
GasWell 1 temperature for 50% quality at 8000 kPa. ____________________

C. Use the Hydrate Formation Utility to find the hydrate formation


temperature for GasWell 1 and GasWell 2.

Stream Pressure, kPa Hydrate Temperature


(psia)
GasWell 1 5000 (725)

GasWell 1 7500 (1090)

GasWell 2 5000 (725)

GasWell 2 7500 (1090)

Challenge
The phase envelope utility is only capable of performing the flash
calculations on a dry basis, it will always ignore any water present in
the stream.
The composition of GasWell 3 contains some water. You have been
asked to perform a number of Dew and Bubble Point calculations on
the stream at various pressures. Knowing that you cannot accurately
predict these points on the Phase Envelope (because of the water) you

.
Process Modeling Using HYSYS Getting Started

start to do the calculations in the Workbook. After about 30 minutes of


doing flashes and writing down the pressure-temperature values, your
colleague comes in and tells you the wonders of the Property Table
and you are done in about five minutes.
Using your colleague's advice, set up a Property Table to generate a
Bubble Point and Dew Point curve from 100 to 10000 kPa.
Note: Make sure the temperature and pressure for the streams are as
given on the previous page.

.
Process Modeling Using HYSYS Getting Started

You might also like