Professional Documents
Culture Documents
HYSYS TUTORIALS
A. Learning Objectives:
The HYSYS edition in the labs should have the default unit set to SI units. The unit set
can be changed.
1. From the Tools menu, choose Preferences. Switch to the Variables tab and click
on Units.
2. Highlight the units you wish to work with and close the window.
We will use SI units for this tutorial and unless otherwise specified.
D. Adding a Stream
There are several ways to add a stream. We will focus on one and you may try the others
if you have time.
1. Press F11. The stream property view is displayed. Change the stream name to
Feed 1.
2. Enter the compositions of the components by selecting the Composition. Select
Edit. Click on mole fraction as a basis. Enter the following compositions and
press OK. Close the window.
The following are other ways to add a stream. Move on to Part E. Work on these after
you have completed the rest of the tutorial.
1. To open or display the workbook, press the Workbook icon on the top toolbar.
2. Enter the stream name, Feed 2 in the **New**.
1. Double click on the materials stream (blue) and change the name to Feed 3.
Enter the following compositions.
E. Flash Calculations
In this section, simple vapour-liquid equilibrium flash calculations from ChE 3D3 will be
performed. HYSYS can perform three types of flash calculations on streams: Pressure-
Temperature, Vapour fraction-Pressure and Vapour fraction-Temperature. Once the
composition of the stream and two of either T, P or vapour fraction are known, HYSYS
performs a flash calculation on the stream.
1. P-T flash. Set P = 7500 kPa and T = 10oC. The calculated vapour fraction should
be 0.9879.
2. Perform a dew pt calculation by setting P =7500 kPa and vapour fraction to 1.0.
The dew pt should be 11.43oC.
3. Perform a bubble pt calculation by setting P = 7500 kPa and vapour fraction to
0.0. The bubble pt should be –34.32oC.
The utilities available in HYSYS is a useful tool that interact with your process and
provide additional information or analysis of streams or operations.
It is possible to view the properties of the individual phases for any stream.
1. Double click on the stream, Feed 1 and enter the temperature –20oC and a
pressure of 6000 kPa. Move the cursor to the left of the view until the cursor
changes the resizing arrows.
2. Drag the edge of the view until all the phases can be seen (Feed 1, Vapour Phase,
Liquid Phase).
HYSYS will allow you to customize the workbook. You can add additional pages,
change the variables that are displayed on current pages, or change the format of the
values which are displayed.
In this exercise, a new workbook tab containing stream properties, Cp/Cv, Heat of
Vapourization and Molar Enthalpy will be added.
1. Open the workbook by pressing the Workbook icon button on the top toolbar.
2. Select Workbook and Setup from the main menu and the setup window will appear.
Under Workbook Tabs, press Add and in the view which appears select Stream+
and OK.
3. A new workbook tab, Streams will be listed in the workbook pages group.
Highlight this tab. Change the name to Other Properties.
4. In the Variables group, press the Delete button until all the default variables are
removed. Click the Add button to add a new variable to the tab.
5. From the Variables list, select Cp/Cv and click OK. Repeat by adding Heat of
Vaporization and Molar Enthalpy. Press the Close button to return to the
workbook.
In this exercise, we will take the flash calculations from Part D a step further by adding a
separator. To install a flash separator, the following steps need to be performed:
The following table shows dew and bubble points for the feed stream at different
pressures. Verify these with your case.
4. Press F12. We want a separator. Choose vessel and then separator. On the
window that pops up enter the name of your feed stream into the Inlet, and name
your vapour and liquid outlet and energy streams (ie. Vap, Liq, Q)
5. A yellow warning should appear indicating unknown duty. We will ignore duty
in this case. Select Parameters and enter 0 for the duty. A green OK should now
appear.
Refrigeration systems are commonly found in the natural gas processing and petroleum
refining industry. Refrigeration is used to cool gas to meet a hydrocarbon dewpoint
specification and to produce a marketable liquid. In this tutorial you will construct, run,
analyze and manipulate a propane refrigeration loop.
A. Learning Objectives
1. Start a new case and add the components and fluid package: propane and ethane
and Peng Robinson (Equation of State). Enter the simulation environment.
2. Install a stream. Double click on the stream and enter the following information.
Name 1
Vapour Fraction 0.0
Temperature 45oC
Basis Mole Fraction
C3 Mole Fraction 1.0
C2 Mole Fraction 0.0
Name 3
Vapour Fraction 1.0
Temperature -15 oC
4. There are a variety of ways to add unit operations in HYSYS. Last tutorial we
used F12 and the Unit Operations window to install a separator. In this case you
will add the following operations: valve, chiller, compressor, condenser. The
following are alternate ways to install a unit operation. Use the one you feel most
comfortable with. These instructions will use F12.
5. Press F12 and click on Piping Equipment. Select Valve and press the add button.
The valve property window should be displayed. For the Feed stream select 1
and for the Product stream type 2. A J-T valve is being modeled so type J-T as
the Name of the valve. Close the window.
6. The chiller operation in the loop is modeled in HYSYS using a heater operation.
The outlet of the chiller will be at its dewpoint. Press F12 and select Heat
Transfer Equipment. Select Heater and Add. In the property window name the
operation Chiller. The inlet is stream 2 and the outlet is stream 3. Name the
energy stream Chill-Q.
7. Select Parameters. Enter the values 1.50e+6 kJ/h and 5.0 kPa for the Duty and
Pressure Drop of the chiller. A green OK should appear. Close the window.
8. The compressor is used to increase the pressure of the inlet gas stream. Press F12
and select Rotating Equipment. Select Compressor and add it. On the property
view window enter the Name of the unit as Compressor the Inlet stream is 3,
Outlet stream is 4, and Energy stream as Compressor-Q.
9. Select Parameters. Enter the Adiabatic efficiency as 75%.
10. To complete the loop we will add a condenser. It is placed between the
compressor and valve and is modeled as a cooler operation. Press F12 and Heat
Transfer Equipment. Select Cooler and Add.
11. In the property view window enter the Inlet stream as 4, the Outlet stream as 1,
the Name of the unit as Condenser and the Energy stream as Condenser-Q.
12. Select Parameters and enter the Pressure Drop: 30 kPa.
13. If your PFD diagram appears to be small you can zoom in on the PFD by
selecting the magnify glass icon and drawing a box around your PFD.
HYSYS allows users to view properties and tables and print information for the PFD,
unit operations and streams. Try these exercises to get accustomed to these options.
1. For the PFD, right click the mouse and select Add a Workbook Table. Streams
should be highlighted and click on Select. Material and energy data for all
streams should be displayed in the table on the PFD. You can remove the table
by selecting the table, right click the mouse and select Hide.
2. Add a table for stream 4. Select stream 4 and right click on the mouse. Select
Show Table from the menu. You can remove the table in the same manner as
above.
3. Add a table for the valve. Select the valve using the mouse. Right click on the
mouse and select Show table from the menu.
Each workbook has a unit operations page by default that displays all the unit operation
and their connections in the simulation. You can add additional pages for specific unit
operations to the workbook.
1. Open the workbook. In the Menu bar, select Workbook and then Setup.
2. Highlight Unit Ops and press the Add button in the workbook pages group. From
the New Object Type view, double click on Unit Operations and then select
Compressor. Click Ok. A new page, Compressors, containing only compressor
information is added to the workbook.
Save your base case using File, Save, Case. After manipulating variables of the base case
for Question 1, you may want to re-open the base case and use it for Question 2.
1. In reality, a plant would not have a pure propane refrigeration cycle. There will
always be a small fraction of impurities. Suppose the plant has a 96/4 (mole %)
propane/ethane blend. What effect, if any, does this new composition have on the
refrigeration loop? Use the base case for comparison.
E. Printing
You can print results through the menu bar, from the PFD and using the report manager.
You do not have to print any tables or PFD for this tutorial. Read these procedures only
to become familiar with the printing procedures.
1. To print from the menu bar select File, Print. All worksheets will be printed.
2. To print your PFD, right click on the PFD and select Print PFD.
3. You can also print worksheets for specific streams or unit operations. Select the
unit operation or stream you wish to have information printed. Right click the
mouse and select Print Datasheet. You can view a Preview of the printout as
well.
4. To print using the report manager, select Tools, Reports. Press Create to add a
new report and open the Report Builder. Press Insert Datasheet to add specsheets
to your report. You can add single or multiple unit operations specsheets to the
report.
A. Learning Objectives
1. Start a new case. Enter the following components: N2, H2S, CO2, C1, C2, C3, i-
C4, n-C4, i-C5, n-C5, C6, H2O and a hypothetical component C7+. For the
hypothetical component, choose 110oC for its normal boiling point and select
Estimate Unknown Parameters to determine all other parameters. Use Peng-
Robinson EOS as a fluid package. Enter the simulation environment.
2. Add a stream. Fill in the following values:
3. Add a separator. Select F12, Vessels and Separator. Enter the following
information:
4. Add a heat exchanger. Select F12, Heat Transfer Equipment and Heat
Exchanger. Enter the following information.
Weighted – The heating curves are broken into intervals, which then exchange energy
individually. A log mean temperature difference (LMTD) and UA are calculated to each
interval in the heat curve and summed to calculate the overall exchanger UA. The
weighted method is available only for counter current exchangers.
Endpoint – A single LMTD and UA are calculated from the inlet and outlet conditions.
Can be used for simple problems where there is no phase change and Cp is relatively
constant.
5. Switch to the Parameters tab. Under Heat Exchanger Model, select Exchanger
Design Weighted. Under Individual Heat Curve Details, change the number of
intervals to 10 for both streams. Under Exchanger Parameters enter a Tubeside
Delta P of 30 kPa and Shellside Delta P of 5 kPa.
In order to solve the heat exchanger, unknown parameters are manipulated by the solver.
Each parameter specification will reduce the number of degrees of freedom by one. Two
specifications are needed for this exchanger:
Heat Balance = 0 : this is a duty error specification and is needed to ensure that the heat
equation balances. HYSYS will supply this specification by default.
Min Approach = 5oC – this is the minimum temperature difference between the hot and
cold stream.
6. On the Design tab, select Specs. Deactivate the UA specification. Click on the
Active check box for the specification (the X means the specification is active)
7. To add a specification, press the Add button. In the display window enter the
following. Close the window once entering the information.
The balance operation provides a general-purpose heat and material balance facility.
There are different balances available in HYSYS:
Mole: an overall balance is performed where only the molar flow of each component is
conserved. Outlet streams will have the same molar flow rate and composition as
the inlet stream, but will contain no vapour fraction, temperature or pressure
values.
Mass: Same as above but only the mass flow is conserved.
Heat: Same as above but only the heat flow is conserved.
Mole and Heat: the mole and heat flow are conserved.
Look at the parameters for Sales Gas. The stream parameters are calculated so
there is no way to force the stream to calculate a dewpoint temperature at 7000 kPa.
Adding a mole balance allows you to create a second steam with the same molar
flowrate and composition but no vapour fraction, temperature or pressure.
11. Select F12, Logicals and Balance. Add the following information:
Select the Parameters tab. For the Balance Type, click on Mole.
12. Specify a pressure of 7000 kPa for the stream HC Dewpoint. Set the vapour
fraction to calculate the dew point temperature.
How can we change the dewpoint in the simulation (Hint: Keep reading on)?
The adjust operation is a logical operation. It will vary the value of one stream
variable (independent variable) to meet a required value or specification (dependent
variable) in another stream. The current HC dewpoint does not meet the
requirement of –15oC.
13. Select F12, Logicals and Adjust. On the display window, press Select Var. in the
Adjusted Variable group. From the Object list select Gas to LTS. From the
Variable list, select Temperature. Press Ok to accept the variable and return to
the Adjust property view.
14. Press the Select Var.. button in the Target Variable group. Select HC Dewpoint
Temperature as the target variable. Enter the value of –15oC in the Specified
Target Value box.
15. Switch to the Parameters tab. When considering step sizes, use larger rather then
smaller sizes. The Secant method works best once the solution has been
bracketed by using a larger step size and a converged solution will be found
faster. For this case leave parameters at the default values.
16. Go back to the Connections tab and press Start to begin calculations. To view the
progress of the Adjust, go to the Monitor tab.
The case study tool allows you to monitor the steady state response of key process
variables to changes in your process. You select independent variables to change and
dependent variables to monitor. HYSYS varies the independent variables one at a time
and the dependent variables are calculated. Instead of using the Adjust to find the LTS
feed temperature required to achieve the hydrocarbon dewpoint, you can use the Case
Study to examine a range of LTS temperatures and dewpoints.
17. Open the Adjust view. Check the ignore box in the bottom right hand corner.
This turns off the Adjust function which is required for the Case Study function to
be used.
18. From the Tools menu select Databook. On the Variables tab, press the Insert
button. Select the Gas to LTS Temperature as the first variable. Press the Add
button to add the variable.
What Gas to LTS temperature range will satisfy the HC Dewpoint specification
(-15oC)?
F. Bonus (5 Marks)
What is the log mean temperature difference (LMTD) for the exchanger with an
minimum approach temperature of 5oC? Double Click on the heat exchanger to find this
information.
Suppose now the available UA for the Gas-Gas exchanger is only 1.5 x 105 kJ/oC h.
Make the necessary modifications to your exchanger design to achieve this UA. What is
the affect on your LMTD and minimum approach temperature? Describe the steps you
took to solve this problem in HYSYS.
In this tutorial, a typical application of the recycle operation will be used. Feed gas enters the
compressor station at 40oC and 1725 kPa. The gas is to be delivered at 7500 kPa and it is to
be compressed in two stages. Each stage consists of a knockout drum, a compressor and a
cooler. Liquids from each separator are recycled back to the previous stage, after the
pressure has been reduced.
A. Learning Objectives
• Using the Recycle operation in HYSYS
1. Start a new case and select the Peng Robinson EOS with the following components:
N2, CO2, C1, C2, C3, i-C4, n-C4, i-C5, n-C5, C6.
2. Add a material stream with the following information:
3. Install a mixer (F12, Piping Equipment, Mixer) with the following information:
On the Design tab select Parameters and select the pressure assignment as Equalize All.
Select the Dynamics tab and enter an adiabatic efficiency of 75%. In the worksheet enter a
pressure of 3450 kPa for stream Stage 1 Out.
In the Design tab select Parameters and enter a pressure drop of 0 kPa. In the worksheet
enter a temperature of 50oC for stream Cooler 1 Out .
9. Add a Valve (F12, Piping Equipment, Valve) with the following information:
In the worksheet enter a pressure of 1725 kPa for stream LD1 Out.
Enter an adiabatic efficiency of 75%. In the worksheet enter a pressure of 7500 kPa for the
stream Stage 2 Out.
Enter a pressure drop of 0 kPa. In the worksheet enter a Cooler 2 Out temperature of 50oC.
In the worksheet enter a pressure of 3450 kPa for stream LD2 Out.
• HYSYS uses the conditions of the assumed stream and solves the flowsheet up to the
calculated stream.
• HYSYS then compares the values of the calculated stream to the assumed stream.
• Based on the difference between these values, HYSYS modifies the values in the
calculated stream and passes the modified values to the assumed stream.
• The calculation process iterates until the values of the calculated stream match those of in
the assumed stream within specified tolerances (Sequential Modular).
2. Examine the streams LD1 Out and LD2 Out. Fill in the table of Values:
15. Click on the Parameters tab. HYSYS allows you to set the convergence criteria or
tolerance for each of the recycle variables. Smaller tolerances result in a tighter
convergence requirement. Leave everything at their default.
16. In the Parameters tab select Numerical. This page contains the options for the two
types of recycles, Nested and Simultaneous. In this case, use Nested Recycles. This
page also displays the convergence information as the calculations are performed
(maximum iterations, acceleration method, number of iterations). Use the Wegstein
acceleration method for this case.
Nested: this type of recycle gets called whenever it is encountered during calculations. Use
this type if you have a single recycle or if you have multiple recycles which are not
connected.
Simultaneous: all recycles set at simultaneous will be called at the same time. Use this
option if your flowsheet has multiple inter-connected recycles.
The recycle worksheet page displays the inlet and outlet stream information. In
this case the inlet and outlet streams should have the same values. This is because
before we installed the recycle, the inlet stream was already calculated by HYSYS.
18. The final step to solve the flowsheet is to connect the recycle outlets as inlets to
Mixer 1 and Mixer 2. Double click on Mixer 1 and add RCY-1 Out as a feed.
Repeat with Mixer 2 with RCY-2 Out as a feed. Look at the Worksheet tab for each
recycle. The flowrates should be identical for the inlets and outlets. There may be
small differences (see bonus question).
BONUS (2 marks):
The vapour fractions will be slightly different in the recycle inlet and outlet for one
or both streams, but should be identical. What can be done to achieve identical
vapour fractions?
Recovery of natural gas liquids (NGL) from natural gas is a common procedure in the gas
processing industry. Recovery is done to produce transportable gas free from heavier
hydrocarbons, meet sales gas specification and to maximize liquid recovery (when liquid
products are more valuable than gas). HYSYS can model diffrent column configurations.
In this NGL plant the following three columns will be modeled: De-Methanizer, De-
Ethanizer and De-Propanizer.
A. Learning Objectives
• Add columns (Absorber and distillation)
• Add extra specifications to columns
1. Start a new case using Peng Robinson EOS as a fluid package and adding
components: N2, CO2, C1, C2…..C8 and enter the simulation.
2. Add a material stream with the following data:
The De-Methanizer is modeled a reboiled absorber operation with two feed streams
and an energy feed stream which represents a side heater on the column.
5. Add the reboiled absorber (F12, Prebuilt Columns, Reboiled Absorber). Enter the
following column information:
For the optional feed streams make sure the two streams are being fed to the correct
column stage. Select Next.
6. Enter a Top Stage Pressure estimate of 2275 kPa and Reboiler Pressure of 2310 kPa
and select Next. Enter a temperature estimate for the Top Stage as -88oC and
Reboiler temperature estimate of 27 oC. Select Next. No information is supplied for
the Boilup Ratio so select Done.
7. HYSYS will open up the column property view. Select the Design tab and Monitor.
Activate the Ovhd Prod Rate and specify a value of 1338 kgmol/h. Deactivate the
Btms Prod Rate and Boilup Ratio if they are active. This should give zero degrees
of freedom. Select Run to converge the column. If there is no convergence, ask the
TA.
It is not always practical to have flow rate specifications. These specifications can result
in columns which cannot be converged or produce streams with undesirable properties.
An alternative approach is to specify either component fractions or component recoveries
in the column product streams.
10. Select Monitor from the Design tab. The column shows zero degrees of freedom
even though you just added another specification. This is due to the fact that the
specification was added as an estimate, not as an active specification. Deactivate the
Ovhd Prod Rate and activate the Component Fraction of methane. Once the column
has converged you can view the results in the Performance or Worksheet tab.
11. Install a pump (F12, Rotating Equipment, Pump). The pump is used to move the
De-Methanizer bottom product to the De-Ethanizer. Enter the following
information:
In the worksheet, enter a pressure of 2792 kPa for stream DC2 Feed.
12. Install a distallation column (F12, Prebuilt Columns, Distillation) and enter the
following information.
13. In the Design tab, select Specs. Press the Add button and select Component Ratio
from the list of specifications. Enter the following information on the display
window which appears.
14. Select Monitor and deactivate the Ovhd Vap Rate and activate C2/C3 specification.
15. Add a valve (F12, Piping Equipment, Valve). A valve is required to reduce the
pressure of the stream DC2 Btm before it enters the De-Propanizer. Enter the
following information:
Enter the following pressures, temperature estimates and specifications and run the
column:
17. Create two new Component Fraction specifications for the column:
Specification 1:
Specification 2:
18. Deactivate the Distillate Rate and Reflux Ratio specification and activate the iC4
and nC4 and C3 specification.
Optional use of different Fluid Packages- HYSYS allows you to specify a unique fluid
package for the column sub-flowsheet. This may be useful in instances when a different
fluid package is better suited for the column or column does not use all the components in
the main flowsheet and by decreasing the number of components you may speed up
convergence.
Isolation of Column Solver- The column sub-flowsheet allows you to make changes and
focus on the column without recalculation of entire flowsheet.
The column sub-flowsheet can be accessed by pressing the Column Environment button
on the Column Property View. You can return to the main environment by pressing the
Parent Environment button.
In this example, a stabilization scheme is used to separate an oil and gas mixture into a
stabilized oil and saleable gas. This approach is used in many gas plants where liquid
production is small and does not warrant a full distillation column. A simple three-stage
separation with heating between each stage is used. The object of the exercise is to select
the let-down pressure and temperatures such that the products revenue less the utilities
cost is maximized. A special tool in HYSYS, the optimizer, will be used to find the
optimal operating conditions.
A. Learning Objectives
1. Start a new case using Peng Robinson EOS as a fluid package and add
components C1,C2….C9.
2. Modify the unit set. For this case the units for molar flow are in m3/d_gas, instead
of kgmol/h and units for liquid volume flow are m3/d rather then m3/h. From the
Tools menu select Preferences and go to the Variables tab. Select the SI unit set
as the default. Click on the Clone button. Rename the cloned set to Optimizer.
Move the cursor to the Flow cell. Select m3/d_gas from the drop down menu.
Move the cursor to the Liquid Volume Flow cell and select m3/d.
3. Add a material stream with the following information:
Heater 1
Heater 3
Separator 1
Separator 2
Separator 3
Compressor 1
The vapour pressure is the pressure of a confined vapour in equilibrium with its liquid at
a specified temperature. It is a measure of a liquid’s volatility. Vapour pressure of
gasoline and other volatile petroleum products is commonly measured as a Reid Vapour
Pressure (RVP). RVP is useful in predicting seasonal gasoline performance (high
volatility is needed in winter, lower volatility in summer), as well as the tendencies of
gasolines and other volatile petroleum products toward evaporative loss and fire hazard.
9. The Reid Vapour Pressure (RVP) of the stream Liquid Product should be
approximately 96.5 kPa to satisfy the pipeline criterion. Create a utility by
selecting Tools and Utility. The RVP for a stream is located in the Cold
Properties utility.
1. What is the current RVP for stream Liquid Product?
C. The Optimizer
C. The Optimizer
HYSYS contains a multi-variable steady state optimizer. Once your flowsheet has been
built and a converged solution has been obtained, you can use the optimizer to find the
operating conditions which minimize or maximize an objective function. The optimizer
contains a spreadsheet for defining the objective function as well as any constraints. The
following are some important terminology when dealing with an optimization problem.
Constraint Functions: these are inequality or equality functions that are defined in the
spreadsheet. In solving the objective function, the optimizer must meet these constraint
specifications.
In this case we want to maximize profit while achieving a RVP of Liquid Product less
then 96.5 kPa. The revenues from the plant are the Gas Product and Liquid Product.
The associated operating costs are the steam costs for each heater plus the compression
costs for each compressor.
4. Which variables can we change to affect the compression cost (remember the
compressor outlet pressure is fixed)?
The optimizer has its own spreadsheet for defining the objective and constraint functions.
Primary variables may be imported and function defined within the optimizer
spreadsheet.
11. Select the Spreadsheet button on the optimizer view to open the spreadsheet. On
the Parameters tab, increase the number of row form 10 to 15. Make sure your
units set is Optimizer not SI. Move to the Spreadsheet tab.
12. HYSYS allows you to import variables from the simulation into the spreadsheet.
The following variables need to be imported into the spreadsheet. Select the
appropriate cell, right-click on the mouse and choose Import Variable. Select the
appropriate variable. In the spreadsheet you may want to write the variable name
in the next cell beside the value.
13. In cells D7, D8 and D9, calculate the Gas Revenue, Oil Revenue and Total
Revenue. Watch your units. To write a formula in a cell you do not have to type
the = sign first. Here are the functions you need to know for this case with an
example of what to type in a cell.
14. Other functions are available by selecting the Functions Help button. The wrong
units will be displayed when each value is calculated. To make these values
unitless go to Variable Type and scroll down to SG.
15. In cells D12, D13, calculate the Compression and steam costs. In cell D14
calculate your Net Revenue (Profit).
16. The Function tab contains two groups, the objective function and the constraint
functions. Close the spreadsheet window and return to the optimizer window.
Select the Functions tab. Select the objective function cell (D14) and select
maximize. For the constraint function select the Add button. For the LHS cell
select cell B1 (current RVP). Select < for the condition. Select cell B2 (RVP
Specification) for the RHS cell. Leave the penalty function as is.
17. Select the Parameters tab. This is used to select the optimization scheme. Select
SQP (Sequential Quadratic Programming). Use the defaults for tolerance and
number of iterations.
18. Move to the Monitor tab and press Start to begin the optimization.
D. Bonus ( 3 Marks)
The pressure of the Stage 3 Vap has been decreased to 70 kPa which is less than
atmospheric. This is not a desired condition for the inlet of a compressor. The inlet of
the second compressor, Comp 2, cannot be less then 125 kPa. What is the maximum
profit that can be obtained with this additional constraint. Explain how you solved this
problem in HYSYS.