1.2.1 getting started_3

Upload: mohamed-refaat

Post on 06-Apr-2018

219 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/3/2019 1.2.1 Getting Started_3

    1/28

    Getting Started 1

    1

    Getting Started

    2000 AEA Technology plc - All Rights Reserved.Chem 1_3.pdf

  • 8/3/2019 1.2.1 Getting Started_3

    2/28

    2 Getting Started

    2

    WorkshopThe Getting Started module introduces you to some of the basic

    concepts necessary for creating simulations in HYSYS. Some of the

    things you will learn from this module are:

    Methods for moving through different environments

    Selecting property packages and components

    Adding streams

    Attaching utilities

    You will use HYSYS to define three streams. You will learn how to

    determine the properties of these streams by using the Property Table

    utility.

    Learning ObjectivesOnce you have completed this section, you will be able to:

    Define a Fluid Package (Property Package and Components)

    Add Streams Understand Flash Calculations

    Attach Stream Utilities

    Customize the Workbook

  • 8/3/2019 1.2.1 Getting Started_3

    3/28

    Getting Started 3

    3

    Building the SimulationThe 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, interaction parameters, reactions, tabular data,

    hypothetical components, 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 separate entityfor use 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 is a property view that allows you to

    create and manipulate every Fluid Package in the simulation.

    Whenever you begin a New Case, HYSYS places you at this location.

    The opening tab of the Simulation Basis Manager, Fluid Pkgs, contains

    the list of current Fluid Package definitions. You can use multiple Fluid

    Packages within one simulation by assigning them to differentflowsheets and linking the flowsheets together.

  • 8/3/2019 1.2.1 Getting Started_3

    4/28

    4 Getting Started

    4

    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 EnterBasis

    Environmentbutton from the button bar.

    Basis Environment button

  • 8/3/2019 1.2.1 Getting Started_3

    5/28

    Getting Started 5

    5

    Defining the Simulation Basis1. Start a new case by selecting theNew Casebutton.

    2. Create a Fluid Package by selecting theAddbutton from theSimulation Basis Manager.

    3. Click theActivity Modelradio button and choose NRTL as theProperty Package.

    4. Change the Name from the default Basis-1 to Stripper. Do this byclicking in the "Name" cell, and typing the new name. Hit the

    key when you are finished.5. Switch to the Components tab. From this tab, you add

    components to your case.

    New Case button

  • 8/3/2019 1.2.1 Getting Started_3

    6/28

    6 Getting Started

    6

    You can select components for your simulation using several different

    methods:

    Note: You can add a range of components by highlighting the entire

    range and pressing theAdd Purebutton.

    To Use Do This

    Match Cell 1. Select one of the three nameformats, SimName, Full Name/Synonym, or Formulabyselecting the correspondingradio 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 ishighlighted either:

    Press the key

    Press the Add Purebutton

    Double click on the component toadd it to your simulation.

    Component List 1. Using the scroll bar for themain component list, scrollthrough the list until you findthe desired component.

    2. To add the component either:

    Press the key

    Press the Add Purebutton

    Double click on the component toadd it to your simulation

    Family Filter 1. Ensure the Match cell is empty,and press the FamilyFilterbutton.

    2. Select the desired family from

    the Family Filter 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 Add Purebutton

    Double click on the component toadd it to your simulation

  • 8/3/2019 1.2.1 Getting Started_3

    7/28

    Getting Started 7

    7

    5. Select the library components Chloroform, Toluene, Ethanol,H2O, Oxygen and Nitrogen.

    6. Go to the Binary Coeffs tab. Press the Unknowns Onlybutton toestimate missing coefficients. View the Aij, Bij and ij matrices byselecting the corresponding radio button. The Aij matrix is shownbelow:

    To view the Bijorijcoefficients, click theappropriate radio button intheCoefficient Matrix to Viewgroup.

  • 8/3/2019 1.2.1 Getting Started_3

    8/28

    8 Getting Started

    8

    Exporting Fluid PackagesHYSYS 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 use in multiple cases.

    1. On the Fluid Pkgs tab highlight the Stripper Fluid Package.

    2. Press the Exportbutton.

    3. Enter a unique name (Stripper) for the Fluid Package and pressthe OKbutton.

    Now that the Fluid Package is now fully defined, you are ready to move

    on and start building the simulation. Press the Enter Simulation

    Environmentbutton or the Interactive Simulation Environment

    button in the Button Bar.

    HYSYS will automatically addthe file extension .fpk when itsaves your Fluid Package. Thefile is automatically saved tothe\HYSYS\pakssubdirectory.

  • 8/3/2019 1.2.1 Getting Started_3

    9/28

    Getting Started 9

    9

    Selecting a Unit SetIn HYSYS, it is possible to change the unit set used to display the

    different variables.

    1. From the Tools menu, choose Preferences.

    2. Switch to theVariables tab, and go to the Units page.

    3. If it is not already selected, select the desired unit set. Both Fieldand SI units will be given in this course; you are free to use

    whichever is more comfortable for you.4. Close the window to return to the simulation.

  • 8/3/2019 1.2.1 Getting Started_3

    10/28

    10 Getting Started

    10

    Changing Units for a SpecificationTo change the units for a specification, simply type the numerical value

    of the specification and press the space bar or click on the unit drop

    down box. Choose the units for the value you are providing. HYSYS will

    convert the units back to the default units.

    You can scroll through theunit list by starting to type theunits, by using the arrow keysor by using the scroll bar.

  • 8/3/2019 1.2.1 Getting Started_3

    11/28

    Getting Started 11

    11

    Adding 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.

    In this exercise, you will add three streams to represent the feeds to anair stripper. Each stream will be added using a different method of

    installation.

    To Use This Do This

    Menu Bar SelectAdd Stream from the

    Flowsheet menu.

    Or

    Press 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 Object Palette from the

    Flowsheet menu or press to

    open the Object Palette. Double

    click on the stream icon.

  • 8/3/2019 1.2.1 Getting Started_3

    12/28

    12 Getting Started

    12

    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 is displayed:

    You can change the stream name by simply typing in a new name in the

    Stream Name box.

    2. Change the stream name to Eth rich.

  • 8/3/2019 1.2.1 Getting Started_3

    13/28

    Getting Started 13

    13

    Entering Stream Compositions

    There are two different methods to enter stream compositions from the

    Worksheet tab.

    3. Double click on the Mass Flowcell. The Input Composition forStream view displays.

    4. We want to define the composition of this stream by specifyingthe mass flows for each component. By default, HYSYS has

    chosen the basis for defining the composition as mass fraction.Press the Basisbutton and select the Mass Flowsradio button inthe Composition Basis group. You are now able to enter the datain the desired format.

    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 LiqVolFlow cellto enter volume fractions.

    The Input Composition for Stream

    dialog is shown.

    Composition page Press the Editbutton.

    The Input Composition for Stream

    dialog is shown.

  • 8/3/2019 1.2.1 Getting Started_3

    14/28

    14 Getting Started

    14

    5. Enter the following compositions:

    6. Press the OKbutton when all the mass flows have been entered.

    7. Close the Stream Property view.

    For This Component Enter This Mass Flow, kg/h (lb/hr)

    Chloroform 2.5 (5.0)

    Toluene 0

    Ethanol 300 (600)

    H2O 100 000 (200, 000)

    Oxygen 0

    Nitrogen 0

    Note: If there are values, either enter 0 or presstheNormalizebutton.

  • 8/3/2019 1.2.1 Getting Started_3

    15/28

    Getting Started 15

    15

    Adding a Stream from the WorkbookTo open or display the Workbook, press the Workbookbutton on the

    Button Bar.

    1. Enter the stream name, Tol rich in the **New** cell.

    2. Enter the following component mass flow rates. You will have tochange the basis again.

    3. Close the Stream Property view.

    Workbook button

    For This Component Enter This Mass Flow, kg/h (lb/hr)

    Chloroform 1.5 (3.0)

    Toluene 140 (280)

    Ethanol 0

    H2O 100 000 (200, 000)

    Oxygen 0

    Nitrogen 0

  • 8/3/2019 1.2.1 Getting Started_3

    16/28

    16 Getting Started

    16

    Adding a Stream from the Object Palette

    1. If the Object Palette is not open on the Desktop, press the hot key to open it.

    2. Double Click on the Material Stream button. The StreamProperty view displays.

    3. Change the name of the stream to Strip Air.

    4. Double click on the Molar Flowcell and enter the followingstream compositions:

    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.

    Form the File menu select Save As to save your case in adifferent location or with a different name.

    Press the Save button on the button bar to save your case withthe same name.

    Material Stream button (Blue)

    For This Component Enter This Mole Fraction

    Chloroform 0

    Toluene 0

    Ethanol 0

    H2O 0

    Oxygen 0.21

    Nitrogen 0.79

    Save your case often to avoidlosing information.

    Save button

    Save your case!

  • 8/3/2019 1.2.1 Getting Started_3

    17/28

    Getting Started 17

    17

    Flash CalculationsHYSYS can perform five types of flash calculations on streams: P-T,

    Vf-P, Vf-T, P-Molar Enthalpy and T-Molar Enthalpy. Once the

    composition of the stream and two of either temperature, pressure,

    vapour fraction or molar enthalpy are known, HYSYS performs a flash

    calculation on the stream, calculating the other two parameters.

    With the flash capabilities of HYSYS, it is possible to perform dew andbubble point calculations. By specifying a vapour fraction of1 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 of0 and either pressure or temperature

    must be entered.

    1. Perform a T-P flash calculation on the streamTol Rich. Set the pressure to 101.3 kPa (14.7 psia) andthe temperature to 90C (200F). What is the vapourfraction? __________

    2. Perform a dew point calculation on the streamTol Rich. Set the pressure to 101.3 kPa (14.7 psia).

    What is the dew point temperature? __________3. Perform a bubble point calculation on the stream

    Tol Rich. Set the pressure to 101.3 kPa (14.7 psia).What is the bubble point temperature? __________

    Only 2 of these 4 streamparameters, Vapour Fraction,Temperature, PressureorMolar Enthalpycan besupplied.

    If you try to supply temperature, pressure and vapourfraction, a consistency error can occur.

  • 8/3/2019 1.2.1 Getting Started_3

    18/28

    18 Getting Started

    18

    Attaching UtilitiesThe utilities available in HYSYS are a set of useful tools that interact

    with your process, providing additional information or analysis of

    streams or operations. Once installed, the utility becomes part of the

    Flowsheet, automatically calculating when conditions change in the

    stream or operation to which it is attached.

    As with the majority of objects in HYSYS, there are a number of ways to

    attach utilities to streams.

    To Use the Do this

    Menu Bar Select Utilities from the Tools menu.or

    Press the hot key.

    TheAvailable Utilities window

    displays.

    Stream Property View Open the stream property view.

    Switch to theAttachments tab and

    choose the Utilities page. Press the

    Createbutton.

    TheAvailable Utilities window

    displays.

  • 8/3/2019 1.2.1 Getting Started_3

    19/28

    Getting Started 19

    19

    Adding a Utility from the Stream PropertyView

    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 up to two user specified

    independent variable ranges or values.

    A Property Table utility will be added to the stream Tol rich from the

    stream propertyview.

    1. Use the hot key combination to open theAvailableUtilities window.

    2. Select Property Table from the menu on the right and press theAdd Utilitybutton. The Property Table view displays.

    3. Press the Select Stream button and select the stream Tol rich.

    4. Press the OKbutton to return to the Ind. Prop tab.

    5. By default, Temperature is selected asVariable 1, and Pressure isselected asVariable 2.

    6. Change the Lower Bound of the Temperature to 85 oC (185 oF)and change the Upper Bound to 100 oC (212 oF). Set the numberon increments to 5.

    7. For the Pressure variable, use the drop down menu to change itsmode to State, and enter the following values: 90 kPa(13 psia),100 kPa(14.5 psia), 101.3 kPa(14.7 psia), 110 kPa(16.0 psia), and120 kPa(17.4 psia).

    8. Switch to the Dep. Prop page.

  • 8/3/2019 1.2.1 Getting Started_3

    20/28

    20 Getting Started

    20

    It is possible to choose multiple dependent properties for any of the

    single phases (liquid, aqueous or vapour) or for the bulk phase.

    9. Select the Bulkradio button and highlight a cell in the Propertymatrix.

    10. Choose Mass Densityfrom the drop down list.

    11. Select the Liquidradio button, and select theViscosityproperty.

    12. Select theAqueousradio button, and select theAq. Mass Fractionproperty.

    13. Select the Vapourradio button, and select theVapour MassFraction property.

    14. Press the Calculate cell to generate the Property Table.

  • 8/3/2019 1.2.1 Getting Started_3

    21/28

    Getting Started 21

    21

    You can examine the Property Table results in either graphical or

    tabular formats on the Performance tab.

    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 temperatures and pressures to the streams:

    Add a flowrate of18 000 kg/h(39, 700 lb/hr) to the stream Strip Air.

    Examining the ResultsThe Stream Property View

    Within HYSYS, it is possible to view the properties of the individual

    phases for any stream.

    1. Open the property view for the stream Tol Rich.

    2. On theWorksheet tab, Conditions page, add a Temperaturevalue of90C (195F) and supply a pressure of101.3 kPa (14.7psia).

    3. Move the mouse cursor to the left or right side of the view until

    the cursor changes to resizing arrows.4. Press and hold the left mouse button and drag the edge of the

    view until all the phases can be seen.

    Pressure, kPa (psia) Temp., C (F)

    Eth rich 101 kPa (14.7 psia) 15C (60F)

    Tol rich 101 kPa (14.7 psia) 15C (60F)

    Strip Air 101 kPa (14.7 psia) 25C (77F)

  • 8/3/2019 1.2.1 Getting Started_3

    22/28

    22 Getting Started

    22

    The pages Properties and Composition also show data for the

    individual phases.

  • 8/3/2019 1.2.1 Getting Started_3

    23/28

    Getting Started 23

    23

    Customizing the WorkbookHYSYS 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 which are

    displayed.

    In this exercise a new Workbook tab containing stream properties,Vap

    Frac on a Mass Basis, Molecular Weight, Mass Density and Mass

    Enthalpy, will be added.

    1. Open the Workbook by pressing the Workbookbutton on the

    button bar.

    2. From theWorkbookmenu, select Setup. The Setup windowdisplays.

    3. Under theWorkbook Tabs group, press theAdd button, and inthe view which appears, select +Stream and press OK.

    4. A new Workbook tab, Streams 2, will be listed in theWorkbookTabs group. Ensure that this new tab is highlighted.

    5. Highlight the Name cell in the Tab Contents group, and changethe name to Other Prop.

    6. In theVariables group, press the Deletebutton until all thedefault variables are removed.

    7. Click theAddbutton to view the list of variables grouped underthe Select Variable(s) For Main page.

    8. From theVariables list, selectVap Frac on a Mass Basis and clickOK.

    Workbook button

  • 8/3/2019 1.2.1 Getting Started_3

    24/28

    24 Getting Started

    24

    9. Repeat 7 and 8 for Molecular Weight, Mass DensityandMass Enthalpy.

    10. Close this view to return to the Workbook.

    The Workbook now contains the tab Other Prop which shows the

    vapour fraction on a mass basis, the molecular weight, the mass density

    and the mass enthalpy for all the components for the three streams.

  • 8/3/2019 1.2.1 Getting Started_3

    25/28

    Getting Started 25

    25

    Printing Stream and WorkbookDatasheets

    In HYSYS you have the ability to print datasheets for Streams,

    Operations and Workbooks.

    Printing the Workbook Datasheet

    1. Open the Workbook.

    2. Right click (Object Inspect) the Workbook title bar. The PrintDatasheet or Open Page pop-up menu appears.

    3. Select Print Datasheet and the Select Datablock(s) to Print forWorkbookwindow is displayed.

    4. You can choose to print or preview any of the available datasheets(press the + collapse button to view all available datasheets).Clicking on the box will activate or deactivate the datasheet forprinting or previewing.

    To print all streams:

    Customize the Workbook to

    contain all the stream info

    you want.

    Print the Workbook

    Datasheet.

  • 8/3/2019 1.2.1 Getting Started_3

    26/28

    26 Getting Started

    26

    Printing an Individual Stream DatasheetTo print the datasheet for an individual Stream, Object Inspect the

    stream property view title bar and follow the same procedure as with

    the Workbook.

    Save your case!

  • 8/3/2019 1.2.1 Getting Started_3

    27/28

    Getting Started 27

    27

    Exercise 1

    A. Use the Workbook to find the following values:

    1. The dew point temperature of stream Eth Rich at 101 kPa(14.7 psia). __________

    2. The bubble point pressure of stream Tol rich at 15C (60 F).__________

    3. The dew point pressure of stream Strip Air at 25C (77 F).__________

    4. The bubble point temperature of stream Strip Air at 101 kPa(14.7 psia). __________

    B. Perform the following flash calculations:

    1. The vapour fraction of stream Eth rich at 15C (60 F) and 101 kPa(14.7 psia). __________

    2. The temperature of stream Tol rich at 101 kPa (14.7 psia) and 0.5vapour fraction. __________

    3. What is the molar fraction of toluene in vapour phase for streamTol rich under the same condition? __________

    4. The mass density of stream Strip Air at 25 C (77 F) and 101 kPa(14.7 psia). __________

    5. The mass fraction of toluene in the aqueous phase of the stream"Tol rich" at 15 C (60 F) and 101.3 kPa (14.7 psia). __________

    Exercise 2

    The stream Eth Rich is stored in a 200 m3 (7000 ft3) vessel. Assuming the

    storage vessel has a 45 minute hold-up and the vessel is at atmospheric

    conditions (1 atm, 25C, 77 F):

    What is the composition of the vapor space? _________

    How full is the storage vessel? __________

  • 8/3/2019 1.2.1 Getting Started_3

    28/28

    28 Getting Started

    28