Dynsim Training Tutorials1 4 PDF
Dynsim Training Tutorials1 4 PDF
DYNSIM 5.1
Obj
Objecti
ectiv
ve: Ill
Illus
usttrate
rate the
the con
conffigur
iguration
ation of a simple
simple flows
flowsheet
heet to examin
examinee rever
reverse
se fl
flow across a
valve.
Not
Note: Ther
Theree are
are four
four U er Profile roles under Change Toolbars. Admi istrator role allows full
access to all Dynsim capabilities whereas Operator, Instructor, nd Engineer roles have
differen
rent permissions use of the toolbar, e.g. an Engineer role can edit and modify a
simulation and an Operator role cannot. The Operator role is used or the Operator Training
Tr aining
Simulators (OTS) program use a single integrated modeling enviro ment.
The
The UOM
UOM icon
icon is deno
denott d usin
using
ga rule
rulerr icon.
con. A stan
standa
dard
rd set
set of pred
predee ined UOM lists are
available for use with D nsim.
nsim. To use a custo
custom m UOM,
UOM, crea
create
te a New UO Slate and then
refer
efereence an existing U M and then modify the units as needed.
Highlight the ressure parameter, and double click kPa. It will pen Change Unit-of-
Measure wind w
Click Custom radio button, select
select the pressure new
new pressure uni as kPag, and click
Change. Note that check marks appear on the UOMs changed.
Tip: A component slate contai s all or a subset of the Selected Components list, e.g., in the case
of a cooling water stream there may only be one component i.e. water. s a result, when
Dynsim calculates, for ex mple, the enthalpy of a particular stream at a particular time step,
it only needs to consider those components defined in the component late resulting in
faster calculation speeds. This is important for large simulation models containing large
numbers of components.
Click on the Slate tab a nd create a New Component Slate called PROC SS and click
Add. Multi select all c mponents from the Selected Components list, Drag and drop
Ethane, Ethylene, Propane and IsoButane to the PROCESS Component Slate list.
Click on the Method tab and create a New Method Slate called RK and click Add.
Expand the Th rmodynamic Data tree. Right click on Equilibrium, Enthalpy, Entropy
and Density an select Soave-Redlich-Kwong Equation of State for the property
method. For this simulation, the components selected consist of light hydrocarbons and
therefore an equation of state method such as SRK or PR is app opriate.
Tip: Alternatively, select the Types tab on the bottom left hand corner of the screen and contains
the same list of the model libraries that the Icon Palette contai s. The Types tree also
includes graphical libraries for widgets, primitives, and references that are not on the Icon
Palette.
From the Icon alette, click to select a Source, move the mouse to flowsheet canvas, and
then click to drop it on the flowsheet. Do the same with a Valve and a Sink.
Double click o the source icon or right click and select Data Entry to bring up a
Data Entry Wi dow (DEW) to configure the source.
Note: If you select the Edit ption, the Object Editor Viewer (OEV) pops-up. This window
contains a super set of all he parameters associated with this Model for advanced users.
Enter the following data: Pressure to 3550 kPag, and Temperature to 395 K.
Enter the component c mposition data: Ethylene to 3 kg-mol, Ethane to 2 kg-mol,
Propane to 4 kg-mol, a d IsoButane to 2 kg-mol. Note: the molar comp sition will be
normalized to 1.
Click the Thermo Tab nd note that the Thermo method is SRK and the omponent slate
is Process.
Click OK.
Used for connecting models from the base equipment library and
Process Stream
represents compositional streams.
Used for connecting utility exchangers to models that can have a duty
Heat Stream
associated with them, e.g., distillation column a d separator etc.
Used for linking a signal variable to the input of a controller and the
Connectors
output of a controller to a final control element, .g., valve.
The flowsheet is ready to run, click the start button , to load and start the simulation in the
frozen state. To run the simulati n, click on the Resume button .
Once the simulation up and running, test the dynamic behavior of the system as f llows:
Select the Flow Rate Indicator from the References library on the Types tab to monitor
the flow rate through the valve
Drop the Flow Rate In icator below the valve and enter the stream nam 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.
Double click on the valve flowsheet icon to open the Valve faceplate an adjust the
valve position using th slider. Set the position to 100% open and notice that the Flow
Rate Indicator shows a positive flow rate in the direction of flow specifi d by the user
(green arrow).
Select a Slider from the Widgets library on the Types tab and drop it onto the flowsheet.
Right click and select Draw Attributes. For Point Name type SNK1.PB, which is the
name of the Si k followed by the parameter we wish to control.
The Min/Max anges for the slider are set to 500 and 5000 kPa respectively, and the
orientation is s t to vertical. Set the width and height to 100 and 300.
Before varying this par meter (Sink Pressure Boundary) remotely, cha ge its designation from
STATIC to DYNA IC .
Highlight the Sink, right click and select Edit. This brings up the Object Editor
Viewer (OEV) interface
Change the Point Class for the parameter PB under the Boundary Conditions to
DYNAMIC and click Apply and OK.
Note: STATIC points are model parameters, which are normally fixed parameters for the
simulation and represent hysical dimensions such as valve Cv, drum dia eter, and so on
and cannot change during a simulation. DYNAMIC points are temperatures, pressures, and
flows that change during t e simulation.
Objective: Illustrates how to setup a simple flowsheet with a very basic control scheme. At the
end of this section, the flowshe t should look similar to the image below, with a source feeding
into a flash drum and a PI co troller to maintain the level in the drum at fixed value by
adjusting the valve position.
Launch Dynsim, and type username and password as SimSci and SimSci.
Click File\Open and select the previous simulation file ReverseFlow.s4 . to open the
simulation
Click File\Save As …, and give a new name LevelControl and save the ile.
Click the UOM icon and make sure to select EngSI UOM created in the Tutorial 1.
Close the UOM windo by clicking OK.
Click to open the Components and Thermodynamics window. Add ew components
Methane, Propane, and n-Butane under the Library Tab.
Select the Slate Tab an create new slate called NATURALGAS , which contains
Methane, Ethane, Propane and n-Butane.
Click the Method Tab; and select SRK thermodynamic slate created pre iously.
Select the Lasso key and draw a box around the primitive rectangle object. Right
click and selec the Delete from the menu. Repeat the procedure to delete Slide also.
Click on the stream S2 to highlight it, then place your mouse pointer on the black square
that covers the connection between S2 and SNK1, Disconnect ill appear. Click on the
square and dra the stream away from SNK1, and then disconn ct it from SNK1.
Move SNK1 to the top right hand corner of the flowsheet canva .
Connect the models using process streams as shown in the figure below:
Right click on he source SRC1 and select the Data Entry . Click on the Thermo tab,
change the Co ponent Slate from Process to NaturalGas, and select External phase as
two phases.
Click on the B sic tab and enter the following data
n-Butane 0.1
Valve Coefficient 75 Cv
Calculate Critical Flow Check
Critical flow Coefficient XT 0.7
Time to Open Valve 5 sec
Time to Close Valve 5 sec
Thermo Method SRK
Component Slate NaturalGas
Right click on the sink SNK2 and select the Data Entry and set the boundary pressure
to 100 kPag
Right click on the valv LV1 and select the Data Entry enter the followi g details:
Valve Coefficient 50 Cv
Time to Open Valve 5 sec
Time to Close Valve 5 sec
Thermo Method Slate SRK
Component Slate NaturalGas
Click the Types tab an the Controls Library and select a PID controller model. Lay it
down on the flowsheet canvas; name it LC1. Click OK.
Note: Always click and drag the connector in the direction of data flow, i.e. from the vessel to the
controller.
If Dynsim cannot deter ine the parameters automatically because there may be more
than one, then define them manually using Parameter Assignment wind w that pops up.
Select the Process Variable from the Inputs node of controller LC1 and select Level of
liquid phase from the alculated Values node of the drum L1.
Link the controller LC1output to the valve LV1 using Default Connector and drag a
connector stream from the controller to the valve. In this case, controller parameter is
the Output , and the val e parameter is the Open Command under the Ex ernal Inputs,
which are linked automatically.
Right click on he controller LC1 and select Data Entry. Spe ify the Action of
controller to Direct (PV-SP). Provide High limit on input to 3. m and Low limit on
input to 0.0 m. On the Connections tab, note that V1.L has alrea y been entered as the
process variable. In the Set Point section of the connections tab, leave the Set point
parameter reference equal to zero.
Click OK.
Note: Note the controller faceplate will only appear during simulation m de. When the simulation
is shutdown, double clicking on the controller, brings up DEW for the model.
Click on the icon rends, and drop it on the flowsheet canvas. Any point can be
typed into the point cell or selected using the Instances tab drilling down to the point of
interest and clicking th Add button.
Examine the behavior f the system when V1 is depressurized. Add the rum pressure,
liquid level, metal tem erature, and flash and fluid temperature to the chart for
monitoring. Click Apply once to save the changes.
Deselect the check marks under the Auto column and set Ymin and Yma as shown in
the following picture.
Click OK and enter the Trend Name as well as the Flowsheet name with which to
associate the trend as f llows:
When the system is stable, double click on the valve PV1 (if yo closed the faceplate)
and open it full 100%.
Observe the point references on the Depressurizing Trend
Note: Model changes ar uploaded without reloading the simulation by c licking the and then
click the Resume utton to start again.
Wait for the si ulation to reach steady state conditions, and the save an initial
condition snap hot or IC by clicking on the Snapshot butto on the tool bar and
name the IC St ady State.
Click Shutdown button, save, and close the simulation. This workshop answer will
be required for next tutorial.
Objective: Set up and record scenarios, scenarios capture the flowsheet changes ith time.
After the simulation has loaded, the IC Summary icon becomes acti e. Click on IC
Summary icon to bring up the IC SteadyState previously saved in Tutorial 2.
Isolate the flash drum y closing all three valves (i.e. the inlet and two outlet valves).
Continue to run the si ulation without changing anything for a minute f simulation
time.
The Depressuring trend located in the Instances tab under the FS tab, double click to
open it.
Display the Scenario S mmary Window by clicking on the scenario icon. Click on
the button.
Open the valve PV1 on the vapor outlet line from the drum slowly and atch how the
trends change as the vessel depressurizes down to atmospheric pressure.
Create Scenarios manu lly using a custom scripting language or record scenario as one
would record a macro i Microsoft Excel. Clicking the record scenario utton changes
the icon to . lick on the Stop Recording button to stop scena io recording or
click the button to pause scenario recording.
Pause the simulation o ce the flow rates are steady and then close the v lves to isolate
the drum.
Click on “Manual” button to override the controller and manually close the valve by
dragging the slider to zero.
Hit the resume key and watch as the valves change color, going from green to
yellow to red. llow the simulation to run for a minute of simul tion time with all the
valves closed. ring up the Depressuring trend to examine the pressure, temperature and
liquid level in the drum.
Step "
With the drum isolated and the imulation running, open PV1, the valve on the vapor outlet from
the drum. Watch how the trends change as the valve moves from fully closed to f lly open.
Dynsim will automatically bring up the script of the scenario just r ecorded which can be modified
by editing the script itsel f.
Note to compare changes in metal and fluid temperature in the drum use he same Ymin and
Ymax values for V1.TM and V1.Flash.T.
Step %
Having saved the two scenarios they can be run at any time during the si ulation by clicking on
the scenario summ ry icon, highlight the scenario and hit the “Run” key on the Scenario
Summary window.
Dynsim freezes the simulation a d notifies the user with a pop-up window at the nd of the
scenario run.
Objective: This tutorial looks at how to add a pump and attach a utility exchanger to the drum in
the existing simulation. When y u are finished, the model should look something like this, refer
to this schematic for point references and flow indicator locations.
Step 3
Allow the simulation to reach steady state and then create a sna shot called “SS” by
clicking the “Camera” icon on the Snapshot pane.
Display the sn pshot summary window, by clicking on the Initi l Conditions Icon
(Snapshots are also called Initial Conditions) to see that the snapshot has been
saved.
Step $
Connect the controller y dragging the Default Connector from V1 to P 1 and connect
PC1.PV to V1.P. You an find V1.P under the “Calculated Values” nod .
Drag the Default Conn ctor from PC1 to PV1which will connect the PV1.Op to the
PC1.Out automatically.
Step %
Press LF to load your odel changes.
Resume the simulation and change make the Setpoint of PC1= 5000 kP .
Save a snapshot when t he pressure lines out at 5000 kPa.
Step &
Add a Pump between t e Drum V1 and Valve LV1 to the flowsheet
Step )
Press LF to load your model changes. Resume simulation and make the Setpoint of PC1
= 5000 kPa.
Save a snapshot when the pressure steadies out at 5000 kPa.
Step ,
Add a separate flow path for the utility exchanger: Source SRC , Valve XV2, Utility
Heat Exchanger E1 (Heat Stream type) and Sink SNK3.
Step 1
Drag a heat str am from the E1 to V1. Note: Connect to the flui heat stream port of V1.