100% found this document useful (1 vote)
487 views200 pages

Dynamic Simulation Suite User Guide 1 200

simulacion con dymsin
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
100% found this document useful (1 vote)
487 views200 pages

Dynamic Simulation Suite User Guide 1 200

simulacion con dymsin
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
You are on page 1/ 200

SimSci®

DYNSIM® 5.3.2
Dynamic Simulation
Suite User Guide

December 2016
All terms mentionedin this documentation that are known to be trademarks or service marks have
been appropriately capitalized. Schneider Electric Software, LLC. cannot attest to the accuracy of
this information. Use of a term in this documentation should not be regarded as affecting the
validity of any trademark or service mark
ActiveFactory, ArchestrA, ARPM, AssayCentral, Autonomous, Avantis, Avantis.PRO,
Connoisseur, CrudeManager, CrudeSuite, DATACON, DATAPREP, DT Analyst, DYNSIM,
DYNSIM Power, Esscor, EYESIM, Factelligence, FactorySuite, FactorySuite A², Foxboro,
Foxboro Evo, FSIM Plus, HEXTRAN, Hot Links, I/A Series, IMPACT, IMServ, InBatch,
InControl, Industrial Portal, IndustrialSQL Server, InFusion, INPLANT, InSQL, IntelaTrac,
InTouch, IPact, Invensys, Logic Validator, MBM, NETOPT, PIPEPHASE, PRO/II,
PROVISION, QI Analyst, ROMeo, SCADAlarm, SIM4ME, SimCentral, SimSci, SimSci-Esscor,
Skelta, Skelta BPM.NET, Skelta Sharepoint, Skelta Sharepoint Accelerator, Spiral Software,
SuiteVoyager, TACITE, Tactical Batch, The Simulator, TRISIM Plus, VISUAL FLARE,
VISUAL FLOW, VISUAL FLOW SUITE, VISUAL NETWORK, Visual Solutions,
VOYAGER, WindowMaker, WindowViewer, Wonderware, Wonderware InTouch, and ZI ZHI
are trademarks of Schneider Electric SE, its subsidiaries and affiliated companies.

© 2016 by Schneider Electric Software, LLC. All rights reserved.

No part of this documentation shall be reproduced, stored in a retrieval system, or transmitted by


any means, electronic, mechanical, photocopying, recording, or otherwise, without the prior
written permission of Schneider Electric Software, LLC. No liability is assumed with respect to
the use of the information contained herein.

Although precaution has been taken in the preparation of this documentation, Schneider Electric
Software, LLC assumes no responsibility for errors or omissions. The information in this
documentation is subject to change without notice and does not represent a commitment on the
part of Schneider Electric Software, LLC. The software described in this documentation is
furnished under a license agreement. This software may be used or copied only in accordance
with the terms of such license agreement.

ArchestrA, Avantis, DYNSIM, EYESIM, Foxboro, Foxboro Evo, I/A Series, InBatch, InduSoft,
IntelaTrac, InTouch, PIPEPHASE, PRO/II, PROVISION, ROMeo, Schneider Electric, SIM4ME,
SimCentral, SimSci, Skelta, SmartGlance, Spiral Software, VISUAL FLARE, WindowMaker,
WindowViewer, and Wonderware are trademarks of Schneider Electric SE, its subsidiaries, and
affiliated companies. An extensive listing of Schneider Electric Software, LLC trademarks can be
found at: http://software.schneider-electric.com/legal/trademarks/. All other brands may be
trademarks of their respective owners.

Schneider Electric Software, LLC


26561 Rancho Parkway South
Lake Forest, CA 92630 U.S.A.
(949) 727-3200

http://software.schneider-electric.com/
Introduction

Table of Contents
Introduction.................................................................................... 6
Dynamic Simulation Suite................................................................................ 6
The Layout of the User Guide ......................................................................... 7
Equipment Model Documentation ................................................................... 8
Screens, Menus, and Toolbars ..................................................... 9
The Main DYNSIM Screen .............................................................................. 9
Toolbars ......................................................................................................... 10
The Instances Tree ........................................................................................ 16
The Types Tree ............................................................................................. 18
The Monitor Pane .......................................................................................... 19
Command Line .............................................................................................. 20
Hold and Drag the Canvas ............................................................................ 22
Move Object with Arrow Key ......................................................................... 23
DYNSIM Environment ................................................................................... 23
User Accounts ............................................................................................... 29
DYNSIM Session ........................................................................................... 30
Simulation Organization ................................................................................ 30
Running a Simulation .................................................................. 33
Starting DYNSIM ........................................................................................... 33
Monitoring Messages .................................................................................... 35
Selecting a User Interface Environment ........................................................ 37
Terminating a Simulation ............................................................................... 37
Terminating DYNSIM ..................................................................................... 37
Using the Monitor or Point Viewer ................................................................. 38
Generating and Using Sessions .................................................................... 43
Flowsheet Navigation .................................................................................... 44
Freeze/Run .................................................................................................... 45
Initial Condition Save / Load .......................................................................... 46
Backtracks ..................................................................................................... 52
Backtrack and IC Configuration Dialog ......................................................... 54
Backtrack Replay ........................................................................................... 54
Simulation Speed .......................................................................................... 55
Single Step .................................................................................................... 56
Run Time Operations .................................................................................... 57
Disable Flowsheet ......................................................................................... 58
Drawing Defaults Tool Tip ............................................................................. 60
Utilities/Tools ............................................................................... 65
Trends and Plots ........................................................................................... 65
Malfunctions................................................................................................... 79
Scenarios ....................................................................................................... 88
Trainee Performance Monitoring ................................................................. 111
Automated Training Exercises..................................................................... 124
Event Log..................................................................................................... 127
Data Historian .............................................................................................. 128
User Template ............................................................................................. 130
Auto Naming Rulebook ................................................................................ 134
Units of Measure ......................................................................................... 138
Search ......................................................................................................... 145

DSS User Guide DYNSIM 5.3.2, December 2016 1


Introduction

User Accounts Configuration ....................................................................... 153


Global Database .......................................................................................... 158
SIM4ME Thermo Case Manager ................................................................. 160
Tuning Table ................................................................................................ 164
Configuring Defaults .................................................................................... 166
Undo and Redo Changes ............................................................................ 167
Copy/Paste Enhancements ......................................................................... 169
Flow sheet Password Protection ................................................................. 170
Display Simulation Speed............................................................................ 172
Display Stream Property.............................................................................. 172
Display Model Property ............................................................................... 173
Cross Reference ........................................................................ 175
Overview ...................................................................................................... 175
Cross Reference Data ................................................................................. 175
Using the Cross Reference Editor ............................................................... 185
Backup and Restore .................................................................. 193
Backing up the Simulation Database .......................................................... 193
Simulation Merge Tool ................................................................................. 194
Restoring the Database ............................................................................... 195
Automatic Schema Evolution....................................................................... 196
Building and Editing a Simulation ........................................... 197
Simulation Data Storage .............................................................................. 197
Creating a New Simulation .......................................................................... 197
Creating a New Custom Simulation ............................................................ 198
Opening existing Simulations ...................................................................... 199
Adding an Engine ........................................................................................ 200
Engine Configuration ................................................................................... 203
Adding a Flowsheet ..................................................................................... 207
Home Flowsheet .......................................................................................... 209
Deleting an Existing Flowsheet ................................................................... 209
Define SIM4ME Thermodynamics ............................................................... 210
Adding a New Model ................................................................................... 212
Deleting an Existing Model .......................................................................... 214
Connecting Models ...................................................................................... 216
Object Editor / Viewer .................................................................................. 225
Data Entry Windows .................................................................................... 230
Simulation Status Messages ....................................................................... 233
Messages from the Simulation .................................................................... 233
Adding a New Standalone Point .................................................................. 234
Deleting an Existing Standalone Point ........................................................ 236
Point Editor .................................................................................................. 238
Point Viewer................................................................................................. 239
Pin Functionality .......................................................................................... 239
Simulation Engine Reconfiguration ............................................................. 240
Graphic Editing Versus Model Editing ......................................................... 240
Validate Graphics ........................................................................................ 240
Generating Keypoints .................................................................................. 241
Remote Functions ....................................................................................... 242
References Library ...................................................................................... 267
Translation: PRO/II to DYNSIM application ................................................. 275
Open Windows ............................................................................................ 277

DSS User Guide DYNSIM 5.3.2, December 2016 2


Introduction

Advanced Modeling................................................................... 279


Equation Utility ............................................................................................. 279
Disable Sorting ............................................................................................ 284
Point Type Modifications ............................................................................. 285
Symbols Naming Scheme and Definition .................................................... 286
Parameters and Points ................................................................................ 286
Model Threads ............................................................................................. 290
Pre-defined Points ....................................................................................... 295
Configuring From Text Keyword Files ..................................... 299
History and Introduction ............................................................................... 299
Importing a Flowsheet ................................................................................. 299
Exporting a Flowsheet ................................................................................. 301
Export/Import Engine ................................................................................... 303
Export/Import Cross References ................................................................. 305
Simulation Configuration Data File: DYNSIM.dat ........................................ 307
Object Declaration ....................................................................................... 307
Point Declaration ......................................................................................... 309
Excel Engine .............................................................................. 311
Overview ...................................................................................................... 311
Configuring and Running a Excel Engine .................................................... 311
Setting up Bulk Read/Write Excel Engine ................................................... 312
Excel Macro Engine ..................................................................................... 314
Options ........................................................................................................ 315
OPC Unified Architecture Server ............................................. 317
Overview ...................................................................................................... 317
OPC UA Standard ....................................................................................... 317
Why OPC UA Server? ................................................................................. 318
General Assumptions about the OPC UA Server........................................ 318
Discovery of OPC UA Server ...................................................................... 319
Procedure to Invoke a Simulation ............................................................... 321
Method Calls ................................................................................................ 339
File format for Non-DYNSIM Engines in the DYNSIM UA Adapter ............. 347
Special configuration switches for DYNSIM UA Adapter ............................ 349
Glossary....................................................................................................... 357
Appendix ...................................................................................................... 357
OLGA Interface Engine ............................................................. 360
Overview ...................................................................................................... 360
OLGA Server Startup .................................................................................. 360
OLGA Interface Engine Connection Parameters ........................................ 361
Passing Values from DYNSIM to OLGA application ................................... 362
Passing values from OLGA to DYNSIM application .................................... 362
Initial Conditions and Backtracks................................................................. 363
OLGA Interface Engine Console Commands.............................................. 363
Command Line Parameters......................................................................... 364
Host Configuration Editor ......................................................... 365
Local Install Settings .................................................................................... 366
Distributed Install Settings ........................................................................... 367
DB Server Min and Max Memory ................................................................ 368
Restore Defaults Button .............................................................................. 368
Set Interface Button ..................................................................................... 368

DSS User Guide DYNSIM 5.3.2, December 2016 3


Introduction

Reset Button ................................................................................................ 369


Quit Button ................................................................................................... 369
Troubleshooting Network Communication Problems or Slow Simulation Startup
Performance ................................................................................................ 369
Distributed Engine Configuration ................................................................. 370
TAO Naming Viewer .................................................................................... 372
Set-up DYNSIM in Distributed Mode ........................................................... 372
System Health Monitor .............................................................. 385
Introduction .................................................................................................. 385
Launching the System Health Monitor ........................................................ 385
Examples of SHM States ............................................................................. 386
GUI Configuration File ................................................................................. 387
Optional Points File ..................................................................................... 390
Miscellaneous .............................................................................................. 391
Frequently Asked Questions (FAQ) ......................................... 393
Acronyms ................................................................................ 397
Glossary ................................................................................ 398

DSS User Guide DYNSIM 5.3.2, December 2016 4


Introduction

Conventions
This manual adheres to a set of guidelines for the presentation of material. The font conventions
are listed below.

Lightface : Normal text.

Bold, italic: Refers to a specific chapter, section, or manual for more information.

Italic : Used to indicate features available in DYNSIM® software; file names are also italicized.

Boldface : Used primarily to indicate mouse or pointer actions you will perform.

DSS User Guide DYNSIM 5.3.2, December 2016 5


Introduction

Introduction

Dynamic Simulation Suite


SimSci®’s DYNSIM® application and other Dynamic Simulation Suite (DSS) software provide the
full power of rigorous dynamic simulation and high-fidelity control system emulation for process
engineers, control engineers, plant operators, and plant managers to optimize plant design and
operation. DSS encompassing DYNSIM, SCP, and TRISIM Plus® programs offers a professional
grade alternative to dated, fragmented, and hard-to-use products.

All DSS component products derive full advantage of the DSS environment for unmatched ease-
of-use, intra-suite communications, and openness to third party applications.

DYNSIM application – A state of the art process simulator that combines first principles process
models, thermodynamic methods and data and integrated graphical user interface to produce
highly accurate, reliable results. Unlike legacy products from other vendors, DYNSIM allows
plants to use the same model for process design, control evaluation, operator training, and
operational analysis applications, thereby preserving model equity.

DSS User Guide DYNSIM 5.3.2, December 2016 6


Introduction

SCP – A uniquely comprehensive Foxboro® I/A Series® control system checkout and simulation
tool that can pay for itself before you start up your I/A Series system. SCP software functions as a
perfect double to an I/A Series Control Processor, enabling faster control system commissioning,
superior system design quality, reliable operator training, and cost-effective system retrofits.

TRISIM Plus – A uniquely comprehensive Triconex® control system checkout and simulation
tool that can pay for itself before you start up your Triconex system. TRISIM Plus software
provides the same benefits for Triconex systems that SCP software provides for Foxboro I/A
Series systems.

OTS Engines– An industrial-strength, high fidelity, dynamic plant operator training solution to
capable, expert hands and minds at your plant’s controls. OTS Engines combine the process
models of DYNSIM with power industry models and a suite of Distributed Control Systems
(DCS) and Programmable Logic Controllers (PLC) engines. SimSci’s OTS solutions blend
proven, superior simulation technology with years of practical experience in creating high-fidelity
operator training simulators.

The Layout of the User Guide


The document is first targeted toward the basic operation of a complete simulation encompassing
the following:

• Starting and Stopping

• Instructor functions

• Malfunctions

• Scenarios

• System administration.
The User Guide also encompasses other general topics that deal with day-to-day use. Subsequent
volumes discuss the various simulation engines, model libraries, control system emulations, and
advanced-user topics.

Configuring models, defining and connecting engines, and day-to-day running of simulations are
coordinated through the DYNSIM User Interface.

DYNSIM provides features to:

• Toggle the simulation between Freeze and Run modes

• Save and restore Initial Conditions (snapshots)

• Introduce Malfunctions

• Plot variables to show Trends

• Monitor trainee performance (TPM)

DSS User Guide DYNSIM 5.3.2, December 2016 7


Introduction

• Execute a programmed sequence of actions (Scenarios)

• Backtrack to a prior operating point.

The DYNSIM GUI includes the following:

• Object Editor / Viewer

• Point Editor / Viewer

• Libraries of Process and Graphic Objects (shown in the Types Tree)

• Trainee Performance Monitoring (TPM)

• Snapshot and Initial Condition (IC) Save and Restore

• Trends

• Malfunctions

• Scenarios

• Playback

• Monitor pane for viewing dynamic data

• Instances Tree for viewing and selecting saved simulation data

• Administrative features, such as the creation and maintenance of user accounts.

Each of the above items is detailed in the subsequent sections of this User Guide.

Equipment Model Documentation


DYNSIM can be purchased or bundled with different combinations of model libraries depending
on the targeted industry, such as refining, oil and gas, power, or pulp and paper. This document
does not discuss equipment model libraries associated with specific industries and is intentionally
neutral towards industry and model libraries. Please refer to the technical reference manuals for
the appropriate model library for information on specific equipment, electrical, and control
models.

DSS User Guide DYNSIM 5.3.2, December 2016 8


Screens, Menus, and Toolbars

Screens, Menus, and Toolbars


The Main DYNSIM Screen

Anatomy of the Main Screen

The appearance of the main DYNSIM screen depends primarily on the current operating
environment: Instructor, Engineer, or user-specified. The environment type can be selected from
the View pull-down menu.

The illustration shown above is typical for an Engineer environment.

The top bar is the Title Bar. It indicates the name of this application. Also, on the title bar is the
username you supplied at login, an indication of the current operating environment, and the name
of the Customer and Simulation that is currently connected.

Immediately below the Title Bar is the Menu Bar containing a number of pull-down menus.

The Toolbar is immediately below the Menu Bar. The Toolbar holds shortcut buttons that provide
quick access to frequently used tasks. These tasks can also be requested from the pull-down
menus. The toolbar content depends on the currently selected operating environment. The
standard toolbars are illustrated and described in Toolbars.

DSS User Guide DYNSIM 5.3.2, December 2016 9


Screens, Menus, and Toolbars

Below the toolbar is a series of three rectangular panes. From the left: the Simulation Status
pane, the Snapshot pane, and the Malfunctions pane.

A fourth pane, the Trainee Performance Monitoring (TPM) pane, shows in the Super User
environment and Instructor environment.

The Simulation Status pane indicates whether the simulation is in Run or Freeze mode. It
also indicates how long the simulation has been running. Also in this pane are buttons to
start and stop the simulation, and to control the simulation speed.

The Snapshot pane includes buttons for saving and restoring Initial Conditions (ICs) and
Backtracks. ICs and Backtracks can be started from a displayed list. The Snapshot pane
also indicates the current IC (if any) and the current and oldest Backtracks.

The Malfunctions pane lists active malfunctions and provides buttons for displaying the
Malfunction Summary and defining a new malfunction. Malfunctions are invoked from the
Malfunction Summary, or by selecting a model and choosing the New Malfunction
icon.

The TPM pane lists TPM templates and completed TPM sessions. The buttons at the top of
the pane are used to initiate a new TPM session and to display the TPM Summary list. The
TPM panel is displayed when in the Super User environment or in the Instructor
environment.

The vertical pane at the left of the screen is a multipurpose panel arranged in three layers:
Instances, Types, and Monitor. The contents of each layer appear by clicking on the
corresponding tab at the bottom of the pane. In the illustration above, the pane is displaying an
Instances Tree listing all simulations databases currently open. This same pane can also be used
to display the Types Tree, listing the available DYNSIM model libraries. The final layer is the
Monitor which can be used to display model parameters and points.

The large rectangular area to the right of the Instances Tree is a general-purpose area used for
displaying requested information and graphic images. In the illustration above, a Flowsheet
graphic and the Message Monitor are displayed in this area.

The Command Line at the bottom of the screen can be used to perform selected command-line
operations in lieu of pulling down a menu or clicking a toolbar button. The text to the right of the
command area is used to indicate the most-recently-performed operation.

Toolbars
The toolbars documented in this User Guide are the standard toolbars supplied with DYNSIM.
The DYNSIM user has the option of customizing these toolbars. Customizing a toolbar may
change its appearance so that it no longer looks like those documented here.

DSS User Guide DYNSIM 5.3.2, December 2016 10


Screens, Menus, and Toolbars

The appearance of the standard toolbars depends on the user interface environment: Super User,
Administrator, Engineer, Instructor, or Operator. Each model may have buttons not available in
another mode. There is also an abbreviated toolbar.

The toolbars hold shortcut buttons for executing frequently used tasks. These tasks can also be
accessed from the pull-down Edit, Run, and Tools menus. Only the Engineer toolbar is
discussed below.

Engineer Toolbar

As shipped, the DYNSIM engineer-environment toolbar buttons shown below are available.

The toolbar buttons perform the tasks described below. In some cases, a keyboard shortcut is
available to perform the same function as a toolbar button. The indicated shortcuts work for both
the Windows® and Unix® operating system (OS) versions.

Create New Simulation Button

Click this button to create a new simulation with a default engine and Flowsheet. It will bring up
popup windows guiding you through each step.

Open Simulation Button

Click this button to open an existing simulation. It will bring up a popup window where the user
can browse for s4m files.

Save the Simulation Button

Click this button to save the simulation in a s4m file.

You can also use the Control + s key combination to save the simulation.

Print Current Flowsheet Button

Clicking the Print option displays the “Select FlowSheet for Printing” dialog box, where user can
choose the particular flowsheet for printing. By default, Active Flowsheet will be selected.

DSS User Guide DYNSIM 5.3.2, December 2016 11


Screens, Menus, and Toolbars

On clicking “OK” from the above window results in the Printer dialogbox and user
can select various options like Printer selection, Paper size, Orientation etc.

Cut the Current Selection Button

Click this button to cut (remove) the currently selected object from the canvas and place it on the
Clipboard. Use the Paste button to paste the object from the Clipboard to the same or another
canvas.

The Control + x key combination will also cut the current selection.

DSS User Guide DYNSIM 5.3.2, December 2016 12


Screens, Menus, and Toolbars

Copy the Current Selection Button

Click this button to copy the currently selected object to the Clipboard. Copying does not remove
the object from the canvas. Use the Paste button to paste the object from the Clipboard to the
same or another canvas.

You can also use the Control + c key combination to save the current selection.

Paste the Current Selection Button

Click this button to paste the contents of the Clipboard to the selected location.

The Control + v key combination can also be used to paste the current selection.

Delete the Current Selection Button

Click this button to delete (remove) the currently selected object. The object is not placed on the
Clipboard. It is permanently removed from the canvas.

View the Current Selection Button

Click this button to display the currently selected item. If the selected item is a Flowsheet (FS) in
the Instances Tree, DYNSIM displays the graphic for that Flowsheet. If the currently selected item
is an object, DYNSIM displays the Object Editor/Viewer, listing the object’s parameters.

You cannot display items shown at the Simulation (SIM) level in the Instances Tree.

Edit the Current Selection Button

The operation of this button depends on what is selected, when the button is clicked.

If a SIM is selected in the Instances Tree, DYNSIM displays a Simulation


Configuration dialog box. From this box, you can Add, Edit, and Delete the Engine and
Flowsheet configurations.

DSS User Guide DYNSIM 5.3.2, December 2016 13


Screens, Menus, and Toolbars

Also, if you have selected a FS in the Instances Tree, DYNSIM displays a Flowsheet
Configuration dialog from which you can change the Flowsheet Name and assign a
different engine to the Flowsheet.

If an object is selected in the Instances Tree or on a canvas, DYNSIM displays the Object
Editor/Viewer listing the object’s parameters.

Unit of Measure Button

Click this button to list the basic Units of Measurement (UOM) slates that have been defined for
this installation. The user can create new UOM slates from existing UOM slates where, for
example, the units of pressure are changed from kPa to psia.

Components and Thermodynamics Button

Click this button to bring up the Components and Thermodynamics window. This window allows
you to define component slates and construct customized thermodynamic method slates. Please
note that only models in the Base Equipment Library use component and method slates.

Start Engines in Freeze mode Button

Click this button to start the simulation and its corresponding engine(s). The simulation engine is
started in Freeze mode. Click the Resume button to switch the simulation to Run mode.

Stop Simulation Button

Click this button to shutdown the simulation engine.

Load Entire Model From Database Button

Click this button to load the entire simulation configuration from the DYNSIM database into the
engine memory. This action is commonly known as Load Full. Load Full provides a mode to
make model configuration changes on the fly while the simulation is running.

DSS User Guide DYNSIM 5.3.2, December 2016 14


Screens, Menus, and Toolbars

Load the Cross Reference from the Database Button

Click this button to load the cross reference data from the DYNSIM database into the engine.

Disable Flowsheet Button

Click this button to disable one or more equipments on the flowsheet or to disable a whole
flowsheet. If equipments on a flowsheet are disabled, their corresponding values remain constant
and they further do not take part in the simulation calculations.

Home Flowsheet Button

Clicking this button opens a flowsheet of a simulation. The user is first expected to define a home
flowsheet before performing this action.

Search Button

Click this button to search for objects in the DYNSIM Database.

Trends Button

Click this button to allow real-time plotting of point values against time.

View/Edit the Cross Reference Table Button

Click this button to display the Cross Reference Table editor.

Scenario Summary Table Button

Click this button to display the Scenario Summary table.

Show Message Monitor Button

DSS User Guide DYNSIM 5.3.2, December 2016 15


Screens, Menus, and Toolbars

Click this button to display the DYNSIM Message Monitor window. The Message Monitor
displays selected messages, including error messages.

Icon Palette Button

Click this button to display the Icon palette from which the user can drag and drop equipment
models and other objects onto the flow sheet. To display the icons on the palette as Large icons,
Small icons or Text only, from the View menu, click Icon Palette Settings.

Restart Failed Engines Button

Clicking this button allows you to reload aborted/failed engines. This option is available in the
Tools menu.

Page Size Button

User can change the flowsheet canvas size to accomodate many objects by using the feature
called “Page Size” which is available under Options menu item. Clicking OK button results in
the new canvas size.

The Instances Tree


The Instances Tree displays the content of the DYNSIM database and the hierarchical structure of
entries in the database. For a discussion of the hierarchical structure, refer to DYNSIM
Organization.

To display the Instances Tree, you must have at least one simulation open and you must select the
Instances tab at the bottom of the multipurpose pane at the left side of the main DYNSIM
screen.

The illustration shown below indicates a sample Instances Tree that has been expanded down to
the parameter level. To see the complete text associated with parameters, the pane has been
expanded to the right.

DSS User Guide DYNSIM 5.3.2, December 2016 16


Screens, Menus, and Toolbars

Note that green entries in the Instances Tree identify components of the currently running
simulation. Brown entries identify simulations that are open for editing, but are not currently
running.

All Simulations that are currently open are displayed in the Instances Tree. This feature allows
you to cut and paste from one simulation to another. Appearance in the Instances Tree does not
imply that a given simulation is currently running or not running.

At the model level, each entry is associated with an icon representing the model class (type of
model). Resting the cursor on an icon for a few seconds pops up a ToolTip that displays the
model class (type).

Each Simulation that is open is represented by a SIM line in the Instances Tree. Until the tree is
expanded, the display will include only a series of SIM lines.

To expand an entry at any level of the hierarchy, click the expansion control icon to the left of
that level. The entries in the next lower level are displayed. To collapse an expanded branch, click
the expansion control icon again.

DSS User Guide DYNSIM 5.3.2, December 2016 17


Screens, Menus, and Toolbars

In addition to using the Types tree, point references can now be easily created on the flowsheet
with the drag & drop support. Just drag the parameter node of interest from the Instance Tree and
drop it on the flowsheet at the desired location to create a point reference.

The Types Tree


The Types Tree displays the available DYNSIM model libraries. Models from these libraries are
used to build and modify simulations. As DYNSIM is shipped, the Types Tree is accessible only
in the Engineer environment.

To display the Types Tree you must click the Types tab at the bottom of the multipurpose pane
at the left side of the main DYNSIM screen.

To expand a library into its constituent parts, click the expansion control icon to the left of the
library name. The library entries are displayed. To collapse an expanded library, click the
expansion control icon again.

The illustration below shows a sample Types Tree with two libraries expanded. Note that some of
the models shown below do not exist in every application, but are industry specific.

DSS User Guide DYNSIM 5.3.2, December 2016 18


Screens, Menus, and Toolbars

The Monitor Pane


The Monitor feature can be used to do the following:

• Display selected data for individual points (name, value, description, unit of
measure)

• Create, Save, Delete, and Display point groups

• Monitor the current value of points

• Change the current value of points

• Change the Point Description

DSS User Guide DYNSIM 5.3.2, December 2016 19


Screens, Menus, and Toolbars

• Change UOM of a Point

• Model Tuning

To invoke the Monitor feature, click the Monitor tab at the bottom of the leftmost pane on the
main DYNSIM screen.

For a description of how to use the Monitor, see Using the Monitor.

The Monitor pane illustrated below displays the contents of a small point group.

Point groups can also be viewed by choosing Point Viewer from the Tools drop
down menu.

Command Line
The Command field is located at the bottom of the main DYNSIM screen. The command line
provides a way for you to execute selected DYNSIM functions without using the pull-down menus
or the toolbar buttons. It is only available in the Engineer environment.

DSS User Guide DYNSIM 5.3.2, December 2016 20


Screens, Menus, and Toolbars

The complete set of available command-line shortcuts is listed below. A sample is listed below:

Typing the command SimFreezeRunToggle toggles the simulation between Freeze


mode and Run mode. This command simulates the action of clicking the Run and Freeze
buttons in the Simulation Status pane. But there is an easier way: Pressing Ctrl + F5
also toggles the Run/Freeze mode.

Shortcut Keys - Basic Commands

Functionality Command Key Combination

New Simulation NewSimulation Ctrl+N

Open Simulation OpenSimulation Crl+O

Copy Copy Ctrl+C

Open the OEV of a selected object Edit Ctrl+E


in Edit mode

New Malfunction Alt+M

Save the system graphic Save Ctrl+S

Select All SelectAll Ctrl+A

Open the OEV of a selected object View Ctrl+K


in View mode

Print the flowsheet Print Ctrl+P

Paste Paste Ctrl+V

Cut Cut Ctrl+X

Exit the application Exit Alt+F4

Delete the selected object Delete

Components and Thermodynamics Ctrl+T


GUI

Unit of Measure Slates GUI Ctrl+U

Icon Palette Ctrl+I

Search Ctrl+F

Navigation to the last active Alt+Q


flowsheet.

DSS User Guide DYNSIM 5.3.2, December 2016 21


Screens, Menus, and Toolbars

Cycle through open flowsheets Ctrl+Q

Shortcut Keys - Advanced Commands

Functionality Command Key Combination + User Input

IC Summary Window F5

BKTRK Summary Window F6

A New Trend Window F7

Network Statistics Window F8

Malfunction Summary Window MalfSummary F9

TPM Summary Window TPMSummary F11

Scenario Summary Window ScenarioSummary F12

Shut down the simulation SimEndJob Alt+S

Toggle the simulation between SimFreezeRunToggle Ctrl+F5


Freeze mode and Run mode

Toggle the simulation engine into SimSingleStepToggle Alt+N


and out of Single Step

Display Stream Properties Ctrl+Alt+S

Display Model Properties Ctrl+Alt+M

Hold and Drag the Canvas


In general, the flowsheet in DYNSIM holds many GMB Model objects, which do not fit in the
visible area of canvas. The “Hold and Drag” feature provides an easier way to hold the canvas by
mouse and drag it to the desired location by mouse movement instead of using horizontal and
vertical scroll bars to bring the desired objects in focus. The user can use Hold and Drag feature
as follow:

• The user can click the right button of the mouseWhen user clicks in empty space of
canvas.The cursor changes to MOVE cursor .
• By holding the right mouse click, mouse drag will take the canvas to the direction where
mouse moves.
• Once the mouse released the cursor change to the default cursor.

DSS User Guide DYNSIM 5.3.2, December 2016 22


Screens, Menus, and Toolbars

Move Object with Arrow Key


The feature provides the better way to position object(s) in desired location. User can select single
or multiple object through mouse left click button. Once the object(s) selected, user can use left,
right, top or bottom arrow keys to reposition it. The left and top arrow keys can take the object(s)
to the left and upper boundaries of Canvas. The movement of object(s) can also be customize by
providing the values in pixel. This feature also supports the Undo/Redo feature.

DYNSIM Environment
The term environment refers to the allowable functional operations. The current environment is
indicated in the title bar of the main DYNSIM window.

As shipped, DYNSIM includes five operating environments:

1. Administrator

2. Super User

3. Engineer

4. Instructor

5. Operator.

The desired environment is changed by selecting the Change Environment from the
View drop-down menu. As indicated above, the environment choice determines what DYNSIM
operations you are allowed to perform. Two examples:

• You cannot modify a simulation configuration while in the Instructor environment;


where as you can in the Engineer environment.

• You can create new user accounts in the Administrator environment only, not in any
other environment.

The procedure for changing operating environments is described in Selecting a User Interface
Environment.

DSS User Guide DYNSIM 5.3.2, December 2016 23


Screens, Menus, and Toolbars

The following is a summary of the functionality provided in each of the standard environments.

Administrator: Management of User Accounts

• Create/Edit/Delete User Accounts

• Import/Export User security information

DSS User Guide DYNSIM 5.3.2, December 2016 24


Screens, Menus, and Toolbars

Super User: This environment allows the user to perform the role of a Engineer,
Instructor and an Operator

• Malfunction Initiation

• Create/Edit/Delete Predefined Malfunctions

• Edit the DCS/PLC Cross Reference Table

• Create/Edit/Delete Predefined Trends

• Model and Graphic Configuration Editing

• DCS/PLC Operate Override

• Protected Snapshot Override

• User defined Keypoints

• TPM Operation

• TPM Create/Edit/Delete Preconfigured Exercises

DSS User Guide DYNSIM 5.3.2, December 2016 25


Screens, Menus, and Toolbars

• TPM Edit/Delete Exercise Results

• TPM View Exercise Results for Current User Only

• TPM View Exercise Results for All Users

• Execute Scenarios

• Initiate Automated Training Exercise

Engineer: Same privileges as Super User and additionally can configure the number of
backtracks or IC’s

• Malfunction Initiation

• Create/Edit/Delete Predefined Malfunctions

• Configure number of Backtracks and IC’s

• Edit the DCS/PLC Cross Reference Table

• Create/Edit/Delete Predefined Trends

DSS User Guide DYNSIM 5.3.2, December 2016 26


Screens, Menus, and Toolbars

• Model and Graphic Configuration Editing

• DCS/PLC Operate Override

• TPM Operation

• TPM Create/Edit/Delete Preconfigured Exercises

• Scoring TPM Exercises

• TPM Edit/Delete Exercise Results

• TPM View Exercise Results for Current User Only

• TPM View Exercise Results for All Users

• Execute Scenarios

• Initiate Automated Training Exercise

Instructor: Access to features commonly used for training

DSS User Guide DYNSIM 5.3.2, December 2016 27


Screens, Menus, and Toolbars

• Malfunction Initiation

• Create/Edit/Delete Predefined Malfunctions

• Create/Edit/Delete Predefined Trends

• User defined Keypoints

• TPM Operation

• TPM Create/Edit/Delete Preconfigured Exercises

• Scoring TPM Exercises

• TPM Edit/Delete Exercise Results

• TPM View Exercise Results for Current User Only

• TPM View Exercise Results for All Users

• Execute Scenarios

• Initiate Automated Training Exercise

• Event Logging

• Backtrack Replay

DSS User Guide DYNSIM 5.3.2, December 2016 28


Screens, Menus, and Toolbars

Operator: Ability to operate the simulator in a self-training environment

• Malfunction Initiation

• Execute Scenarios

• TPM Operation

• TPM View Exercise Results for Current User Only

User Accounts
The primary purpose of user accounts is to provide or deny access to specific environments. In
some cases (e.g. snapshots), the current user name will be used to indicate ownership of saved or
changed files.

A user account is defined by the following data:

• User name

• Password

• List of allowed environments

DSS User Guide DYNSIM 5.3.2, December 2016 29


Screens, Menus, and Toolbars

At startup, DYNSIM prompts you for a user name and password. The user can be changed at any
time, without restarting the application, by selecting Change User from the Options
menu.

To learn how to change your password, view the environments you have access to, or
create/edit/delete user accounts. Refer to User Accounts Configuration.

DYNSIM Session
A Session defines the current user interface environment, menus, toolbars, and window layout
(size and location). Saving a session allows the user to return to the same user interface
configuration at a later time. You can save any number of sessions.

When DYNSIM is terminated, the current user interface configuration is automatically saved as
the Last Session. Each time DYNSIM is started, you are given the option of continuing the
previous (last) session or loading the parameters associated with your Home Session. Once
DYNSIM is running, you can switch to any desired session.

The procedure for switching sessions and for creating new sessions is described in Generating
and Using Sessions

Simulation Organization
In DYNSIM, simulations are organized hierarchically as follows:

• Simulation

• Engine

• Flowsheet

• Model

• Parameter Group

• Parameter

Simulations are composed of Engines. Engines include Flowsheets. Flowsheets include model
objects. Model objects have Parameters, which may be grouped into one or more Parameter
Groups.

Although comprehensive information is provided elsewhere, here is a brief definition of some of


the above terms.

A simulation is a mathematical representation of one or more physical processes. Examples


include a refinery unit, power plant, offshore platform, or a pulp and paper plant.

DSS User Guide DYNSIM 5.3.2, December 2016 30


Screens, Menus, and Toolbars

An engine provides a way to break multiple flowsheets onto separate computers for faster
execution. Engines are usually only required for operator training simulators. Also, since
multiple engines are not usually required, they are not shown on the instances tree hierarchy.

A Flowsheet is a collection of connected, logically related components. Flowsheets divide a large


simulation into smaller, more manageable pieces. Each flowsheet belongs to an engine.

A model usually represents a real-world, physical device. Pumps, valves, headers, and fans are
examples of models. A model may also include strictly mathematical algorithms such as a PID
controller. Each model is an instance of a model class. A class is a specific type of device, such
as a pump or a fan. If your plant or process incorporates 30 pumps, the associated simulation will
have 30 instances of class ‘pump’, each with a unique name.

Each object has an associated set of parameters. Parameters vary by object type. For physical
objects, parameters reflect the operating characteristics of the object. For example, pipe diameter
and pipe flow rate are some of the parameters for a pipe model.

The Instances Tree illustrated below shows all levels in the organizational hierarchy (except
engine). Note the abbreviation for Simulation (SIM), and Flowsheet (FS).

DSS User Guide DYNSIM 5.3.2, December 2016 31


Screens, Menus, and Toolbars

Another expanded Instances Tree can be viewed at The Instances Tree

DSS User Guide DYNSIM 5.3.2, December 2016 32


Running a Simulation

Running a Simulation
Starting DYNSIM
1. You can start DYNSIM using the Windows OS Start button a desktop shortcut, by double
clicking the s4m file or the Windows OS Run feature. Perform the appropriate procedure
below.

Starting DYNSIM using the Start button

a. Click the Start button (usually located at the bottom left corner of your screen)

b. From the displayed menu, choose Programs

c. From the displayed Programs list, choose SIMSCI


d. Select Dynamic Simulation Suite and click DYNSIMXX to display the Welcome to
Dynamic Simulation Suite dialog box.

Substitute the current version for DYNSIMXX, such as DYNSIM 4.3

Starting DYNSIM from a Shortcut on the Desktop

a. Double-click the shortcut.

Starting DYNSIM using the Windows Run feature

a. Click the Start button (usually located at the bottom left corner of your screen)

b. From the displayed menu, choose Run

c. In the Open: textbox, type C:\SIMSCI\DSSXX\GUI\Bin\runSIM4ME.bat

d. Press the <Return> key or click the OK button.

Substitute the current version for DSSXX, such as DSS43

Double click on the s4m file.

a. Double click an s4m files on the Windows or in Windows Explorer.

The Welcome to Dynamic Simulation Suite dialog box displays when


DYNSIM starts. Note that the dialog you see may be slightly different than shown below.

DSS User Guide DYNSIM 5.3.2, December 2016 33


Running a Simulation

2. Type your Username and Password in the appropriate locations.

The default installation of DYNSIM includes a pre-defined user name of “simsci”,


with password “simsci”.

3. Indicate whether to start DYNSIM with your Home Session or to continue the previous
session.

Click Home Session or Return To Last Session as appropriate.

4. Click the Login button.

5. After logging in for the first time, the login step can be by-passed for subsequent sessions.

This can be achieved by enabling Auto Logon toggle switch under the Options menu. To
disable Auto Logon, simply disable this toggle.

DSS User Guide DYNSIM 5.3.2, December 2016 34


Running a Simulation

Monitoring Messages
DYNSIM generates many messages to aid the user in understanding the status of the application.
Messages are reported to the user in a number of ways, depending on the importance or relevance
of the message. The illustrations below show one message reported with three different methods.

Popup Dialog

Errors and Severe Errors are reported with a popup dialog. These messages are of such
importance that user attention is required before proceeding with the execution of the application.
These messages are also reported to the Message Monitor window, and the Single Line Message
as described below.

Example

Message Monitor Window

The Message Monitor is displayed by selecting Message Monitor from the Window menu,
or selecting the Message Monitor button on the main DYNSIM toolbar. Messages that report
Severe Errors, Errors, Warnings, and Information Only are sent to the Message Monitor window.
These messages are also reported to the Single Line Message as described below.

Example

DSS User Guide DYNSIM 5.3.2, December 2016 35


Running a Simulation

”Information” will be displayed in BLUE color, “Warnings” in RED color, “Severe Error”
in BOLD RED color, and “Error” will be in ORANGE color.

Example

Single Line Message

The single line message panel is located on the lower periphery of the main DYNSIM window.
This panel displays an abbreviated version of the last message reported. Severe Error, Error,
Warning, and Information Only messages are all sent to the single line message.

Example

Message Reporting Dialog Box

Select Message Settings from Window menu. The following dialog box will be
displayed.

DSS User Guide DYNSIM 5.3.2, December 2016 36


Running a Simulation

By default, all the Message Reporting types are checked.

Check the message type, you wish to report. The Message Monitor reports only the status for the
message type you have checked and filters the rest.

Popup dialog messaging feature is not affected by the selection of any types of message
from Message Reporting dialog box (Information, or Warning or Error or Severe Error). It will
continue appearing, subject to the actions performed by user.

Selecting a User Interface Environment


The operating environment can be changed at any time.

To change the environment, choose Change Environment from the View dropdown
menu, then select the desired entry, to change the following:

• The menus available and their content

• The toolbar content

Terminating a Simulation
Once a simulation has been started, it continues to execute until it is manually stopped
(terminated).

To terminate the currently-connected simulation, click the Shut Down button.

DYNSIM pops up a dialog box to ask whether you really want to terminate the simulation.
Respond appropriately.

Terminating DYNSIM
To terminate DYNSIM, choose Exit from the File menu. When the user terminates
DYNSIM, the SimExecutive server is shuts down by default. However, user may choose to shut
down only the GUI session and leave the SimExecutive session running. This can be achieved by

DSS User Guide DYNSIM 5.3.2, December 2016 37


Running a Simulation

disabling the Shut Down Server on Exit toggle switch under the Options menu. At a later point,
user can launch the DYNSIM GUI and reconnect to a running SimExecutive session.

The user can also disconnect the GUI session from the SimExecutive Server and reconnect to it or
another SimExecutive server session without exiting the GUI. To disconnect the GUI from the
Server, select Disconnect from Server under the Options menu. While the GUI is disconnected
from the server, all menu items, which require connection to the server, will be grayed out.

To reconnect, select Connect to Server option from the Options menu. Enter the host name and
name of the SimExecutive and click the Connect button.

Using the Monitor or Point Viewer


This topic includes the following subjects:

• Overview

• Creating a New Group

• Adding a Point to an Existing Group

DSS User Guide DYNSIM 5.3.2, December 2016 38


Running a Simulation

• Deleting a Point from an Existing Group

• Deleting an Existing Group

• Changing the Value of a Point in the Currently-Displayed List

• Changing the Point Description

• Changing Units of a Point

• Model Tuning

Overview

The Monitor feature can be used to do the following:

• Display selected data for individual points (name, value, description, unit of
measure)

• Generate, save, delete, and display point groups

• Monitor the current values of the points

• Change the current values of the points

• Change the Point Description

• Change the units of a point

• Model Tuning

Illustrated below is the Monitor display for a small point group.

Creating a New Group

1. Click the Monitor tab at the bottom of the left pane.

DSS User Guide DYNSIM 5.3.2, December 2016 39


Running a Simulation

2. There are at least four ways to enter the point name into the Point text area:

a. Type the point name (format: object.parameter or

pointname)

b. Click an object on a canvas (this action puts the name of the object into the

Point: field) then type a period and the parameter name

c. Display the desired object in the Object Editor/Viewer then click the

parameter name

Open the Object Editor/Viewer of the desired object and select the parameter
points to be dropped on the point monitor. Drag and drop the selected points on
the point monitor pane. The OEditor/Viewer supports multiple selections
including a vector or array that can be dragged and dropped on to the point
monitor pane.

3. Click the Add button or in the Ins At: text area, type the row number of the
‘slot’ (location) where you want this point added into the list, then click the Ins
At: button.

4. Repeat steps 2 and 3 for all desired points.

5. Type the desired name into the Group: field.

6. Click the Save Group button.

Adding a Point to an Existing Group

1. Click the Monitor tab at the bottom of the left pane.

2. Select the desired group from the dropdown Group: list.

3. There are at least three ways to enter the point name into the Point: text area:

a. Type the point name (format: object.parameter or

pointname)

b. Click an object on a canvas (this action puts the name of the object into the

Point: field) then type a period and the parameter name

c. Display the desired object in the Object Editor/Viewer then click on the

DSS User Guide DYNSIM 5.3.2, December 2016 40


Running a Simulation

parameter name

Open the Object Editor/Viewer of the desired object and select the parameters
points to be dropped on the point monitor. Drag and drop the selected points on
the point monitor pane. The OEdiotr/Viewer supports multiple selections
including a vector or array which can be dragged and dropped on to the point
monitor pane.

4. Click the Add button or in the Ins At: text area, type row the number of the
‘slot’ (location) where you want this point added into the list, then click the Ins
At: button.

5. Repeat steps 3 and 4 for all points to be added.

6. Click the Save Group button.

Deleting a Point from an Existing Group

1. Click the Monitor tab at the bottom of the left pane.

2. Select the desired group from the dropdown Group: list.

3. Select (click on) the point to be deleted.

DYNSIM inserts the point name into the Point: field at the bottom of the
Monitor pane.

4. Click the Del button.

5. Repeat steps 3 and 4 for all points to be deleted.

6. Click the Save Group button.

Deleting an Existing Group

1. Click the Monitor tab at the bottom of the left pane.

2. Select the desired group from the dropdown Group: list.

3. Click the Del Group button.

Changing the Value of a Point in the Currently-Displayed List

1. Click on the value.

2. Type the desired new value.

3. Press the Return key.

If the point type is STATIC or the point does not exist, DYNSIM will change the

DSS User Guide DYNSIM 5.3.2, December 2016 41


Running a Simulation

value back to the original setting.

If the change is accepted, it immediately affects the running simulation.

Value is the only field you are allowed to change from the Monitor tab.
You can change the Description field from the Point Editor or the Object
Editor/Viewer.

Choosing PointViewer from the Tools menu provides same functionality as the Monitor tab. If
an empty window appears, double-click the title bar to show the window components.

Changing the Point Description

1. Select the point for which the description needs to be modified.

2. Modify the point description.

3. Press the Return key or leave the description cell to accept the changes.

4. The change in the description should also reflect in Point Viewer and Trends
Description label.

User can also change the Custom Description in Point Viewer and Trends; press the Return key to
update the custom description in other interfaces.

Changing Units of a Point

1. Select a point and click on the UOM cell.

2. From the drop-down list, select Custom.

3. Change to a desired UOM and select Change or Convert.

4. If Convert option is selected, both value and UOM type of the point will change.
But if Change option is selected, only the UOM type of the point will change.

Point Viewer/Monitor for Model Tuning

Using the Point Viewer/Monitor you can change the values assigned to the parameters by
changing the Point Class. You can see the initially assigned values in the Assignment column
and the changed values in the Value column. This feature is useful while tuning the model.

Note: Select Enable point class edit check box to tune the model using Point Viewer.

This provides the simulation model builders the ability to easily change the point class of
commonly used tuning parameters such as Valve CV and Heat Exchanger U without having to
go through several OEVs. Once the parameters have been tuned and have acceptable values in
the run engine, their values can be easily updated in the database.

DSS User Guide DYNSIM 5.3.2, December 2016 42


Running a Simulation

1. Add the required static parameters (e.g., CV, U) to a point group.

2. Change the Point Class for those parameters to DYNAMIC or GRAPHIC. Do


LF/LE for the changes to reflect in Run engine.

3. Tune the parameters in Run engine at runtime.

4. When the tuning is satisfactory and the values need to be saved, select the check box
in “Copy value to Assignment?” column for the corresponding parameter and click
the Apply button.

5. Once tuning is complete, change the point class back to STATIC.

6. Save the simulation.

Generating and Using Sessions


Session information includes the environment, the menu bar configuration, the look and feel of
the GUI, and the size and location of the GUI. To return to a previously-saved session, select
Load Session from the Options pull-down menu, then select the session name from the
dropdown list in the Change Session dialog box.

Saving a session is accomplished by selecting Save Session As from the Options pull-down
menu, then typing a new name or selecting an existing name from the dropdown list in the Save
Session As dialog.

DSS User Guide DYNSIM 5.3.2, December 2016 43


Running a Simulation

Flowsheet Navigation
Navigating between different flow sheets, which are a part of the same simulation, can be
simplified by using the Navigation mode. To use this mode, under the View menu choose
“Change Toolbars” and then select Navigation.

NavButtons and Navgrid

To use the Flowsheet Navigation feature, the user would need to configure two files NavButtons
and NavGrid.

“NavButtons” file allows the user to define additional buttons below the navigation arrows that
are standard in the navigation mode.

In the example below, a button labeled OV (font name “Helvetica”, font size 12) is created on the
navigation palette with “ov.gif” as the icon image. When the user selects the OV button in this
example, the hpe_ov flow sheet is displayed. The Font allows user to define the font size of the
Text1 on the button.

SHOW SIMULATION INFO? If, YES, the current simulation mode and the current simulation
time will be displayed on the top left of navigation toolbar

Once opened with Notepad, the NavButtons file will show the following contents:

# List of extra buttons.

# Use "NULL" when field is N/A

# Button Text, Flowsheet Name, Image , Font

# example: Text1, Overview, NULL, 12

# You can decide to show (YES) or not show (NO) simulation info (sim time and sim mode)

# NOTE: Do not remove the following line.

SHOW SIMULATION INFO? NO

OV,hpe_ov,ov.gif ,12

“NavGrid” file defines a navigation matrix for the arrows that are presented when the navigation
toolbar is selected. This allows the OTS engineer the ability to create a two dimensional panning

DSS User Guide DYNSIM 5.3.2, December 2016 44


Running a Simulation

feature to mimic a panning view of a control bench board or a large process diagram spanning
several flow sheets.

In the example below, if the current display is hpe_alm_4.WI…

A right arrow brings up hpe_alm_4.8

A down arrow brings up hpe_01 (skipping over the NULL)

A left arrow brings up hpe_alm_4.7

An up arrow brings up hpe_28

Once opened with Notepad, the NavGrid file will show the following contents:

# List flow sheets for navigation separated by commas

# Number of columns must be the same in all rows. Use "NULL"

# flowsheet1, flowsheet2, flowsheet3, NULL

# flowsheet4, NULL, flowsheet5, NULL

# flowsheet6, flowsheet7, NULL, flowsheet8

To locate NavButtons, NavGrid files, the search paths are:

By default these files are in the “Simulation Working Folder” i.e.,


C:\SIMSCI\DSS43\Simulations\<Simulation Name>\Navigation. Then, locate a folder that
corresponds with the simulation name in which the navigation grid is required.

1. If the files are not found in “simulation working folder” then the user can locate them in
the following folder C:\SIMSCI\dss43\ GUI\Navigation

2. If the files are not found in “simulation working folder” then the user can locate them in
the following folder C:\SIMSCI\dss43\ GUI\Navigation

Note: The search paths for images in buttons are:

1. The files should be available in the “simulation working folder”\images\navigation.

2. If the file is not found in “simulation working folder” the user should search in the
installed folder ie C:\SIMSCI\ dss43\GUI\images\navigation folder

Freeze/Run
Description

Run and Freeze describe two simulation operating modes.

In Run mode, the simulation is running the simulation engines that simulate operation of your
plant or process.

DSS User Guide DYNSIM 5.3.2, December 2016 45


Running a Simulation

In Freeze mode, simulation execution is suspended and simulation time does not advance.
Continuously operating functions such as Backtrack and Trending are also suspended.

When a simulation is frozen, the Simulation Status indicator displays the word Frozen in red
letters. The Simulation Time clock is stopped. Note that before the simulation was frozen it had
run 2 minutes and 34 seconds.

When a simulation is in Run mode, the word Running is displayed in green letters. The
Simulation Time clock is advancing.

To switch to Run mode, click the "Resume Simulation button” in the Simulation Status
pane.

To switch to Freeze mode, click the “Freeze Simulation button” in the Simulation Status
pane.

Initial Condition Save / Load


The following subjects are included in this topic:

• Overview

• Saving an Initial Condition in a Binary and Text Format

• Loading an Initial Condition

• Protecting, Unprotecting, or Deleting an Initial Condition

• IC Collect and Distribute

Overview

The Save IC/Load IC feature provides an option to instantly return to the desired set of operating
conditions with a single click.

Save Initial Condition refers to saving the current status of the simulation. This electronic
Snapshot produces an Initial Condition (IC). ICs reflect all operating parameters, including
malfunctions and trend history. Initial Conditions (IC) can be saved in binary or text format.

DSS User Guide DYNSIM 5.3.2, December 2016 46


Running a Simulation

ICs are identified by Number, Description, User, Date, Time, and Keypoints. The number of ICs
that can be saved is limited by the free space available on the hard disk.

Each IC can be designated as Protected (P-IC) or Unprotected (U-IC). P-T-IC and U-T-IC
indicate the text-based ICs. As a safety measure, only the owner of an IC can unprotect or
overwrite it. The owner of the IC is the user who originally created it.

Load Initial Condition resets a simulation with the values captured by performing a Save IC.

Initial Conditions and Backtracks are both termed as Snapshots. From the Snapshot Summary
screen, you can view only the Backtracks, only the ICs, or all the Snapshots.

Following are the basic differences between Backtracks and ICs:

• Backtracks are saved automatically at the user-specified time. ICs are saved only
when requested by a user.

• A description can be added to an IC. Backtracks have no descriptions.

• ICs can be protected from being overwritten by other users. Backtracks are
automatically overwritten as described earlier.

• A Username is automatically added to the ICs. Backtracks have no Username


information.

• Saving an IC switches the simulation to Freeze mode. Saving Backtracks does not
change the simulation status.

• When saving an IC, you can specify an IC number. DYNSIM automatically


numbers the Backtracks.

Left-clicking a column in the Snapshot Summary window sorts the list by that column.
You can use this feature to sort the list by IC Number, Description, User, Date, or Time.

DSS User Guide DYNSIM 5.3.2, December 2016 47


Running a Simulation

The Favorite IC number can be specified to load the IC just by clicking an icon instead of
opening the Snapshot Summary window. If the user does not specify any number, the last saved
IC is considered as the favorite IC.

The Snapshot pane at the top of the main DYNSIM screen indicates the current (most recently
restored or saved) IC.

Saving an IC

1. (Optional) Flush the historian by clicking the Flush button. If performed, there will
not be any historian data displayed in Trends when this IC is loaded.

2. Click the Save Initial Conditions button (camera icon) in the Snapshot pane. If the
Snapshot Summary window appears, you can click the Save button.

DYNSIM displays a dialog box asking you to enter the IC Number, enter the
Description, and select an option to indicate whether the IC is to be protected or
not.

After entering the required details, select the Save IC as Text check box to save
the DYNSIM engine(s) IC data in text format.

If the IC already exists, and you are the owner of the IC, DYNSIM asks whether
you want to overwrite it. Respond appropriately.

If you are not the owner of an existing IC, DYNSIM will not allow you to
overwrite it.

If the IC is saved, the simulation switches to Freeze mode and the Simulation
Status changes to IC SAVED.

3. Switch to Run mode.

Click the Run button in the Simulator Status pane.

The current IC indicator in the Snapshot pane displays the number and user-

DSS User Guide DYNSIM 5.3.2, December 2016 48


Running a Simulation

supplied description of the just-saved IC.

Loading an IC

1. Display the table of ICs by clicking the IC button in the Snapshot pane.

2. Click the appropriate cell: P-IC, U-IC, P-T-IC, or U-T-IC.

DYNSIM highlights the row.

3. Click the Load button.

DYNSIM displays a confirmation prompt. If you want to preserve the original


time history of the snapshot, uncheck Set time to 0. Otherwise, DYNSIM will
change the simulation time to zero.

4. Click the Favorite IC button .

DYNSIM displays the following message:

52 indicates the number that you specified as Favorite IC in the Snapshot


Summary window.

5. Click Yes.

DSS User Guide DYNSIM 5.3.2, December 2016 49


Running a Simulation

The simulation switches to Freeze mode.

The Simulation Time display is reset to zero (00:00:00).

The words IC RESET display in the Simulation Status pane.

The current IC number is updated in the Snapshot pane.

5. Switch to Run mode.

Click the Run button in the Simulation Status pane.

Protecting, Unprotecting, or Deleting an IC

1. Click the appropriate P-IC, U-IC, P-T-IC or U-T-IC cell.

DYNSIM highlights the row.

2. Click the Protect or Unprotect button, as appropriate (only one button will be
displayed).

Only the owner of an IC can unprotect it. The IC summary table allows you to
select multiple rows and subsequently Protect, Unprotect, or Delete them.

Do not delete a protected IC without unprotecting it first.

IC Collect and Distribute

The IC Distribute and Collect feature is useful for engineers if a simulation with multiple engines
is distributed over a number of machines.

In previous versions of DYNSIM, the user had to manually copy the IC directories of the various
engines to the respective remote machines before loading the IC. If you wishe to share the
simulation file with other users, you must first:

DSS User Guide DYNSIM 5.3.2, December 2016 50


Running a Simulation

• Collect the IC directories of various engines residing in remote machines

• Manually copy those directories the simulations folder in the host machine (where the
Simexecutive is running) and

• Save the simulation.

The IC Collect and distribute function now allows the user to collect the IC information of
multiple engines residing in multiple remote machines to the host machine where Simexecutive is
running. The IC information is stored in a ZIP file. The engineer can share the new simulation
along with the zip file with other users, if they desire. The new user, after editing the simulation
with host and remote machines, must click the Distribute button in the Snapshot Summary
window. This action distributes the respective IC information to the remote engines.

A message appears if the Distribute or Collect operation is successful.

Snapshot summary table supports the following hot keys:

Action Hot Key

IC Selection ALT+F1

Save ALT+1

Load ALT+2

Load & Close ALT+3

Flush ALT+4

Delete ALT+5

Collect ALT+6

Distribute ALT+7

Protect ALT+8

Unprotect ALT+9

Close ALT+0

DSS User Guide DYNSIM 5.3.2, December 2016 51


Running a Simulation

Backtracks
Backtracks allow you to return to an earlier point in time in the current simulation by resetting the
simulation with data recorded at that time. In automotive terms, it is like putting the simulation in
reverse, backing up to a desired spot, and then driving forward.

The Backtrack process takes a ‘snapshot’ of the current status of the simulation and writes this
information to disk. DYNSIM generates a series of Backtrack files, one for each user-specified
time interval. Backtrack files are automatically saved; you do not have to start or stop this feature.
Saving continues as long as the simulation is in Run mode.

Conceptually, the Backtrack file structure is like a ring with N slots around the periphery (N is the
user-specified maximum number of Backtracks to be saved). Each Backtrack file occupies one
slot in the ring. When slot N has been filled, the next file is written to slot 1, over-writing the data
that was there.

You can view the list of current Backtracks at any time. For each Backtrack file, the list includes
the Backtrack number, date, time, the names and values of up to five user-selected keypoints, and
the name of the Backtrack file. Refer to Generating Keypoints for further information on
Keypoints.

When the Backtrack list is displayed, you can:

• reset the simulation with data from a selected Backtrack file and continue from that point

• cancel Backtrack mode

Backtracks and Initial Conditions (ICs) are both snapshots. From the Snapshot Summary screen,
you can view Backtracks only, ICs only, or all snapshots.

In the Snapshot Summary illustrated below, DYNSIM displays only the Backtracks. This
simulation is configured to save a maximum of ten Backtracks. Each backtrack gets saved along
with the corresponding simulation time. Replay actions is displayed as “No” because the
Backtrack replay is restricted to the Instructor mode.

The Replay Actions column is always “No” in the Engineering mode. To know more about how
Replay Action functions, refer to the Backtrack Replay section.

DSS User Guide DYNSIM 5.3.2, December 2016 52


Running a Simulation

Right-clicking a column in the Snapshot Summary window sorts the list by that column.
You can use this feature to sort the list by Backtrack Number, Date, or Time.

Resetting to a Backtrack

1. Click the appropriate BKT cell.

DYNSIM highlights the row.

2. Click the Load button.

DYNSIM asks if you really want to restore the Backtrack.

3. Click the Yes button.

The simulation switches to Freeze mode.

The Simulation Time display reflects the time when the Backtrack was snapped.

The words BKTRK RESET display in the Simulation Status pane.

DSS User Guide DYNSIM 5.3.2, December 2016 53


Running a Simulation

4. Switch to Run mode.

Click the Run button in the Simulator Status pane.

The current Backtrack and oldest Backtrack numbers are updated in the Snapshot
pane.

Backtrack and IC Configuration Dialog


Each simulation can be configured with different values for "Number of Backtracks", "Backtrack
Rate", "Maximum number of ICs", and “Save IC as Text”. The defaults are 10, 60, 100, and false
respectively.

To configure the Backtrack and IC settings of a simulation, select Backtrack & IC


Configuration from the Tools pull-down menu.

The values have to be changed before the simulation run is started. Only the values
changed using this dialog are persistent. Values modified directly using point references
BKTNUM, BKTRAT, and ICNUM on the flowsheet are applied only to that session and are not
persistent.

Backtrack Replay
Backtrack replay is used to record and replay all the operator actions that are logged by the
engines using logEngineAction. This feature is restricted to the Instructor mode and is in sync
with the other third party interfaces such as SCP, TRISIM, and INTOUCH. All malfunctions that
an instructor activates or deactivates during a Backtrack Replay session are also recorded. The

DSS User Guide DYNSIM 5.3.2, December 2016 54


Running a Simulation

replaying of these operator actions and malfunctions is synchronized with the reloading of a
backtrack. The actions are recorded in an operator log file that can be read by the user. The
Backtrack Replay does not replace the Scenario functionality of DYNSIM that has record/replay
capabilities, but is a subset of the full Scenario functionality.

The capability to record operator actions can be turned on and off by the instructor through the
DYNSIM GUI by clicking Start Backtrack Action Recording on the Tools menu or
by setting the SIMBKTRPLY variable, which is defined in the SimExecutive, in the bridge
interface. All the Backtrack Replay and scenario record actions cannot be activated at the same
time.

All the operator actions are recorded into an operator log file. This log file can be viewed in the
DYNSIM GUI application by using the Backtrack/Replay viewer (Tools View Backtrack Action
log). This viewer file can convert the Backtrack/Replay file into a Scenario text file, which can
then be imported by the Scenario Manager to create a Scenario. The user actions associated with
UOM appear in braces in the log file.

The below shown figure is the Backtrack/Replay viewer that has a few replay log records in it.

Backtrack Action is in recording mode and will turn to replaying when you stop the recording.

The Replay Action of the Backtrack you intend to replay must be “Yes”. To replay it, select it and
click Load and Run.

Simulation Speed
The Simulation Speed feature lets you increase or decrease the rate at which simulation proceeds.
The maximum speed at any given time depends on the simulation and the type of computer
hardware used.

DSS User Guide DYNSIM 5.3.2, December 2016 55


Running a Simulation

If the simulation speed is changed from 100%, it no longer reflects the true response time of the
plant or process. This can be detrimental to training if the simulation is being used for an
operator-training simulator.

Simulation speed is expressed as a percentage of actual (wall clock) time. For example, 200 is
twice actual time, 100 is actual time, 50 is one-half actual time.

Simulation speed affects all functions, and operate accordingly. For example, doubling the
simulation speed results in generating two Backtrack files in the actual wall-clock time one file
would be generated when running at actual time.

Operating speed is one variable saved with the Save IC and Backtrack features. If you reset the
simulation with data from an IC or Backtrack file, simulation speed is set to the file (saved) value.

The current requested simulation speed is displayed in and changed from the Simulation Status
pane in the upper left corner of the main DYNSIM screen.

To change the simulation speed, you can type the desired value into the Speed text area, or use
the mouse to operate the ‘spin buttons’ (up and down arrows) to the right of the speed display.

There may be instances where the simulation speed does not exactly match the simulation
speed setting. Please refer to the FAQ section for an explanation.

Single Step
The Single Step feature toggles the simulation engine into and out of Single Step mode. Single
Step mode is typically used as an analysis aid to debug simulations.

When in Single Step mode, the simulation progresses forward in time exactly one time step
(usually 250 milliseconds) each time you click the Run button. After running one simulation time
step the simulation automatically freezes and waits for another run action to be performed. The
Simulation Status is displayed as SINGLE STEP in the Simulation Status Pane.

In the Engineer environment, Single Step mode is selected by freezing the model, then choosing
Single Step Mode Toggle from the Run dropdown menu. You can also toggle single
step mode using the Alt + N key combination.

DSS User Guide DYNSIM 5.3.2, December 2016 56


Running a Simulation

Run Time Operations


Load Full Model Changes

Load Full is a versatile feature of DYNSIM, which enables the user to re-load the complete model
configuration from the database without the necessity to shut down the simulation.

This feature can be accessed by clicking the button present on the toolbar. Alternatively, it
can be done by selecting Engineering Actions from the Run menu.

Load Cross Reference

The Load Cross Reference feature loads all entries to the Cross Reference table. This feature
enables the user to activate the new entries in the Cross Reference Table without having to shut
down and restart the engine.

This feature can be accessed either by clicking button present on the toolbar or by selecting
Engineering Actions under Run menu.

Load Single Engine

The Load Engine feature re-loads only the engine associated with the model, not the complete
model.

To use this feature, either click the button on the active flowsheet toolbar, or right-click a
flowsheet and select “Load Full Associated Engine.”

Use LE functionality if the changes to a parameter value are done in a single engine. If
you are changing parameter values for more than one engine (regardless of whether you are
changing parameters for all engines), use LF functionality.

Load Object

The Load Object feature re-loads only the model object, not the complete simulation or the
engine associated with the object.

To use this feature, either click the button on the active flowsheet toolbar or right-click a
model object and select “Load Object.”

Load Object is not recommended for the following operations:

a) Disconnecting or reconnecting models.

b) Editing connectors associated with the models.

c) Editing model connection parameters using OEV.

DSS User Guide DYNSIM 5.3.2, December 2016 57


Running a Simulation

d) Changing Thermo slate in the model.

e) Renaming the model object.

f) Changing Stream Send/Receive pair when connected to each other.

g) Changing number of passes in PFR, Multi Exchanger, or Fired Heater.

h) Renaming a model object that has any of its parameters given as a reference in
other models.

Use LE or LF for the above mentioned operations.

Save Model States

The Save Model States is a feature that saves the operational data in ASCII format. The name of
the file generated is <Engine Name>States.dat. A Save Model States operation saves all the
current values of STATE and DYNAMIC parameters to this file.

The file is saved in the location <Install Root>\SIMSCI\DSS4.X\Simulations\<Simulation


Name>. The file being in ASCII format, the user can edit it using a text editor to manipulate the
startup conditions. The States file will be subsequently saved as a part of the .s4m file associated
with the particular simulation.

When an engine is loaded for the first time, the simulation is initialized with the values present in
the States file.

If there are multiple engines present in the simulation, one States.dat file will be saved for each
engine.

The States.dat file is dependent on the engine name and if the engine is renamed after saving the
States.dat file, a new States.dat file is to be saved.

The States file can be created by clicking button present on the toolbar. Alternatively, it can
be done by selecting Engineering Actions from the Run menu.

Disable Flowsheet
The Disable Flowsheet functionality provided by DYNSIM allows the user to disable one or more
model objects on a flowsheet or disable a whole flowsheet. It is a convenient feature for tuning a
simulation.

Refer to the Base Equipment manual, Fundamentals section for more details.

DSS User Guide DYNSIM 5.3.2, December 2016 58


Running a Simulation

To disable a model/flowsheet

The disable flowsheet icon is active only if the simulation is running and the user has
selected the model or flowsheet. If a model or flowsheet is disabled, the change will take effect
immediately without performing Load Full (LF).

• A disable button (red stop sign) and an enable button (green check sign) appear
on the toolbar. These may be used to disable (enable) objects selected by the user. The
selection may be an individual object/group of objects on the canvas or on the instance
tree.
An individual object on the canvas may also be disabled/enabled by using the right click
menu for the object. The disabled object will have a stop sign graphical indication as
shown below.

DSS User Guide DYNSIM 5.3.2, December 2016 59


Running a Simulation

• To disable an entire flowsheet, select the flowsheet on the instance tree and click the
disable button on the toolbar.

The disabled flowsheet is indicated with a red cross on the instance tree as shown below.

• To enable the entire disabled flowsheet, select the flowsheet on the instance tree and click
the enable button on the toolbar

Drawing Defaults Tool Tip


The Drawing Defaults in the Options menu is an interactive feature which enables the user to
display information of the model or stream on the fly. It also allows the users to change the look
and feel of the flowsheet, icons on the flowsheets by introducing colors and changing the image
scheme and label fonts.

The Drawing Defaults dialog box is displayed below and has six tabs: General, Streams, Models,
Colors, Icons and Connections.

DSS User Guide DYNSIM 5.3.2, December 2016 60


Running a Simulation

General Tab

The General tab allows the user to:

• Prompt for new name whenever the user drops a new object on the flowsheet.

• Display hidden names when mouse pointer is rolled over object. For example, stream
names.

Check or clear the options as required. By default, both options are checked.

Streams Tab

The Streams tab allows the user to:

• Display stream properties when the mouse pointer is hovered on the screen. These
properties could be Stream Name, Temperature, Pressure, Flow rate, Vapor/liquid
fraction.

• Change the default stream name location. The default is Hide.

DSS User Guide DYNSIM 5.3.2, December 2016 61


Running a Simulation

• Change the label font characteristics.

Models Tab

Model object tool tip is a popup, which gives brief information about the critical parameters of
the model. The popup is displayed when the mouse cursor is positioned over the model. The
popup is static in nature and the parameter values are not refreshed. The popup will disappear
automatically after five seconds or if the cursor is moved away from the model. The figure below
illustrates the model tool tip popup for a pump.

By default, the model tool tip option is checked to display the model properties. To turn off the
option, from the Options menu select Drawing Defaults. Click on the Models tab and clear the
check box.

The model tool tip supports only a few critical parameters for each model in DYNSIM
4.3.

Colors Tab

DSS User Guide DYNSIM 5.3.2, December 2016 62


Running a Simulation

The Colors tab allows the user to:

• Apply a color scheme for the flowsheet background

• Fill the icons with a color scheme.

By default, no color schemes are selected.

Icons Tab

The Icons tab allows the user to:

• Change the icon label font characteristics like font size, weight, and color

• Change the image scheme; 3D or 2D icons. Default is 3D scheme

• Change the appearance of the feed and product ports.

DSS User Guide DYNSIM 5.3.2, December 2016 63


Running a Simulation

Connections Tab

The Connections tab allows the user to show connector arrows. By default, it is checked.

DSS User Guide DYNSIM 5.3.2, December 2016 64


Utilities/Tools

Utilities/Tools
Trends and Plots
This topic includes the following subjects:

• Overview

• Guidelines for Effective Use of Trend

• Trend Examples

• Creating a New Trend

• Displaying/Modifying an Existing Trend

• Deleting a Trend

• Trend Functionality

• Configurable Default Trends

• Plots

Overview

Trending refers to the real-time plotting of point values against time.

Trends for any number of points can be displayed simultaneously. All points and model
parameters are candidates for trending.

You can specify the following for each parameter plotted:

• Y-axis minimum value (Y-Min)

• Y-axis maximum value (Y-Max)

• Collection set over which the point needs to be plotted

• Color and Styles.

You can specify the following that affect the entire trend display:

• Time span represented by the chart (Time Span)

• Time span represented by each division on the chart (Time Grid Spacing).

DSS User Guide DYNSIM 5.3.2, December 2016 65


Utilities/Tools

The Time Span determines the horizontal (X-axis) scale. The Time Grid Spacing determines the
granularity of the X-axis scale.

The vertical (Y-axis) scale is fixed at 10 divisions. For each parameter, Y-Min and Y-Max define
a band of Y-axis values. If desired, Trend will automatically and continuously scale the Y-axis.
This feature can be specified on a parameter basis by using the ‘AUTO’ checkbox.

Collection sets define the sample period and duration of the interval over which the data is
collected for a given point. There are four pre-defined collection sets.

• Very Fast

• Fast

• Medium

• Slow

Collection sets can be configured using Data Historian user interface. Note that the very fast
collection set is not enabled by default.

Each trend point can be represented with a different color and line style. The various colors and
line styles that can be assigned to a particular trend point can be selected from the combo box
under colors and styles field respectively.

Trending is active only while the Simulator is in Run mode. Parameter values are sampled over
the specified collection set and plotted. Trend data acquisition occurs through the Data Historian
whether or not trends are being displayed. Thus, if you close the Trend then return to it, the
Trend is immediately current.

When you save a group, DYNSIM instructs you to select the desired Flowsheet from a list of
existing Systems. In response, DYNSIM places a trending object on the Flowsheet canvas and
adds the trending name to the list of models in the System. Note that you’ll have to collapse and
expand the Flowsheet entry in the Instances Tree to see the new trending object.

Trend data (history) is saved and restored with Initial Conditions and Backtracks. When the initial
conditions are restored, if you choose to reset simulation time to zero, the time axis is rescaled
such that all the restored time values are negative leading up to current simulation time of zero.

Trend history is saved in an IC or Backtrack. Restoring an IC or Backtrack restores the


actual trend line. However, restoring an IC or Backtrack saved prior to the time stamp of the
creation of trend will restore a trend line only if that point was present in the Data Historian when
the initial condition or backtrack was saved.

Guidelines for Effective Use of Trends

1. Choose a collection set based on how much data you want to be able to review.
If you want to be able to recall/review data for the last 10 minutes, choose the

DSS User Guide DYNSIM 5.3.2, December 2016 66


Utilities/Tools

collection set Fast.

2. To ensure that a trend extends the entire width of the chart, specify a collection
set whose duration is at least as long as the chart time span.

3. A small interval provides a more accurate picture of the changing value of a


parameter. The minimum interval is the simulation time step (usually 0.25
seconds). Choosing “Very Fast,” collection set provides the ability to sample at
every simulation time step. However, this collection set must be enabled by the
user in the Historian dialog.

Trend Examples

The figure below illustrates the effect of keeping the auto-scaling feature off.

DSS User Guide DYNSIM 5.3.2, December 2016 67


Utilities/Tools

In the figure above, the only change we have made is to turn on Trending auto-scaling feature.
Note the checkmark in the three Auto checkboxes. The Y-Min and Y-Max values have been
automatically adjusted to a range that more closely resembles the actual values assumed by the
three parameters. Note the effect on the three trends.

Creating a New Trend

1. Click the Trend button on the main DYNSIM toolbar or

Choose Trend from the Tools menu or

Select the Trend object from the Types Tree and add it to the desired Flowsheet
canvas.

The Trending window is displayed. If you added the Trend object from the Types
Tree, double-click on it to display the window. The title bar indicates unnamed.

2. Type a description for the trend group. This description is optional, but
recommended.

3. Specify the desired time span and time grid spacing.

Choose a value from the dropdown list or type a new value. If you type a value,
you must specify the time units: ‘s’ for seconds, ‘m’ for minutes, or ‘h’ for hours.

4. Indicate the points to be plotted.

For each point:

DSS User Guide DYNSIM 5.3.2, December 2016 68


Utilities/Tools

Type the name in the Point: text area

Click the Add button (or press the Enter key)

5. Specify the desired values for Y-Min, Y-Max, Color, Line Style and Collection set.

Refer to the guidelines presented above.

6. Indicate whether you want DYNSIM to auto-scale the Y-axis values.

Auto-scaling is set ON by default. You can disable/enable it by


unchecking/checking the Auto checkbox.

Check the Y-axis checkbox to display the Y-axis for each point plotted.

7. Click the Apply button to apply the settings you have made to the database.

8. To save the trend group you’ve defined, click the Save button or the Save &
Close button, then supply the requested information: Flowsheet and Trend Name.

DSS User Guide DYNSIM 5.3.2, December 2016 69


Utilities/Tools

Each Trend is associated with one Flowsheet. In the illustration above, the
Trend is associated with Column.

Displaying/Modifying an Existing Trend

Each Trend is associated with a simulation Flowsheet. A Trend icon for each defined trend is
shown on the Flowsheet canvas and in the Instances Tree. To access an existing trend , you must
display the appropriate Flowsheet canvas or expand the Flowsheet in the Instances Tree.

1. Double-click the desired trend icon on the Flowsheet canvas or

Click the desired trend icon in the Instances Tree then click the View button on the
main DYNSIM toolbar.

The Trend window is displayed.

The Freeze button at the bottom of the Trend window can be used to temporarily
suspend chart movement so you can review the trends. The horizontal scroll bar at
the bottom of the window allows you to scroll back in time.

2. Make the desired changes to the trend group.

If the point table is not displayed, click the Show Table button.

To delete a point, click on it in the table then press the Del key on the keyboard
or click the Delete button in the Trend window.

To add a point, type the name into the Point: text area then click the Add button.
Set the desired values for Y-Min, Y-Max, Interval, and Duration..

Change the fields for existing parameters if desired: Y-Min, Y-Max, Color, Line
Style and Collection set

Change the Time Span and Time Grid Spacing values if desired.

3. Click the Apply button to apply the changes that you have made to the database.

DSS User Guide DYNSIM 5.3.2, December 2016 70


Utilities/Tools

4. Click the Save button or the Save & Close button, as appropriate.

Deleting a Trend

Each Trend is associated with a simulation Flowsheet. A Trend icon for each defined trend is
shown on the Flowsheet canvas and in the Instances Tree. To access an existing trend , you must
display the appropriate Flowsheet canvas or expand the Flowsheet in the Instances Tree.

1. Right-click on the desired trend icon on the Flowsheet canvas then choose Delete
from the dropdown menu (OR)

Click the desired trend icon in the Instances Tree then click the Delete button on
the main DYNSIM toolbar.

DYNSIM asks if you really want to delete the trend:

Click the appropriate button.

The trend may remain on the Flowsheet canvas and in the Instances Tree
until you collapse and expand the Flowsheet entry in the Instances Tree and perform
a Validate Graphics operation on the canvas.

Trend Functionality

Each point is sampled at an interval specified for the collection set. Based on the sampled value
and the point-specific Y-axis scaling, DYNSIM effectively inserts a point on the chart, and then
draws a straight line between that point and the previous point. The value plotted is the point’s
instantaneous value. There is no value averaging over time.

An updated point value is available every simulator time step (usually 250 milliseconds). The
collection set you choose determines how many of these updated values are ignored. For
example if you specify choose the “Fast” collection set (which by default has an interval of 2.5
second), you are instructing DYNSIM to look at every tenth value, ignoring the nine intermediate
values.

For a given point, the sample size (Samples) is same as the sample size for the collection set over
which it is trended. You can scroll back as many points as specified by the Samples value. When
you freeze the Trend, you can scroll back up to the duration of the collection set.

DSS User Guide DYNSIM 5.3.2, December 2016 71


Utilities/Tools

Configurable Default Trends for Base Equipment Library

Default Trends have been added for all the models in the Base Equipment library (Drum, Header,
Expander, Pipe, Shaft, Mixer, Splitter, Valve, Transmitter, StreamSet, Stream, MechStream and
HeatStream).

Invoking the Default Trend creates a new trend instance with pre-configured parameters. It also
adds corresponding data points to the Data Historian. It can be invoked by right-clicking the
respective model object in the flowsheet canvas.

The list of parameters included in the default trend for each model can be modified by editing the
TRENDCONFIG.xml file located in \SIMSCI\DSSxx\GUI\Trends. A screenshot of the user
editable configuration file is shown below.

DSS User Guide DYNSIM 5.3.2, December 2016 72


Utilities/Tools

Plots

Profiles and XY plots work like trends. They can be dragged from the References Library and
placed on a flowsheet.

Select XY Plot from the References library in the Instances Tree and drop it on the desired
flowsheet.

Enter a name for the plot in the corresponding dialog box. An icon is displayed on the
flowsheet. Double-click the icon and then select a plot from the drop-down list.

The pre-defined plots available in DYNSIM are:

• General XY Plot – Plots any valid parameter (any valid point in the simulation) against
another parameter. Point history can be kept, so it forms a squiggly line.
Compressor Curve : Plots DH vs Q on top of a compressor map and surge line in the
background. Operating point history is maintained to show a squiggly line indicating
how close operation comes to surge. If a compressor model is configured with multiple
curves for different speeds and different IGVs, additional curves appear on the plot with
the operating point on the corresponding IGV curve. We are proposing to have three
radio buttons namely All, IGV, and Speed as shown in the following figure.

DSS User Guide DYNSIM 5.3.2, December 2016 73


Utilities/Tools

By default, “All” radio button is selected. Three radio buttons are explained below.

a) All: Display all the curves. The color of the curves will be different for different
IGV and Speed.

b) Speed: Display curves at multiple IGV position for a given speed. User can
choose the dropdown to select the speed.

c) IGV: Display curves at multiple Speeds for a given IGV position. User can choose
the dropdown to select an IGV position.

User can select any other button depending upon the number and nature of curves. For
example, if 12 curves exists at four different speeds and three IGV positions, selecting All
option may not give good visibility of the curves. In that case, user can select IGV radio
button, where he can see four speed curves at each IGV position. Similarly, if six curves
exists (different speeds) at one particular IGV position, Speed radio button can provide
better usability.

• Pump Curve: It behaves the same as compressor curve but no surge line and no lines at
alternate speeds.

• Tower Profile. Plots specific column tray variables against tray number. For example, a
profile plot may have stage temperatures and stage pressures as a function of number of
stages. This is a special form of the profile plot. The variables available for plotting can
be selected from the dropdown list.

• MultiExchanger / PFR Profiles. These profile plots are similar to the Tower plots and
can plot any element parameter against element number.

DSS User Guide DYNSIM 5.3.2, December 2016 74


Utilities/Tools

• Olga Profile Plots. This plot can be used to establish OLGA pipeline profile data by
reading pre-defined profile data from an ASCII file. The users need to specify the Olga
Interface Engine Name.

The user is not allowed to add multiple XY/Profile Plot types or multiple plots
(parameters) on a single profile plot.

Plot of Compressor dynamic operating point

This plots the instantaneous operating point of the compressor. The compressor characteristic
curve at each speed is shown in the background. Also, the Surge line is plotted as a slightly
wavy curve if a surge curve is defined or as a straight line from the origin if no surge curve is
defined. The plot helps you to visualize the current operating point vis-à-vis the characteristic
curve. The Surge line serves an additional purpose of allowing you to visualize the approach of
the current operating point to Surge conditions. The operating point is shown in black and the
history is shown in grey. You may change the colors and the styles of the line.

Plot of Pump dynamic operating point

This plots the instantaneous operating point of the pump. The Pump characteristic curve at the
reference speed appears in the background. It is similar to the compressor plot except that there
are no multi-speed curves and no surge line.

DSS User Guide DYNSIM 5.3.2, December 2016 75


Utilities/Tools

In both the plots, negative flow rates and heads are not plotted.

Plot of Tower Profiles

Tower profile plot is a special version of the general profile plot. A Tower profile requires two
entries, Tower and parameter such as T, P, Fv, Fl, Composition, etc. All the parameters will be
available through a drop-down list.

Each parameter plot is a function of the tower stage number. The history lines showing the
transient behavior of the parameters will be plotted in a different color.

DSS User Guide DYNSIM 5.3.2, December 2016 76


Utilities/Tools

Plot of Multi Exchanger profiles

Multi Exchanger profile plot is a special version of the general profile plot. A Multi Exchanger
profile requires two entries, Multi Exchanger and the parameter such as Flow.T, Wall.T, Q. The
parameters are available through a drop-down list. The parameters are a function of the number of
elements. The history lines showing the transient behavior of the parameters will be plotted in a
different color.

Plot of PFR profiles

PFR is an extension of the multi exchanger profile plot. A PFR profile requires two entries, PFR
and the parameter such as Flow.T, Wall.T, RPASS.T, RPASS.P, Q, Composition, Reaction Rate,
etc. All the parameters are available through a drop-down list. The parameters are a function of
the number of elements. The history lines showing the transient behavior of the parameters will
be plotted in a different color.

DSS User Guide DYNSIM 5.3.2, December 2016 77


Utilities/Tools

The XY and Profile plots support changing UOM slates for both default and custom slates.
The units in the table as well as in the plot change automatically according to the slate selected.

DSS User Guide DYNSIM 5.3.2, December 2016 78


Utilities/Tools

Plot of Olga Profiles

The Olga profile plot requires three entries; Engine name, Branch, and parameter. The parameters
such as GG, HOL, PT are available as a drop-down list. The parameters are a function of the
number of segments in the entire pipe length in Olga. The x-axis is the length of the entire
pipeline.

Changing Trend/Plot Background Color

Background color for Trend/Plot can be changed through Draw Attribute of Trend/Plot. You can
select background color to be white or black. Default background color is white.

Malfunctions
This topic includes the following subjects:

DSS User Guide DYNSIM 5.3.2, December 2016 79


Utilities/Tools

• Overview

• Operating Parameters

• Basic Operation

• The Malfunction Summary Window

• Malfunction Status Indicator

• Creating a New Malfunction

• Modifying/Executing an Existing Malfunction

• Deleting an Existing Malfunction

Overview

A Malfunction can be defined as an unexpected, abnormal occurrence. For example, a valve that
does not operate as commanded.

The introduction of malfunctions is one of the most important aspects of simulator based training.
It tests an operator’s ability to analyze and correctly respond to problems in the physical plant.
Without a “Malfunctions” capability, simulator- trained operators would be capable of handling a
plant only under normal operating conditions.

Any number of individual malfunctions can be created and optionally saved for recall and reuse.

Each malfunction directly affects a single model (such as a motor, valve, transmitter, and so on).
Each individual model is associated with a single Flowsheet. Subsequently, each malfunction is
associated with a single Flowsheet. A given Flowsheet can incorporate any number of distinct
malfunctions. In addition, there may be many malfunctions for a single model. In this scenario ,
DYNSIM initially assigns a unique number to each new malfunction and they will be identified by
the Flowsheet and number. DYNSIM also furnishes a description for each new malfunction.
Both the number and the description can be overridden if desired.

When you select an object to malfunction, DYNSIM displays a customized window that reflects
malfunction characteristics specific to that object type. Example: If the selected object is a valve,
DYNSIM provides a list of nine predefined valve failure modes, some discrete and some analog.

DSS User Guide DYNSIM 5.3.2, December 2016 80


Utilities/Tools

Malfunctions are broadly classified as analog or discrete, depending on their


result, and the type of outcome. The final (mature) value of an analog malfunction
is the desired value of the malfunction variable that needs to be attained finally
upon activation of the malfunction. A discrete malfunction has a fixed (discrete)
number of possible final states.

Operating Parameters

Each malfunction has an associated set of operating parameters. The content of this set depends
on the type of malfunction. The illustration below shows a Malfunction window for a valve
model. The window has been expanded by clicking the Options button to display optional
parameters. The selected failure mode, such as Valve Blockage, defines this as an analog
malfunction. The operating parameters are described below the graphic.

The following operating parameters are available for all malfunctions:

• Delay Time

• Mature Value (analog)

• Mature State (discrete)

DSS User Guide DYNSIM 5.3.2, December 2016 81


Utilities/Tools

• Oscillation (analog)

• Chatter (discrete)

Delay Time lets you delay the onset of a malfunction from zero seconds (immediate
activation) to almost 100 hours. The Delay Time displayed in the Malfunction window is the
time remaining until delay expiration. In the illustration above, a delay time of 30 seconds
has been requested. Note that the Delay Time checkbox has been checked. This selection is
required to invoke the delay time feature.

For analog malfunctions, Mature Value is the desired value of the malfunction variable that
needs to be attained finally upon activation of the malfunction. The allowable range of values
depends on the type of malfunction. The low limit and high limit are displayed in the
Malfunction dialog.

Analog malfunctions have both a current value and a mature value. You need to
specify the mature value in the malfunction window. DYNSIM maintains and
displays the current value as the malfunction executes. When the current value
reaches the mature value, the malfunction has matured.

For discrete malfunctions, the Mature State indicates the final state of the object. Two
examples are illustrated here:

• Several objects have a ‘Broken Shaft’ failure mode. The single Mature State for
this malfunction is Broken Shaft.

• A Circuit Breaker object has an ‘Inhibit Open/Stop Command’ failure mode. The
options for the final state are Inhibit Manual Only, Inhibit Auto Only, and Inhibit
Both.

Discrete malfunctions have both a current state and a mature state. You need to
specify the mature state in the Malfunction window. DYNSIM maintains and
displays the current state as the malfunction executes. At maturity, the current
state is set to the mature state.

Oscillation provides options for modulating the current value with a sine wave or random
oscillation . You can specify the amplitude and period of the modulating waveform.

Chatter causes the current state to toggle between the Mature State and a Not Active state, at
a specified interval.

In addition to the operating parameters described above, some malfunctions provide these user-
modifiable parameters:

• Engage Rate (analog)

• Disengage Rate (analog)

• Set Trigger

DSS User Guide DYNSIM 5.3.2, December 2016 82


Utilities/Tools

• Reset Trigger

Engage Rate allows you linearly increase (ramp up) the current value of a malfunction at a
specified rate until it reaches the Mature Value. This feature simulates a time- dependent
malfunction. Engage Rate can be specified as any desired percentage (per second) of the
Mature Value. If you do not specify an Engage Rate, the current value immediately assumes
the Mature Value on malfunction initiation.

Disengage Rate allows you linearly decrease (ramp down) the current value at a specified
rate until it reaches zero. The ramp occurs after the malfunction has matured and you have
clicked the Deactivate button in the Malfunction window.

Set Trigger allows you to specify a condition(s) that must be true before the malfunction
executes. In the illustration above, motor MCN1 must trip before DYNSIM starts
decrementing the Delay Time. Another example: typing DRUM.P > 2000 into the Set
Trigger frame instructs DYNSIM to initiate the malfunction when drum pressure exceeds
2000 psi.

Expressions in the Set Trigger and Reset Trigger frames must be capable of being
evaluated to TRUE or FALSE. Refer to Equation Utility for a list of valid
operators.

Reset Trigger is a condition(s) that, when true, immediately deactivates an active


malfunction.

The parameters discussed above can be used in combination. For example, for an analog
malfunction you could concurrently specify Delay Time, Engage Rate, and Oscillation. When
you activate the malfunction the delay timer counts down to zero then the current value begins to
ramp up toward the Mature Value at the rate specified by the Engage Rate as modulated by the
Oscillation parameters.

Basic Operation

At any given time, a malfunction is in one of several possible conditions or modes. The modes
are as follows:

• Configuration

• Waiting On Set Trigger

• Waiting On Delay

• Engaging Ramp

• Mature

• Disengaging

DSS User Guide DYNSIM 5.3.2, December 2016 83


Utilities/Tools

• Disengaging By Reset Trigger

• Deactivated

• Deactivated By Reset Trigger

The current mode of a malfunction is indicated in the top right corner of the Malfunction window.

A new malfunction always starts in the Configuration mode. This mode allows you to specify the
desired operating parameters (described earlier in this topic). After a malfunction has matured
and been deactivated, it returns to Configuration mode, ready to be modified and/or executed
again.

After configuration, a malfunction is ready to be saved and/or activated. Both operations are
requested from buttons at the top of the Malfunction window. Activating a malfunction initiates
execution. Based on the parameters specified in the Malfunction window, the malfunction
immediately transitions to one of the modes listed above. During execution, messages in the
Malfunction window keep you apprised of the progress of the malfunction.

Active malfunctions are listed in the Active Malfunctions pane at the top of the main
DYNSIM screen. Malfunctions remain listed until they are deactivated.

When the current value of a malfunction reaches the Mature Value, it transitions to Mature mode.
A mature malfunction has fully affected the simulation. With the possible exception of
disengaging options, all requested operations have been completed.

As indicated by its presence in the Active Malfunctions list, a matured malfunction is still
affecting the simulation. Example: If the malfunction simulated a broken valve stem, the
simulated stem remains broken as long as the malfunction is in a matured mode.

To remove the effect(s) of a malfunction, you must deactivate it by clicking the Deactivate
button in the Malfunction window. At that time, the malfunction transitions to Disengaging
mode. If specified, the Disengage Rate is applied as the malfunction’s current value ramps down
to zero (analog malfunctions only). The malfunction then transitions to the Configuration mode.
At that time, the malfunction is removed from the Active Malfunctions list.

Note that an active malfunction can be cancelled at any time by clicking the Deactivate
button.

DSS User Guide DYNSIM 5.3.2, December 2016 84


Utilities/Tools

The Malfunction Summary Window

The Malfunction Summary window lists saved malfunctions. Using the pull-down menu, you
can display malfunctions for all Flowsheets in your simulation, all active malfunctions, or
malfunctions for just one Flowsheet. The sample below displays malfunctions for all Flowsheets.

The Malfunction Summary window is displayed by clicking the Malfunction Summary button at
the top of the Active Malfunctions pane.

The Malfunction Summary window includes buttons to Edit (and view), Delete, Activate,
and Deactivate a selected malfunction.

The Malfunction Status Indicator

The graphical indication gives the status of the Malfunction configured to equipment. This will
help the instructor to identify easily which equipment is subject to malfunction. The indicator will
be on top right of the equipment for which the engineer has saved a pre-configured malfunction.
The color of the indicator gives the status of the malfunction such as Inactive, Waiting on delay,
and Mature.

Bl k I ti Y ll W iti D l ti R d M t
To edit the malfunction status indicator attributes, right-click on the graphic and choose Draw
Attributes from the displayed menu. A Draw Attributes dialog box is displayed as indicated
below:

DSS User Guide DYNSIM 5.3.2, December 2016 85


Utilities/Tools

The status “Default” indicated that it follows the option selected in Options menu/Drawing
Defaults. The user can override this by selecting Hide/Show from the Draw attributes of the
specific model.

Creating a New Malfunction

1. Display the Flowsheet canvas that includes the object to malfunction.

2. Click the object to select it.

If the object is a candidate for malfunctioning, the New Malfunction button is


enabled in the Active Malfunctions pane.

3. Click the New Malfunction button.

DYNSIM displays a new Malfunction window. Refer to the illustration given


above.

4. Select the desired Failure Mode from the dropdown list.

DSS User Guide DYNSIM 5.3.2, December 2016 86


Utilities/Tools

DYNSIM modifies the parameters to reflect the type of failure. Also, the
selected points are appended to the bottom of the window. The values in this
window update dynamically as the malfunction executes.

5. Click the Option button to display other available parameters.

6. Select and/or set the desired optional parameters.

To enable an option, you must check the checkbox as well as providing the
desired parameter information.

7. If you want the malfunction saved for later recall, click the Save button.

8. To execute the malfunction, click the Activate button.

When the malfunction activates, the Activate button becomes a Deactivate button.
You can prematurely terminate the malfunction by clicking this button.

Modifying/Executing an Existing Malfunction

1. Click the Malfunction Summary button at the top of the Active Malfunctions
pane.

The Malfunction Summary table is displayed. Refer to the illustration above.

2. Click on the line representing the desired malfunction.

3. Display the Malfunction window.

Click the Edit button at the top of the Malfunction Summary window.

If you do not want to modify the operating parameters, skip to step 8 of this
procedure.

4. Select the desired Failure Mode from the dropdown list.

DYNSIM modifies the parameters to reflect the type of failure. Also, the
selected points are appended to the bottom of the window. The values in this
window update dynamically as the malfunction executes.

5. Click the Option button to display other available parameters.

6. Select and/or set the desired optional parameters.

To enable an option, you must check the checkbox as well as providing the

DSS User Guide DYNSIM 5.3.2, December 2016 87


Utilities/Tools

desired parameter information.

7. If you want the malfunction saved for later recall, click the Save button.

8. To execute the malfunction, click the Activate button.

When the malfunction activates, the Activate button becomes a Deactivate


button. You can prematurely terminate the malfunction by clicking this button.

Deleting an Existing Malfunction

1. Click the Malfunction Summary button at the top of the Active Malfunctions pane.

The Malfunction Summary table displays. Refer to the illustration above.

2. Click on the line representing the desired malfunction.

3. Press the Del key on the keyboard

Or

Click the Delete button at the top of the Malfunction Summary window.

DYNSIM displays a dialog box asking your confirmation to delete the


malfunction. Click the appropriate button. The illustration below show both the
highlighted (selected) line in the summary window and the Delete
Malfunction window.

Scenarios
Scenarios area programmed sequence of actions, such as setting parameters, triggering
malfunctions or executing a Trainee Performance Monitoring (TPM) exercise used to perform
repetitive set of commands. The execution of an exercise initiates individual operator actions at
configurable time intervals, such as opening a valve or starting a motor.

DSS User Guide DYNSIM 5.3.2, December 2016 88


Utilities/Tools

This topic includes the following subjects:

• Overview

• Creating a New Scenario

• The Scenario Manager

• Executing a Scenario

• Editing a Existing Scenario

• Viewing the Recorded Scripts

• Deleting a Saved Scenario

• Right Click Options

• Scenario Commands

Overview

The Scenario tool allows the user to save a sequence of actions, such as starting a pump,
activating a malfunction, or setting a demand, to a file that can be edited. The file can be

generated by selecting a Record button or by typing the commands to a text file. This file can be
executed using the Playback feature at any time the simulator is running.

The steps listed in a scenario file might include restoring an Initial Condition (IC) or Snapshot,
starting a pump, placing a controller in manual and setting the output, waiting for a tank to fill,
placing the same controller in automatic and setting a demand, then freezing the simulation and
saving an IC.

The following types of actions can be recorded:

• Activate/Deactivate malfunctions

• Freeze/Unfreeze process simulation

• Save/Restore snapshots

• Start and Stop TPM

• Remote functions

• Controller mode changes

• Controller set point change

• Controller output change in manual mode

• Discrete output changes (valves open/close, pumps/motors start/stop).

DSS User Guide DYNSIM 5.3.2, December 2016 89


Utilities/Tools

Scenarios can also be used for engineering studies and has the following features:

• Execution of a simulation case

• Batch execution of multiple cases overnight.

Creating a New Scenario

Click the Scenario icon present in the GUI or press F12. The Scenario Manager Table is
displayed.

A new scenario can be generated by any of the following three methods:

1. Importing the file

Click the Import button on the menu bar of the Scenario Manager table or select Alt – I

2. Through Scenario Manager

To generate a New Scenario through Scenario Manager, Click the icon on the toolbar.
To proceed further, perform the following actions:

a. Click Add button in the Scenario Manager window.

The New Scenario window is displayed.

Type the appropriate text in the fields Scenario Name, Description and Author.

b. Click the OK button.

A Text editor for the new Scenario is displayed. In the Text editor, Scenario
commands can be written.

DSS User Guide DYNSIM 5.3.2, December 2016 90


Utilities/Tools

c. Click the Save button, to save the Scenario. The saved status is displayed at the
bottom of the Text editor. The newly created scenario can be viewed in the Scenario
Manager table.

3. Recording a New Scenario

a. Click the Start Recording button on the Scenario Manager table toolbar.
It starts recording the events and a Snapshot is taken immediately.

This button is used to toggle the scenario either to start or stop recording.
The button changes to a flashing red to indicate that the recording is in progress
and also the label of the button is changed to Stop Recording

b. Click the Pause Recording button to temporarily stop the recording of events.
This feature prevents long or inappropriate Wait times to allow the user, time to
consider his next step.

c. Click the Pause Recording button again to resume the recording session.

d. Click the Stop Recording button to completely terminate the recording.

4. To Save the Recorded Scripts perform the following actions:

DSS User Guide DYNSIM 5.3.2, December 2016 91


Utilities/Tools

a. Upon selecting Stop button, a popup window is displayed.

b. Click Yes to Save the session.

A Record Scenario window is displayed.

Type the appropriate text in the three fields.

c. Click the OK button to save the session.

A text editor window for the saved scenario is displayed.

DSS User Guide DYNSIM 5.3.2, December 2016 92


Utilities/Tools

The user can write comments on the recorded script or modify the session. Refer to the
topic Scenario Commands for a list of commands.

The Scenario Manager

The Scenario Manager lists all the scenarios stored on a particular system. Actions such as Edit,
Delete, Import and so on, can be performed through Scenario Manager. The Scenario Manager
toolbar has the following buttons.

DSS User Guide DYNSIM 5.3.2, December 2016 93


Utilities/Tools

The Scenario Summary window is displayed by clicking the Scenario Summary button on
the main toolbar.

A summary of how the buttons operate is listed below:

Run Executes the selected scenario.

Stop Ends the scenario execution.

Edit Allows the modification of an existing scenario.

Add Allows a new scenario to be added.

Import Allows a scenario to be imported from a file. The file should be saved as a
scenario script file (.ssf)

Export Allows a scenario to be exported to any folder location. The file is saved with an
extension .ssf

Start/Stop Allows a scenario to be recorded or stopped.

Recording

Pause Pauses a recording session.

Recording

Delete Deletes the selected scenario from the database.

Close Closes the Scenario Manager window.

Refresh Refresh the entire table.

Print Allows printing single or multiple scenarios.

The Scenario Summary table provides additional details such as Step Number, Current Point
Value, Target Point Value, Step Elapse Time and Scenario Elapse Time. These details help the
engineer to keep track of the progress of the Scenario run.

The Scenario Summary table displays the point values in current UOM slate engineering units
and not in DYNSIM Internal Units.

DSS User Guide DYNSIM 5.3.2, December 2016 94


Utilities/Tools

Step Number Displays the current step number the scenario is executing

Current Point Displays the current value of the particular parameter used in WAIT UNTIL <>
Value command; for WAIT <> command, displays the elapsed WAIT time.

Target Point Displays the target value for the WAIT UNTIL <> command; for WAIT <>
Value command, displays the total WAIT time.

Step Elapse Displays the elapsed time for that particular WAIT <> or WAIT UNTIL <>
Time command.

Scenario Displays the total elapsed time since the scenario started.
Elapse Time

Run Mode

Engineering Scenario: As mentioned above, Engineering Scenario allows the user to save a
sequence of actions, such as starting a pump, activating a malfunction, or setting a demand, etc.
The file can be generated by selecting a Record button or by typing the commands to a text file.
This file can be executed using the Playback feature at any time when the simulator is running.

Automated Training Exercises: An Automated Training Exercise (ATE) is an exercise that


can be completed by the trainee in the absence of instructor supervision or interaction.

When a pre-defined scenario is selected in ATE mode, operator actions are recorded with unique
identifiers: OP for operator when the command is completed using the DYNSIM interface, and
PERFORM when the command is completed using other operator interfaces. Please refer to
Automated Training Exercise section for more details on functionality of ATE.

Playback: The Engineering scenarios or ATE scenarios can be played back at a later time using
playback client. This can be used by the instructor to review the operator actions performed using
ATE scenarios.

Executing a Scenario

1. Ensure that the Simulation is in Run mode.

2. Select the scenario to be executed, which enables the Run button.

3. Click the Run button to execute the scenario. The command execution along with the
running status can be viewed in the summary table.

DSS User Guide DYNSIM 5.3.2, December 2016 95


Utilities/Tools

4. Stop button will be enabled, once the Run button is clicked.

5. Once the execution of the scenario is complete, a window displays a feedback message.

The scenario can be stopped prior to its completion by clicking the Stop button. When the
Stop button is clicked, a popup window is displayed to verify that the user wants to stop the
scenario execution.

Editing an Existing Scenario

1. To modify a scenario, make sure it is in unprotected mode.

Select an existing scenario from the Scenario Manager table.

2. Click the Edit button on the Scenario Manager table.

A New Scenario window is displayed. Edit the appropriate fields.

3. Click OK button.

A text editor for the scenario is displayed.

DSS User Guide DYNSIM 5.3.2, December 2016 96


Utilities/Tools

4. Modify the file as desired. Refer to Scenario Commands for a complete list of
commands.

5. To save the scenario, click the Save button. The saved status is displayed at the bottom
of the text editor.

View the Recorded Scripts

1. Open the Scenario Manager.

2. Select a desired scenario by clicking on the Scenario ID field.

3. The scenario can be opened by using the Edit option available on the menu bar or by
selecting the scenario and right clicking to select the scenario.

Deleting a Saved Scenario

1. Deleting a scenario will remove the scenario from the database.

Select an existing scenario from the Scenario Manager Table.

2. Click the Delete button on the Scenario Manager Table.

A pop up window is displayed asking, “Sure to delete Scenario.”

3. Click the ‘Yes’ button.

Printing a Saved Scenario

Open the Scenario Manager.

Select a desired scenario by clicking on the Scenario ID field.

Clicking the Print button displays “Select Scenario for printing” dialog where user can

DSS User Guide DYNSIM 5.3.2, December 2016 97


Utilities/Tools

select multiple scenarios for printing.By default, Selected scenario will be checked for
printing.

4. On clicking “OK” from the above window results in the Printer dialogbox and user can
select various options like Paper size, Orientation etc.

Right Clicking Options

1. Hide Column

This option displays a window showing the visible columns. To hide a column, select
the desired field from the window. For example, to hide the author column, select
Author.

Click OK. The Author will not be displayed in the Scenario Manager table.

2. Show Column

This option shows the hidden columns. To view hidden columns, right-click and select
Show Column.

To view the author column again, select Author.

DSS User Guide DYNSIM 5.3.2, December 2016 98


Utilities/Tools

Click OK. The Author column is displayed in the Scenario Manager table.

Scenario Commands

The scenario files are simple text files, which can be edited inside the Scenario Editor screen.
Following commands are recognized by the application.

Commands Description

“//” The Lines starting with “//” are treated as the Comments.

Example:

// Restore the Simulation

Load IC 23;

Run; // Begin execution

“;” The semi-colon acts as the character for termination of current command.

Example:

Load IC 23; //Load Initial Condition #23

Time Units Scenarios recognize three time units, namely, sec, min and hr. The default is
seconds. A comma-separated list of these three units is also recognized.

Wait 10; // Wait 10 seconds

Wait 10 sec; // Wait 10 seconds

Wait 10 min; // Wait 10 minutes

Wait 10 hr; // Wait 10 hours

// Mixed time units are also recognized

Wait 10 hr, 35 min, 40 sec;

UOM override Several scenario commands act on a point to change its value. In these cases,
for points the value may be specified in units convenient to the user by overriding the
point’s internal unit-of-measure. The UOM override should be specified in
curly braces with no space after the point name. Some examples are:
// Wait until the level in ft of vessel V1 is greater than 3.0

DSS User Guide DYNSIM 5.3.2, December 2016 99


Utilities/Tools

Commands Description

WAIT UNTIL V1.L{ft} > 3.0;

// Set XV1.OP in percent to 50


SET XV1.OP{percent} = 50;

// Ramp XV2.OP in percent to 100 over 1 minute

RAMP XV2.OP{percent} = 100 IN 1 min;

Equations Some scenario commands allow equations. Equations may use the following
mathematical/logical operators and functions.
Operators: +, -, *, /, ^
Logical Relations:>, <, =, >=, <=
Logical Commands: IF
Functions: MIN, MAX

The following examples illustrate the use of equations in scenarios.

// Set the internal (“raw”) value of VCN2.OP


// to the internal value of V1.OP + 0.2
Set VCN2.OP = (V1.OP + .2);

Set VCN2.OP = IF (V1.OP > 0.5, 1, V2.OP);

// Same as above, with UOM overrides specified


SET VCN2.OP{percent} = If (V1.OP{percent} > 50, 100, V2.OP{percent});

// Set the internal value of TAMBIENT to the


// internal value of MYPOINT plus 5
SET TAMBIENT = 5 + MYPOINT;

// Set TAMBIENT in Celsius to the raw value of MYPOINT plus 5.


// If TAMBIENT’s internal UOM is K, and MYPOINT has a value of 20,
// then TAMBIENT will be set internally to a value of 298.15 K.
SET TAMBIENT{C} = 5 + MYPOINT;

SET SRC1.PB{psia} = h1.p{psia} + 50;

// Wait until heat flux is greater than 500 Btu/hr/ft2


WAIT UNTIL E300.Q{Btu/hr} / E300.A{ft2} > 500;

Activity Various activities are abbreviated as:


Abbreviations
IC - Initial Condition,

TPM - Trainee Performance Monitoring

DSS User Guide DYNSIM 5.3.2, December 2016 100


Utilities/Tools

Commands Description

Run The Run command sets the Simulation in Run mode.

Run; //Starts the Simulation

Freeze The Freeze command sets the Simulation in Frozen mode

Freeze; //Stops the Simulation

Set The Set command will change the value of a process variable.

Example:

//set the opening OP of valve XV1 0.81 (fraction)

Set XV1.OP = 0.81;

// Set the opening in percent of XV1 to 81

SET XV1.OP{percent} = 81;

Step The Step command increments or decrements the current value of a process
variable with a specified step size to the new value. The Step command
assumes time in seconds.

By default, this command operates in parallel, and execution continues as the


process variable steps up or down. To prevent further execution, add a Wait
command of the same time interval as the Step command.

Example:

//increase the value of parameter OP

//of object XV1 by 0.18

Step VCN1.OP BY 0.18;

// The same, with UOM override:


STEP VCN1.OP{percent} BY 18;

//If XV1.TIMEOP is 30 seconds,

// The scenario will wait until

//the valve is fully opened

Wait 30;

//decrease the value of parameter OP

DSS User Guide DYNSIM 5.3.2, December 2016 101


Utilities/Tools

Commands Description

//of object XV1 by 0.18

Step XV1.OP BY -0.18;

Ramp The Ramp command increments or decrements the value of a process


variable. The command increases the defined variable linearly over a defined
time interval.

The Ramp command assumes time in seconds.

By default, the scenario continues to the next step before the Ramp command
is complete (parallel operation). To prevent further execution, add a Wait
command of the same time interval as the Ramp command.

= Notifies the prescribed value as the absolute value

BY Notifies the prescribed value as incremented/decremented to


current value

The current and target point values will not be displayed when RAMP
command is executed.

To monitor the RAMP status in the scenario window, include a WAIT UNTIL
command next to the RAMP command as given below.

RAMP XV1.OP = 1.0 in 60 sec;

WAIT UNTIL XV1.OP == 1.0

Example:

//Increases the current value of parameter OP

// of object XV1 to 0.50 linearly in 5 sec

Ramp XV1.OP = 0.50 IN 5;

//prevent further execution until

//the ramp command is complete

Wait 5;

//Increases the current value of the variable OP

// of object XV1 by 0.5 linearly in 5 seconds

DSS User Guide DYNSIM 5.3.2, December 2016 102


Utilities/Tools

Commands Description

Ramp XV1.OP BY 0.5 IN 5;

// Same as above, with UOM override specified:


RAMP XV1.OP{percent} BY 50 IN 5;

RAMP XV1.OP{percent} BY 50 IN 5 hr;

Pulse The Pulse command sets any process variable to any explicitly defined value
for a fixed duration of simulation time. The Pulse command assumes time in
seconds. By default, the scenario continues to the next step before the Pulse
command is complete (parallel operation). To prevent further execution,
include a Wait command of the same time interval as the Pulse command.

= Notifies the prescribed value as the absolute value

BY Notifies the prescribed value as incremental/decremented to


current value

FOR Duration of pulse

Example:

//Set the value of the parameter OP

//of object XV1 to 0.5 for 5 seconds;

// Then set it back to the original value.

Pulse XV1.OP = 0.5 FOR 5;

// Prevent further execution until

//the Pulse is complete

Wait 5;

//Increases the value of the parameter OP

//of object XV1 by 0.1 for 5 seconds;

//then set it back to the original value.

Pulse XV1.OP BY 0.1 FOR 5;

// Or,
PULSE XV1.OP{percent} BY 10 FOR 5;

DSS User Guide DYNSIM 5.3.2, December 2016 103


Utilities/Tools

Commands Description

Runscript The Runscript command runs the script specified in the directory. Specify the
name of the script along with the complete directory path.

Example:

RUNSCRIPT D:\scripts\compare_states; // Runs the


script ‘compare_states’ in the directory D:\scripts

Export Historian The Export Historian command exports data for the points specified in the
Data Historian. A data collection set can be VERYFAST, FAST, MEDIUM,
and SLOW. The data of different points exported for a particular time is
separated by a comma or a tab stop as specified by the file format. The file
format has to be CSV or TSV.

The data is exported to a new file, which is automatically created with the
date and time and is saved in the default location.
..\\SIMSCI\DSS4x\Simulations\<SimulationName>\Historian_<time>

Command format:

EXPORT HISTORIAN <collection set> <file format>;

Collection set - VERYFAST, FAST, MEDIUM, SLOW.

File format - CSV, TSV.

Example:

EXPORT HISTORIAN FAST CSV; // Exports the data of


FAST collection set in CSV file format

EXPORT HISTORIAN MEDIUM TSV; // Exports the data of


MEDIUM collection set in TSV file format

Load IC The Load command will restore the specified Initial Condition.

Example:

Load IC 2; //This command restores Initial Condition


2

Load IC 2 0; //loads Initial Condition 2 from the


time it started to record.

Load IC 2 1; //loads Initial Condition 2 with time


set to zero.

DSS User Guide DYNSIM 5.3.2, December 2016 104


Utilities/Tools

Commands Description

Save IC The Save command will save an IC with the current operating conditions

Example:

Save IC 2; //This command save Initial Condition 2

Flush The Flush command flushes the data historian. This command might be used
when performing an engineering study where an IC is restored but the history
is saved with this IC is not desired.

Example

Load IC 2; //This IC has history we do not desire


flush; // Data historian is now clear

Activate Malf The Activate Malf command activates the Malfunction from Database, if the
malfunction is saved in the Database.

Example:

//This command activates the malfunction 3

Activate Malf 3;

Deactivate Malf Deactivate Malf Command deactivates the Activated Malfunction, if the
Malfunction is activated.

Example:

//This command deactivates the

//active malfunction 3

Deactivate Malf 3;

Start TPM The Start command initiates a TPM or additional scenarios.

Only TPM templates, or TPMs that contain a numerical value in the


Number field, can be executed from Scenario. Previously executed TPM
Reports that list a start and stop time and do not have a value in the Number
field cannot be executed.

Example:

//Starts the TPM template 32 and runs

// in parallel with continued execution

DSS User Guide DYNSIM 5.3.2, December 2016 105


Utilities/Tools

Commands Description

//to subsequent lines while TPM 32 executes.

Start TPM 32;

Start Scenario Use this command to start a scenario from the currently executing scenario.
Specify the scenario to be executed by its number (Scenario ID) or by its
name. Note that the scenario name may not contain spaces or special
characters.

// Example 1: Specify the ID of the scenario to be


executed

Start Scenario 1;

// Example 2: Specify the name of the scenario to be


executed.

Start Scenario Depressure;

Scenarios can be executed in parallel or in series. A Scenario executed in


parallel implies that multiple scenarios execute concurrently. A Scenario
executed in series implies that scenarios start consecutively. When the series
option is turned on, the subsequent scenario does not begin until the current
scenario is complete. The default is parallel execution. A series thread is
denoted with ”/s”

// Example 3: Parallel execution of scenarios


(Default)

// Start the Scenario 5 from database and run it in


parallel with the

// rest of this scenario.

Start Scenario 5;

Start Scenario 6;

// Example 4: Sequential execution of scenario

// Start the Scenario 5 from database and run it

// in series, with the current scenario execution


paused

// until Scenario 5 completes its execution.

DSS User Guide DYNSIM 5.3.2, December 2016 106


Utilities/Tools

Commands Description

Start Scenario 5/s;

Start Scenario 6/s;

Stop TPM The Stop TPM command will stop the running TPM started with the Start
TPM command. As with Start command, this command requires a TPM
number. The Stop TPM command automatically saves the results of the TPM
so that there is no need for a Save TPM command.

Example:

//Stop the TPM with 32 in the Number Field

Stop TPM 32;

Prompt The Prompt command pauses further execution of the scenario and a dialog
box pops up. The title bar of the dialog box contains the scenario name. The
dialog box contains the user-specified message and two options - one to
CONTINUE the execution of the scenario and the other to STOP the further
execution of the scenario.

This command can be used by the instructor to perform actions at certain


times during the execution of the scenario. An example is changing the state
of a field device not accessible in the control room, typically referred to as a
remote function.

The syntax of the command should have PROMPT followed by a user-


specified message within quotes. The message size should be limited to 256
characters.

Example:

PROMPT “HELLO WORLD”;

Wait The Wait command stops processing the next line in the scenario until the
prescribed time has elapsed. The command is followed by a value, and time
units. The time units are in seconds if not specified.

Example:

Set XV1.OP = 1;

Wait 10; // Wait 10 seconds;

Set XV2.OP = 1;

Wait 1 min; // Wait 60 seconds;

DSS User Guide DYNSIM 5.3.2, December 2016 107


Utilities/Tools

Commands Description

Wait Until The Wait Until command waits until the relation defined returns True.

Example:

Wait Until XV1.OP > 0.5;

WAIT UNTIL XV1.OP{percent} > 50;

Timed Actions The SIMTIME and CLOCKTIME commands trigger actions based on
simulation time or system clock time.

Example:

AT SIMTIME = 00:15:00 Activate Malf 3;

AT SIMTIME = 01:00:00 SET XV.OP = 1;

AT CLOCKTIME = 14:05:00 save ic 21

Save IC The SAVE IC command in scenario has been enhanced to provide and IC
Description description at the time of saving the IC. The modified syntax is:

SAVE IC <Number> “<Description>”;

Example:

SAVE IC 106 “Started filling Drum”;

The existing Save IC command will continue to work with blank IC


description. It is necessary to provide the description within double quotes (“
“).

• If the IC number already exists it will overwrite the IC. Otherwise a


new IC will be created.

• No warning or error messages will appear in case the IC already


exists.

Timed Actions

A few points to consider while using the Timed Action commands in a scenario;

The SIMTIME command is based on simulation time

The CLOCKTIME is based on the SimExecutive Host system time

DSS User Guide DYNSIM 5.3.2, December 2016 108


Utilities/Tools

CLOCKTIME format is 24 hr time format, i.e. HH:MM:SS. This is to avoid confusion on


AM/PM.

The maximum limit of CLOCKTIME is 23:59:59. Any actions specified beyond this will not be
performed since it spills over to the next calendar day. Actions configured for the same date only
can be performed.

SIMTIME format is the same as it appears on the simulation control panel, ie HH:MM:SS. In this
case HH may exceed 24 hrs. Alternatively, it may also be expressed in DD:HH:MM:SS format.

In one statement a single action can only be specified. If more actions need to be triggered at the
same triggering time, they may be specified in another statement with same condition.

DSS User Guide DYNSIM 5.3.2, December 2016 109


Utilities/Tools

If any of the actions of the scenario reset the simulation time (like load IC or start TPM ), the
timer for SIMTIME will be restarted and will wait for the target time to trigger the timed
actions. In case the stored time in the IC is beyond the target time of any of the timed actions,
those actions will be skipped.

Scenario will be completed only after all actions including the timed actions are completed.

EventLog is accessible from the Engineer mode to monitor the status of timed actions. Unlike the
Instructor mode, the logging has to be manually started in a session.

Precautions / Limitations

 The WAIT and PROMPT actions are prohibited from the timed actions as it
might block remaining sequential actions in scenario.

 The CLOCKTIME based actions can be executed only until 23:59:59 on the
same day. It cannot span different calendar dates.

 Since the normal (sequential) actions and timed actions happen in parallel, user
need to be watchful about adding FREEZE command in the script. It might
prevent initiating some timed actions based on SIMTIME . After a freeze,
running the simulation manually is necessary for completing the scenario.

 The scenario summary table will display only the normal (sequential) action in
the table including the current and target point values for the WAIT.

Various colors are exhibited in the Scenario Summary table depending upon the status of
the scenario and user selection.

Color Indication Description

Grey Default color is grey i.e. when scenario is not


selected and not running.

Yellow Turns Yellow when a Scenario is selected which is


not running .i.e. which was grey initially

Green Turns Green when a scenario is running

Red Turns Red when a running scenario is selected to


distinguish it from other scenarios that are running.

Example:

DSS User Guide DYNSIM 5.3.2, December 2016 110


Utilities/Tools

Trainee Performance Monitoring


This topic includes the following subjects:

• Overview

• Scoring Methods

• Creating A New Template

• The TPM Summary Window

• Executing A TPM Session

• Editing A Saved Template

• Viewing/Printing A TPM Report

• Deleting A Saved TPM Template Or Completed TPM Exercise

• TPM Report

Overview

One of the distinct applications of a dynamic simulation package is as an Operator Training


Simulator. Here, the instructor uses a simulated version of the process plant and trains the
operators in operating the simulated process plant. The instructor, using a simulator, can trigger
critical scenarios of start-ups, shut-downs and emergency failures, and malfunctions to train
inexperienced operators on safe and efficient plant operations.

The effectiveness of such a training program greatly depends on the trainee’s performance
evaluation procedures.

The Trainee Performance Monitoring (TPM) tool provides the instructor with mechanisms to
monitor and evaluate a trainee’s performance in operating a simulated process plant based on a
set of pre-defined criteria.

DSS User Guide DYNSIM 5.3.2, December 2016 111


Utilities/Tools

The instructor defines bounds for critical parameters for each training session within which the
trainee must operate the unit to obtain a high score.

There are two forms of TPMs. The first is a generic TPM “Template” which is created by an
Instructor or an Engineer. In a TPM template, the Instructor defines the critical parameters, the
bounds for each parameter and a method of scoring for the TPM Exercise. After a TPM template
is started, run, and completed, the results can be saved as a TPM “Exercise” for the specified
user. Each TPM Template and a TPM Exercise has a unique identity in the form of a TPM ID.
The TPM Summary Table lists both types of TPMs. The TPM Templates are identified with a ‘T’
and TPM Exercises with an ‘E’ in the TPM summary table. A pre-formatted report for every
TPM exercise is available in the TPM Summary Table.

The following list provides the salient features of the TPM tool:

• A description field enables description of the training session.

• The instructor can list the names of trainees involved in the training, along with any
additional comments that are pertinent to the session.

• A TPM exercise can be set up by the instructor to start from a previously saved IC. For
example, if the TPM session was to test the trainee’s performance in ramping a power
generation unit from 100 MW to 200MW, the instructor can configure a TPM to load a
previously saved IC (that had 100 MW load level) prior to starting the training exercise.

It is suggested that the instructor load the desired IC and run the model prior to
starting the TPM session. This will allow the trainee to get familiar with the new process
conditions.

• Different scoring methods are available to the instructor.

• Trends for the critical points can be associated with the TPM Exercise.

• Any number of points from the simulation can be monitored in a TPM session.

• Ability to activate multiple TPMs through a scenario.

• Live score updates when a TPM is being executed.

• Any valid point can be used to specify the High or Low limits, thereby allowing the
limits to vary dynamically during an exercise.

• The instructor can assign weight to a parameter based on its criticality to the process.

• When using the Integrated Error approach of scoring, the instructor has to specify
maximum (HH) and minimum (LL) limits within which the trainee must operate to
obtain a high score. These values are used to normalize the Integrated Error score.

DSS User Guide DYNSIM 5.3.2, December 2016 112


Utilities/Tools

• When using the Integrated Error approach of scoring, the instructor can specify the HH
Grace period (in seconds) and LL Grace period (in seconds). This period provides the
grace period above the HH Limit or below LL Limit within which a trainee will not be
failed. This period is applicable per instance but is not cumulative.

• When using the Integrated Error approach of scoring, the instructor can specify the HH
Penalty and LL Penalty. The total penalty will be applied in the point score at the end of
the TPM.

• The total time of deviation for all excursions above and below HH and LL apart from the
individual time of High and Low excursions are displayed in the TPM results.

• If the HH or LL limits are crossed, the TPM exercise will continue running. If a
point goes out of range, then the score is set to zero. The point name, time, and
the limit crossed are shown in the TPM report.
• The number of excursions outside the maximum and minimum limits is included in the
results.

• The number of excursions outside HH and LL limits is included in the results.


This is shown as HH Exc. and LL Exc.
• The time spent above HH Limit and below LL limit is shown as HH Time and LL
Time.
• The maximum single excursion time above the HH limit or below the LL limit is
displayed as MAX HH/LL Exc Time..
• The total penalty is displayed in the TPM result. This is calculated based on
number of LL/HH excursions.
• Total Penalty = Number of LL Excusrions * LL Penalty + Number of HH
Excusrions * HH Penalty.
• TPM Bounds Fail indicates that the trainee has failed the exercise if he or she exceeds the
limits.

• The score for each point as well as the total score for the entire TPM session is included
in the reports.

• A pre-formatted report is available with all the details of the exercise.

Scoring Methods

Two scoring methods are used to measure a trainee’s performance:

• Time Weighted Basis

This method is based on the ratio of the time a parameter is above/below the Max/Min
limits to the total time of the TPM run, scaled by the weight assigned to the parameter.
(A perfect score is 100%).

DSS User Guide DYNSIM 5.3.2, December 2016 113


Utilities/Tools

• Integrated Error

This method is based on the ratio of the area above/below the Max/Min limits to the total
area above/below the limits, scaled by the weight assigned to the parameter. (A perfect
score is 100%). This is the default scoring method.

In these scoring methods, the instructor assigns a weight to each parameter that has to be
monitored. The parameters can be assigned weights based on their criticality to the process. The
sum of all weights must equal 1 for a particular TPM session. The total score is the sum of the
weight assigned to each parameter multiplied by the score of each parameter.

Score = Σi (Weight i) x ((Score i)- (TotalPenalty i)

Weight = Σi (Weight i) = 1

Time Weighted Basis

The time-only basis of scoring measures the time a set of specified parameters deviates from the
specified limits. The calculated score reflects the ratio of time a parameter exceeds the high and
low limits to total time. A perfect score is 100%.


Score = 100 ⋅ 1.0 −
∑ ∆t 
 t f − t 0 

where:

t0 = Initial TPM test time

tf = Final TPM test time

∆t i = Time outside the limits at ith occurrence

Scoretotal = ∑i Wi ⋅ Scorei

where:
i = Individual variables used for TPM

Wi = Variable weighting factor (instructor input)

With constraint ΣiWi = 1

DSS User Guide DYNSIM 5.3.2, December 2016 114


Utilities/Tools

As a sample calculation, the graph shown lists a single parameter measured over 20 seconds. In
this example, the high and low limits are specified by the time dependent curves HighLimit and
LowLimit, respectively. The parameter exceeded the high limit for 3 seconds and the low limit
for 4 seconds. The score for this parameter, using the time only basis is:

Time Weighted Score = (1.0 - (3 + 4)/20)) x 100 = 65%

Integrated Error

The integrated error method of scoring scales the deviation based on time, amplitude of deviation,
and the high and low limits. A perfect score is 100%.

Case 1: When LL < L AND HH > H

  Area H Area L  
  + 
 HH − H L − LL  
Score = 100 ⋅ ∑ 1 − 
 
  t f − t0  
   
 

Case 2: When LL < L AND HH = H

  Area L  
   

Score = 100 ⋅ ∑ 1 −  L − LL  
  t f − t0 
   
 

Case 3: When LL = L AND HH > H

DSS User Guide DYNSIM 5.3.2, December 2016 115


Utilities/Tools

  Area H 
   

Score = 100 ⋅ ∑ 1 −  HH − H 
  t f − t0  
   
 

Case 4: When LL = L AND HH = H

  Area H + Area L  
Score = 100 ⋅ ∑ 1 −   
  t f − t0  
 

where:

t 0 = Initial TPM test time


t f = Final TPM test time
∆t i = Time outside the limits at ith occurrence

AreaH = Area under the High excursion


AreaL = Area under the Low excursion
TotalPenalty = Number of low low excursion * low low penalty + Number of high high
excursion * high high penalty
L = Low Limit

LL = Low-Low Limit
H = High Limit
HH = High-High Limit

MinDev = (L-LL) Maximum low side deviation used to normalize the integrated error score
MaxDev = (HH-H) Maximum High side deviation used to normalize the integrated error score

If the computed score is a negative value, the trainee’s score is set to zero.

Scoretotal = ∑i Wi ⋅ Scorei

where:

i = Individual variables used for TPM


Wi = Variable weighting factor (instructor input)

DSS User Guide DYNSIM 5.3.2, December 2016 116


Utilities/Tools

With constraint ΣiWi = 1

As a sample calculation, refer the previous graph where a single parameter measured over
20 seconds. The parameter exceeded the high limit for 3 seconds and the low limit for 4 seconds.
The score for this parameter, using the Integrated Error basis and MaxDev and MinDev values of
1.0 is:

Time ΔPhigh A_H= ½ x (P2-P1) x Δt Time ΔPlow A_L=½ x (P2-P1) x Δt

2 0 0 9 0 0

3 2 1 10 1 0.5

4 3 0.5 11 2 0.5

5 0 0 12 1 0.5

13 0 0

1.5 1.5

Considering that the HH Penalty and LL Penalty is 10 for each excursion and HH Excursion &
LL Excursion is 1(refer above graph), the total penalty is calculated below:

Total Penalty = 10+10 = 20 (No. of LL Excursion * LL Penalty + No. of HH Excursion


* HH Penalty)

Integrated Error Score = [(1 – ((((1.5 + 1.5)/1)/20) )x100]-20 = 65%

The TPM tool allows the instructor to fail (score of 0) a trainee if a monitored point goes
above the HH limit or below the LL limit and has expired the grace periods. If the HH or
LL limits are crossed, the TPM exercise will continue running. If a point goes out of
range, then the score is set to zero and the point name, time, and the limit crossed appears
in the TPM report.

Score calculation depends on Global UOM slate selection. Please refer to the DYNSIM
UOM documentation to restore UOM slates from s4m file.

Creating a New TPM Template

To generate or revise a generic TPM template (the first type of TPM), you must have the
permission to configure a TPM, i.e. to be both an Administrator and an Engineer, or an Instructor.

To generate a new template:

DSS User Guide DYNSIM 5.3.2, December 2016 117


Utilities/Tools

1. Go to ToolsNew TPM to display the TPM Exercise window.

Note that we’ve already typed some data into the window below, and we’ve expanded it
by clicking the Results and Trends buttons.

2. Type a brief description of the session in the Description field. Although this
information is optional, its inclusion is recommended.

DYNSIM provides data for the only required field: Template Number. If you
manually override this number with the number of an existing template, the new
template will replace the existing template.

3. Specify the scoring equation to be used for scoring the exercise.

4. Specify the parameters to be monitored during the training session. For each variable:

a. Type the name of the variable in the Point field

b. Click the Add button to add the variable to the end of the list

OR

Specify the desired location for the variable by typing the appropriate number in
the Insert At text field, and then click the Insert At button.

c. Assign appropriate weight fractions to the points. Note that the sum of all
weights should be 1.

d. Define the desired Low and High limit values for the point into the Low
Limit and High Limit text areas, respectively. You can specify either a
point value or a fixed value for the maximum and minimum fields.

e. The Low Limit and High Limit can be a dynamic limit, thereby allowing the

DSS User Guide DYNSIM 5.3.2, December 2016 118


Utilities/Tools

limits to vary dynamically during an exercise. Create a Dynamic point and


assign it as Low Limit/High Limit.

f. Define Low Low Grace period and Low Low Penalty. This will be applied
when score method is Integrated.

g. Define High High Grace Period and High High Penalty. This will be applied
when score method is Integrated.

h. For the integrated error equation for scoring, define the LL limit and the HH
limit for the point in the LL limit and HH limit text areas, respectively.

i. Select the ‘Bounds Fail’ option for each TPM point to indicate that failures by
exceeding bounds (after consuming grace period defined for LL and HH Limit)
are used for scoring. This option is disabled by default.

5. If you want the TPM session to start with known operating conditions, type the
appropriate IC number into the IC Number text area.

6. If you want to view a trend group during the TPM session, click the Trends button at
the top of the TPM window, then enter the desired information in the trends fields.

After entering the trend name, click Add, Delete, or View button to add the trend to
the TPM template, remove the trend from the template, or display it immediately
without adding it to the template.

7. Click the Save button to save the TPM template. Note that you don’t have to supply
any additional information. DYNSIM identifies the template by the TPM ID.

The TPM Summary Window

From the Tools menu, select TPM Summary or press F11 on the keyboard.

The TPM Summary window separately lists templates and completed TPM Exercises. Here is an
example:

The drop-down menu allows you to select Templates or Exercises. In the illustration above, All
TPMs is selected to display all the TPM Templates and exercises. To display only the templates,
select TPM Templates from the drop-down menu. To display all the TPM Exercises, select
TPM Exercises for all users from the drop-down menu.

DSS User Guide DYNSIM 5.3.2, December 2016 119


Utilities/Tools

Note that each TPM session in the Summary Table has a unique TPM ID and Exercise ID, and
templates do not include the runtime data such as start and stop times.

The TPM Summary window includes the: View, Run, Edit, and Delete buttons:

View Displays the selected Template or an Exercise report on screen. You can request a
hard copy report from the onscreen report window. You cannot edit or run a
Template in View mode. An Exercise in the view mode will have all details of the
Exercise along with the scores.

Run Available for TPM Templates only. Displays the selected template with the Start
button enabled.

Edit Available for TPM Templates only. This is the same as View mode, but includes
the ability to change selected information and then re- save the TPM Template.
You cannot execute a template from the Edit screen.

Delete Deletes the selected Template or Exercise report.

Executing a TPM Session

A TPM session must be executed from a saved TPM Template.

1. Select the TPM Template from the TPM Summary table and then click the Run button.
Refer to The TPM Summary Window above.

2. Make any desired changes to the displayed template. This is a good time to add trainee
names, comments, change the scoring equation, etc. Remember that these changes are
in effect for this training session only. They are not saved with the template but are
saved in the Exercise. A global option to change the trainee name is available under
OptionsChange trainee in the instructor environment that will reflect in the TPM
template.

3. Trends can be configured for the respective templates and can be viewed along with the
exercises

4. Click the Start button. This will ask for an IC load that has been defined in the
Template. Multiple TPM sessions can be invoked either manually or automatically
through the scenario. The list of running TPMs along with scores and IDs is displayed
in Active TPMs’ Pane as following:

5. Stop the individual TPM sessions by double-clicking the respective TPM session (to
bring up the corresponding session), and then clicking the Stop button.

6. To view the onscreen session report, click the Report button in summary window.

7. If any template is configured with the “bounds fail” option and during runtime if a
trainee fails (after consuming the respective grace periods), the following pop-up will
appear to indicate that the trainee has failed the exercise:

DSS User Guide DYNSIM 5.3.2, December 2016 120


Utilities/Tools

Editing a Saved Template

1. Go to ToolsTPM Summary to display the TPM Summary window.

2. Choose TPM Templates from the drop-down menu.

3. Select (highlight) the desired Template to be modified from the displayed list.

4. Click the Edit button.

You are permitted to change any field that has white content.

5. Click the Save button to save the modified template OR the Save As button to save
the changes as a new TPM ID.

Viewing a Saved TPM Report

1. Go to ToolsTPM Summary to display the TPM Summary window.

2. Choose TPM Exercise for all users from the drop-down menu.

3. Select (highlight) the desired Exercise in the displayed list.

4. Click the View button.

The completed session report is displayed.

5. Click the Report button. The TPM Report window displays.

Printing a Saved TPM Report

1. Go to Tools>TPM Summary to display the TPM Summary window.

2. Choose TPM Exercise for all users from the drop-down menu.

3. Select (highlight) the desired Exercise in the displayed list.

4. Clicking the Print button displays “Select TPM Exercise for printing” dialog where user
can select multiple exercises for printing.By default, Selected exercise will be checked
for printing.

DSS User Guide DYNSIM 5.3.2, December 2016 121


Utilities/Tools

Clicking the OK option displays the Page setup dialog box, where user can
choose page properties... and clicking OK or Cancel on this window results in Print
dialog box with all the custom properties chosen by the user.

Deleting a Saved Template Or Completed Session Report

1. Go to ToolsTPM Summary to display the TPM Summary window.

2. From the dropdown menu, choose TPM Templates to display templates, or choose
Exercises for all users only to display completed sessions.

3. Select (highlight) the desired entry in the displayed list.

4. Click the Delete button.

DSS User Guide DYNSIM 5.3.2, December 2016 122


Utilities/Tools

TPM Reports

1. Select an exercise, and click the Report button in the TPM Summary window, to view a
sample report.

2. When using the Integrated Error method, if a point goes out of range (below LLL
or beyond HHL such that the score is set to zero), the point name, time, and the
limit crossed are shown in the TPM report.

DSS User Guide DYNSIM 5.3.2, December 2016 123


Utilities/Tools

Automated Training Exercises


An Automated Training Exercise (ATE), is an exercise that can be completed by the trainee in the
absence of instructor supervision or interaction. When a predefined scenario is selected in ATE
mode, operator actions are recorded with unique identifiers: OP for operator when the command
is completed using the DYNSIM interface, and PERFORM when the command is completed using
other operator interfaces, or engines, such as Foxboro AW, Wonderware® operator station, or
Ovation.

Currently, ATE is not supported for all the engines. It is supported only for the following engines:
DYNSIM, SCP, TDCSIM, OPCServer, OPCGateway, and SCPEngine.

The DYNSIM interface must be in Operator mode, as opposed to Engineer or Instructor mode
when running an ATE.

When the ATE is complete, a new scenario file is generated that contains the commands of the
original file, plus the commands completed by the operator. The original scenario file might
contain malfunctions, start and stop a TPM Exercise, or prompts to give direction to the operator.
The new scenario file will contain these commands (except Prompt command) plus the actions
the operator took, such as opening a valve, starting a motor, or changing the demand of a
controller. The new ATE scenario can be played back at a later time by the instructor to review
the operator actions.

DSS User Guide DYNSIM 5.3.2, December 2016 124


Utilities/Tools

A sample file might contain the following:

LOAD IC 2;

RUN;

WAIT UNTIL V1.POS > 0.9;

START TPM 32;

ACTIVATE MALF 1;

WAIT 6;

DEACTIVATE MALF 1;

WAIT UNTIL HMS.P > 500;

STOP TPM 32;

OP SET V1.OP 1.0;

OP SET M1.CL = 1;

PERFORM <P>Set<P>SCPENGINE<P>H2101CP:002MFE.COUT =1<P>;

In this example, the original scenario commands generated prior to the ATE are listed first. The
scenario restores Initial Condition 2, runs the simulation, and waits for the operator to open a
valve prior to initiating TPM 32. A predefined malfunction is activated, then deactivated. Finally
the TPM Exercise terminates when main steam pressure, HMS.P, increases above 500 psia. The
operator actions at the DYNSIM interface represent remote functions not available in the DCS.
The operator opened valve V1 to 100 % and started motor M1. Using the DCS, the operator
started motor 002MFE.

Whenever ATE is executed, it starts recording the events and a snapshot is taken
immediately.

To execute an ATE, select the Scenario Manager icon.

After selecting the icon, the Scenario Summary popup window displays:

DSS User Guide DYNSIM 5.3.2, December 2016 125


Utilities/Tools

Highlight a scenario and select the Automated Training Exercise button. Finally,
select Run. When the ATE is complete, a window will popup similar to that listed below.

The Scenario Summary window should not be closed, can be minimized while executing
ATE.

DSS User Guide DYNSIM 5.3.2, December 2016 126


Utilities/Tools

Event Log
The Event Log records all the Instructor and Operator actions. These actions are recorded in
chronological order and stamped with the simulation time. In addition to logging the events in a
.txt format in “..\Simsci\DSS50\eventLog.txt,” you can view the events in Event Log Viewer GUI
by clicking Event Log on the Tools menu.

Event Log is available in the Instructor environment and is turned on by default. It can be turned
off by the instructor by clicking Stop on the Event Log Viewer GUI.

Whenever Event logging is stopped or started, or any changes are made to the environment, a
message appears in the Message Monitor indicating the changes made. The source/origin (engine
type) of the action is indicated in the Event log file as following:

DSS User Guide DYNSIM 5.3.2, December 2016 127


Utilities/Tools

Data Historian
This topic includes the following topics:

• Overview

• Data Historian and Trends

• Exporting Data Historian data

• Data Historian Manager.

Overview

Data Historian (DH) refers to collection and storage of data over time. DH supports data
collection and trend requirements for OTS and engineering studies. For engineering studies, the
data from DH can be exported to Microsoft® Excel spreadsheet or other program to create a
detailed report.

All points and model parameters are candidates to be added in DH. There are four predefined data
collection sets . Very Fast, Fast, Medium and Slow. You can configure the duration of these
collection sets. The respective default durations are 1 min, 10 min, 1 hr, and 8 hrs.

Number of data points in a collection set = Very Fast Duration / Simulation Time Step.

Example: With simulation time step 0.25 sec, default number of points for each set is 240, and
default interval for the collection sets is 0.25 sec, 2.5 sec, 15 sec, and 2 min, respectively.

By default, the data is collected for Fast, Medium and Slow collection sets. You can enable the
collection sets for each parameter in the DH GUI.

If the simulation is frozen in between, and restarted again after some time, DH maintains the
continuity of values. DH data is flushed when the simulation is shutdown or when an IC is
restored.

Data Historian and Trends

A point added to a trend is automatically added to the DH table. Alternatively, points can be
added to the DH table using the DH GUI. A point in the DH can exist in more than one trend.

When a point is deleted in the DH Manager its status is shown as "Deleted" in Trend. When a
point is deleted from a Trend, it is not deleted from DH. You have to explicitly delete it from the
DH table.

Exporting Data Historian Data

You can export data for all the points in the DH table to a comma-separated file. Default location
for the file is " C:\SIMSCI\DSS43\User\file name.csv ". You can export data for select points
using the Data Historian Manager. For the points added to the Data Historian, the export
checkbox is enabled by default.

DSS User Guide DYNSIM 5.3.2, December 2016 128


Utilities/Tools

The Data Historian has a check box titled 'Export in DYNSIM Internal UOM’. In case a data
export operation is performed with the check box checked (default option), the Data stored in the
Historian will be exported in DYNSIM Internal Units.

To export in display UOM, the check box will have to be unchecked prior to exporting data from
the Historian. This will apply to both CSV and TSV export formats.

The data saved from the Trend window will be governed by the Data export option selected in the
Historian. In case the 'Export in DYNSIM Internal UOM’ check box is checked in Historian
(default option), data saved from Trend will also be in DYNSIM Internal units depending on the
native Internal UOM slate of the Engine with which the point(s) are associated.

Similarly, if the checkbox is unchecked in the Historian, the data saved from Trend window will
be in the display UOM. The only difference in case of Trend will be that in case the local point(s)
display UOM are modified in the Trend, the Global Display UOM will be overridden by the local
trend UOM while saving data from the given Trend window. Therefore, the data in the saved file
will be exactly the same UOM as displayed on the Trend screen.

The export format is as follows: The first row in export is a parameter name, second row is UOM.
First column is time; additional columns are for parameters. Every row corresponds to the same
time variable so they can be combined onto any chart. The CSV looks like:

time,point1_name,point2_name,point3_name
time_uom,point1_uom,point2_uom,point3_uom
Time_value, point1_value, point2_value, point3_value
Time_value, point1_value, point2_value, point3_value

…When imported to Microsoft Excel format it looks like:

Time Point1 Point2 Point3

Seconds Point1_uom Point2_uom Point3_uom

0.0 3.5 4.5 5.5

5.0 3.6 4.6 5.6

10.0 3.7 4.7 5.7

DSS User Guide DYNSIM 5.3.2, December 2016 129


Utilities/Tools

DH Manager

To access the DH Manager, select Data Historian from the Tools pull-down menu OR
Click the DH button on the main toolbar. The Manager is displayed as shown below:

Default values for interval and duration are shown. You can change these values. You can
enable or disable export status and select the collection sets over which data needs to be collected.

Some utility methods are provided for easy interaction with the DH. You can sort using right-
click menu on the "Point Name" column header. An entire collection set can be enabled or
disabled through the context menu on its column header.

User Template
This topic includes the following subjects:

• Overview

• Saving a template

• Using a template

DSS User Guide DYNSIM 5.3.2, December 2016 130


Utilities/Tools

• Renaming or deleting a template.

Overview
You can save a single model object or multiple model objects as a template. The template retains
all the draw attributes, model parameters, components and method slates of the original model
object. If the target engine or flowsheet does not have the component and method slate saved in
the template, the default component and method slate is used.
Saving a Template

To save a single model object template, right-click a model object and click Save as
Template.

To save a multiple object template, select the desired objects, and then choose Save as
Template from the Edit menu.

DSS User Guide DYNSIM 5.3.2, December 2016 131


Utilities/Tools

Using a Template

To use a template, find it under the User Template node in the Types tab, and drag it to the
canvas. Dropping a template object onto the canvas creates multiple copies of the parent object.
Templates cannot be used if the classes are not supported by the target engine. An error message
appears if you try to use the templates in a DYNSIM engine different from the one in which it
was created.

Templates are saved as XML files containing information about the draw attributes and model
parameters of the parent object, and are saved in the “C:\SIMSCI\DSSxx\User\Template” folder.
The XML files are available across sessions and can be manually transferred to other DYNSIM
installations.

DSS User Guide DYNSIM 5.3.2, December 2016 132


Utilities/Tools

Renaming or Deleting a Template

To rename or delete a saved template, right-click the desired template and then choose Rename
or Delete, as necessary.

Note: For more details on template preset nomenclature, see the Auto Naming Rulebook section.

DSS User Guide DYNSIM 5.3.2, December 2016 133


Utilities/Tools

Auto Naming Rulebook


This topic includes the following subjects:

• Overview

• Auto Naming Rules Window

• Keywords, INDEX1 or INDEX2, for Copying Objects and Templates in Bulk

• Exceptions to Rules

Overview

The Auto Naming Rulebook allows you to specify rules to automatically generate names of
objects when they are dropped onto the flowsheet. The rules can be specific to the flowsheet, to
the object classes, or to both. The rules can be activated or de-activated as desired.

Rules are specific to the simulation and saved along with the simulation file. If the simulation is
opened in another installation, it has these rules available until they are removed or deactivated.
Rules can be exported as an XML file and can be imported to other simulations if the flowsheet
names match.

Auto Naming Rules Window

On the Options menu, click Edit Autonaming Rules. The Auto Naming Rules window
appears.

DSS User Guide DYNSIM 5.3.2, December 2016 134


Utilities/Tools

The Auto Naming Rules window contains:

Configuration of Flowsheet Specific Tokens

1. Flowsheets available in the selected simulation are displayed under Configure the
flowsheet specific tokens.

2. By default, rules for the flowsheet are not active.

3. Tokens that you want as prefixes for the object names can be configured under FSIDs.

4. The FSIDs can be referred to while configuring rules specific to the object class.

5. When flowsheet rules are active, the flowsheet tokens added together act as a prefix for
the object names of all the objects dropped onto the flow sheet. This is applicable for all
the classes of objects where a class specific rule is not configured or when all class
specific tokens are blank.

6. When a flowsheet is deleted or does not exist any longer, the corresponding row is
automatically deleted from the list of flowsheets.
Configuration of Object Class Specific Tokens
1. A model connector class (“Process Stream” for Dynsim engines) with blank tokens is
displayed in the table.

2. If no rules are configured for a model or point class, or if they are blank, the prefix is all
FSIDs (configured in flowsheet rules) added together for the corresponding active
flowsheet rule.

DSS User Guide DYNSIM 5.3.2, December 2016 135


Utilities/Tools

3. A Model or point class can be added to the table by double-clicking the selected class in
the Types tree. They can also be added by dragging a class from the Types tree or
Icon Palette to the table. The operation is similar to that of creating an object on the
flowsheet.

4. If rules for the flowsheets or model objects are not active, the DYNSIM default name is
used.

5. The Preview Column displays the auto-generated name for an object class for the first
flowsheet.

6. A “$” symbol configured in the table is substituted for the auto-incremented number for
the model object when created on a flowsheet. If no “$” symbol is specified, the auto-
incremented number is appended at the end.

DSS User Guide DYNSIM 5.3.2, December 2016 136


Utilities/Tools

7. The selected row can be deleted by clicking the Delete button available at the bottom
of the table.
INDEX1 or INDEX2 Keywords for Copying Objects and Templates in Bulk

These special keywords are provided to customize the process of copying objects or templates
that contain multiple object elements. During these operations, generally, the auto-generated
names for the target simulation are used.

If the object name contains INDEX1 or INDEX2 keywords, you can customize the substitute
string for the keywords.

When the name is auto-generated for the objects containing the common strings, the auto-naming
rule is ignored and the common string is replaced with the string provided by the user. For
example, if the object names are PCINDEX1 and PTINDEX1, the auto-generated names are
PC1000 and PT1000, where 1000 is a value provided by the user for INDEX1, irrespective of the
custom rule.

According to the rule precedence, the auto-generated name follows the following order:
1. Names containing the special keywords, INDEX1 and INDEX2.
2. Object class specific rules configured by the user.
3. Flowsheet prefixes configured by the user.
4. Dynsim default name patterns.
Rule Exceptions

The customized rules are applicable only to the objects created on the flowsheet using the GUI.
These rules are not applicable to any other objects, including
• XML restore
• PRO II translation.
• Keyword file import.

DSS User Guide DYNSIM 5.3.2, December 2016 137


Utilities/Tools

Auto-naming is not applicable for Widgets, Primitives, Connectors, and References.

Units of Measure
This topic includes the following subjects:

• Overview

• Unit of Measure Slates

• Create/Select/Copy/Rename/Delete a Slate

• UOM Override

Overview
Almost every item of data that you input to a model has a unit of measure associated with it. Most
have alternatives: For example, length can be measured in feet, meters, miles, or kilometers, and
temperature in °F, °C, °R, or K. For the user's convenience, DYNSIM has several pre-defined
units of measure slates including English, Metric, and SI. Each set has predefined units for each
data item. By selecting a set of units, then globally overriding some of the predefined units and
then more specifically overriding those units for any individual data item, the user is afforded a
great deal of input flexibility.

Unit of Measure Slates


The Unit-of-Measure Slates window has two major functions:

• Slate selection – You can select a slate for use as the unit of measure preferences for
input and reporting.

• Slate management – You can create customized unit-of-measure slates based on existing
slates such as Metric and English.
When a customized unit-of-measure slate is defined for a simulation and the simulation is saved,
the slate is exported to a file UOMSlate.xml. This xml file will be saved as a part of the .s4m file
associated with the simulation if the "Save All UOM slates with s4m file" option is chosen. "Save
All UOM slates with s4m file" is a user preference that persists for each DYNSIM installation
accessible from the Options menu.

This feature gives the user the flexibility to move simulations from one installation to another and
have all the custom UOMSlates available in the new installation as well.

"Restore All UOM slates from s4m file" is a user preference that persists for each DYNSIM
installation accessible from the Options menu. If a simulation file has custom UOM slates saved
with it and the "Restore All UOM slates from s4m file" option is on, the user is given the option
to reset the global UOM slate. If user chooses ‘Yes’, the global UOM slate will be reset to the
UOM slate used at the time of saving the simulation file and the associated custom UOM slates

DSS User Guide DYNSIM 5.3.2, December 2016 138


Utilities/Tools

will be copied. If user chooses ‘No’, the custom slates available with the simulation file will still
be imported to the target installation, but the global UOM slate will not be altered.
"Auto Global UOM Reset" is an option to reset the UOM slate globally for the simulation it is
saved with.

When you move simulations from one installation to another, and if the custom UOM
slates associated with the simulation are already available in the target installation, the slates
existing in the target installation are used. Users can overwrite the slates existing in the target
installation by first deleting them and then re-opening of the simulation, which has the desired
definition for those slates.

Slates can be:


• Copied
• Renamed
• Deleted (non-system slates only).
The class items in the base slates are the simplest building blocks used for derived slates that are
comprised of more complex classes. An example is Work, which is derived from the classes
Energy and Time.
A Unit of Measure Slate is shown below:

DSS User Guide DYNSIM 5.3.2, December 2016 139


Utilities/Tools

The fields and buttons on this window include:

Slate Use the pull down list to select a slate for use. The Class and Unit list
is updated to reflect the units-of-measure that will be used for each
unit-of-measure class.

Class Lists the unit-of-measure classes (temperature, pressure, etc.). Any unit
in a class can be converted to another in the same class, but units in one
class cannot be converted to those in another. For example, kPa can be
converted to psia, but kPa cannot be converted to F.

Unit Lists the unit-of-measure for each unit-of-measure class.

Override A read only checkbox to indicate a unit override is in place for this
slate.

New Slate/Copy Slate Allows the user to Create a new unit-of-measure slate.

DSS User Guide DYNSIM 5.3.2, December 2016 140


Utilities/Tools

Rename Slate Allows the user to Rename a slate.

Delete Slate Allows the user to Delete active non system slate.

Delete custom slates Allows user to delete custom slates. Upon selection of this button, all
the custom slates associated with the installation with checkbox option
appears as below.

The icons that appear next to each slate name indicate its characteristics:

Locked The slates can be used, but not modified or deleted. It could be either:

• One of the base slates English, Metric, or SI, or

• A slate in the system preferences to which the user has only read
access.

Unlocked The slate is in the system preferences and the user has write access.
Note that changing such slates affects other simulations.

User The slate is in users’ personal preferences.

Database The slate is stored in the open database.

Create/Select/Copy/Rename/Delete/Modify a Slate

Select Units of Measure from edit menu or click the UOM icon on the toolbar. The
UOM window is displayed.

To create a New Slate:


1. Click New Slate.

DSS User Guide DYNSIM 5.3.2, December 2016 141


Utilities/Tools

2. The New UOM Slate dialog box appears. Enter a Slate name.
3. Used the Based On pull down list to select a basis for the slate.
To select a slate:
1. Use the pull down list to select a slate.
2. Click OK.
To copy a slate:
1. Use the pull down list to select a slate.
2. Click Copy Slate.
The UOM Copy Slate dialog box appears.
3. Enter a Name for the slate.
4. Use the Copy From pull down list to select the basis for the copied slate.
5. Click OK.
Once a slate is copied the individual class item units of measure can be modified.
To rename a slate:
1. Use the pull down list to select a slate.
2. Click Rename Slate.
The UOM Rename Slate dialog box appears.
3. Enter a Rename To name for the slate.
4. Click OK.
Once a slate is renamed, the individual class item units of measure can be modified.
To delete a slate:
1. Use the pull down list to select a slate.
2. Click Delete Slate.
The Delete Confirmation dialog box appears.
3. Click Yes.
To delete custom UOM slates:
1. Click Delete Custom Slates.
The select slates to delete window appears.
2. Upon selection Click Delete.
To modify a unit-of-measure in the current slate:
1. Double-click on the unit-of-measure class you wish to change. The Change Unit-of-
Measure dialog will appear.
2. Select the Default radio button to restore the default Unit-of-Measure. Select
Custom to choose an override Unit-of-Measure.
3. Click the Change button to confirm the choice.
4. If you have selected the Default radio button, the default unit-of-measure will appear
in the Unit column and the read-only Override checkbox will be unchecked. If you have
selected a Custom unit-of-measure, then the read-only Override checkbox will be
checked.

DSS User Guide DYNSIM 5.3.2, December 2016 142


Utilities/Tools

For some slates, the label Custom (Shortened) is used instead of “Custom.” This is to
indicate that, by design, the selection is from a shorter list of choices. For example,
HEXTRANTM based slates have a shorter list of “common” Area choices, limited to ft2 and m2.

You cannot modify the units-of-measure for a locked slate, such as "SI.” To create a
custom set of "SI" units, you must first create a new slate based on "SI.” Then, you can modify
the units-of-measure for the new slate.

UOM Override

DYNSIM allows the users to override the UOM in simulation equations and parameter
assignments. The UOM override feature can be invoked by specifying the abbreviation of the
desired UOM within brackets {} suffixed to the parameter.

An example of applying an override UOM to a point is V1.T{C}.

In the example, parameter V1.T (temperature) is assigned the UOM degree centigrade. Any
change in the global UOM slate or even changing the slate will not affect the UOM of the point
V1.T.

The UOM override feature is presently available for the following utilities:

• Equations (within Cross Reference and equation assignments)

• Point Monitor

• Point Reference

The details of the UOM override feature applicable to the utilities are explained below:

Equation Assignments: UOM override can be specified either in standalone equation


blocks or in equations embedded inside other blocks. The UOM override specified for the
given parameter will then replace the default DYNSIM internal UOM for the parameter.

An example of an equation assignment is shown in the figure below.

DSS User Guide DYNSIM 5.3.2, December 2016 143


Utilities/Tools

In the example, value of TAMBIENT is converted to degree centigrade from the internal
UOM of degree Kelvin before being used in the equation. In the second case, the
parameter V1.T will be converted to degree Fahrenheit from the internal UOM of degree
Kelvin before being used in the equation.

Cross Reference Equations: An example of UOM override used in cross reference


utility is shown in the figure below.

The example entry from the Cross Reference utility, takes two pressures PRES101 and
PRES102 from the DYNSIM engine, converts them to psia from internal UOM of kPa, and
places the pressure difference in parameter PRES201 in units of psia in DYNSIM2 engine.

Point Monitor: UOM override can be specified for a point monitor in a similar way as the
parameter name. The parameter view will always be reported in the override UOM
irrespective of the global UOM slate.

Point Reference: UOM override can be specified for a point reference in the Edit window
of the parameter reference. The parameter will always be displayed in the override UOM
irrespective of the Global UOM slate.

An example of the UOM override in point reference is shown in the figure below.

In this point reference example, the V1.T parameter is displayed as per the global UOM
(DYNSIM Internal Units) on the flowsheet canvas. However, the second point reference
with the UOM override applied will always show the value in degree R irrespective of the
global default UOM.

Syntax

The syntax of specifying the UOM is to suffix the desired valid UOM for a given point or
parameter inside curly brackets without any trailing space between the parameter name and the
curly bracket.

A few examples on the syntax are listed below:

V1.T{C} Correct

DSS User Guide DYNSIM 5.3.2, December 2016 144


Utilities/Tools

V1.T {F} Incorrect

V1.T(R) Incorrect

TAMBIENT [K] Incorrect

TAMBIENT {KG/CM2} Incorrect

Use of incorrect syntax in an equation block or utility will result in an incorrect syntax
error message.

Search
This topic includes the following subjects:

• Overview

• Search GUI

• Editing Search Results

• Search Criteria

• Examples.

Overview

The “Search” feature locates all occurrences of a model type, parameter name, or string in a
simulation database with an option to display parameters of a model type whose values have not
been modified from their defaults.

Search GUI

The Search tool can be invoked in one of the following ways:

1. Clicking the icon on the main DYNSIM toolbar (OR)

2. Using the key combination CTRL + F.

Option 1 - By default, the Find in database option is selected. This option locates the
occurrences of a model type, parameter name, or string in the simulation database. The parameter
names located by this search will have non-default values. Use Option 2 to find parameters with
default values and non-default values.

DSS User Guide DYNSIM 5.3.2, December 2016 145


Utilities/Tools

The features available on the Search GUI are explained below:

Find What

Typing an input string in the Find What box lists all the occurrences of the input string
with search made over given search specifications.

The search can be narrowed by selecting the input string to be an Object Instance, Model
Type, Parameter Name, or a String. By default, the Object Instance option is checked.

Searches are not case sensitive.

DSS User Guide DYNSIM 5.3.2, December 2016 146


Utilities/Tools

Whole Words Only

The Whole words only search treats the input string as a whole word, searching for
an exact match of the input string. A whole word is determined by the delimiter of white
space, or any non-alpha or non-numeric character (i.e. decimal point, math operator,
parentheses etc.).

This search will not produce results where the string (e.g. DA) is a subset of another
string (e.g. DATA).

Simulation and Flowsheet

The Simulation and Flowsheet dropdown list boxes allow limiting the search to
a specific open simulation and a flowsheet within the simulation.

Apply

Click Apply to commit changes to the database.

View

Click View to locate the instance of the respective object, model type, and parameter on
the flowsheet.

Close

Click Close to close the search window.

Option 2 - Select the Find Parameter option to search for all occurrences of a model type or
a parameter name irrespective of the default values or assigned values.

DSS User Guide DYNSIM 5.3.2, December 2016 147


Utilities/Tools

Refer to the use cases in the Examples section for a better understanding.

Table Columns/Tabs

An individual tab for Model Objects, Parameters, Points, Trends, Monitor, TPMs, Malfunctions,
and Cross References is displayed on the right hand side of the GUI. They allow you to view and
edit the search results for the type of option selected. A single line text message at the bottom of
the screen displays the number of matches found.

Editing Search Results

The Search functionality allows you to edit the search results. Keep in mind the following when
editing cells:

• Editable cells have a white background, while non-editable cells are shaded.

DSS User Guide DYNSIM 5.3.2, December 2016 148


Utilities/Tools

• The "User Environment".

• The edit results are reflected in all locations where the value is used except in the case of
strings.

• Ensure that the value or syntax of the edited cell is correct, since there is no validation
performed on edited values.

DSS User Guide DYNSIM 5.3.2, December 2016 149


Utilities/Tools

Search Criteria

The Search performed using Option 1 (Find in database) satisfies the following search criteria:

Object Instance
Results Shown in Table If any one of the following is a match

Model Objects • Name is a match

Parameters • Model Object name

• Assignment

• Equation

Points • Name

Trends • Point name being trended

TPMs • Point name being monitored

Cross Reference • Model variable

• Control variable

• Equation

Malfunctions • Model Object name

Model Type

Results Shown in Table If any one of the following is a match

Model Objects • Model Object class

Parameters • Model Object class

Points • Point class

Malfunctions • Model Object name

Trends

TPMs

Cross Reference

Monitor

DSS User Guide DYNSIM 5.3.2, December 2016 150


Utilities/Tools

Parameter Name
Results Shown in Table If any one of the following is a match

Model Objects

Parameters • Parameter name

Points

Malfunctions

Trends

TPMs

Cross Reference

Monitor

String
Results Shown in Table If any one of the following is a match

Model Objects • Description

• Comment

Parameters • Comment

Points • Description

• Comment

Malfunctions • Description

Trends Points • Trend description

TPM Points

I/O Cross Reference • Description

Monitor

DSS User Guide DYNSIM 5.3.2, December 2016 151


Utilities/Tools

Examples

Case I: For all instances of a model type, compare the current assignment of a
parameter against its default value and edit the parameter assignment as needed.

For example, you could view the list of Cv values for all the Valve objects in the simulation,
identify those instances where the assignment has not been changed from the default, and make
the desired changes.
Select the Find Parameter option.
1.

2. In the “Model Type” field, enter the model type. Examples: SOURCE, VALVE,
HEATEXCHANGER.

Example 1: VALVE.

In the “Parameter Name” field, enter the complete parameter name. Example: CV.

Example 2: To identify the StateOption used in shell side calculations in a HeatExchanger


model, enter HeatExchanger in the Model Type field. In the Parameter Name field, enter
SHELL.StateOption.

Entering only “StateOption” or a part of the parameter name will not return any results.
The full parameter name, as it appears in the OEV, has to be specified while using this
search option. However, this restriction does not apply when the search is limited to the
database.

3. Select ‘All’ in the “Simulation” and “Flowsheet” dropdown list.

Click Find or press the Enter key to go to the Parameters tab.

The TB values for all the instances of the model class SOURCE are displayed including
SOURCE object instances whose default TB values have not been changed.

4. Edit the entries under assignment and ensure that the entered values have the same units as
displayed in the Internal UOM column.

5. The message “Assignment value edited. Click Apply to save changes” displays near the
bottom of the screen.

6. Click Apply. The message “Applied changes successfully” displays.

Case II: To look for a specific parameter in an object instance. E.g. XV1.CV

1. Select the Find in database option.

In the “Find What” field, enter a string of the form: OBJNAME.PARAMNAME, e.g.
XV1.CV

DSS User Guide DYNSIM 5.3.2, December 2016 152


Utilities/Tools

2. Check the parameter name option.


Click Find or press the Enter key to go to the Parameters tab, which displays the results
3.
matching the search string.

Case III: Editing incorrect equations attached to a loaded simulation.

If an incorrect equation is attached to a loaded simulation, an error message displays in a pop-up


window and in the Message Monitor. To edit the equation:

1. In the “Find What” field, enter the equation displayed in the Error Message window.

2. Select the “Object Instance” and “Parameter Name” options.

3. Click the “Find” button.

4. Select the “Parameters” tab; edit the ‘Equation’ cell.

5. The message “Equation value edited. Click Apply to save changes” displays near the bottom
of the screen.

6. Click Apply to save the changes. The message “Applied changes successfully” displays.

User Accounts Configuration


This topic includes the following subjects:

• Changing Your Password

• Viewing the List of Environments You Can Access

• Creating a New User Account

• Modifying or Deleting an Existing User Account

• Export user security information

DSS User Guide DYNSIM 5.3.2, December 2016 153


Utilities/Tools

• Import user security information.

Changing Your Password

Select “Change Password” from the Options menu. DYNSIM prompts you with the following
dialog:

Type the new password in BOTH fields.

Click OK to change the password, or Cancel to cancel the change.

Viewing the List of Environments You Can Access

Select View Environment Access from the Options menu. DYNSIM displays a dialog
listing the environments you are permitted to select:

These cases are the only environments you are permitted to use. To change these permissions,
contact the Administrator.

DSS User Guide DYNSIM 5.3.2, December 2016 154


Utilities/Tools

Creating a New User Account

1. Select Configure User Accounts from the Options menu. The following
dialog displays:

From this dialog box, the administrator can Delete a user account, Change a user’s
password, and specify the permissible environments.

2. To create a new account, type the appropriate information into the User Account field
and both password fields, click the checkboxes corresponding to the desired
environments, then click the OK button.

You must be in the Administrator environment to perform this operation.

Modifying or Deleting an Existing User Account

You must be in the Administrator environment to perform this operation.

1. Select Configure User Accounts from the Options menu. The dialog box
shown above displays.

2. Choose an existing account from the User Account dropdown list.

To delete an account, click the Delete button.

DSS User Guide DYNSIM 5.3.2, December 2016 155


Utilities/Tools

To change a password, type the new password into BOTH password fields then click the
Apply button.

Clicking the Apply button applies the changes immediately. Clicking the Cancel
button after clicking Apply does not reverse the changes.

3. To change the environment type, click the boxes for the desired environment(s), then
click the Apply button.

When desired changes have been made, click the OK button. To ignore unapplied
changes, click the Cancel button.

The privileges for each environment are listed in DYNSIM Environment section

Export user security information

You must be in the Administrator environment to perform this operation.

This menu option can be used to export the following for all users to an .XML file, which
can be later used to import in to another installation

• User logon

• Password

• Role information.

This feature is particularly useful for retrieving the user security information from an old
installation of DYNSIM to a new installation.

For this to happen , a user with administrative privileges needs to export the security
information before un-installing the software. Otherwise, all the security information is
permanently lost once the product is uninstalled.

Select Export User Security…from the Options menu. The following dialog appears. Choose the
location and name of the file (use Browse button if needed) and click the OK button.

DSS User Guide DYNSIM 5.3.2, December 2016 156


Utilities/Tools

Import user security information

You must be in the Administrator environment to perform this operation.

This menu option can be used to import the following from a text file, which is exported
from another installation of DYNSIM.

• User logon

• Password

• Role information.

. Select Import User Security…from the Options menu. The following dialog appears. Click on
browse button to select the XML file containing user security information.

Conflict arises when the file contains password and role information for accounts that already
exist in the current environment. Use “Update existing accounts?” check box to indicate if it is
ok to overwrite password and role information for such accounts using the information contained
in the file. Click on Import button to proceed. Messages from the server on accounts
created/updated are displayed in the message monitor.

DSS User Guide DYNSIM 5.3.2, December 2016 157


Utilities/Tools

Global Database
The global database is maintained in an ASCII file called S4MGlobalData.dat. The database is
accessible under the Input menu.

The global database may be used when running DYNSIM on multiple machines. When you select
or save a global database, this will be distributed to the simulation file for each of the machines
used to run simulations. This distribution is not done automatically when running the simulation
to allow users to maintain the client machines in the original format, similar to the handling of
snapshots for initial conditions.

File Handling operations for the global database is fairly intuitive. The Save option allows the
user to save changes they made to the database. The Restore Default option allows the user to
restore the latest saved database default. The user could also Backup the information from
DYNSIM to data file. The Use Backup option allows the user to open a previously saved database
backup. The Exit option closes the Database window without saving any changes.

If running multiple simulations, the editor will open with the active FS file title. However, only
one editor may stay open. If the user activates a different simulation the title from the previous
FS will still show on the editor’s window. As this may cause confusion, the user should close the

DSS User Guide DYNSIM 5.3.2, December 2016 158


Utilities/Tools

database editor window when they activate a different simulation. This database can be used
across simulations to ensure consistency between projects.

The information from the database can be referenced by the multiple devices such as pipes to
minimize the effort required to set up and change a simulation. The user may add a data row to
the database by right-clicking on the blank tab to the left and choosing to add a row after or
before the designated row.

Upon making changes to the editor, the user must save the updated database using the file menu.
The global database editor will display data in the simulation units of measure. The data file in
file S4MGlobalData.dat is maintained in standard units of measure for customer support. When
viewing data from the global database editor, you may convert the units of measure to allow you
to compare to a reference source. These conversions are temporary and will not be retained as
part of the simulation.
The global database is divided into three sections for easier browsing. The Pipe_Global section
should be used for quick access to the most common pipe types. The Pipe_Extra_Global section
should be used for all the less common pipe types. The Pipe_Surrounding_Global section
contains an extensive set of data which can be referenced if the information is not found in the
first set of data.

The Pipe_Global and Pipe_Extra_Global section contains most common pipe types including
schedule number, nominal size diameter, thickness, inside diameter, conductivity and density.
The density of stainless steel is used as a default (490.8 pounds per cubic foot). The wall
roughness for stainless steel is used as a default (0.0018 inches). If the user decides to reference
the information in the database, the pipe will calculate the volume, heat transfer area, and metal
mass.

The Pipe_Surrounding_Global is another menu item under Group Name. This information is
referenced by the pipe to either specify or calculate the heat transfer coefficients for the
convective heat transfer, conductive heat transfer, and surroundings heat transfer.

DSS User Guide DYNSIM 5.3.2, December 2016 159


Utilities/Tools

References

The default pipe database provided with DYNSIM 5.0 contains information obtained from the
following reference sources:

1. The Pipe Schedules are obtained from “Flow of Fluids” by Crane:

Flow of Fluids – Technical Paper No. 410M from Crane

2. The high temperature insulation material is a product from “Industrial Insulation group”
named Thermo-12 Gold®. For more information visit:

http://www.hamiltongv.com/DataSheets/Thermo12Gold.pdf

3. The information on Arctic Soil is obtained from the journal of Geophysical Research:

Pringle, D. J., H. Eicken, H. J. Trodahl, and L. G. E. Backstrom (2007), Thermal


conductivity of landfast Antarctic and Arctic sea ice, Journal of Geophysical research

SIM4ME Thermo Case Manager


The SIM4ME Thermo Case Manager feature allows the user to export all the SIM4ME Thermo
data associated with an engine and also allows the user to import the same SIM4ME thermo data
to a different flowsheet with a different engine.

Before exporting or importing a thermo case, you must have already defined (set up) the
Simulation, and the Flowsheet.

An engine doesn't have a case until the SIM4ME Thermo GUI is accessed at least once
and saved.

DSS User Guide DYNSIM 5.3.2, December 2016 160


Utilities/Tools

The edit engine does not get refreshed automatically when a SIM4ME Thermo case is
imported so accessing the SIM4ME Thermo GUI after a case has been imported may overwrite
the import.

Exporting a Thermo Case

1. From the Tools drop-down menu, choose SIM4ME Thermo Case Manager

The SIM4ME Thermo Case Manager dialog box displays:

The thermo cases associated with the simulation are displayed in the Thermo Case
Manager. Select the cases(s) to export.

DSS User Guide DYNSIM 5.3.2, December 2016 161


Utilities/Tools

2. Click the Export button to continue.

Enter a name for the file and it is stored in the default location \SIMSCI\DSS4x\User\.

The file can also be stored in a non-default location.

If a file with the same name is already present, an overwrite message is displayed.

Before importing a thermo case, it is assumed that the user has added a new flowsheet with a
different engine to the existing simulation.

DSS User Guide DYNSIM 5.3.2, December 2016 162


Utilities/Tools

Importing an Engine

1. From the SIM4ME Thermo Case Manager, click on (select) the newly added engine
and click Import.

2. The Import dialog box displays:

The Import From Folder text area indicates the absolute path of the folder
where the exported .slb files for each of the Engine are located. Browse for the .slb
files if present in a non-default location.

DSS User Guide DYNSIM 5.3.2, December 2016 163


Utilities/Tools

3. Click the Save button to continue.

The following dialog box is displayed.

Click Yes to associate the thermo case with the new flowsheet (engine).

To validate if the import was successful, click on the flowsheet and open the

SIM4ME Thermo GUI and check whether the data imported gets reflected in all

the relevant tabs.

Tuning Table
Overview

Using the Model Tuning Table, you can adjust the model static parameters to achieve the required
operating condition. The tuning table helps in tuning the model to a required steady-state during
the model building process and reduces the manual effort involved in adjusting the static
parameters such as conductances, heat transfer coefficients, and reaction rates.

The tuning table uses a temporary PID controller that connects the tuned variable (such as flow
rate) and adjusted variable (such as Valve CV). In the tuning table, you can specify both tuned
and adjusted variables and alter their corresponding PID parameters to achieve the required
results for the entire simulation. The parameters can be added from any engine that supports the
Float or Double data type as input.

Once adjusted parameters reach the required values, you can either delete them from the tuning
table or save them in the database.

Features and Functionality

To tune a model

1. On the Tools menu, click Tuning Table.

DSS User Guide DYNSIM 5.3.2, December 2016 164


Utilities/Tools

2. Click Add as Target and select the variable that requires tuning.

3. Click Add as Adjusted and select the parameter that needs adjustment to achieve the
required value for the target variable.

4. Set the target value of the Targeted Variable.

5. Click Apply.

If the adjusted variable is a static parameter, it is changed to Dynamic.

6. Click LF to update the changes.

7. Run the Simulation.

8. Once the steady-state value is achieved, save the values in OEV by clicking Update in
Database.

9. If required, modify the current value of the Adjusted Variable and save it in the OEV by
clicking Update in Database.
10. Click LF for the data type changes to take effect.
11. If required, delete a row by selecting it and clicking Delete.

12. To filter the variables by name, enter the name of the variable in the Filter Text field.

Once saved, the tuning table data is persistent in the simulation in the form of an
XML file (TuningtableData.XML).

DSS User Guide DYNSIM 5.3.2, December 2016 165


Utilities/Tools

Caution and Tips

• Any changes in parameter type ( STATIC to DYNAMIC or vice versa ) requires LF for
changes to reflect in the running model. Similarly, any changes in the tuning table take
effect only on clicking the Apply button.

• Watch out for process disturbances in the simulation during tuning.

• Watch out for active controllers’ conflict. If any actual controller is associated with the
variable, put it in manual if needed.

• Do not provide too loose or too tight bounds on the variables to avoid wild fluctuations or
winding of the controllers.

• Adjust the proportional gain (Kp) for any changes in the limits to avoid unstable or non-
responsive controllers.

Configuring Defaults
This section details the process of assigning defaults to the model parameters and/or drawing
defaults.

Overview

You can configure the defaults for model parameters and/or drawing attributes using the right-
click menu options available in the “Types” tree. Selecting the “Edit Model Defaults” option will
open the OEV for default parameter modification. Selecting ‘Edit Drawing Defaults” will open
the draw attributes window for the class, which can then be configured. While configuring
defaults, please consider the following points.
• The User Configurable Defaults option is not available for User Templates, Trends, XY
Plots, and Object References.
• The user configurable defaults will be used ONLY for objects created through DYNSIM
GUI. Any other means of creation like XML restore, Bulk Configurator, PRO II
Translator etc. will continue to use DYNSIM original defaults.
User Defaults configured for one simulation can be used in other simulations provided that the
Thermo Slates (Component Slate, Method Slates and Local Thermo/Flash options) are
compatible. If configured, Thermo Slates are not available in the target simulation, and the
default slate for the target simulation (as configured in the Thermo GUI) is used.

User Configurable Drawing Defaults for model objects with a configuration dialog (e.g. PID,
Drum) can be configured by specifying the corresponding model configuration parameter in
OEV. For example, specifying the Drum ORIENTATION parameter in OEV as
HORIZONTAL_BOOT will assign the default icon “Horizontal with Boot.” The configuration
dialog will not appear when a model object is dropped onto canvas afterwards.

The configured defaults will only affect new objects dropped to the flow sheet after
configuration. Existing model objects are not affected.

DSS User Guide DYNSIM 5.3.2, December 2016 166


Utilities/Tools

Saving User Configurable Defaults

You can change DYNSIM defaults by right clicking model objects available in the “types” tree
and clicking either “Edit model Defaults” or “Edit drawing Defaults.” Once specified, User
Configurable Defaults are applied to new model objects dropped on the canvas. These defaults
are not applied to model objects already on the canvas. For example, the default Cv for a valve is
set to 50 and the default width is set to 35. When a new valve is dropped on the canvas, it will
have a Cv of 50 and a width of 35.

All User Configurable Defaults are saved in the XML format in the User\Defaults folder.

Restoring DYNSIM Defaults

You can restore the original DYNSIM defaults by clicking “Restore DYNSIM Defaults.” This
menu option is available only for classes where DYNSIM defaults are overridden with user
defaults.

Undo and Redo Changes


Overview

You can undo or redo any of the graphical changes done on the flowsheet and also revert the
model data changes done to the objects on the flowsheet using the buttons on the Undo/Redo
pane on the DYNSIM GUI. You can also use the short cut keys Ctrl+Z and Ctrl+Y for undo and
redo respectively.

DSS User Guide DYNSIM 5.3.2, December 2016 167


Utilities/Tools

The Undo Redo pane on the DYNSIM GUI list the actions performed and supported for Undo
Redo. The two radio buttons on the pane list the actions specifically available for Undo or Redo.
A few points to consider while using this feature,
• On clicking the “Undo “button, the most recent changes are undone. The item
will disappear from the undo list.
• On clicking the “Redo “button the most recently undone change will be restored.
The item will again appear in the undo list.
• While doing any edit actions from winodws like OEV/DEW/Draw Attributes etc
, click on the “Apply” button is considered as one action which can be undone.
This is irrespective of the number of changes done on the window before
pressing the “apply” or “OK” button. In this case, undoing will restore number of
changes done on the window in one go.
• For any edit Window like OEV/DEW/Draw Attributes etc, the window has to be
closed and re-opened to see the effect of Undo/redo operations. Otherwise they
will continue to display the old values.
• The undo redo buffer list will be 15. Once the action list exceeds this size, the
oldest action will be flushed out.
• The buffer is available only in the active session of the GUI. Different GUI
attached to the same simulation will not have the same undo buffer available.
Once the simulation is closed, the undo buffer will be cleared.

UNDO/REDO supports most of the flowsheet canvas operations listed below.


• Location change of a single and multiple objects
• Model Data Changes to a model object using OEV
• Delete and Cut/Paste of objects
• Creation of objects on canvas through drop, template and paste
• Draw attribute changes to a model object
• Resizing the model object
• Changes to Trend and XY plots
• Changes to Point references, Object references and Flow rate indicator
• Undo Redo support for stream connect/disconnect, re-connect/re-routing.
• Right click context menu items like embed ports, restore ports, move to front etc.
• Creation and deletion of model objects on the flowsheet canvas,
• Hide/Unhide All objects on the canvas,
• DEW and Configuration Dialog changes
• Rename of model objects

DSS User Guide DYNSIM 5.3.2, December 2016 168


Utilities/Tools

Limitations/Known Issues
1. Actions performed through external means (other than Dynsim GUI ) like Bulk
Configurator, XML import, keyword import, PRO II translator etc. cannot be undone.
2. None of the run engine operations like load, LF, LE etc are covered in the scope of
Undo/redo
3. This feature will not cover the following edit operations in other Dynsim windows like
Simulation/Engine configuration, Scenario, Malfunction, TPM, XREF,Point Monitor,
Auto name Rulebook, Tuning Table, Thermo Data changes in MT GUI, Edit operations
done for configuring the user defaults.
4. Validate graphics might interfere with the undo/redo buffer giving inconsistent results.
5. Power library objects may have special object connections which may not get fully
restored on undoing certain operations like delete.

Copy/Paste Enhancements
Overview

The GUI has been enhanced to provide better copy / paste capabilities from Excel into DYNSIM
user interfaces - Data Entry Window, Point Monitor, Tower Viewer and TPM Editor.

The copy/paste of data from Excel to both Point Monitor and TPM table is slightly different with
an option to the user to either insert or overwrite the data in the existing table.Insert option would
always put the data at the bottom of the table. Overwrite would replace the data from the point of
selection in the table. Copy/Paste of any duplicate data would be reported and discarded.

DSS User Guide DYNSIM 5.3.2, December 2016 169


Utilities/Tools

Flow sheet Password Protection


Overview

DYNSIM provides the facility for password protection of user selected flow sheet(s). This is to
protect the confidential data in some user added models to prevent unauthorized access/use of
such data.
1. The feature is accessible from the following pop-up menu in the instance tree for the flow
sheet.

2. On clicking the “Protect Flowsheet…” menu will prompt the user to set the password for the
flowsheet and user has to retype the password again for confirmation. The strength of the
password is optional. Password should be 1- 20 characters long and they are case sensitive.

DSS User Guide DYNSIM 5.3.2, December 2016 170


Utilities/Tools

3. Once the flow sheet is protected, the following actions will be prevented from DYNSIM GUI
for the protected flowsheets.
a. Attempt to open the flowsheet by any means including flowsheet reference or stream
send/stream receive etc.
b. Attempt to delete/rename the flowsheet
c. Attempt to expand the flowsheet in the instance tree
d. Print the flowsheet
e. Create XML backup of the simulation
f. Export the flowsheet /engine though key words
g. Accessing Bulk Configurator

4. The search tool will not list any of the items searched pertaining to protected flowsheets.
5. The protected flowsheet will appear with a lock icon and in grey background color in the
instance tree as given below.

6. In order to activate these actions the flowsheet(s) need to be unprotected again. This can be
accessed from the above pop-up menu again. The following prompt will appear

DSS User Guide DYNSIM 5.3.2, December 2016 171


Utilities/Tools

7. Once the correct password is provided, the flow sheet will remain unprotected for the session
until the user chooses to protect it again. Once the sheet is unprotected, saving the simulation
will lead to leaving the flow sheet(s) unprotected.
8. If the supplied password does not match, the flow sheet will remain protected. The number of
such failed attempts is unlimited as of now.
9. The protect/unprotect feature will be available only in Engineer/Superuser mode with edit
license. With Instructor and Operator mode as well as with runtime license, the feature will
not be available. Opening an already protected flow sheet in any of those modes will be
prevented
10. In case the user forgets the password after protecting, the simulation can be unlocked through
DYNSIM support only.
11. The protection of a flow sheet doesn’t affect the load or runtime operations of a flow sheet
like saving the IC or triggering malfunctions etc.

Display Simulation Speed


Overview

DYNSIM provides the facility for displaying simulation speed on GUI. This can be enabled from
Options menu.

Display Stream Property


Overview

The Stream Property Display feature helps user to inspect and control the flow network in a
simulation.This feature enable user to bring up the specific parameter values of properties (such
as temperature, pressure, enthalpy etc.) for streams at any given point of time.User can refresh the
value by clicking the refresh button on each property dialog box or by using shortcut key Shift+R.

1. The user has Menu option to bring up the Display Stream Property dialog which has
predefined parameters.The menu option is available only when Simulation is not in shutdown
mode.

DSS User Guide DYNSIM 5.3.2, December 2016 172


Utilities/Tools

2. After selecting the particular parameter, it brings up the value releted to Stream.These values
are the values available at the simulation time when user selected the parameter.The values
will be displayed on all opened flowsheets.
3. Selecting “none” make the values to disappear.
4. User has various options to decorate the values show in rectangle.These options are available
in Drawing Defaults.User can “Hide/Unhide” the border,the thickness of the border,fill
rectangle etc. configured in drawing defaults.Seperate options available for Model Property
Display.

Display Model Property


Similar to Display Stream Property, Display Model Property can be used for showing specific
parameter values at any given point of time added for the models. Currently only elevation has
been added for the models. User can refresh the value by clicking the refresh button or by using
shortcut key Shift+U.

DSS User Guide DYNSIM 5.3.2, December 2016 173


Utilities/Tools

DSS User Guide DYNSIM 5.3.2, December 2016 174


Cross Reference

Cross Reference
Overview
The Cross Reference feature allows communication between simulation engines. It represents the
actual wires from a field device, or transmitter, to the control system as well as a conduit between
various engines.

For DYNSIM simulators that communicate with a Distributed Control System (DCS), a Cross
Reference table is employed to relate model parameters with the DCS Input/Output (I/O) points.
This table resides in the DYNSIM database. A communications application uses the cross
reference data to dynamically update points during runtime. Although a discussion of specific
DCS communications applications, such as Application Program Interface (API) calls, is beyond
the scope of this User Guide, the engineer must understand the format of the table and how to use
it to have a realistic, properly operating simulator.

The Cross Reference data, also referred to by its commonly used name, CrossRef.txt (when in
text-based format), contains one line of information for each stimulated I/O point. Thus, if a DCS
has 3500 I/O points, there are 3500 lines in the Cross Reference data. Each line contains
information for the DCS I/O point, the point to be cross referenced, high and low and signal
clipping limits, scaling coefficients, scale variables, digital thresholds, and a point description
field.

The Cross Reference file can be built, displayed, and edited using the Cross Reference Editor.
For some controls vendors, SimSci has written programs to convert vendor-specific I/O files to an
initial DYNSIM Cross Reference file. Check the documentation for the appropriate emulation
product (i.e., SCP User Guide). You can also generate a Cross Reference file, CrossRef.txt, using
a spreadsheet program that can export in comma-separated-variable format.

Cross Reference Data


The cross reference data is a sequential set of data in the DYNSIM database. The text-based
version of the Cross Reference data, a file named CrossRef.txt, is in comma-separated-variable
format. A comma delimits each field. A single comma designates blank fields.

Please refer to the chapter Advanced Modeling and topic Equation Utility for a description of
DYNSIM supported equations. When an equation is used, From UOM and To UOM should not
be specified (add) but the {UOM} override feature may be used. For details on UOM override,
refer to the chapter Utilities/Tools and topic Units of Measure.

Data in a new row has to be filled before the row can be enabled.

Cross Reference data entries for analog points differ slightly from those for digital points. Each
is presented separately in the tables below.

DSS User Guide DYNSIM 5.3.2, December 2016 175


Cross Reference

Analog Points

Cross Description Required or


Reference Optional

Disabled Selecting the disabled option will disable the cross Optional
referencing of this line. After disabling the line,
you must reload the cross-reference database.

From Engine The engine name from which the controls/ Required
points/parameters are cross-referenced.

For example, for an analog input value, this name


might be set to DYNSIMEngine.

To Engine The Engine name to which the controls/object Required


points/parameters are cross-referenced.

For example, for an analog input value, this name


might be set to SCP Engine

From Symbol The variable or model parameters or control point Required unless
to be cross-referenced from an Engine specified in
the “From Engine” field. conversion equation
is specified
Model object parameters are accessed using the
syntax: ObjectName.Parameter

To Symbol The parameter or control point, which receives Required


cross-reference value from “From Symbol”.

For example, for an analog input value, this name


might be set to compound:block.parameter from
the Foxboro control configuration.

From Val Info Some control emulators and interfaces use this Optional
entry for reference purposes only. In SCP
software, it refers to Block Parameters.

To Val Info This column is used for specifying SCP ECB Optional
parameters.

Period The update time for a point. This column is one of Optional
a set of predefined intervals between the "Engine (default=Engine
Time Step" and eight times "Engine Time Step". Time Step)
A maximum of two different frequencies are
allowed.

DSS User Guide DYNSIM 5.3.2, December 2016 176


Cross Reference

Cross Description Required or


Reference Optional

Refer Host Configuration Editor section of this


manual for definition of "Engine Time Step."

Description This column is usually obtained automatically or Optional


manually from a control system input or listing
file.

Equation Analog point conversion. If an equation is used, Optional


then the information from the “From Symbol”
should be removed.

Refer to the topic Equation Utility in chapter


Advanced Modeling for details on valid functions
(i.e., MAX / MIN / ABS) within the Equation
field.

From UOM This column defines the UOM conversion from Optional
the From Symbol internal UOM to the UOM
specified by this by this entry before minimum
and maximum values are applied.

This entry is ignored if the equation column is


used. In this case, use the UOM specified in curly
brackets inside the equation itself. Also, leave
this entry blank when connecting a DYNSIM
parameter to another DYNSIM parameter with the
same internal UOM in both engines.

Please note that cross-referencing does not


automatically convert the cross-reference value
from the From UOM to the To UOM. Instead, it
works as described below under Analog Point
Conversion.

To UOM This column specifies the UOM conversion from Optional


the UOM specified by this entry to the To Symbol
internal UOM after minimum and maximum
values are applied. This value should normally be
left blank when connecting a DYNSIM engine to
another DYNSIM engine with the same UOM in
both engines.

This entry is ignored if the equation column is


used. In this case, use the UOM specified in curly
brackets inside the equation itself. Also, leave
this entry blank when connecting a DYNSIM
parameter to another DYNSIM parameter with the

DSS User Guide DYNSIM 5.3.2, December 2016 177


Cross Reference

Cross Description Required or


Reference Optional

same internal UOM in both engines.

Please note that cross-referencing does not


automatically convert the cross-reference value
from the From UOM to the To UOM. Instead, it
works as described below under Analog Point
Conversion.

Conv Type Type of conversion is applicable to I/O points, to Optional


account for sensor type. It is a text string that
uniquely identifies the function. Where required,
enter name of conversion type. For all others,
enter SIMPLE.

Tolerance Tolerance is used to check if the X-ref value Optional


needs to be updated or not. The update criterion
is based on the difference between the current
value and the value at the time of last update. If
this difference exceeds tolerance then the X-ref
value is updated.

The tolerance check can be turned off by going to


Engine Configuration dialog box and setting
"yes" for "Ignore tolerance checking while cross-
referencing" option.

Minimum Scale Minimum value for Model Variable conversion. Optional


Value (Min)
For FOXSCI conversion types other than
thermocouples and RTDs, this value is used for
scaling the converted value to Raw Counts.

This parameter is not used for FOXSCI


thermocouples and RTD types. Minimum Scale
Value is not used for clipping the output for
simple conversion types. The parameter can be in
any units.

Maximum Scale Maximum value for Model Variable conversion. Optional


Value (Max) See Minimum Scale Value for more details.
Maximum Scale Value is not used for clipping the
output for simple conversion types.

Low Limit For FOXSCI conversion types, this value is used Required for SCI
to clip the output before SCI conversion. This conversion types

DSS User Guide DYNSIM 5.3.2, December 2016 178


Cross Reference

Cross Description Required or


Reference Optional

parameter is used for SIMPLE conversion types.


(Low Lim)
Value = (Min Scale Val + Max)x OSV
+ Min Scale Val

Low Limit is used for clipping the output for


simple conversion types.

High Limit For FOXSCI conversion types, this value is used Required for SCI
to clip the output before SCI conversion. This conversion types
(Hi Lim) parameter is used for SIMPLE conversion types.

Value = (Min Scale Val + Max) x OSV


+ Min Scale Val

High Limit is used for clipping the output for


simple conversion types.

Note: Minimum Scale Value and Maximum Scale Value are NOT used for clipping the output for
simple conversion types.

Analog Point Conversions


The following algorithm for analog points will be used for conversion type SIMPLE when an
equation is not specified.
Step 1. From UOM Conversion
If a From UOM is specified, the value of the From Symbol will first be converted
from its internal UOM to From UOM.
Step 2. The following equation is then applied.

Y = LIMV ( X , MinVal , MaxVal )

It is important to note that UOM conversion from the From UOM to the To
UOM does not occur at this step. If UOM conversion is required between X and
Y, it must be specified with an equation.
Step 3. To UOM Conversion
One final unit conversion will take place from To UOM to the From Symbol
internal UOM.
When an equation is specified, the following equation is used in a one step process.
Y = LIMV ( Equation( X ), MinScaleVal , MaxScaleVal )

Please refer to the DYNSIM equation documentation for a description of supported equations.
When an equation is used, From UOM and To UOM should not be specified.
where:
X - Analog Input/Output From Symbol model variable in From UOM

DSS User Guide DYNSIM 5.3.2, December 2016 179


Cross Reference

Equation(X) - Any user defined DYNSIM equation


LIMV - DYNSIM limit function
MinVal - Minimum scale value in To UOM
MaxVal - Maximum scale value in To UOM
Y - Analog Output/Input To Symbol in To UOM

Please refer to the SCP getting started guide for specific conversion types for Foxboro I/A.
Digital Points

Cross Description Required or


Reference Optional

Disabled Selecting the disabled option will disable the cross Optional
referencing of this line. After disabling the line,
you must reload the cross-reference database.

From Engine The Engine name from which the controls/object Required
points/parameters are cross-referenced.

For a digital input, this name might be set to


DYNSIMEngine. For a digital output, this name
might be set to SCP Engine name.

To Engine The Engine name to which the controls/object Required


points/parameters are cross-referenced.

For a digital input, this might be set to SCP


Engine. For a digital output, this name might be
set to DYNSIMEngine name.

From Symbol The variable or model parameters or control point Required unless
to be cross-referenced from an Engine specified in
the “From Engine” field. conversion equation
is specified
For a digital input, this name might be set to a
variable from the DYNSIMEngine. For a digital
output, this name might be set to
compound:block.parameter name for a Foxboro
point.

To Symbol The parameter or control point, which receives Required


cross-reference value from “From Symbol”.

For a digital input, this name might be set to


compound:block.parameter name. For a digital
output, this name might be set to a variable name
from the DYNSIMEngine.

DSS User Guide DYNSIM 5.3.2, December 2016 180


Cross Reference

Cross Description Required or


Reference Optional

From Val Info Some control emulators and interfaces use this Optional
entry for reference purposes only. In SCP
software, it refers to Block Parameters.

To Val Info This column is used for specifying SCP ECB Optional
parameters.

Period The update time for a point. This column is one of Optional
a set of predefined intervals between the "Engine
Time Step" and eight times "Engine Time Step".
A maximum of two different frequencies are
allowed.
Refer Host Configuration Editor section of this
manual for definition of "Engine Time Step."

Description The engineering description is usually obtained Optional


automatically or manually from a control system
input or listing file.

Equation Equations for Digital point conversion. If an Optional


equation is used, then the information from the
"From Symbol" should be removed.

Refer to the topic Equation Utility in chapter


Advanced Modeling for details on valid functions
(i.e., MAX / MIN / ABS) within the Equation
field.

From UOM This column defines the UOM conversion from Optional
the From Symbol internal UOM to the UOM
specified by this by this entry before minimum
and maximum values are applied.

This entry is ignored if the equation column is


used. In this case, use the UOM specified in curly
brackets inside the equation itself. Also, leave
this entry blank when connecting a DYNSIM
parameter to another DYNSIM parameter with the
same internal UOM in both engines.

Please note that cross-referencing does not


automatically convert the cross-reference value
from the From UOM to the To UOM. Instead, it
works as described below under Analog Point
Conversion.

DSS User Guide DYNSIM 5.3.2, December 2016 181


Cross Reference

Cross Description Required or


Reference Optional

To UOM This column specifies the UOM conversion from Optional


the UOM specified by this entry to the To Symbol
internal UOM after minimum and maximum
values are applied. This value should normally be
left blank when connecting a DYNSIM engine to
another DYNSIM engine with the same UOM in
both engines.

This entry is ignored if the equation column is


used. In this case, use the UOM specified in curly
brackets inside the equation itself. Also, leave
this entry blank when connecting a DYNSIM
parameter to another DYNSIM parameter with the
same internal UOM in both engines.

Please note that cross-referencing does not


automatically convert the cross-reference value
from the From UOM to the To UOM. Instead, it
works as described below under Analog Point
Conversion.

Set Test SET test rule (>, =, etc) for testing the input Required
values with the SET THRESHOLD values.

This field must be supplied by the customer,


based on their sensor database, and manually
adjusted to match simulation units

Set Thresh The SET threshold is the value set for testing the Required
SET TEST rules with the “From Value”.

Reset Test SET test rule (>, =, etc) for testing the RESET Optional
threshold value with the input value.

These thresholds should be supplied by the


customer, based on their sensor database, and
manually adjusted to match simulation units. If
this field is set to some value, the Reset Test must
also be defined.

Reset Thresh The RESET threshold is the value set for testing Optional
the Reset Test rules with the “From Value” field.

True State This text description is usually obtained Reference


automatically or manually from a control system

DSS User Guide DYNSIM 5.3.2, December 2016 182


Cross Reference

Cross Description Required or


Reference Optional

input or listing file. It is very useful for


determining exactly what the DI is and what the
threshold should be if the customer does not
supply it.

TRUE state for point.

False State This text description is usually obtained Reference


automatically or manually from a control system
input or listing file. It is very useful for
determining exactly what the DI is and what the
threshold should be if the customer does not
supply it.

FALSE state for point.

Digital Points

Digital Input

A Digital Input is set TRUE (1.0) when a variable meets a SET test, and FALSE (0.0) when the
variable meets a RESET test. These tests are determined by SET and RESET RULE and SET
and RESET THRESHOLD. The two tests on different thresholds allow for deadband
(directional) switches to be modeled. The algorithm for digital inputs is:

if(X [SET TEST] SET THRSH) then

DI = 1.0 ! Set state TRUE

elseif(X [RESET TEST] RESET THRSH) then

DI = 0.0 ! Set state FALSE

else

! No state change

endif

An example of a normally open switch with a deadband follows:

DSS User Guide DYNSIM 5.3.2, December 2016 183


Cross Reference

The cross reference inputs for this type of switch are as follows:

SET TEST = ">"

SET THRESHOLD = SET

RESET TEST = "<"

RESET THRESHOLD = RESET

The following diagram describes a normally closed switch with a deadband.

The cross reference inputs for this type of switch are as follows:

SET TEST = "<"

SET THRESHOLD = RESET

RESET TEST = ">"

RESET THRESHOLD = SET

The RESET entries can be left empty if no deadband is required. The following diagram
describes a normally open switch with no deadband.

DSS User Guide DYNSIM 5.3.2, December 2016 184


Cross Reference

The cross reference inputs for this type of switch are as follows:

SET TEST = ">"

SET THRESHOLD = SET

RESET TEST = <blank>

RESET THRESHOLD = <blank>

A normally closed switch with no deadband would have cross reference inputs as follows:

SET TEST = "<"

SET THRESHOLD = SET

RESET TEST = <blank>

RESET THRESHOLD = <blank>

A variety of other switches can be modeled based on the two test and threshold settings.

Digital Output

A Digital Output always comes from the control system as a 1.0 or 0.0. The same parameter
entries used for SET TEST RULE and SET THRESHOLD on Digital Inputs are used for point
conversion parameters on Digital Outputs. The conversion of a Digital Output might be used to
drive a Digital Input as a permissive (open aux cooling water block valve demand inverted, 1 +
X*(-1), clears a valve closed input) or even become the input to an Analog Input conversion. The
algorithm for digital outputs is:

DO = F(X), where F(X) can be any user defined equation.

Using the Cross Reference Editor

The Cross Reference Editor (for short: XRefEd) is a full-featured editor for building and
maintaining a DYNSIM Cross Reference file.

DSS User Guide DYNSIM 5.3.2, December 2016 185


Cross Reference

For some controls vendors, SimSci has written programs to convert vendor- specific
I/O files to an initial DYNSIM Cross Reference file. Check the documentation for the
appropriate emulation product (example: SCP User Guide). You can also build and
maintain a Cross Reference file with a spreadsheet program that imports/exports in comma-
separated-variable (CSV) format.

To invoke XRefEd, click the Cross Reference File button (shown below) on the main DYNSIM
toolbar or select Cross Reference Table from the Tools menu.

The XRefEd screen is illustrated below. Analog points and Digital points are displayed in the
Analog tab and Digital tab respectively. The contents of the constituent fields are described in
the Cross Reference Data topic. Note that the Insert, Delete, Format, and Override buttons are
disabled (grayed) until you click on a line number to select the line.

You can sort the display on any desired column by clicking the corresponding
column heading. To reverse the sort order, click the heading a second time.

Below is a brief description of how to use XRefEd.

DSS User Guide DYNSIM 5.3.2, December 2016 186


Cross Reference

To insert a new line, select (click on) the line immediately below where you want the new line,
then click the Insert button.

To delete an existing line, select the line and click the Delete button. DYNSIM asks if you really
want to delete the line. Respond appropriately.

To change the color scheme of an existing line, select the line and click the Format button.
From the popup window you can select the foreground (text) color and the background color
which is useful for visually grouping lines.

DSS User Guide DYNSIM 5.3.2, December 2016 187


Cross Reference

To view only lines that meet desired criteria, use the filter feature of XRefEd. Click the Filter
button and specify the criteria.

The options in the Filter window permit you to set up a ‘grid’ through which to filter lines in the
Cross Reference file. Note that the selected options are logically combined together so that the
more options you select the more restrictive the filter. Note also that you can specify a range of
values for some of the numeric fields.

The use of the wildcard character (*) in some of the fields. Wildcards are permitted in fields that
contain an asterisk in the text area.

A wildcard character is a placeholder that represents any number of characters of any


type.

DSS User Guide DYNSIM 5.3.2, December 2016 188


Cross Reference

The Filter option selections are retained as long as XRefEd is active. All options are cleared when
you terminate the editor.

To redisplay all lines in the Cross Reference file, deselect all checkboxes in the Filter window
and click the Apply button. You can obtain the same result by closing the XRefEd window and
starting the editor again.

To edit an existing line in the Cross Reference File, select (click on) the line number, position
the cursor in the appropriate field, then make the desired changes.

To disable an existing line, click the Disabled checkbox for that line. This causes the simulation
to ignore the point, treat it as though it was not in the Cross Reference file.

To override an existing I/O Value, select (click on) the line number, click the Override button,
type the desired override value (or use the spin buttons), then click the appropriate button:

• Activate button to immediately override the current value with the


specified value. The override value remains in effect until you deactivate
it. If you change the override value, you must again click the Activate
button to put the new value into effect.

• Deactivate button to immediately return the point to the current value.

• Close button to dismiss the dialog box. The Close button is disabled when
an override value is in effect. You must deactivate the override to enable
the Close button.

You can have any number of overrides active simultaneously.

If you employ multiple simultaneous overrides, drag each one to a different


location on the screen.

To initiate a malfunction from a displayed line, select the line (click the number at the left end
of the line), then click the Override button. DYNSIM displays a dialog box from which you can
initiate the malfunction. Refer to the Malfunctions topic in this Guide for additional
information.

Additionally, AND/OR operators are available in the XRef filter to view the desired information
in the cross reference table. The AND/OR conditions can be combined together to display the
required information in the cross reference table.

DSS User Guide DYNSIM 5.3.2, December 2016 189


Cross Reference

Consider the example where the filter is checked for the condition using AND and OR conditions.

The filter returns a value as shown in the screenshot below. The filter satisfies the condition
where the “To” Engine or “From” Engine has an entry as DYNSIM.

DSS User Guide DYNSIM 5.3.2, December 2016 190


Cross Reference

However, if you use the AND condition in the filter instead of OR condition, then the cross
reference table does not display any information as the condition is not met. To explain further,
there is no entry in the XRef table which satisfies the condition where both “To” Engine and
“From” Engine are both DYNSIMs. Load Cross Reference

While loading a simulation defined with cross reference(s) data, a Simulation Option window
with load options for cross referencing is displayed.

Choose “Enable Cross Referencing” option to load the entire cross references present in the Cross
Reference Table.

Choose “Auto disable erroneous rows” option to automatically disable rows with erroneous
entries in the Cross Reference Table. This option will load only the valid cross references.

If any invalid entries are present in the Cross Reference Table, the following error message will
be displayed at the time of loading.

DSS User Guide DYNSIM 5.3.2, December 2016 191


Cross Reference

The text file containing details of the X-ref error(s) is saved in the following location
\SIMSCI\DSS43\Simulations\<SimulationName>\ all_xref_errors.txt

Cross Referencing Packed Integers

Use a Dynamic Double point in DYNSIM to support or diagnose packed integer cross
referencing. Do not use Dynamic Integer or State Integer points for packed integer cross
reference, because it will result in the loss of 32-bit precision.

DSS User Guide DYNSIM 5.3.2, December 2016 192


Backup and Restore

Backup and Restore


The model configuration data and graphics data for each simulation are saved in the S4M file.
As a safety measure, DYNSIM also provides a secondary form of backing up the simulation in
XML form. The contents of the database is saved on the hard drive essentially as a text file with
the extension ".xml". The procedure below explains how to back up and restore the DYNSIM
database. The procedure assumes that the desired simulation is started and you have connected. It
is recommended that the user manually perform occasional backups of this data in this manner.

Backing up the Simulation Database

1. Click the File menu and select Backup Simulation.

A Backup Simulation dialog box displays:

If you are currently connected to a particular simulation, the Simulation field is


already selected for you. The Filename field already has a default absolute path
and filename. The format of the default filename is

ddMONyy-hh:mm:ss.xml

where:

dd current day

MON current month in alphabetic form, not numeric form (i.e., APR, not 04, for

April)

yy current year (2 digits)

hh current hour

mm current minute

ss current second

DSS User Guide DYNSIM 5.3.2, December 2016 193


Backup and Restore

2. The filename and path can be modified. It is recommended that you keep the absolute
pathway the same so that it will be easier to find the file if you ever need to restore it.
To change the filename, click in the Filename field and edit the contents. After making
the changes, press the BACKUP key. Pressing BACKUP will not initiate the
highlighted BACKUP action.

3. Click the BACKUP button to proceed with the backup, or CANCEL to cancel the
backup operation. The time required to back up the DYNSIM database depends on the
amount of data in the database.

Simulation Merge Tool


The Simulation Merge Tool assists in the process of merging Dynsim simulations in a user-
friendly and reliable manner. This version of the tool works with DYNSIM simulation backup
XML files.

OTS systems are developed in parts by different project engineers after dividing a large model
into smaller sections. Once the modeling is complete for each section, they are merged into a
single simulation file for further work. Currently, the merge is done manually (copy / paste or
manual editing of simulation backup XML files) and is very time-consuming and error-prone.
This tool provides a convenient way to perform the change.

Access the Simulation Merge Tool by clicking ToolsSimulation Merge Tool. The tool
supports a message monitor where the XML merge process, including failures, is recorded. It is
also available as a log file in the “..\SIMSCI\DSS51\User” directory.

After the merge is successful, the merged file is saved in the “..\SIMSCI\DSS51\User” directory
by default, or you may choose an alternate location.

It can merge any number of valid DYNSIM Simulation backup XML files. The tool performs
various validation checks (duplicate names, version check, schema validation, etc.) before
merging the files. It also supports a Message Log.

Features:

• It can merge any number of XML files, provided they are valid simulation back-up files.

• If Engine name provided is same in the XML files, it merges the flowsheets under the
same engine. It checks for duplicate flowsheet names before merging.

• If the engine names provided are different, then the engine ids are regenerated and
assigned to the corresponding flowsheets after being merged. This will re-map the
flowsheets with engines for the merged simulation.

• Before merging, the tool will check for duplicate object and point names. If there are
duplicate objects, the merge will be aborted.

• To merge Thermo data, the tool uses the Thermo data of the first XML file for the
merged simulation, only if the engine names are same. If they are diifferent, then

DSS User Guide DYNSIM 5.3.2, December 2016 194


Backup and Restore

corresponding engine thermo data is extracted from the XML file and merged into the
Thermo case list under appropriate engine name.

• Among other simulation information, the data historian items and snapshot summary
table are merged into the resultant XML file. However, information like scenario and
TPM table is not merged.

Limitations:

• Even if IC summary table is merged, the actual IC data is not merged. To retain the
steady state, manually merge the <engineName>States.dat file after taking a dump of the
steady state data from the individual simulations.

• The data for TPM and scenario are not merged since they are mostly irrelevant for the
merged simulation.

Restoring the Database


1. Click the File menu and select Restore Simulation.

A Restore Simulation dialog box displays:

To Restore the desired file, click the Browse button and select the file (an .xml file).
Give a simulation name in the New Simulation field to which the backup file will be
restored. After making the changes, press the RESTORE key.

DSS User Guide DYNSIM 5.3.2, December 2016 195


Backup and Restore

2. Click the RESTORE button to proceed with the restoration, or CANCEL to cancel the
restore operation. The time required to restore the database depends on the amount of
data being restored. The restoration details can be viewed in the message monitor.

The restored ".xml" file does not include details of the Initial Conditions or
Backtracks. However, the IC’s or Backtracks data is available in the .s4m file present in
your working directory.

Automatic Schema Evolution


DYNSIM is configured to support backward compatibility with respect to simulations created in
earlier versions. When a simulation created using an earlier version of DYNSIM is opened in a
newer version, it is automatically upgraded to the current version. A backup of the original
simulation is stored at the same location as the simulation being opened. Name of the backup
simulation will be <name of the simulation>.s4m.seback. If you are unable to successfully
upgrade your simulation to the current version of DYNSIM, please send this backup file to SimSci
Technical Support.

Alternatively, if you have an .xml backup of the simulation, you can restore your
simulation by using the restore feature of DYNSIM.

DYNSIM does not support forward compatibility. In other words, a simulation created
using a newer version of DYNSIM cannot be opened using an older version of DYNSIM

DSS User Guide DYNSIM 5.3.2, December 2016 196


Building and Editing a Simulation

Building and Editing a Simulation


Simulation Data Storage
The term simulation data includes model data (such as pump curves, valve travel times, etc.) and
the graphic images associated with a simulation.

DYNSIM stores all saved simulation data in the database. Graphic canvases for Flowsheets are
stored separately from the model data, allowing you to edit and store a graphic image without
affecting the associated model. This topic is further explored in Graphic Editing Versus Model
Editing.

Creating a New Simulation


This topic describes the procedure for creating a new Simulation. It is assumed that the DYNSIM
user interface is started, and you have logged in. Refer to Starting DYNSIM.

1. From the File menu, choose New then choose Simulation.

The New Simulation window appears:

2. Type a name for the new simulation and press Create.

The name should be a meaningful text string that reflects the identity of the
simulation itself.

The Simulation Name may not contain spaces or symbols.

3. Clicking the Create button creates the simulation. The new simulation is seen in the
Instances Tree.

The new Simulation is stored in the default file system location (e.g.,
C:\SIMSCI\DSS4X\User) as <simulationname> .s4m file.

Also, the simulation is assigned a default Flowsheet (FS1) and engine (DYNSIM)
as soon as simulation is created.

DSS User Guide DYNSIM 5.3.2, December 2016 197


Building and Editing a Simulation

To add and edit Flowsheet and Engines, refer to Adding a New Flowsheet and Adding a New
Engine, respectively.

Creating a New Custom Simulation


A custom simulation is a blank simulation, which has no default DYNSIM engine, or flowsheet
associated to it. The user has the option to add an engine or flowsheet to the simulation. The
following steps enable you to create a custom simulation.

1. From the File menu, choose New then choose Custom Simulation.

The New Simulation window appears:

DSS User Guide DYNSIM 5.3.2, December 2016 198

You might also like