Download - Introduction to HYSYS Steady State
-
7/30/2019 Introduction to HYSYS Steady State
1/22
Introduction to HYSYS 1
1
Introduction to HYSYSSteady State
1999 AEA Technology plc - All Rights Reserved.DS+PC 1.pdf
-
7/30/2019 Introduction to HYSYS Steady State
2/22
2 Steady State
2
IntroductionWelcome to the first workshop of the Dynamic Simulation and Process
Controls course. This course will teach you how to create dynamic
simulations in HYSYS, how to tune controllers, and how to evaluate
different control schemes.
Notice that the title of this module contains the words: "Steady State."
Anyone with some experience with process simulators, such as HYSYS,
knows that the steady state and dynamic worlds have always been
separate and distinct. HYSYS is one of the few simulators on the market
that connects these two worlds and creates an integrated modelling
environment.
Because HYSYS links the steady state and dynamic worlds, you must be
familiar with creating steady state simulations before you begin
creating dynamic ones.
Learning Objectives
This module will teach you how to create steady state simulations inHYSYS. The topics that are covered here are:
Creating a Fluid Package in the Basis Manager.
Adding and defining Streams to the simulation.
Adding Unit Operations to the simulation.
Connecting the operations and streams.
PrerequisitesThis course is written for clients who have little to no experience with
HYSYS. As such, there are no prerequisites for this course. All that is
required is an open mind and a willingness to learn.
-
7/30/2019 Introduction to HYSYS Steady State
3/22
Steady State 3
3
Building the Steady State SimulationThe first step in creating a HYSYS simulation is to open the HYSYS
program. Find the programs name using the Start menu and open the
program.
The opening screen should look something like this:
A new HYSYS case can be created by pressing theNew Casebutton in
the toolbar, by selectingNew ---> Case from the File menu, or by
pressing the hot key combination .TheNew Casebutton
-
7/30/2019 Introduction to HYSYS Steady State
4/22
4 Steady State
4
The Basis EnvironmentOnce the new case is created you are automatically placed in the Basis
Environment. The Basis Environment is where you must define the
"fluid package" used by the simulation. The "fluid package" contains all
of the components used in the simulation, as well as, a property
package that will define the components behaviour.
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 three 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 a completely defined entity foruse in any simulation.
Multiple Fluid Packages can be used in the same simulation.However, they are all defined inside the common BasisManager.
The Simulation Basis Manager view for a new case looks like this:
The Simulation Basis Manager is a property view that allows you tocreate and manipulate every Fluid Package in the simulation.
Whenever you open a New Case, HYSYS places you directly at this
location. The opening tab of the Simulation Basis Manager, Fluid Pkgs,
contains the list of current Fluid Packages/Flowsheet associations and
provides access to the Fluid Package definition. You can use multiple
-
7/30/2019 Introduction to HYSYS Steady State
5/22
Steady State 5
5
Fluid Packages within one simulation by assigning them to different
flowsheets and linking the flowsheets together.
Inside the Current Fluid Packages group, there are a number of
buttons:
View - this is only active when a Fluid Package exists in thecase. It allows you to view the property view for the selectedFluid Package.
Add - allows you to create and install a Fluid Package into thesimulation.
Delete - removes the selected Fluid Package from thesimulation.
Copy - makes a copy of the selected Fluid Package.
Everything is identical in the copied version, except the name.This is useful for modifying fluid packages.
Import - allows you to import a predefined Fluid Package fromdisk. Fluid Packages have the file extension .fpk.
Export - allows you to export the selected Fluid Package to adisk. The exported Fluid Package can be retrieved into anothercase, by using the Import function.
You can use the hot key to re-enter the Simulation Basis
Manager from any point in the simulation or choose the Basis
Environmentbutton from the button bar.
You should have this view on your display now. Before we can begin to
create the simulation, we need to create the fluid package that will
define the simulation.
TheBasis Environmentbutton
-
7/30/2019 Introduction to HYSYS Steady State
6/22
6 Steady State
6
Press theAddbutton to create a new fluid package. A new view will
appear that looks like this:
We need to select an appropriate property package. The property
package determines the behaviour of the components in the
simulation, and choosing the wrong one can have serious
consequences in a HYSYS simulation. For all of the workshops in this
course, we will use the Peng Robinson (PR) Equation of State (EOS)
property package. This package is a general purpose package that
works very well for most hydrocarbon VLE systems.
Choose the Peng Robinson (PR) EOS property package by selecting itfrom the list of available packages. The size of the list can be reduced by
using the package filter radio buttons. Select the EOS radio button, and
then find the Peng Robinson (PR) EOS property package in the list.
Once the property package is chosen, we need to select the
components that we will use in our simulation. All components that
you plan on using in your simulation must be selected at this time. If a
component is not selected now, it will not be available in the
Simulation Environment. Of course, you can always return to the Basis
Environment at any time and select new components as needed.
Components are added by moving to the Components tab, selecting
the desired components and adding them to the fluid package.
Use the Property Package filterto reduce the time needed tofind the right propertypackage.
-
7/30/2019 Introduction to HYSYS Steady State
7/22
Steady State 7
7
For this workshop we need the following 12 components:
N2 - Nitrogen
H2S - Hydrogen Sulphide
CO2 - Carbon Dioxide
C1 - Methane
C2 - Ethane
C3 - Propane
i-C4 - i-Butane
n-C4 - n-Butane
i-C5 - i-Pentane
n-C5 - n-Pentane
C6 - n-Hexane
H2O - Water
For the individual components (N2, H2S, etc.) the easiest way to select
them is to partially type their formula in the Match cell. This decreases
the size of the list that you will have to scroll through to find the desired
component. The easiest way to select the C1-C6 components is to leave
the Match cell empty and use the mouse to select the eight desired
components.
Once the components are selected, pressing the Add Purebutton will
add them to the fluid package.
Once all 12 components in the list above are entered the view should
look something like this:
-
7/30/2019 Introduction to HYSYS Steady State
8/22
8 Steady State
8
You can select components for your simulation using several different
methods.
Note that the order of the components shown here will be the same
throughout the entire simulation. It will be easier for you if the order ofyour list is the same as the order shown here. Press the Sort Listbutton
to change the order of components, if required.
To Use... Do This...
Match Cell 1. Select one of the three name formats,SimName, Full Name/Synonym, or Formulaby selecting the corresponding radio button.
2. Click on the Match cell and enter the name of
the component. As you start to type, the list
will change to match what you have entered.
3. Once the desired component is highlighted
either:
Press the key
Press the Add Purebutton Double click on the component to add it to
your simulation.
Component List 1. Using the scroll bar for the main componentlist, scroll through the list until you find thedesired component.
2. To add the component either:
Press the key
Press the Add Purebutton.
Double click on the component to add it toyour simulation
Family Filter 1. Ensure the Match cell is empty, and press theFamily Filter... button.
2. Select the desired family from the Family Filter
(i.e. Hydrocarbons) to display only that type of
component.
3. Use either of the two previous methods to then
select the desired component.
4. To add the component either:
Press the key
Press the Addbutton
Double click on the component to add it toyour simulation.
You can add a range ofcomponents by highlightingthe entire range and pressingtheAdd Purebutton.
-
7/30/2019 Introduction to HYSYS Steady State
9/22
Steady State 9
9
The Simulation EnvironmentWe have now specified the property package and the components that
we will use in our simulation. Our fluid package is completely defined.
Close this view to return to the Simulation Basis Manager. Press the
Enter Simulation Environmentbutton to enter the Simulation
Environment.
The HYSYS Simulation Environment is the most common environment
for HYSYS users. It is in this environment that the simulation is
constructed.
Remember that while in the Basis Environment, we defined the fluid
package that we will use to create the simulation. The fluid packageacts as the foundation that supports the streams and unit operations
that we will add in the Simulation Environment.
There are three important tasks that are commonly done in the
Simulation Environment:
Adding and defining streams.
Adding and defining unit operations.
Connecting streams to unit operations.
Once you have a solid understanding of these three tasks, you will be
able to create simulations of varying complexity.
The general procedures for each of these three tasks will be given here.
If you are already familiar with any of these procedures, you may skip
ahead to an appropriate section. However, the instructor will go
through each section at a pace that suits the entire class.
There are two main views in the Simulation Environment:
PFD - A graphical representation of the process. This view canbe accessed at any time by pressing the PFD button in the toolbar.
Workbook - A tabular listing of all streams and unit operationsin the simulation. This view is useful for entering data, andcomparing stream properties; it can be accessed at any time by
pressing the Workbook button in the tool bar.
As well, all streams and unit operations have their own property view
that can be accessed by double-clicking on the object. This means that
there are two main ways to define the properties of a stream or
operation, either use the Workbook view or double-click the object in
the PFD and enter the data on the objects property view.
ThePFDbutton
\
TheWorkbookbutton.
-
7/30/2019 Introduction to HYSYS Steady State
10/22
10 Steady State
10
Adding and Defining StreamsIn HYSYS, there are two types of streams, Material and Energy. Material
streams have a composition and parameters such as temperature,
pressure and flowrates. They are used to represent Process Streams.
Energy streams have only one parameter, a Heat Flow. They are used to
represent the Duty supplied to or by a Unit Operation.
There are a variety of ways to add streams in HYSYS.
The method that you choose is completely your decision; you are
encouraged to try all three methods and choose the one that you like
best. All three methods will produce the same result.
To Use This... Do This...
Menu Bar SelectAdd Stream from the Flowsheet menu.
orPress the hot key.
The Stream property view will open
Workbook Open the Workbook and go to the Material Streams
tab. Type a stream name into the **New** cell.
Object Palette Select Open Object Palette from the Flowsheet
menu.
or
Press the hot key to open the Object Palette.
Double click on the stream icon. Blue is Material
and Red is Energy.
-
7/30/2019 Introduction to HYSYS Steady State
11/22
Steady State 11
11
Adding a Stream from the Menu BarThis procedure describes how to add a stream using the hot key.
1. Press the hot key. The stream property view appears. If thestream property view is not displayed, double click on the newlycreated stream to bring up the property view:
2. Change the stream name to To Gas Plant. Position the cursor onthe cell to the right of "Stream Name" and click on the cell. Then
simply type the name in and press the key.
-
7/30/2019 Introduction to HYSYS Steady State
12/22
12 Steady State
12
Entering Stream Compositions
There are two different methods to enter stream compositions.
3. If the Input Composition for Stream dialog is not already open,double click on the Molar Flowcell.
4. Ensure that the Mole Fractions radio button in the CompositionBasis group is chosen.
When Using the... Do this...
Conditions page Double click on the Molar Flow cell to enter
mole fractions.
or
Double click on the Mass Flow cell to enter mass
fractions.
or
Double click on the Liquid Volume Flow cell to
enter volume fractions.
The Input Composition for Stream dialog is shown.
Composition page Press the Editbutton.
The Input Composition for Stream dialog is shown.
-
7/30/2019 Introduction to HYSYS Steady State
13/22
Steady State 13
13
5. Enter the following compositions
6. Press the OKbutton when all the mole fractions have beenentered.
7. Three more pieces of information must be entered before thestream is fully defined. On the Conditions page of the StreamProperty View(or in theWorkbook) enter the followinginformation:
8. The stream should now be fully defined, and its colour willchange to dark blue on the PFD. This signifies that HYSYS hascalculated the remaining properties of the stream.
For this Component... Enter this Mole Fraction...
N2 0.0066
H2S 0.0003
CO2 0.0003
C1 0.7576
C2 0.1709
C3 0.0413
i-C4 0.0068
n-C4 0.0101
i-C5 0.0028
n-C5 0.0027
C6 0.0006
H2O 0.0000
If there are valueseither enter 0 or press theNormalizebutton. The streamis not fully defined until allcomposition values have anumerical input.
In This Cell... Enter...
Temperature, oC (oF) 0 (32)
Pressure, kPa (psia) 6200 (900)
Molar Flow, kgmole/h (lbmole/hr) 1440 (3200)
-
7/30/2019 Introduction to HYSYS Steady State
14/22
14 Steady State
14
9. Answer the following questions based on the Stream Propertyview. The dew point temperature can be found by deleting thespecified temperature and setting the vapour fraction to 1. Asimilar procedure can be used to find the pressure value.
10. Return the streams properties to their original values, see page13.
11. Close the Stream property view.
Saving your Case
You can use one of several different methods to save a case in HYSYS.
From the File menu select Save to save your case with thesame name.
From the File menu select Save As to save your case in adifferent location or with a different name.
Press the Savebutton on the Button Bar to save your case with
the same name.
What is the vapour fraction of the "To Gas Plant" stream?____________
What is the dew point temperature of this stream at thespecified pressure? ___________
At what pressure will liquid start to form if the temperaturestays at 0oC (32oF)? ____________
Save your case often to avoidlosing information.
Save Button
Save your case!
-
7/30/2019 Introduction to HYSYS Steady State
15/22
Steady State 15
15
Adding and Defining Unit OperationsUnit operations in HYSYS simulations are meant model actual unit
operations that can be found in typical process plants. There are several
unit operations available to the HYSYS user, the most commonly used
unit operations include:
Separator - A two-phase separator used to separate vapourand liquid streams.
Heat Exchanger - A relatively simple model use to represent atwo sided shell and tube exchanger.
Heater/Cooler - Actually two separate operations that performthe same task. Used to represent one sided heat exchangers.
Compressor - Used to represent gas compressors in HYSYSsimulations.
Pump - Used to represent liquid pumps in HYSYS simulations.
Valve - Used to represent valves in HYSYS simulations. Theseare frequently used in dynamic simulations, but are used lessfrequently in steady state simulations.
Various Column Operations - there are several differentcolumn configurations available to the HYSYS user. These willbe covered in greater detail when they will be used in thesimulations.
Just as there are several unit operations available to the HYSYS user,
there are also several ways to add them to a simulation. Consult the
following table for more information:
To Use The... Do This...
Menu Bar SelectAdd Operation from the Flowsheet menu.
or
Press the hot key.
The UnitOps window displays.
Workbook Open the Workbook and go to the UnitOpspage,
then click theAdd UnitOpbutton.
The UnitOps window displays.
Object Palette Select Open Object Palettefrom the Flowsheet
menu or press to open the Object Palette and
double click the icon of the Unit Operation youwant to add.
PFD/Object Palette Using the right mouse button, drag n drop the icon
from the Object Palette to the PFD.
-
7/30/2019 Introduction to HYSYS Steady State
16/22
16 Steady State
16
Adding a SeparatorThe first unit operation that we encounter in the simulation that we are
trying to build is a Separator. Choose one of the methods on the
previous page, and add a separator operation to the PFD.
Once the operation is added, the Property view will appear. This view
should look like this:
On this view, enter the following information:
TheSeparatoricon in theObject Palette.
In This Cell... Enter...
Name Inlet Separator
Inlets To Gas Plant (use drop-down menu)
Vapour Outlet Inlet Sep Vap
Liquid Outlet Inlet Sep Liq
-
7/30/2019 Introduction to HYSYS Steady State
17/22
Steady State 17
17
As you enter the names of the outlet streams, HYSYS automatically
creates these streams. Once the feed stream is specified as "To Gas
Plant" HYSYS automatically connects this stream to this operation.
Once all of the information is entered as specified above, the view will
look like this:
For this unit operation, only the feed and product streams need to be
specified in order for it to solve. This is notthe case with every
operation, most operations required supplemental information like
pressure drops or duties before they are able to solve completely. This
additional information is usually specified on the Parameters page.
-
7/30/2019 Introduction to HYSYS Steady State
18/22
18 Steady State
18
Adding a Heat Exchanger
A heat exchanger is an example of an operation that requires additional
information.
Add a Heat Exchanger operation to the simulation using one of the
methods outlined on a previous page.
Enter the following information on the appropriate pages:
Move to the Specs page and press theAddbutton. Complete the view as
shown:
If you are using field units, the Spec Value will be 10 oF.
On the Specs tab, make sure that the active specifications are the Heat
Balance and the ExchSpec.
TheHeat Exchangericon inthe Object Palette.
In This Cell... Enter...
Connections page
Name Gas-Gas
Tube Side Inlet Inlet Sep Vap
Tube Side Outlet Gas to Chiller
Shell Side Inlet LTS Vap
Shell Side Outlet Sales Gas
Parameters page
Heat Exchanger Model Weighted (use drop-down menu)
Tube Side Delta P 35 kPa (5 psi)
Shell Side Delta P 5 kPa (1 psi)
The Gas-Gas heat exchanger isnow fully defined, but it cannot solve because the shell side
streams are not defined. Thisis expected and will becorrected shortly.
-
7/30/2019 Introduction to HYSYS Steady State
19/22
Steady State 19
19
Adding a Chiller
Add a Cooler operation to the simulation and specify the following
information.
This chiller can not solve because the inlet stream has not been
calculated yet.
Double click on the Gas to LTS stream in the PFD; this will bring up the
stream property view. Notice that the pressure, molar flow and
composition of this stream is known. This means that only the
temperature of this stream needs to be defined in order for HYSYS to be
able to solve it.
Enter a temperature of-20 oC (- 4 oF) into the appropriate cell. Notice
that HYSYS is able to solve this stream even though the heat exchanger
and chiller have not been solved. This is a good example of the unique
solving behaviour that HYSYS has. It is capable of passing information
though operations without needing to solve them.
In This Cell... Enter...
Connections page
Name Chiller
Inlet Gas to Chiller
Outlet Gas to LTS
Energy Stream Chiller Q
Parameters page
Delta P 35 kPa (5 psi)
TheChillericon in the ObjectPalette.
What is the vapour fraction of this stream? __________
-
7/30/2019 Introduction to HYSYS Steady State
20/22
20 Steady State
20
Completing the Simulation
The simulation is almost complete at this point. Complete the
simulation by adding another Separator operation with the following
information:
Notice that the vapour outlet from this separator is fed to the shell side
of the heat exchanger.
All operations in this simulation should now solve and the completed
PFD will look like this:
In This Cell... Enter...
Name LTS
Inlet Gas to LTS
Vapour Outlet LTS Vap
Liquid Outlet LTS Liq
Did the simulation solve completely, yes or no? ___________
What is the molar flowrate of the stream "LTS Liq"?_______
What is the temperature of the stream "Sales Gas"?__________
What is the heat flow in stream "Chiller Q"? ___________
-
7/30/2019 Introduction to HYSYS Steady State
21/22
Steady State 21
21
Congratulations, you have built a complete, solved HYSYS steady state
simulation.
You are now ready to enter the marvellous world of dynamic
simulations.
Save your case!
-
7/30/2019 Introduction to HYSYS Steady State
22/22
22 Steady State
22