Getting Started Tutorial: What You'll Learn in This Tutorial
Getting Started Tutorial: What You'll Learn in This Tutorial
In this chapter, we will walk you through the basic steps required to simulate process flow sheets within Dynsim.
Starting Dynsim
After you install the program, a Dynsim starter icon is displayed on your desktop. You may use this icon to start the program or follow the steps given below: 1. Start Dynsim by clicking on Start/ Programs/SIMSCI and selecting the Dynsim icon.
25
2. This brings up the Dynsim splash screen. Youll be prompted for a Username and Password. Use simsci for both the username and password and launch the application by clicking on Login.
New Simulation Dialog Box 2. Use ReverseFlow as the simulation name and Click OK.
26
The simulation name must not contain spaces or symbols 3. The simulation will be created in a default user directory (C:\Documents and Settings\<User Name> \My Documents\SIM4ME40\ Reverse Flow.s4m).
Default
Caution
Optional
(colorless data field) are also considered as valid and the status is indicated by . Invalid Data Any required data (red data field) or data, which is not realistic (yellow data field) in any of the cells of a DEW, is considered invalid and the status is indicated by .
Setting up a Simulation
The Dynsim interface has been designed to incorporate many of the features that are built in the PRO/II GUI. Hence, similar to a PRO/II simulation, the user can follow a series of steps to setup a simulation. They are detailed as below: 1. Define the Units of Measure (UOM). 2. Select components and define component slates. 3. Specify a thermodynamic method. 4. Configure the flow sheet objects. 5. Connect the objects through relevant streams. Once the above steps are accomplished the user will run the simulation and monitor the dynamic behavior of the process under study; specifically on how to model reverse flow through a valve. This simple example illustrates the fact the Dynsim is well equipped with a state of the art pressure-flow solver, critical for modeling more complex unit operations such a distillation columns with precision. The steps to fix up the parameters are enumerated below.
28
UOM Dialog Box 2. The user has the option to either chose from the predefined UOM list. 3. Alternatively, you have also got the flexibility to define a custom UOM by clicking on the New Slate button. Hence, for any specific class the user can define a custom unit of measure or utilize the default unit available. For this particular example we will be using the SI UOM list. Click OK once the option has been selected.
29
By default, only the most commonly used components are listed. Additional components can be exhibited by selecting a different Component Family (located above the filter box).
30
Components & Thermodynamics Slate Dialog Box Similar to PRO/II, if you wish to define a Petro component, a minimum of two physical properties among the listed parameters below must be defined: Boiling Point Density Molecular Weight
31
Defining Petro Component Properties The next stage is to define the component slates. A component slate can consist of a few select components (e.g. in the case of a cooling water stream there might only be one - water). The primary objective is that when Dynsim performs property or equilibrium calculations, for instance a drum or separator, it only needs to consider those components defined in the component slate and not all the components defined for the entire simulation. This will enable faster computational speed, especially for simulations containing a large number of components. 1. Click on the Slate tab wherein the New Component Slate box appears at the left-hand corner of the application. The screen appears as shown below.
32
Fixing up a Component Slate 2. Create a new component slate by typing PROCESS in the above box and then click the Add button. 3. Drag and drop Ethane, Ethylene, isoButane and Propane from the Selected Components list to the Components in Slate list. 4. Users have the flexibility to define as many slates as per their requirements. However, you must first define a component in the Selected Components list before it can be added to any given slate.
Since the interface applications are configured in Java, it will be possible for the user to drag and drop multiple components by selecting marginally outside the icon of one of the selected components.
33
Selection of a Thermodynamic Method 3. Choose the appropriate equation of state method as per the simulation requirements. For this particular simulation, the components selected comprise of light hydrocarbons and hence an equation of state method
Dynsim V4.1 Getting Started: An Installation and Tutorial Guide 34
such as Soave-Redlich-Kwong or Peng-Robinson would be suitable. Once the selection is made, click OK to save and Close the Component and Thermodynamic Data Entry Window.
The Icon Palette contains only a subset of the most common models present in Dynsim. If a particular unit operation is not listed on the icon palette the user is instructed to locate the same in the Types tree. 3. From the Icon Palette, select a Source and fix it on the Flow sheet. 4. Now Double Click on the source icon or Right click and select Data
Entry . This will exhibit a Data Entry window through which the user can configure the source.
35
The default action on a double click depends on the state of the flow sheet. For example, when running a simulation, double clicking on a valve brings up a slider, which allows you to manipulate the valve position. All options are always available through the right mouse click menu.
Configuring a Flow Sheet Remember that if you select the Edit option, the Object Editor Viewer (OEV) window pops-up. This window contains a comprehensive set of all the parameters associated with this model.
36
Normally it is expected that only expert users will configure models using the OEV interface. Enter the following data: Elevation: Pressure: Temperature: 6.096 m 3350 kPa 395 K
Until you select the Thermo tab and select the Process slate, the Boundary Condition tab will display all the components selected for the simulation. After you have selected the PROCESS slate and fixed SRK as the thermodynamic method, go back to the Boundary Condition tab. Enter the following data: Ethane: Ethylene: iButane: Propane: 2 3 2 4 kg-mol kg-mol kg-mol kg-mol
Now you will observe that the Process slate composition is displayed. Notice that this data is pertaining to the composition data and that you are entering values, which will be normalized to determine the stream composition. The flow is a calculated value, which is dependant on the pressure network.
37
Process Slate Composition 5. After clicking OK for the Source, Select a valve and sink and place them on the flow sheet. 6. To increase the canvas area, select the View menu, Click on Change Toolbars and choose Abbreviated. Notice that in addition to Abbreviated there are four other options under Change Toolbars. Each of these options refers to a specific user profile. 7. Administrator ensures that all Dynsims options are displayed. Operator, Instructor and Engineer configures the toolbar to suit a specific user profile. For example, an engineer might need to edit and modify a simulation. However, it might not be the case for an operator training on a particular Dynsim simulation. These options indicate that Dynsim is not limited to
Dynsim V4.1 Getting Started: An Installation and Tutorial Guide 38
engineering studies alone. Apparently, its also utilized for Operator Training Applications (OTS) in which the operator, the instructor, and the engineer use a single integrated modeling environment. 8. Next enter the following information as exhibited in the screen below for the Valve model. As in the case of the Source, the Thermo method is SRK and the component slate is Process. For the Sink model, the pressure is fixed at 200 kPa.
39
Process Stream
Heat Stream
Mechanical Stream
Electrical Stream
Connectors
In Dynsim as in Pro/II, valid port locations are highlighted in red (required) and green (optional).
40
Controlling a Simulation 3. Finally with the simulation running the user can begin to examine the dynamic behavior of the system. For example to monitor the flow rate through the valve, select a Flow Rate Indicator from the References library on the Types tree. Place this on the canvas just below the valve. When prompted for a name, enter the stream name that needs to be tracked, in this case S2. A green arrow denotes a positive flow rate in the direction specified by the stream. A red arrow denotes reverse flow.
41
Dynamic Simulation Features 4. Double click on the valve flow sheet icon. The Operate Valve window will pop-up. This allows the user to adjust the valve position using a Slider. Set the position to 100% open. Notice that the Flow Rate Initiator indicates a positive flow rate in the direction of flow specified by the user (green arrow). Under ideal conditions, you would wish to have the flexibility to modify the boundary condition of the sink (i.e. its pressure) without having to edit the parameter in the tabbed dialogue window. Dynsim allows you to drop a Slider on the canvas and link it to flow sheet parameters such as a sink pressure. Hence, in this mode you have the option to easily alter the sink pressure and see how it affects the flow though the valve.
42
5. Select a Slider from the Widgets library on the Types tree. Locate it on the canvas. Right click with the mouse and select Draw Attributes. For Point Name, select SNK1.PB, which is the name of the Sink followed by the parameter you opt to control. The Maximum /Minimum ranges for the slider are set to 5,000 and 500 kPa respectively, and the orientation is set to vertical.
43
6. Before varying this parameter (Sink Pressure Boundary) remotely, the user must first change its designation from static to dynamic. To do this highlight the Sink, right click on it and select, Edit . This exhibits the OEV interface, which allows the user to edit any variable associated with this model.
Static To Dynamic Condition Changeover 7. The user can now alter the pressure of the Sink by varying the pointer on the slider. To track the exact value of the pressure at the sink at a specific point of time, the user can select a Point from the References library on the Types tree. Locating the Point on the canvas next to the Sink, the user is prompted for a name. Now enter the name as SNK1.PB and observe that the sink pressure appears in blue. 8. Alternatively, try to induce reverse flow in the model. Start increasing the pressure at the sink (SNK1) by adjusting the position of the pointer on the vertical slider on the left hand side of the flow sheet. Remember you have already linked this slider to set the boundary pressure at the sink. The higher the pressure at the sink, the smaller the flow rate across the valve. Eventually, a point is reached where the pressure at the sink is high, that it results in reverse flow.
44
Reverse Flow in a Valve 9. To complete the demo, select a Rectangle from the Primitives library on the Types tree. Draw a rectangle around the slider, right click, select Draw Attributes and choose a fill color. To summarize, the ultimate step illustrates the flexibility available to the users to customize the flow sheet graphics according to their requirements.
45
46