You are on page 1of 116

Copyright Notice

2002 Hyprotech, a subsidiary of Aspen Technology, Inc. All rights reserved.

Hyprotech is the owner of, and have vested in them, the copyright and all other intellectual property rights
of a similar nature relating to their software, which includes, but is not limited to, their computer programs,
user manuals and all associated documentation, whether in printed or electronic form (the Software),
which is supplied by us or our subsidiaries to our respective customers. No copying or reproduction of the
Software shall be permitted without prior written consent of Aspen Technology,Inc., Ten Canal Park,
Cambridge, MA 02141, U.S.A., save to the extent permitted by law.

Hyprotech reserves the right to make changes to this document or its associated computer program
without obligation to notify any person or organization. Companies, names, and data used in examples
herein are fictitious unless otherwise stated.

Hyprotech does not make any representations regarding the use, or the results of use, of the Software, in
terms of correctness or otherwise. The entire risk as to the results and performance of the Software is
assumed by the user.

HYSYS, HYSIM, HTFS, DISTIL, HX-NET, and HYPROP III are registered trademarks of Hyprotech.

PIPESYS is a trademark of Neotechnology Consultants.

AMSIM is a trademark of DBR & Associates.

OLI Engine is a trademark of OLI Systems Inc.

Microsoft Windows, Windows 95/98, Windows NT, Windows 2000, Visual Basic, and Excel are registered
trademarks of the Microsoft Corporation.

Documentation Credits
Authors of the current release, listed in order of historical start on project (2002-1995):

Tsitsi Ettienne, BSc; Jessie Channey, BAC; Lucas Rojek, PEng; Sarah-Jane Brenner, BASc; Conrad Gierer,
BASc; Chris Strashok, BSc; Nana Nguyen, BSc; Allan Chau, BSc; Muhammad Sachedina, BASc; Lisa Hugo,
BSc, BA; Chris Lowe, PEng; Kevin Hanson, PEng.

Since software is always a work in progress, any version, while representing a milestone, is nevertheless but
a point in a continuum. Those individuals whose contributions created the foundation upon which this
work is built have not been forgotten. The current authors would like to thank the previous contributors. A
special thanks is also extended by the authors to everyone who contributed through countless hours of
proof-reading and testing.

Contacting Hyprotech
Hyprotech can be conveniently accessed via the following:
Web site: www.hyprotech.com
Information and Sales: info@hyprotech.com
Documentation: HypCalgaryDocumentation@hyprotech.com
Training: training@hyprotech.com
Technical Support: support@hyprotech.com
Detailed information on accessing Hyprotech Technical Support can be found in the Technical Support
section of the Get Started manual.

GSH3.1-B4814-NOV02-OP
Table of Contents
Welcome to HYSYS ........................................................ v
Introduction ............................................................................ vii
Hyprotech Software Solutions ............................................... vii
Integrated Simulation Environment........................................viii
Intuitive & Interactive Process Modeling................................. xi
Use of the Manuals................................................................xiii
Technical Support ...................................................... xxv
Online Technical Support Center......................................... xxv
Contacting Technical Support..............................................xxvi
Hyprotech Global Offices................................................... xxviii
Hyprotech Agents ................................................................xxix
Internet................................................................................. xxx

1 Installing HYSYS ........................................................ 1-1


1.1 Basic Requirements ............................................................1-3
1.2 Licensing Information ..........................................................1-3
1.3 Types of Installation.............................................................1-4
1.4 Installing HYSYS .................................................................1-6

2 Software Licensing .................................................... 2-1


2.1 License Terminology ...........................................................2-3
2.2 Licensing .............................................................................2-3
2.3 Installing the Hardware Key.................................................2-7
2.4 Using Standalone Licensing ................................................2-8
2.5 Using Network Licensing .....................................................2-9
2.6 Overview of SLM Features ................................................2-13
2.7 Licensing Environment Variables ......................................2-15
2.8 License Server Tools.........................................................2-21
2.9 User Options......................................................................2-34
2.10 Troubleshooting.................................................................2-39

iii
3 Get Started ................................................................. 3-1
3.1 Starting HYSYS ...................................................................3-3
3.2 Steady State Case...............................................................3-7
3.3 Dynamics Case .................................................................3-22

iv
v

Welcome to HYSYS

Introduction.........................................................................................vii

Hyprotech Software Solutions ..........................................................vii


Integrated Simulation Environment ............................................... viii
Intuitive & Interactive Process Modeling.......................................... xi
Open & Extensible HYSYS Architecture ........................................ xii

Use of the Manuals ............................................................................xiii


HYSYS Electronic Documentation ................................................ xiii
Conventions Used in the Manuals................................................ xvii

v
vi

vi
vii

Introduction
We are pleased to present you with the latest version of HYSYSthe
product that continually extends the bounds of process engineering
software. With HYSYS, you can create rigorous steady state and dynamic
models for plant design, performance monitoring, troubleshooting,
operational improvement and asset management. Through the
completely interactive HYSYS interface, you can easily manipulate
process variables and unit operation topology, as well as fully customize
your simulation using its Active X extensibility capability.

Hyprotech Software Solutions


The HYSYS family of products has been developed with Hyprotechs
overall vision of the ultimate process simulation solution in mind. This
vision has led us to create a product that is:
integrated,
intuitive and interactive, and
open and extensible.

vii
viii

Integrated Simulation Environment


In order to meet the ever-increasing demands of the process industries
for rigorous, streamlined software solutions, Hyprotech developed the
HYSYS Integrated Simulation Environment. The philosophy underlying
our truly integrated simulation environment is conceptualized in the
following diagram:
Figure 1

The central wedge represents the common parameters at the core of the
various modeling tools:
Model Topology
Interface
Thermodynamics
Mathematical Solvers

The outer ring represents the modeling application needs over the
entire plant lifecycle. The arrows depict each Hyprotech product using
the common core, allowing for universal data sharing amongst the tools,
while providing a complete simulation solution.

viii
ix

As an engineer, you undoubtedly have process modeling requirements


that are not all handled within a single package. The typical solution is
to generate results in one package, then transfer the necessary
information into a second package where you can determine the
additional information. At best, there is a mechanism for exchanging
information through file transfer. At worst, you must enter the
information manually, consuming valuable time and risking the
introduction of data transfer errors. Often, the knowledge you gain in
the second application has an impact on the first model, so you must
repeat the entire process a number of times in an iterative way.

In a truly integrated simulation environment, all of the above work is


performed within a common framework, eliminating the tedious trial-
and-error process. This offers a number of advantages:
Information is shared, rather than transferred, among
applications.
All applications use common thermodynamic models.
All applications use common flowsheet topology.
You only need to learn one interface.
You can switch between modeling applications at any time,
gaining the most complete understanding of the process.

The plant lifecycle might begin with building a conceptual model to


determine the basic equipment requirements for your process. Based on
the conceptual design, you could build a steady state model and
perform an optimization to determine the most desirable operating
conditions. Next, you could carry out some sizing and costing
calculations for the process design options and select an economically
viable one, then perform dynamic modeling to determine appropriate
control strategies and tuning. Once the design has become a reality, you
might perform some offline operations modeling using actual plant data
for what-if studies,troubleshooting, operator training, asset
management, and optimization. You may then take that model online
for performance monitoring and real time optimization. If a change at
any stage in the design process affects the common data, the new
information is available immediately to all the other applicationsno
manual data transfer is ever required. HYSYS is the only simulation
software to offer these capabilities in an integrated, interactive and
intuitive environment.

ix
x

The HYSYS family of products consists of:

For information on any HYSYS LifecycleOne Model Approach


of these products,
contact your Hyprotech
Family Components
agent, or e-mail us at
info@hyprotech.com. HYSYS Steady State Steady State Process Simulation with HYSYS.Process
Provides the accuracy, speed, and efficiency required for process
design activities. The level of detail and the integrated utilities available
in HYSYS.Process allow for skillful evaluation of design alternatives,
with fast and efficient process simulation. A wide range of
thermodynamics and unit operations together with standard links to
Windows packages makes HYSYS.Process the most complete steady
state process simulation tool.
HYSYS Dynamics Plant Operability, Design and Management with the HYSYS Dynamics
option.
The HYSYS option provides a dynamic simulation capability fully
integrated with the HYSYS environment, a steady state model can be
leveraged into a dynamic model which offers rigorous and high-fidelity
results with a very fine level of equipment geometry and performance
detail. Evaluate dynamic plant behaviour, controllability, start up and
shut down scenarios from the same base model used in steady state
process design. With a consistent look and feel, links to APC software,
hydraulic applications, and other third-party applications, HYSYS
provides a complete platform for dynamic process simulation.
HYSYS Operator Operator Training with HYSYS OTS Environment
Training System HYSYS OTS provides real-time simulated training exercises that train
Environment operations personnel and help develop their skills performing critical
process operations. Increased process understanding and procedural
familiarity for operations personnel can lead to increased plant safety
and improved process performance. The HYSYS OTS environment is
powered by the same HYSYS modelsused by the Engineering and
Process Control Departmentsbut with DCS emulation, look, and feel.
HYSYS OTS extends the One Model Approach into the Operations
Departments.

x
xi

HYSYS LifecycleOne Model Approach

Family Components

HYSYS Real Time Real-Time Plant Optimization with HYSYS.RTO+


Optimization HYSYS.RTO+ is a real-time optimization package that enables the
optimization of plant efficiency and the management of production rate
changes and upsets in order to handle process constraints and
maximize operating profits. Using SQP Optimization techniques,
constraint handling and data reconciliationwith the HYSYS.Process
simulation providing the predictive capabilityHYSYS.RTO+ is a
powerful and profitable application of the One Model Approach.
HYSYS Conceptual Conceptual Analysis Application with the Conceptual Engineering Suite
Analysis products.
The Conceptual Engineering Suite is a powerful conceptual design
package for design and retrofit applications targeted at finding the
optimal process configuration in a systematic way. The Conceptual
Engineering Suite includes DISTIL which integrates the distillation
synthesis and residue curve map technology of Mayflower with data
regression and thermodynamic database access, and HX-Net which
provides the ability to use pinch technology in the design of heat
exchanger networks. he Conceptual Engineering Suite products
enhance process design understanding and assists in the development
of new and economical process schemes, linking designs with
HYSYS.Process (steady state simulation) for rapid design and
deployment under the One Model Approach.

Intuitive & Interactive Process


Modeling
Hyprotech believes that the role of process simulation is to improve
your process understanding so that you can make the best process
decisions. This solution has been, and continues to be, interactive
simulation. This has not only proven to be the most efficient use of your
simulation time, but by building the model interactivelywith
immediate access to resultsyou gain the most complete
understanding of your simulation.

HYSYS uses the power of object oriented design, together with an event-
driven graphical environment, to deliver a completely interactive
simulation environment where:
calculations begin automatically whenever you supply new
information, and
access to the information you need is not restricted.

xi
xii

At any time, even as calculations are proceeding, you can access


information from any location in HYSYS. As new information becomes
available, each location is always instantly updated with the most
current information, whether specified by you or calculated by HYSYS.

Open & Extensible HYSYS Architecture


HYSYS is the only The Integrated Simulation Environment and our fully object oriented
commercially available software design has paved the way for HYSYS to be fully Active X
simulation platform designed
for complete user compliant, allowing for complete user customization. Through a
customization. completely transparent interface, OLE extensibility lets you:
develop custom steady state and dynamic unit operations.
specify proprietary reaction kinetic expressions.
create specialized property packages.

xii
xiii

With seamless integration, new modules appear and perform like


standard operations, reaction expressions or property packages within
HYSYS. The Automation features within HYSYS expose many of the
internal objects to other Active X compliant software like Microsoft
Excel, Visual Basic, and Visio. This functionality enables you to create
custom applications that utilize HYSYS unique capabilities or link it to
your own in-house applications.

By using industry standard Active X Automation and Extensibility, the


custom simulation functionality is portable across Hyprotech software
updates. The open architecture allows you to extend your simulation
functionality in response to your changing needs.

Use of the Manuals


HYSYS Electronic Documentation
The HYSYS Documentation All HYSYS documentation is available in electronic format as part of the
Suite includes all available
documentation for the HYSYS HYSYS Documentation Suite. The HYSYS Documentation CD-ROM is
family of products. included with your HYSYS package. The content of each manual is
described in the following table:

Manual Description
Get Started Introduces you to HYSYS, explains how to install HYSYS, familiarizes you with the SLM
security, and discusses style conventions used in the manuals. Sample steady state and
dynamics cases are included to teach you how to navigate through HYSYS.
User Guide Provides in depth information on the HYSYS interface and architecture, and guides you
through all aspects of HYSYS.
Simulation Basis Contains all information relating to the available HYSYS fluid packages and components.
This includes information on the Oil Manager, Hypotheticals, Reactions as well as a
thermodynamics reference section.
Operations Guide Contains information on building and running HYSYS simulations in steady state and
dynamic mode. Unit operations and utilities are covered in depth.
Dynamic Modeling Contains information on dynamic theory and controls theory.
Customization Details the many customization tools available in HYSYS. Information on enhancing the
Guide functionality of HYSYS by either using third-party tools to programmatically run HYSYS
(Automation), or by the addition of user-defined Extensions is covered. Other topics
include the current internally extensible tools available in HYSYS: the User Unit
Operation and User Variables as well as comprehensive instruction on using the HYSYS
View Editor.

xiii
xiv

Manual Description
Tutorials & The Tutorials section provides step-by-step instructions for building industry-specific
Applications simulation examples. The Applications section contains more advanced example
problems. Before you use this manual, you should have a good working knowledge of
HYSYS (from the Tutorials. The Applications do not provide many of the basic
instructions at the level of detail given in the Tutorials.
Quick Reference Provides quick access to basic information regarding all common HYSYS features and
commands.

Contact your Hyprotech agent If you are new to HYSYS, you may want to begin by completing one or
for information on HYSYS more of the HYSYS tutorials, which give step-by-step instructions for
training courses, or e-mail us at
training@hyprotech.com. building a simulation case. If you have some HYSYS experience, but
would still like to work through some more advanced sample problems,
refer to the HYSYS Applications.

Since HYSYS is totally interactive, it provides virtually unlimited


flexibility in solving any simulation problem. Keep in mind that the
approach used in solving each example problem presented in the
HYSYS documentation may only be one of the many possible methods.

Viewing the Online Documentation


HYSYS online documentation is viewed using Adobe Acrobat Reader,
which is included on the Documentation CD. Install Acrobat Reader on
your computer following the instructions on the CD insert card. Once
installed, you can view the electronic documentation either directly
from the CD, or you can copy the Doc folder (containing all the
electronic documentation files) and the file named Menu.pdf to your
hard drive before viewing the files. (Be certain to move these files
together, otherwise all the links will not work properly.)

Manoeuvre through the online documentation using the bookmarks on


the left of the screen, the navigation buttons in the toolbar or using the
scroll bars on the side of the view. Bold blue text indicates an active link
to a referenced section or view; click on the link and Acrobat Reader will
jump to that particular section.

xiv
xv

Selecting the Search Index


Ensure that your version of One of the advantages in using the HYSYS Documentation CD is the
Acrobat Reader has the
Search plug-in present. This
ability to do power searching using the Acrobat search tools. The
plug-in allows you to add a Acrobat Search command allows you to perform full text searches of
search index to the search list. PDF documents that have been indexed using Acrobat Catalog.
For more information on the
search tools available in
Acrobat Reader, consult the
To attach the index file to Acrobat Reader 5.0.5, use the following
help files provided with the procedure:
program.
1. Open the Index Selection view by selecting Edit-Search-Select
Indexes from the menu.
2. Click the Add button. The Add Index view appears.
3. Ensure that the Look in field is currently set to your CD-ROM drive.
There should be two folders visible from the root directory: Acrobat
and Doc as shown below.

Figure 2

4. Open the Doc folder. Inside it you should find the Index.pdx file.
Select it and click the Open button.

xv
xvi

5. The Index Selection view shows the available indexes that can be
attached. Select the index name and then click the OK button. You
may now begin making use of the Acrobat Search command.

Figure 3

Using the Search Command


The Acrobat Search command allows you to perform a search on PDF
documents. You can search for a simple word or phrase, or you can
Wild card characters: expand your search by using wild-card characters and operators.
* and ?
Operators: To search an index, first select the indexes to search and define a search
= exact match query. A search query is an expression made up of text and other items to
~ contains define the information you want to define. Next, select the documents
! does not contain to review from those returned by the search, and then view the
Boolean Operators: occurrences of the search term within the document you selected.
NOT exclude
AND To perform a full-text search do the following:
Use quotes for a literal
1. Choose Edit-Search-Query from the menu.
search.
2. Type the text you want to search for in the Find Results Containing
Text box.
3. Click Search. The Search view is hidden, and documents that match
your search query are listed in the Search Results window in order of
relevancy.
4. Double-click a document that seems likely to contain the relevant
information, probably the first document in the list. The document
opens on the first match for the text you typed.

xvi
xvii

5. Click the Search Next button or Search Previous button to go to


other matches in the document. Or choose another document to
view.

You can also use the Find tool (CTRL F). This is a less powerful method of
searching but can still be useful. Other Acrobat Reader features include
a zoom-in tool in the toolbar, which allows you to magnify the text you
are reading. You can print pages or chapters of the online
documentation using the Print command under the File menu.

Conventions Used in the Manuals


The following section lists a number of conventions used throughout
the documentation.

Keywords for Mouse Actions


As you work through various procedures in the manuals, you will be
given instructions on performing specific functions or commands.
Instead of repeating certain phrases for mouse instructions, keywords
are used to imply a longer instructional phrase:

Keyword Action
Point Move the mouse pointer to position it over an item. For example,
point to an item to see its Fly-by information.
Click Position the mouse pointer over the item, and rapidly press and
release the left mouse button. For example, click the Close icon
to close the current view.
Right-Click Same as click, but use the right mouse button. For example,
right-click an object to display the Object Inspection menu.
Double-Click Position the mouse pointer over the item, then rapidly press and
release the left mouse button twice. For example, double-click the
HYSYS icon to launch the program.
Drag Position the mouse pointer over the item, press and hold the left
mouse button, move the mouse while the mouse button is down,
and then release the mouse button. For example, you drag items
in the PFD to position them.
Fly-by Information Whenever you pass the mouse pointer over certain objects, such
as toolbar icons and flowsheet objects, a small yellow box with
text appears. It contains a brief description of the action that will
occur if you click on that button or details relating to the object.

xvii
xviii

Selecting Items
Selecting refers to either picking a specific item from a list, or invoking a
button command. There are three types of selecting in HYSYS:

Method Description
Selecting a cell Move the mouse to the location and left-click to select.
Selecting from a drop Move the focus location into the drop-down, and use the
down menu or list mouse pointer or keyboard arrows to highlight the selection,
then press ENTER to select.
Multiple list selections Click and drag the mouse over the items you want to select
(provided they are all sequential in the list). Alternatively, you
can highlight sequential items by selecting the first item in the
list, holding down the SHIFT key and selecting the last item in
the list. If the items are not sequential, select the first item
with the left mouse button and then select additional items
with the mouse while holding down the CTRL key.

A number of text formatting conventions are also used throughout the


manuals:

Format Example
When you are asked to access a menu command, Select File-Save from the menu
the command is identified by bold lettering. to save your case.
When you are asked to click a button, the button is Click the Close button to close
identified by bold lettering. the current view.
When you are asked to press a key or key Press F1 to open the context
combination to perform a certain function, keyboard sensitive help.
commands are identified by words in bolded small
capitals (small caps).
The name of a HYSYS view (also know as a property The Session Preferences view
view) is indicated by initial capitalization. appears.
The names of pages and tabs on various views are Click Composition page on the
identified in bold lettering when an action is being Worksheet tab to see all the
performed on these pages or tabs. If there is no stream composition information.
direct action on that particular page or tab, then it is
NOT bolded.
The names of radio buttons, checkboxes and cells Click the Ignored checkbox to
are identified by initial capitalization. ignore this operation.
Material and energy stream names are identified by Double-click on the Column
initial capitalization. Feed stream to open its view.
Unit operation names are identified by initial Click on the Inlet Separator to
capitalization. highlight it.
When you are asked to provide keyboard input, it will Type 100 in the cell to define the
be indicated by bold lettering accompanied by words stream temperature, and press
such as type or press. ENTER.

xviii
xix

Bullets & Numbering


Bulleted and numbered lists are used extensively throughout the
manuals. Numbered lists are used to break down a procedure into steps,
for example:
1. Select the Name cell.
2. Type a name for the operation.
3. Press ENTER to accept the name.

Bulleted lists are used to identify alternative steps within a procedure, or


for simply listing like objects. A sample procedure that utilizes bullets is:
1. Move to the Name cell by doing one of the following:
Select the Name cell.
Press ALT N.

Notice the two alternatives for completing Step 1 are indented to


indicate their sequence in the overall procedure.

A bulleted list of like objects might describe the various groups on a


particular view. For example, the Options page of the Simulation tab on
the Session Preferences view has three groups, namely:
General Options
Errors
Column Options

Callouts
A callout is a label and arrow that describes or identifies an object. An
example callout describing a graphic is shown below.

Figure 4

HYSYS Icon

xix
xx

Annotations
Annotation text appears in the Text appearing in the outside margin of the page supplies you with
outside page margin. additional or summary information about the adjacent graphic or
paragraph. An example is shown to the left.

Shaded Text Boxes


A shaded text box provides you with important information regarding
HYSYS behaviour, guidelines, or alerts. Examples include:

The resultant temperature of the mixed streams may be quite different


than those of the feed streams, due to mixing effects.

Before proceeding, you should read the introductory section which


precedes the example problems in this manual.

The use of many of these conventions will become more apparent as


you progress through the manuals.

xx
xxi

Terminology
The following views show some of the HYSYS interface terminology:

Figure 5

Property View Minimize/Maximize/Close icons

An active cell always has a thick black border.

Notice the text colours that are used. Blue text


indicates values that can be changed by you.
Scroll Bar

Scroll Black values are those calculated by HYSYS


Button and cannot be changed.

Red values are those calculated by HYSYS


and can be changed.

Table

Object Status Indicator

View. Any windowed graphical representation found on the


HYSYS Desktop. Examples include the property view for a
stream (such as Inlet Sep shown in Figure 6) or unit operation,
or an error message window. (View and Property View are
interchangeable.)
Object Status Indicator. Found at the bottom of each property
view, it shows the calculation status of the associated object. The
indicator displays a status message with an appropriately
coloured background (red for a missing parameter, yellow for a
warning message, and green for OK).
Scroll Bar. Clicking inside the scroll bar allows you to access
information which cannot be displayed in the current size of a
menu or view. The scroll bar in the above view is horizontal.
Scroll Button. Clicking and dragging the scroll button up/down or
left/right allows you to access information which cannot be
displayed in the current size of a menu or view.
Table. A group of cells in tabular format, through which you can
manoeuvre with the mouse or the keyboard arrow keys.

xxi
xxii

Input Cell/Field. A location inside a view where information is


supplied and/or displayed. Examples include stream names,
temperatures, etc. In some cases, an Input Cell/Field has an
associated drop-down.

Figure 6

Input cell or Field

This is the
active Page.

All available
Pages are listed
here.

Button This is the active Tab. Radio Button Group Checkbox

Tab. In views with multiple pages of information, such as property


views and Workbooks, the pages are accessed by tabs at the
bottom of the view. In the figure above, Design, Reactions,
Rating, Worksheet and Dynamics are the tabs.
Page. Most tabs have associated page views. These are listed in
the column on the left side of the view. Above they are
Connections, Parameters, User Variables and Notes.
Button. Invokes a command when clicked. Buttons do NOT have
any pictures on them. An example is the Delete button in the
above view.
Icon. Invokes a command when clicked. Icons have pictures on
them (whereas Buttons do not). An example is the Minimize/
Maximize icons in the above view.
Drop-Down List. A list of available options for a certain input cell,
indicated by the arrow at the end of an input cell.
Checkbox. Items or settings which are either On or Off. Placing a
checkmark in a checkbox will turn the function On. Removing the
checkmark turns it Off. The Ignored checkbox in the above view
has no checkmark and is therefore Off.
Unit Field. Provides a drop-down list of units which are
applicable for the parameter type of the current input cell.

xxii
xxiii

Group. An organizational border within a page that groups


related functions together.
Radio Button. A set of options, of which only one can be active
at a time. Radio buttons are always found in groups of at least
two.
Close icon. The X icon in the upper right corner of a view, used
to close the view.
Minimize/Maximize icons. In the upper right corner of a view,
allows you to iconize (minimize) the current view, or expand a
view to its full size.
Icon. A minimized view. Double-clicking on an icon opens the
view. The HYSYS icon is shown to the left. When you double-
HYSYS Icon click, it opens HYSYS.

Now youre ready to get started!

xxiii
xxiv

xxiv
xxv

Technical Support
Online Technical Support Center
AspenTech and Hyprotech customers with a valid license and software
maintenance agreement can register to access the Online Technical
Support Center at http://support.aspentech.com.

The support Web site allows you to:


Access current product documentation
Search for tech tips, solutions and frequently asked questions
(FAQs)
Search for and download application examples
Search for and download service packs and product updates
Submit and track technical issues
Search for and review known limitations
Send suggestions

Registered users can also subscribe to our Technical Support e-Bulletins.


These e-Bulletins are used to alert users to important technical support
information such as:
Technical advisories
Product updates
Service Pack announcements
Product release announcements

xxv
xxvi

Contacting Technical Support


Technical support is also available by phone, fax, and e-mail for
customers with a current support contract for their product. For the
most up-to-date phone listings, please see the Online Technical Support
Center at http://support.aspentech.com.

When contacting us via e-mail, please include in your message:


Your full name, company, phone and fax numbers.
The software version you are using (shown in the Help menu,
About...).
The serial number of your security key.
A detailed description of the problem (attach a simulation case if
possible).

We also have toll-free lines that you can use. When you call, please have
the same information available.

Operating Hours
Support Centers Operating Hours
North America 9:00 - 20:00 Eastern Time
South America 9:00 - 17:00 Local time
Europe 8:30 - 18:00 Central European time
Asia and Pacific Region 9:00 - 17:30 Local time

Phone Numbers
Support Centers Phone Numbers
North America 1-888-996-7100 Toll-free from U.S., Canada, Mexico
1-281-584-4357 North America Support Center
South/Central America 55 11 533 2381 Soteica Do Brasil, Sao Paulo, Brazil
52 5 546 5440 Soteica De Mexico, Mexico D.F., Mexico
54 11 4555 5703 Soteica S.R.L., Buenos Aires, Argentina
(0800) 333-0125 Toll-free to U.S. from Argentina
(000) (814) 550-4084 Toll-free to U.S. from Brazil
8001-2410 Toll-free to U.S. from Venezuela

xxvi
xxvii

Support Centers Phone Numbers


Europe (32) (2) 701-95-55 European Support Center
Country specific toll-free numbers:
Belgium (0800) 40-687
Denmark 8088-3652
Finland (0) (800) 1-19127
France (0805) 11-0054
Ireland (1) (800) 930-024
Netherlands (0800) 023-2511
Norway (800) 13817
Spain (900) 951846
Sweden (0200) 895-284
Switzerland (0800) 111-470
UK (0800) 376-7903
Asia and Pacific Region 60 3 2161 2880 Kuala Lumpur, Malaysia
(81) (3) 3262-1743 Tokyo, Japan
61 3 9572 5544 Plant Solutions Pty. Ltd. Carnegie, Australia
(65) 6395 3900 Singapore

Fax Numbers
Support Centers Fax Numbers
North America 1-403-303-0901 Calgary
1-281-584-1807 Houston, TX (Engineering and
Manufacturing Suite)
South/Central America 55 11 556 10746 Soteica Do Brasil, Sao Paulo, Brazil
52 5 535 6610 Soteica De Mexico, Mexico D.F., Mexico
54 11 4551 0751 Soteica S.R.L., Buenos Aires, Argentina
Europe 34 932 154256 Barcelona, Spain
44 (0)1235 448350 Harwell, UK
32 2 701 95 00 Belgium
Asia and Pacific Region 60 (3) 2161-2811 Kuala Lumpur, Malaysia
(81) (3) 3262 1765 Tokyo, Japan
(65) 6395 3950 Singapore

xxvii
xxviii

E-mail Addresses
Support Centers E-mail
North America support@hyprotech.com
support@aspentech.com (Engineering Suite)
South America support@hyprotech.com
Europe support@hyprotech.com
Asia and Pacific Region SEASupport@hyprotech.com

Hyprotech Global Offices


Calgary, Canada Houston, TX, USA
Tel: (403) 303-1000 Tel: (281) 584-1000
Fax: (403) 303-0927 Fax: (281) 584-4329
Toll Free: 1-800-661-8696 Toll Free: 1-888-996-7050

Newark, DE, USA Barcelona, Spain


Tel: (302) 295-5000 Tel: 34 93 215 6884
Fax: (302) 295-5015 Fax: 34 93 215 4256
Toll Free: 1-800-688-3430

Oxford, UK Dsseldorf, Germany


Tel: 44 1235 832347 Tel: 49 211 577933 0
Fax: 44 1235 448350 Fax: 49 211 577933 11

Hovik, Norway Cairo, Egypt


Tel: 47 67 10 6464 Tel: 20-2-702-0824
Fax: 47 67 10 6465 Fax: 20-2-702-8392

Kuala Lumpur, Malaysia Seoul, Korea


Tel: 60 3 2161-2880 Tel: 82 2 3779 5800
Fax: 60 3 2161-2811 Fax: 82 2 3779 5850

Pune, India Beijing, China


Tel: 91 20 55 10141/2/3-9 Tel: (86)(10) 6410 6700,
Fax: 91 20 55 10069 (86)(10) 6410 6690,
(86)(10) 6410 6691,
(86)(10) 6410 6692
Fax: (86)(10) 6410 6698

xxviii
xxix

Hyprotech Agents
Al-Bawardi Tel: 971-2-634-9999
Abu Dhabi, UAE Fax: 971-2-631-8181

International Innotech, Inc. Tel: (281) 492-2774


Katy, USA Fax: (281) 492-8144

International Innotech, Inc. Tel: 86 10 6499 3956


Beijing, China Fax: 86 10 6499 3957

International Innotech Tel: 886 2 2809 6704


Taipei, Taiwan Fax: 886 2 2809 3095

KBTECH Ltda. Tel: 57 1 258 44 50


Bogota, Colombia Fax: 57 1 258 44 50

Plant Solutions Pty. Ltd. Tel: 61 3 9572 5544


Carnegie, Australia Fax: 61 3 9571 8355

Protech Engineering Tel: 421 2 44888286


Bratislava, Slovak Republic Fax: 421 2 44888286

PT. Danan Wingus Sakti Tel: 62 21 567 4573 75/62 21 567 4508 10
Jakarta, Indonesia Fax: 62 21 567 4507/62 21 568 3081

Ranchero Services (Thailand) Co. Ltd. Tel: 66 2 381 1020


Bangkok, Thailand Fax: 66 2 381 1209

Soteica De Mexico Tel: 52 5 546 5440


Mexico D.F., Mexico Fax: 52 5 535 6610

Soteica Do Brasil Tel: 55 11 533 2381


Sao Paulo, Brazil Fax: 55 11 556 10746

Soteica S.R.L. Tel: 54 11 4555 5703


Buenos Aires, Argentina Fax: 54 11 4551 0751

Soteiven C.A. Tel: 58 2 264 1873


Caracas, Venezuela Fax: 58 2 265 9509

xxix
xxx

Weam & Company Ltd. Tel: 234-84-235216


Port Harcourt, Nigeria Fax: 234-84-235217

ZAO Techneftechim Tel: 7 095 246 2976


Moscow, Russia Fax: 7 095 246 2976

Internet
Web site: www.hyprotech.com
Information and Sales: info@hyprotech.com
Technical Support: support@hyprotech.com
Online Support: support.aspentech.com
Training: training.registration@aspentech.com
Documentation: CGYDocumentation@hyprotech.com

xxx
Installing HYSYS 1-1

1 Installing HYSYS

1.1 Basic Requirements ........................................................................3

1.2 Licensing Information .....................................................................3

1.3 Types of Installation ........................................................................4


1.3.1 Standalone HYSYS Installation................................................4
1.3.2 Network HYSYS Installation.....................................................4
1.3.3 Upgrading from Older Versions of HYSYS ...............................5

1.4 Installing HYSYS..............................................................................6


1.4.1 HYSYS Installation to an Application Server..........................10
1.4.2 Setting HYSYS File Location Preferences .............................12

1-1
1-2 Installing

1-2
Installing HYSYS 1-3

1.1 Basic Requirements


System Component Requirements
Operating System Microsoft Windows 2000/NT 4.0 SP6/98/ME.
Microsoft Internet Explorer version 5.0 or higher.
Processor Speed Pentium II 400 MHz, recommended PIII 700 MHz or better.
RAM requirements Minimum 128 MB RAM, recommended 256 MB.
Total Memory (RAM + Virtual Memory) minimum 300 MB,
recommended greater than 300 MB
Disk Space Minimum 200 MB of free disk space.
Serial Port The green security key is used with the standalone version of
HYSYS and can only be attached to a serial communications
port of the computer running the application (do not plug in a
serial mouse behind the security key).
Parallel/USB Ports SLM keys are white Sentinel Computer ID keys, manufactured
by Rainbow Technologies. The Computer ID key is installed on
the parallel port (printer port) of your computer. An arrow
indicates which end should be plugged in to the computer. This
is the new key that is used for both Standalone and Network
versions of HYSYS.
Monitor/Video Minimum usable: SVGA (800 x 600).
Recommended: SVGA (1024 x 768).
Mouse Required. Note that a mouse cannot be plugged in to the back
of the green serial port key used with the "standalone" version
of HYSYS.

1.2 Licensing Information


You need a license file and hardware security key to run HYSYS. Chapter
2 discusses licensing in greater detail. See Section 2.2 - Licensing before
installing HYSYS.

1-3
1-4 Types of Installation

1.3 Types of Installation


As discussed in Chapter 2, there are two types of installation for HYSYS:
Standalone HYSYS Installation
Network HYSYS Installation

Once you determine the type of installation you want, go to the sections
below for details on how to perform that type of installation.

1.3.1 Standalone HYSYS Installation


There are three major steps to installing HYSYS on a standalone
computer:
1. Install the key. For details, see Section 2.3 - Installing the Hardware
Key in Chapter 2.
2. Install HYSYS. See Section 1.4 - Installing HYSYS.
3. Install a license file. (Normally done during the HYSYS install.) For
details, see section Section 2.4 - Using Standalone Licensing.

1.3.2 Network HYSYS Installation


There are two basic configurations for running HYSYS in network mode.
Normally, the HYSYS application is installed locally on each users
computer. The license server is installed on another computer which
acts as a central server for license distribution across the network.

If HYSYS is to be run on a relatively large number of computers, it may


be advantageous to also install the software on a network file server
rather than on individual computer hard disks. In this configuration,
there will be a license server, an application server (possibly on the same
computer), and the client (user) computers.

The disadvantage of installing the software on an application server is


that HYSYS startup will be slower as the program is loaded over the
network from the hard disk of the server into the memory on the local
computer. There are also some files used by the license server which
must be registered on each client computer even when the application
resides on a server.

1-4
Installing HYSYS 1-5

There are three major steps to installing a network configuration of


HYSYS:
1. Install License Server:
Install the key. For details, see Section 2.3 - Installing the
Hardware Key in Chapter 2.
Install a license server. See the Setting up a Network License
Server section in Chapter 2.
Install the license tools. See the Installing the License Tools
section in Chapter 2.
Install a license file. See the Installing the License File section
in Chapter 2.
Check the installation. See the Testing the License Server
Installation section in Chapter 2.
2. Install HYSYS:
Locally, on each client workstation. See Section 1.4 - Installing
HYSYS, or
On an application server. See Section 1.4.1 - HYSYS
Installation to an Application Server.
3. Configure:
LSHost and other environment variables. See Section 2.7 -
Licensing Environment Variables.

1.3.3 Upgrading from Older Versions of HYSYS


HYSYS 2.2.2 & Older
If you are using a standalone copy of HYSYS, your green serial port key
will continue to work with your old version of HYSYS; it will also work
with all SLM versions of HYSYS (v2.4 and on) so long as you have
properly installed your license file.

Network copies of HYSYS 2.2.2 will not function with your new SLM
network key and license server. Only copies of HYSYS version 2.4 and
newer will operate with the SLM licensing system.

The old network key can not be installed on the same computer as the
new SLM network key. Please uninstall your old network key and key
server software (procedure varies, consult the Get Started manual from
the older HYSYS version for details) before installing the SLM license
server.

1-5
1-6 Installing HYSYS

HYSYS 2.4 & Newer Versions


These versions of HYSYS already use the SLM licensing system. You may
need to install a new license file (if so, one will be supplied). Otherwise,
install the HYSYS software and continue using the existing licenses.

If you are using commutable licenses, please ensure that there are no
commuted HYSYS licenses on your computer before proceeding with
the upgrade.*
* For more information, contact your Hyprotech sales agent.

1.4 Installing HYSYS


For instructions on installing The following instructions are written assuming installation on
the PIPESYS extension refer Windows 2000/NT 4.0 or Windows 98/ME.
to Section 2.3 - Installing
PIPESYS Extension of the 1. Shut down all other programs on the computer before starting the
PIPSYS Reference Manual. installation process.
2. Insert the HYSYS software CD in to the CD drive of your computer.

For computers which have the CD-ROM Autorun feature enabled, steps
#3 and #4 will be automatically performed.

3. From the Start menu, select Run.


4. In the Run view, type: d:\setup.exe and click on the OK button
(where d: is your CD drive).

1-6
Installing HYSYS 1-7

5. The following installation screen appears.

Figure 1.1

6. Click on the Install Products link.


7. On the Products view, select HYSYS. The Installation Wizard may
take a few moments to load. The Welcome view appears.
8. Read the information on this view and click the Next button. The
Information view appears.
9. Read the information and click the Next button. The Customer
Information view appears.

Enter your name and company information in the fields.

Select one of the radio buttons to determine whether HYSYS should


be available to anyone else who logs on to your machine, or if it
should be available only to you when you log on to your machine.

1-7
1-8 Installing HYSYS

10. Click Next. The License view appears.

HYSYS can work with both standalone and network licenses. The
installer will first attempt to find a network license server. When the
For more information regarding message Searching for Network Licenses... appears, the installation
the Software License Manager
and license servers refer to
program is searching your subnetwork for a license server. If a license
Chapter 2 - Software server is not found, the application will assume that you are running a
Licensing in this manual. standalone version of HYSYS and would like to install the license file on
your computer. If your license server is on a different subnet it will not
be found by the installer.
11. You are then given two options:
12. Yes, install standalone licenses. You may have received a new
standalone license file or are installing HYSYS for the first time on
this machine.
To install standalone licenses, select the Yes radio button. Click
Next and proceed to #2.
1. No, do not install new licenses at this time. You may already have
the necessary license file from an earlier version of HYSYS or you
may be using network licensing. If you intend to use network
licensing, install the License Server first. For more information
about installing the license server, refer to Section 2.5 - Using
Network Licensing in Chapter 2.
To install no licenses at this time, select the No radio button. Click
Next and proceed to #15.

You will not be able to run HYSYS in standalone mode without a license
file on your local machine. If you choose not to install a license file at
this time you can refer to Chapter 2 - Software Licensing for information
on installing your license file.

2. From the file view that appears, select the location of your license
file and click Open. (If you dont have a license file, contact your
Hyprotech agent. Click Cancel to close the file view. Click Cancel to
quit installing.) Resume installation once you have a license file.
3. Click Next. The Choose Destination Location view appears. If you do
not want to install the application in the default directory, use the
Browse button to specify a new path.
4. Once your installation path is chosen, click Next. The Setup Type
view appears.

1-8
Installing HYSYS 1-9

5. Select a radio button to choose the type of installation. You are given
three choices: Typical, Compact and Custom. (A Typical installation
is recommended.) Custom allows you to choose the options you
want to install:
HYSYS. Installs the main HYSYS application files. If you do not
have this option active you will not be able to run HYSYS.
Sizing. Installs the Economix features.
Sample Cases. Installs the sample cases with the application.
Extension SDK. Installs the extension tools with the application.
License Administration Tools. (These are installs the license
administration tools required when using network licenses (refer
to the next chapter for information on the software licensing). You
do not require this option if you have standalone licenses.

Click Next. The Start Copying Files view appears.


6. Review your settings here: click Back to change your settings, or
click Next to continue.
7. In the Setup Status view, you can see the progress of the installation.
Once installation is done, the Installshield Wizard Complete view
appears.
8. Read the information on this view and select a radio button. It is
recommended that you restart your computer. Click the Finish
button.

HYSYS will then begin installing files to your computer.

Click Finish to complete the installation.

If you experience any difficulties, refer to Section 2.10 - Troubleshooting


in Chapter 2 - Software Licensing.

1-9
1-10 Installing HYSYS

1.4.1 HYSYS Installation to an Application


Server
Installing HYSYS onto a server follows exactly the same process as
outlined in the previous section. Simply choose a network drive instead
of the local drive when on the Select Components view. Then each of the
client workstations must be set up as detailed below. To prevent
accidental modification or deletion of files, it is recommended that
HYSYS users be allowed read-only access to the HYSYS software. Each
HYSYS user should then configure an individual preferences file and
store that file on their local hard disk (or write-enabled network drive).

To set up each of the client workstations:


1. Ensure that the workstation has all of the required components for
running HYSYS using the SLM (see Section 2.10 - Troubleshooting
or see the Technical Support chapter for information on how to
contact us for help); you can install missing components by running
the files found on the Software CD in the OS Upgrades folder.
2. Copy the strgxi2.dll from the computer where HYSYS was installed;
this file must be on every client workstation for them to work
properly. You may want to copy the entire Hyprotech common files
folder (C:\Program Files\Common Files\Hyprotech\) including all
of its sub-folders onto each workstation as this will ensure that each
user also has access to the SLM troubleshooting tools.
3. Register the strgxi2.dll; i.e., use the DOS command line or select
Run from the Windows Start button.
regsvr32 C:\Program Files\Common
Files\Hyprotech\Shared\strgxi2.dll

Regsvr32.exe is installed in the HYSYS root directory.


4. Create a working directory for HYSYS on the workstation (i.e.,
C:\Program Files\Hyprotech\HYSYS\). In this directory, create the
sub-directories CASES, PAKS, and USER.
It is recommended that all 5. Create a shortcut to HYSYS.exe (on the desktop or in the Start
components on C:\Program
Files\Common menu). In the shortcut Properties, set the Start In directory to the
Files\Hyprotech are installed working directory you created in the previous step.
and registered.
You should register all DLL If it is necessary to move the common files to another machine, copy
and OCX. C:\Program Files\Common Files\Hyprotech\ to the drive you want to
move the common files.

1-10
Installing HYSYS 1-11

COMThermo
For COMThermo, the following keys must be created in the registry:
HKLM\Software\Hyprotech\COMThermo\DatabasePath -
contains the path to COMThermo\Databases.
HKLM\Software\Hyprotech\COMThermo\ModelsPath - contains
path to COMThermo\Models.
HKLM\Software\Hyprotech\COMThermo\Version - contains
version number of COMThermo (version number can be found in
any of the COMThermo DLLs and is used by the applications to
display the COMThermo version information in the Help About
box).

BaSYS
If you have BaSYS installed, you have to register all OCX and DLL.

XML
If you have XML, you have to register the XMLRead.dll, however this dll
is optional.

MSXML4
The MSXML4.msi is available on the software CD. If you already have
the XML parser installed on your computer you dont have to install the
MSXML4.msi file.

If you install MSXML4.msi then you have to register the


[INSTALLDIR]hyphys.dll.

System DLLs (fortran runtime)


The following are DLLs that are required especially for COMThermo:
Msfrt40.dll
Dformd.dll
Dforrt.dll

There are a number of other system DLLs that may be installed, however
it is difficult to get a list of the DLLs as they are in merge modules.

1-11
1-12 Installing HYSYS

1.4.2 Setting HYSYS File Location Preferences


To set your HYSYS file location preferences:
1. Start HYSYS.
2. From the Tools menu, select Preferences. The Session Preferences
view appears.
3. On the Files tab, select Locations.
4. Configure the Default Files and Paths as shown below. These are
suggestions only and some modification may be required.

Figure 1.2

5. Click the Save Preference Set button, and save it to the HYSYS
working directory on the local disk.

1-12
Software Licensing 2-1

2 Software Licensing

2.1 License Terminology .......................................................................3

2.2 Licensing ..........................................................................................3


2.2.1 Standard Licensing Defined .....................................................4
2.2.2 Token Licensing Defined ..........................................................5
2.2.3 Standalone License Mode........................................................5
2.2.4 Network License Mode.............................................................6
2.2.5 Alternate Configurations...........................................................6

2.3 Installing the Hardware Key............................................................7


2.3.1 Key Types .................................................................................7

2.4 Using Standalone Licensing...........................................................8


2.4.1 Installing the License File .........................................................8
2.4.2 Configuring for Use with Multiple Standalone Keys..................9

2.5 Using Network Licensing................................................................9


2.5.1 Setting up a Network License Server .....................................10
2.5.2 Installing the Network License Server ....................................11
2.5.3 Installing the License Tools ....................................................12
2.5.4 Installing the License File .......................................................12
2.5.5 Testing the License Server Installation...................................13

2.6 Overview of SLM Features............................................................13


2.6.1 Options ...................................................................................14
2.6.2 License Tools..........................................................................14

2-1
2-2 Software

2.7 Licensing Environment Variables ................................................ 15


2.7.1 LSHost ................................................................................... 15
2.7.2 LServOpts .............................................................................. 17
2.7.3 LSDefaultDir........................................................................... 20
2.7.4 LServrcCNF ........................................................................... 20
2.7.5 LSPROTOCOL ....................................................................... 20

2.8 License Server Tools..................................................................... 21


2.8.1 Echoid32 ................................................................................ 21
2.8.2 WLMAdmin ............................................................................ 22
2.8.3 LSMon.................................................................................... 28
2.8.4 Log File Reader ..................................................................... 29
2.8.5 LSUsage ................................................................................ 33
2.8.6 LSWhere ................................................................................ 34

2.9 User Options .................................................................................. 34


2.9.1 Setting User Alerts ................................................................. 34
2.9.2 Setting Group Reservations ................................................... 37

2.10 Troubleshooting .......................................................................... 39


2.10.1 Port/ID Key Problems........................................................... 40
2.10.2 Network Problems................................................................ 41
2.10.3 Common Error Messages .................................................... 42

2-2
Software Licensing 2-3

2.1 License Terminology


Refer to the following table for a description of the license terminology
used within this document:

Term Description
License Permission granted to program/application/component to use a
specific feature.
License Code An encrypted alphanumeric text string used to define a single
licensed feature. Each code is locked to a hardware key (SLM
key or Green Key).
License File File containing license codes for the specific features licensed
to the user.
Standalone License License granted is local to the user machine.
Network License License granted/obtained is from a network license server.
Network License Program (Win 98/ME)/service (WinNT/2000/XP) running on a
Server computer that is attached to the Local Area Network (LAN). This
grants licenses to the application that is running on network
user machines.
Hardware Key Physical hardware device used to secure licenses (also referred
to as a dongle or key).
SLM Software License Manager, Hyprotech software security
system.

2.2 Licensing
Hyprotech controls use of its software through the Software License
Manager (SLM). Licensing information is held in a license file and
secured using a hardware key. The user requires both a license file and
hardware key to run Hyprotech software. The following table lists the
type of operating systems that the SLM supports, and the required
softwares that work with the operating system:

Operating System Requirement for Additional Software


Windows 98 Sentinel drivers installed for the SLM key
to work
Windows ME Sentinel drivers installed for the SLM key
to work.

2-3
2-4 Licensing

Operating System Requirement for Additional Software


Windows NT4 Service Pack 5+
Active Template Library (ATL) component
Sentinel drivers installed for the SLM key
to work
Windows 2000 Sentinel drivers installed for the SLM key
to work

This following section covers Standard and Token license types as well
as Standalone and Network license modes.

2.2.1 Standard Licensing Defined


Standard licenses are the Standard licensing is based on setting a specific limit of users that are
most common type of licensed to use a certain application. In Standard mode, one license is
licenses.
consumed per feature, decreasing the available licenses for that feature
by one.

For example, a customer with 10 network licenses for application A, and


5 network licenses for application B, can simultaneously run up to 10
copies of application A and up to 5 copies of application B. When a user
closes a copy of the application, the license is released back to the
license server allowing other users access to that application.

Optionally, a system administrator can customize this process by setting


the license server to issue specific licenses only to specific users. See
Section 2.9 - User Options for more information.

Licenses can also be mixed between standalone and network computers


(refer to the Section 2.2.3 - Standalone License Mode and Section 2.2.4 -
Network License Mode sections). The Software License Manager always
looks for a standalone license first; if a standalone license is not found, it
searches for an available network license.

2-4
Software Licensing 2-5

2.2.2 Token Licensing Defined


Token licensing allows Hyprotech applications to be licensed in a
slightly different way than the Standard licensing. With Token licensing
you set an upper limit on the number of tokens available, but do not
define a specific number of licenses.

The license specifies the number of tokens it requires and each product
consists of a number of licenses, which determines its token value. Every
time the application is run, it consumes a number of token licenses until
the token limit is reached.

The upper limit allows any combination of products to be used up to the


For more details on Token limit. This makes token licensing very flexible. You can setup any
licensing, please contact your
number of application combinations within the framework of your
Hyprotech agent, or e-mail us
at info@hyprotech.com. license setting.

For example, application 1 has a token value of 10 and application 2 has


a token value of four, with an upper limit of 50 tokens. With this
configuration, five users could only run application 1. However, this also
allows four users to run application 1 and two users to run application 2.

2.2.3 Standalone License Mode


Standalone licenses are configured so that both the application and the
licenses are installed on a single computer. This kind of configuration is
most often used when the application is only used by one individual on
a particular computer.

Refer to Section 2.4 - Using Standalone Licensing to configure the


application to run with Standalone licenses.

2-5
2-6 Licensing

2.2.4 Network License Mode


Network licensing is configured so the application is executed on the
users computer, but the licenses are installed on a network license
server so they can be shared with other users.

The license server consists of a file of network license codes and the
license server application. The license server is used to issue the license
codes to all users on the network.

Refer to Section 2.5 - Using Network Licensing to configure the


application to run with Network licenses.

2.2.5 Alternate Configurations


It is possible to configure user computers so that a pool of standalone
keys can be shared (i.e., the user can install licenses for 10 standalone
keys on their computer and then use any of these 10 keys at their option
without the need to reconfigure their computer each time).

Details for configuring the users computer are given in Section 2.4 -
Using Standalone Licensing.

Computers can also be configured so standalone and network modes


are used, (i.e., standalone licenses are installed on the users computer
and network licenses are installed on the network license server).

The SLM always checks the users computer for standalone licenses first;
if the licenses are not found or the local security hardware key is not
installed, it searches for an available network license.

2-6
Software Licensing 2-7

2.3 Installing the Hardware Key


Both the standalone and network licensing modes of the application
require the use of a hardware key. A unique locking identity is read from
the hardware key and is used to generate license codes needed to run
the software. This identity locks the hardware key to the licenses. When
the application runs, the locking codes must then match the hardware
keys identifier for the licenses to be valid.

To avoid damage to the computer or key, the computer should be shut


down before adding or removing the key.

2.3.1 Key Types


The two types of keys are Software License Manager Keys (SLM keys)
and Green Keys which are described in this section.

Software License Manager Keys


Software License Manager keys (or SLM keys) are Sentinel SuperPro -
Computer ID keys, manufactured by Rainbow Technologies. The SLM
key is installed on the parallel (printer port) or USB ports of your
computer with an arrow indicating which end should be plugged in.

Network licensing requires SLM keys can be used for both standalone and network licensing.
that an SLM key be installed
on machines that will be used
Standalone licensing requires a SLM key to be installed on every
as license servers (refer to machine that runs the application.
Section 2.5.1 - Setting up a
Network License Server for
additional information).
Do not plug this key in the serial port because it will damage your
computer.
Any computer using the SLM key requires certain drivers to talk to the
key. If you are having problems with your licensing, ensure that these
drivers are installed on your computer by running the setup.exe
program found in the Driver directory on the Software CD.

2-7
2-8 Using Standalone Licensing

Hyprotech Green Keys


Hyprotech green keys are installed on either a 9-pin or 25-pin serial port
of your computer. The arrow on the label of the green key must point
towards the computer.

Hyprotech green keys are legacy hardware and can only be used for
standalone licensing of the software. Standalone licensing requires that
a key is installed on every machine that will be running the application.

DO NOT PLACE THIS KEY IN THE PARALLEL PORT, YOU WILL DAMAGE
YOUR COMPUTER.
Check for communication with your hardware key using the Echoid32
tool. Refer to Section 2.8.1 - Echoid32 for more information.

2.4 Using Standalone Licensing


Once the application and the hardware key have been installed on your
computer, you need to install the license file. The license file contains all
of the license codes specifying all licensed features of the application(s).

2.4.1 Installing the License File


If you are upgrading your software, you will find included in your
package a software CD and a floppy disk (or e-mail) containing a license
file locked to your existing standalone green key. If you have newly
leased or purchased your software, you will receive an SLM key in
addition to the floppy disk containing your license file.

During the software installation, you will be asked to point to the


directory or floppy disk containing your license file. The installer then
automatically configures your software. If you do not have the license
file, you can continue with the installation.

2-8
Software Licensing 2-9

To install a license file later on:


Double-click on the license file and it will automatically be
installed.
Alternatively, you can manually install the license file by following
these steps:
The license file name is in the Copy the license file from the floppy disk (or e-mail) to the
following format: following directory: C:\Program Files\Common
Lservrc_XXX_lockcode (or Files\Hyprotech\Shared.
serial number for a green Change the extension of the license file from AEALIC to LIC.
key). AEALIC where XXX is
the locking criteria for the
locking device. It is 080 for
For future license upgrades you will be sent a new license file, with the
SLM keys and 100 for Green extension AEALIC, containing your new licenses. (To install the new
keys. licenses, simply follow the above procedures.)

2.4.2 Configuring for Use with Multiple


Standalone Keys
If you will be using more than one standalone key with your computer
(for example, sharing a pool of standalone keys with other users), then
you must install all of the relevant license files on your computer (i.e., if
you will using keys A and B, ensure that both license file A and B are
installed). The SLM automatically determines which license file to use.

2.5 Using Network Licensing


Network licensing is normally configured so that each user executes the
application software on their computer while the license file containing
the license codes is installed on a network computer that will act as the
network license server.

The new SLM network security and the old network security systems are
NOT compatible. The SLM security system must NOT be installed on the
same computer as the old network security system.

2-9
2-10 Using Network Licensing

2.5.1 Setting up a Network License Server


A network license server computer is made up of the following
components:
SLM key (refer to the Section 2.3 - Installing the Hardware
Key).
License Server software - follow the steps outlined below to install
the network License Server on your network license server
computer.
Network License file containing network license codes.
License Server Tools.
Multiple license server Because the network license server computer must be operational for
computers can be configured
to spread the licensing load.
the network users to run their applications, the best choice for the
This can also be used as a license server computer is one that is always running. The most trouble-
simple effective form of free installation will result from a license server computer used only for
redundancy.
the license server function. This avoids conflicts with other software.
You can have both the old
license server and new Note for Network Upgrades: The network key previously used by
network license server Hyprotech is incompatible with the SLM. Therefore, you must exchange
running on different
computers during the 60
your existing network keys for a SLM key. When you receive the SLM key,
calendar day exchange you must send your existing network key(s) back to Hyprotech. When
period. To install the new this key is received by Hyprotech, a new license file will be sent to you
security on a computer that is
clean of the old network that complies with the terms of your contract with Hyprotech.
license server, follow the
steps on the right.
The license file that is initially sent with the software will expire in 60
calendar days. Please return the old network key to Hyprotech within 60
calendar days to receive a new license file used to replace this
temporary license file.

2-10
Software Licensing 2-11

2.5.2 Installing the Network License Server


The following instructions are written under the assumption that
installation will occur on Windows NT 4.0 (>SP4). Hyprotech does not
support Windows 95/98/ME or Windows XP as network license servers.

If License Server is greyed out, it is for the following reasons:


Windows 98/ME is not recommended as stable network-
server platforms.
Windows XP is not yet certified for use with the license server.
It is still possible to install the Sentinel LM service and Sentinel System
Driver on these operating systems and this can be done manually by
browsing the software CD and executing the appropriate setup
programs in the Server and Driver folders. Contact Hyprotech
Technical Support for further assistance.

Use the following steps to exchange your key and install the license
server:
1. Before installing the SLM License Server, shut down and uninstall
the old network security server. Ensure that no users are logged in to
the server. Install the SLM hardware key as described in Section 2.3 -
Installing the Hardware Key.
2. Restart the computer.
3. Ensure that no Windows programs are running on the computer
before starting the network license server installation process.
4. Insert the software CD in to the CD-ROM drive of the computer.

For the computers which have the CD-ROM Autorun feature enabled,
steps #5 and #6 are automatically performed. Some Hyprotech products
may have variants on the way the installation of Network License Server
software is initiated.

5. From the Start menu, select Run.


6. In the Run view, type: setup.exe and click on the OK button (where
d: corresponds to the drive letter of the CD-ROM drive).
7. From the view that appears click License Server to start the
installation.
8. Follow the on-screen instructions to proceed with installation.
Continue with the installation until complete: do not exit the Set Up
program.

2-11
2-12 Using Network Licensing

2.5.3 Installing the License Tools


When the License Server installation is complete:
1. Click License Tools. This will install the SLM Administrator Tools.
2. Follow the on-screen instructions to proceed with the installation.

2.5.4 Installing the License File


Having leased or purchased your software for use with a network
license, you will find included in your package a software CD, an SLM
key and a floppy disk (or e-mail) with the license file locked to the SLM
key. Copy the license file from the floppy disk (or e-mail) to the SLM
license server directory. The default SLM license server directory is:
C:\Program Files\Rainbow Technologies\sentinelLM 7.1.1
Server\English

Once you have copied the license file to the SLM license server directory,
you must rename the file to LSERVRC (no file extension). Rename/
Ensure that you stop and delete any pre-existing license file. Then you must stop and restart the
restart the license server
license server. This is done by running the program loadls.exe (also
whenever you change your
license file. found in the license server directory).
All users must exit any
software using the SLM before This will reload the server using the new license file.
a restart is performed.
1. Run loadls.exe and select Remove.
2. Run loadls.exe again and select Add.

2-12
Software Licensing 2-13

2.5.5 Testing the License Server Installation


You can test your License Server installation to verify its proper
installation:
1. Open your license tools folder
C:\Program Files\Common Files\Hyprotech\SLM Admin Tools\
2. Check communication with your hardware key by running the
Echoid32 application (as described in Section 2.8.1 - Echoid32.
3. Check that the license server has been properly initialized by
running the WLMAdmin program and checking that the licenses are
available (see Section 2.8.2 - WLMAdmin).

Now that you have the proper license codes in place, see Section 2.7.1 -
LSHost on configuring your network client computer to point to your
license server.

2.6 Overview of SLM Features


Network licensing allows the administrator access to many advanced
licensing functions. These are primarily:
1. Directing User License Requests to Preferred License Server(s)
2. Monitoring & Logging of License Usage
3. Reserving Licenses for Particular Users/Excluding Particular Users
from License Access
4. Ability to Commute Licenses when Disconnected from the License
Server*
* Optional feature at additional cost; for more information contact your Hyprotech sales repre-
sentative.

These functions are enabled through the use of options and license tools
which are explained in detail in the following sections.

2-13
2-14 Overview of SLM Features

2.6.1 Options
Many options can be set to control the operation of the SLM; most of
these options are set through the use of environment variables and will
be described in Section 2.7 - Licensing Environment Variables. The
primary ones are:
LSHost is used to direct the search for a network license to a list
of preferred servers.
LServOpts is used to set License Server Options including
configuration information, usage logging, and error logging.
Alternatively some of these options can be set through their own
environment variable (i.e., LSReserv, LServrcCnf. Where
available it is generally recommended to use these specific
environment variables).

Other options are set using specific configuration files and are described
in Section 2.9 - User Options:
Alerts
Group reservations of licenses

2.6.2 License Tools


There are also several programs installed as License Tools (described in
Section 2.8 - License Server Tools) to administer the advanced features
of the SLM:
Echoid32 is used primarily to troubleshoot hardware key
problems.
WLMAdmin is the Windows License Manager Administration tool
and is the primary program used for monitoring and administering
license access.
LSMon is a DOS-command line alternative to WLMAdmin for
basic license monitoring information.
LSUsage is a program used to read usage log files and generate
summarized usage statistics.
SLMCommute is used to manage commuted licenses;
commuting is only allowed if permission to commute has been
activated in the feature's license code (contact your Hyprotech
Sales representative for more details).

2-14
Software Licensing 2-15

2.7 Licensing Environment Variables


With a Network license, there are a number of options you can set to
control its operation.

If you choose to set any of the environment variables, and you are
unfamiliar with the system tools for Windows NT 4.0, use the following
steps:
1. On your computer, click the Start menu. Select Settings, and then
select Control Panel.
2. Double-click on the System icon to open the System Properties
view.
3. Select the Environment tab.
4. In the Variable text box, enter the name of the environment variable
as LSHost.
5. In the Value text box enter the IP address or hostname of the
server(s).
6. Click the Set button.
7. If you do not need to set any more variables, click OK to exit the
System Properties.

You may need to reboot the computer for these environment variables to
take effect. For other operating systems, refer to your operating system
documentation or contact Technical Support.

2.7.1 LSHost
This variable is set on the users computer. When the application is
started, it first tries to identify a standalone license. If there is no
standalone license, it will then attempt to obtain a license by searching
for license servers over the network. This broadcast search is limited to
the users local network subnet. If the License Server is located outside
the users local subnet, then the IP address/hostname of the server must
be specified to the remote network license server for the Hyprotech
application(s) to establish a connection.

2-15
2-16 Licensing Environment Variables

There are three ways you can specify the connection to the proper
license server. The following lists the steps Hyprotech applications take
to look for a license server:
If the LSForceHost environment variable is set, the application
looks for the specific license server host listed in that variable. If it
cannot find that computer, an error message is displayed, and the
application closes.
If no LSForceHost environment variable is set, then the
application looks for the LSHost environment variable. If this
variable has been set, then the application looks for any of the
license server hosts listed.
If LSForceHost and LSHost are not set, then a check is made
for a file with the name lshost in the application root directory. If
this file is found, then the application looks for any of the license
server hosts listed in the file.

The LSHost variable naming conventions are:


Any valid hostname recognized by your network.
If you are using a network Numeric names (IP address).
system where the DNS is
variable, then you cannot use NO_NET to disable the default network broadcast mechanism
the IP address for this from searching the network for a network license server. With this
purpose. setting the application will only look for a standalone license file.

LSHost
When using multiple server The LSHost environment variable is used to tell the application to
names on the same line you search for one or more license servers. When this variable is set, the
need to separate the names,
in both the environment application attempts to contact each server in the list beginning with
variable string and lshost file, the first license server in the list. If none of the specified license servers
with a colon (:).
is found, the application stops searching and returns an error. (LSHost
disables the network broadcast search for servers.)

The lshost file does not have a The lshost file works the same way as the LSHost environment variable.
file name extension attached It must be placed in the application root directory. The following is an
to it.
example of an lshost file.

Figure 2.1

2-16
Software Licensing 2-17

This file searches for TESTSERV_1, TESTSERV_2, TESTSERV_3, and


TESTSERV_5, in that order. Notice that TESTSERV_4 has been
commented out. Anything that follows a number/pound symbol (#) is
treated as a comment.

LSForceHost
The LSForceHost environment variable is used to force the application
to look for a single license server computer. If the license server
specified cannot be found, the application stops searching and returns
an error. LSForceHost overrides an LSHost environment variable or an
lshost file, and disables the network broadcast search for servers.

LSForceHost is used by all Sentinel License Manager protected


products; as such, its use could interfere with the security used by other
applications also protected using Sentinel Computer ID keys. Please
use LSForceHost only as a last resort.

2.7.2 LServOpts
This variable is set as a system The LServOpts variable is used to set network license server options.
variable and not a local user
environment variable. Some of The procedure for setting up this variable is the same as outlined at the
the options that can be set with beginning of this section, however you must place the cursor in the
LServOpts can be set with a System Variables group before clicking the Set button. The options for
specific environment variable
(which should be used this variable are found in the following table.
whenever possible).
Option Description
-s license file Specifies the name and location of the license code file. By
default, the license server uses the file, lservrc, in the local
directory. This can also be specified by the LServrc
environment variable.
-e license Specifies the name and location of the optional license
configuration file configuration file. This can also be specified by the LServrcCNF
environment variable.
-l usage log file Enables usage logging by specifying the name and location of
the usage log file (you can not include any spaces in the path
name). A typical log file name is lserv.log. By default, usage
logging is disabled. (This is limited to 8 characters.)

2-17
2-18 Licensing Environment Variables

Option Description
-z usage log file size Specifies the maximum size of the usage file. The default value
for the maximum size of the log file is 1 megabyte. The size can
be specified in bytes, kilobytes, or megabytes. For example, -z
2000 means 2000 bytes, -z 2k means 2 kilobytes and -z 2m
means 2 megabytes. Once the maximum size of the file is
reached, the license server creates a backup log file (unless
the -x option has been used).
The maximum number of backup files is 99. However you can
move existing backup log files to another directory and the
license server begins logging again.
-x By defaulton overflow of the usage log filethe file contents
are moved in to a backup file. New usage records are then
written to the original file until it overflows again. If the -x option
is specified, the file will not be backed up on overflow. Instead
the license server will simply stop writing further records to the
file.
-com percentage Commuter licensing uses the same license codes as other
network licenses. To ensure that not all license codes are used
up by the commuter, set this option to the percentage of license
codes you want used for commuter licensing. Once that
percentage of codes are used up, no more will be made
available to commuters until commuter licenses are returned.
-lfe encryption level Specifies the level of encryption that license transactions are
written to in the licenses server log file. The levels are 1 to 4:
1 - No encryption.
2 - No encryption. Transaction data is readable, but
tampering with or deleting an entry is detected by
LSUsage. This is the default encryption level.
3 - Encrypt usage only. Transaction data is readable
except for license usage data. Such entries are not
displayed by LSUsage.
4 - Encrypt entire record. All transaction data for the
license code is encrypted. Such entries are not displayed
by LSUsage.
-f error file Specifies the name and location of the error file where the
license server logs occurrences of unexpected conditions. By
default, this is disabled until the option is specified. Then the
license server appends the lservlog file in the current directory.
-u group reservations Specifies the name and location of the optional group
file reservations file. By default, the license server uses the
LSReserv file in the current directory. This can also be
specified by the LSReserv environment variable.

2-18
Software Licensing 2-19

Setting Usage Logging


If you activate the usage logging option, the network license server
records all license requests and returns in this file. Usage reports can be
viewed by using the LSUsage tool (refer to Section 2.8.5 - LSUsage on
how to view the log file). Information is recorded in the file one entry per
line in the following format.

Element Description
Server-LFE User-defined log file encryption level as specified by the license
server -lfe option.
License-LFE Vendor-defined log file encryption level. If this is non-zero, it overrides
the Server-LFE.
Date The date the entry was made.
Time-Stamp The time stamp of the entry.
Feature Name of the feature.
Ver Version of the feature.
Trans The transaction type. 0 indicates an issue, 1 a denial, and 2 a release.
For commuted licenses, 8 indicates an issue, and 9 is a release.
NumKeys The number of licenses in use after the current request/release.
(Encrypted if encryption level is set to 3 or 4.)
Keylife Length of time the license was issued (measured in seconds). Only
applicable after a license release.
User The user name of the application associated with the entry.
Host The host name of the application associated with the entry.
LSver The version of the license server.
Currency The number of licenses handled during the transaction. (Encrypted if
encryption level is set to 3 or 4.)
Comment The text passed in by the protected application.

Example
The following example creates a usage log file with a maximum size of 2
megabytes and level 2 encryption. When entering the path and name of
the log file, there can be NO spaces and quotes are not required.

2-19
2-20 Licensing Environment Variables

2.7.3 LSDefaultDir
The LSDefaultDir environment variable can be used to set the default
location of the license file. It is recommended that the license server
default directory not be changed. The default directory is located in the
same directory as the license server executable.

2.7.4 LServrcCNF
The LServrcCNF environment variable can be used to set the name and
location of the network license server configuration file. This file is used
in setting up user alerts and other options. It is recommended that the
default name and location are used for this file. In most installations,
this file is called lservc.cnf and resides in the license server default
directory. If LServrcCNF is not used to specify the configuration file,
then the name and location of this file will be based upon the name and
location of the license code file. In this case, the configuration file
resides in the same directory as the license code file and has the same
base name as the license code file but with the extension .cnf.

2.7.5 LSPROTOCOL
The LSProtocol environment variable is used to specify the
communications protocol that is used to communicate with the
network license server. Specify IPX or UDP (for TCP/IP) to choose the
protocol.

2-20
Software Licensing 2-21

2.8 License Server Tools


All of the license server tools are located in the following directory:
C:\Program Files\Common Files\Hyprotech\SLM Admin Tools

2.8.1 Echoid32
The echoid32 application can be run to ensure that your key has been
installed properly and your computer can communicate with the key.
The application is located in the following directory:
C:\Program File\Common Files\Hyprotech\SLM Admin Tools

When the application is run, the following view will appear displaying
the serial number and locking code of your IP Address, Disk ID, Host
Name, Ethernet Address and either the SLM key or the Green Key
number.

Figure 2.2

If you cannot see the serial number and locking code for either the SLM
key or the Green Key number make sure that the key is properly installed
on your computer and run the application again. If you are still
experiencing difficulties, refer to Section 2.10.1 - Port/ID Key Problems.

A text version of this display, echoid32.txt, is also produced in this


directory when this application is run. This provides you with an easy
way of sending Hyprotech your key information if the need ever arises.

2-21
2-22 License Server Tools

2.8.2 WLMAdmin
When you first open WLMAdmin is the primary network license administration tool. It is
WLMAdmin you will see a
blank screen. From then on,
designed to provide access to most of the SLM licensing features and full
WLMAdmin will start up with information on licensing activities at several levels of detail: basic details
the view mode that was last on the active license servers detected on the network; greater detail on
used provided that this was
set up in your preferences. the licenses available on each server; and further information on the
To set your preferences, see users currently using those licenses. Due to its capabilities it is not
the Preferences section.)
recommended that normal users have access to this tool and it will not
be installed with their application. Running the WLMAdmin application
opens the following view.

Figure 2.3

2-22
Software Licensing 2-23

Navigation View
The left side contains a tree structure that allows you to access the
different levels of licensing information. There are two server lists
available:
Defined Servers. This is a user defined list of license servers.
License information is updated quickly because WLMAdmin is
directed to a specific list of servers. This list will be empty when
WLMAdmin is first run. You can add servers to the defined server
list using the Edit\Defined Server List menu item.
Subnet Servers. This list will be filled after performing a network
broadcast to locate all active license servers (i.e., computers
running the SentinelLM service) on the network. It can take some
time to perform the network broadcast so we recommend that you
generally use a defined server list. Accessing license information
via the subnet server list is useful if you do not know the name of
the license server from which you are accessing licenses.

You can also manage certain licensing activities by object-inspecting


(right-clicking) items in the Navigation view. This is described in greater
detail later under Object-Inspect Menus.

2-23
2-24 License Server Tools

Information View
The right side displays varying amounts of information depending what
level is highlighted in the Navigation view. The next three views show the
information available at the server level, the feature/license level, and
the user level respectively:

Figure 2.4

2-24
Software Licensing 2-25

Figure 2.5

2-25
2-26 License Server Tools

Figure 2.6

Menu Bar Options


Menu-Command Description
Edit-Defined Server List Add/remove/change server information in defined server list.
Edit-Reservation File This option will launch the Group Reservation Editor (if available);
reservation files can also be edited using a standard text editor. See
Section 2.9.2 - Setting Group Reservations for more details on
making reservations.
Edit-Redundant License File This option will launch the WRLFTool (if available).
Edit-Preferences Preferences set how license server queries will be done; further
details follow.
View-Refresh All Updates licensing information for all servers currently displayed in
the Navigation view.

2-26
Software Licensing 2-27

Preferences
Preferences are saved to Preferences are accessed via Edit-Preferences and are used to set how
the file WLMAdmin.ini. license server queries are conducted:

Time out interval This is the time interval given for a license server to respond with license
information following a query from WLMAdmin. If only partial information is
being returned from the server, try increasing this interval; this may
indicate network communication problems (see Section 2.10 -
Troubleshooting).
Discover subnet servers Updates server information for the subnet server list on WLMAdmin start-
on start up up. Not recommended, as WLMAdmin will be slow to start-up as it does a
network broadcast.
Discover defined Updates server information for the defined server list on WLMAdmin start-
servers on start up up. To retain your defined server list when WLMAdmin is closed you must
check this option.
Save these preferences In order to keep any of your preferences, including your defined server list,
to file you must check this option.

Object-Inspect Menus
Object-inspect menus are accessed by selecting an item (Server, Feature,
or User) in the navigation window and right-clicking.

Figure 2.7

2-27
2-28 License Server Tools

These options should only be used under the direction of your


Hyprotech agent.

Object-Inspect Menu Server


Add Feature These options will attempt to add/remove licenses to/from the license file in use
Remove All Features by the server. You cannot add features without license codes from Hyprotech. As
Hyprotech will supply you with complete license files, there is no reason to use
these options.
Add to Defined List This server will be added to/removed from the defined server list.
Remove from Defined List
Change Log Filename Can be used to change log filename; will override the name set in the LServOpts
environment variable. Stopping and reloading the SentinelLM service will cause
the log filename to revert to that listed in the environment variable.
Shutdown Server Can be used to stop the SentinelLM service on that server.
Refresh Updates licensing information for this server only.
Feature
Remove Feature Will attempt to remove a license from the license file in use by the server.
Refresh Updates licensing information for this feature only.
User
Refresh Updates licensing information for this user only.

2.8.3 LSMon
LSMon is a command line utility that retrieves information about all
features currently licensed by the license server and the clients using
those features. The following option may be supplied:

Option Description
Server-host The name of the computer on which the license server is running.

If Server-host is omitted, LSMon will attempt to talk to the license server


on the computer indicated in the LSHost environment variable or in the
LSHost file. If the variable or file does not exist, then it will attempt to
contact a license server using the broadcast mechanism. If LSMon fails
to find a license server, you will receive an error message and the utility
will exit.

If no-net is given as the server-host, LSMon will search the local


machine for commuted licenses.

2-28
Software Licensing 2-29

2.8.4 Log File Reader


The Log File Reader is a tool run in Excel to provide analysis of the
license transactions stored in the log file on the SLM server. The tool is
designed to read in one log file and create various reports on peak and
daily use of the licenses.

The Log File Reader is located on your Software CD in the Log File
Reader folder.

Running the Log File Reader


To open up the Log File Reader:
1. Double-click on Basic UM v1.3.xls. (This file is located in the Log
File Reader folder.)
2. Excel opens and the following view appears.

Figure 2.8

3. Click the Enable Macros button to proceed.

2-29
2-30 License Server Tools

Loading the Log File


To load the file into the Log File Reader:
1. Go to the Management worksheet.
2. Click the Clear Data button to remove any existing data. (Excel may
take a few moments to clear all the worksheets.)
3. Click the Load Log File button. The Open view appears.
4. Browse to the location of the log file you want to view.
5. Select the file and click the Open button. (This may take a few
moments depending on the size of the file.)
6. Go to the Processed Data worksheet; the cells have been populated
with data.

Defining the Scenario


The Processed Data worksheet is used to define the various scenarios on
which to report license usage as described in the following sections.

If the License cell is set to All Products, you will be reporting the token
count of the server.
If you select individual licenses, you will be reporting the number of
copies of the license.

Day Usage
This table summarizes the usage per day.

Figure 2.9

The Type_Label cell


should always be
License Returned.

2-30
Software Licensing 2-31

The Licence cell lets you select from two types of options:
All Products. The figure reported is the maximum token count of
the server on that day.
An individual license. The license numbers are listed and you
must choose one. The figure reported is the maximum number of
simultaneous copies of that particular licence in use on that day.

The data presented in this table will also be presented in graphical


format on the Products Graph worksheet.

Breakdown on Computer and User


If you select All Products, this table reports for each the maximum
numbers tokens in use at any time that the user was using the software.

If you selected an individual license, the table reports the maximum


number of simultaneous copies of that particular license in use at any
time that the user was using the software.

Figure 2.10

The Type_Label cell


should always be
License Returned.

2-31
2-32 License Server Tools

Total Time of License Usage


If the Type_Label cell is set to License Returned, then this table sums the
duration of usage (in hours) per license as reported in the log file.

Figure 2.11

The table also allows you to select an individual user, and/or individual
machine, and the Log File Reader will display the number of hours the
reported licenses were in use for.

If All is selected for both User and Computer, the table will report the
total license usage on the log file.

2-32
Software Licensing 2-33

Log File Reader Worksheets


Worksheet Description
Management Consists of two buttons which allow you to load a log file, or clear
existing log file data.
(Products Graph) Provides a graphical display of the data contained within the log
This only appears file. The graph is linked to provide a graphical report of the data
when a log file is contained in the Day Usage table (on the Processed Data
loaded. worksheet). Use standard Excel graphical functions to change the
format of the graph.
To change the date label that the graph reports, click the
Date_Label button at the bottom of the page and check/uncheck
dates accordingly.
Click on License to change the display to a new license or to All
Products. (The raw data for this license will then also appear in the
Day Usage table on the Processed Data worksheet).
Processed Data This worksheet displays the data from the log file and sorts it by
specified parameters (i.e., by license, user, etc.).
Raw Data This worksheet displays all the data from the log files in columns.
Click on the column headings to filter the data. This worksheet is
most useful to users familiar with the structure of the log files.
Data Quality This worksheet displays times and dates of server shutdown and
startup.

2.8.5 LSUsage
LSUsage is a command line utility that displays a summary of
application usage, providing information on license transactions
contained in the license server usage file. At the command line, enter
the name and path of the LSUsage logfile. Where logfile is the name you
have given to the log file. The log file displays the following information:

Element Description
Feature name/ Identifies the license for which this entry was made.
Version
%age Denied The percentage of requests for this license that were denied
(usually because the hard limit of the license had already been
reached).
%age Issued The percentage of requests for this license that were granted.
Ttl Keys Issued The number of licenses for this license that were issued.
%age Queued The percentage of queued license requests that were granted.
granted
%age Qreq. The percentage of license requests that were placed in the
license queue. (License requests are queued only if license
queuing is enabled for this license.

2-33
2-34 User Options

Element Description
Min. App. Duration The minimum number of minutes the application for this license
was in use.
Avg. App. Duration The average number of minutes the application for this license
was in use.
Max. App. Duration The maximum number of minutes the application for this license
was in use.
LOG REPORT FOR The session numbers for this license server that were logged in
Sessions: x this file.

2.8.6 LSWhere
LSWhere is a command line utility used to display the network names of
the computers running the license server. By default the address of the
computer that the license server is running, as well as its host name, is
displayed. You can specify the following options:

Option Description
-d Displays details on the license servers found on the network. This is the
default setting.
-r Displays just the IP or IPX addresses of the license servers found on the
network.

2.9 User Options


There are two user options:
Setting User Alerts
Setting Group Reservations

2.9.1 Setting User Alerts


Alerts let you know about certain license events. There are seven alert
types that can be generated using two different reporting types.

The path to the configuration To enable alerts, you need a configuration file with information on the
file is specified by the license codes in the license code file. The configuration file, lservrc.cnf,
LServrcCNF environment
variable. is a general purpose configuration file associated with a particular
license file.

2-34
Software Licensing 2-35

Each alert action has the following format:


<alert-type> = <reporting-type1> ON/OFF <reporting-type2>
ON/OFF

where alert-type can be:


softlimit. Softlimit exceeded.
hardlimit. Hardlimit exceeded.
appstart. License issued.
appstop. License returned.
denied. License denied.
apptimeout. License time-out.
expired. License expiration date.

and reporting type can be:


Line continuation is not email. E-mail will be sent to recipients given after EMAIL=.
supported, so all e-mail script. The script given after SCRIPT= will be invoked.
addresses must fit on one line.
Maximum length of line is 512
characters. In order to use e-mail alert, you must configure the license server using
lsmail.exe. Run this program. At the prompt, enter the host name or IP
address of an MS Exchange server.

2-35
2-36 User Options

This is an sample configuration file of lservrc.cnf, normally placed in


the directory where the license server is installed:

[AEA_HYSYS_Process *]
softlimit = SCRIPT OFF EMAIL OFF
hardlimit = SCRIPT OFF EMAIL OFF
appstart = SCRIPT OFF EMAIL OFF
appstop = SCRIPT OFF EMAIL OFF
denied = SCRIPT OFF EMAIL ON
apptimeout = SCRIPT OFF EMAIL OFF
expired = SCRIPT OFF EMAIL OFF
EMAIL= Administrator@hyprotech.com
[AEA_HYSYS_Dynamic *]
softlimit = SCRIPT OFF EMAIL OFF
hardlimit = SCRIPT OFF EMAIL OFF
appstart = SCRIPT OFF EMAIL OFF
appstop = SCRIPT OFF EMAIL OFF
denied = SCRIPT OFF EMAIL ON
apptimeout = SCRIPT OFF EMAIL ON
expired = SCRIPT OFF EMAIL OFF
EMAIL=Administrator@hyprotech.com
[* *]
softlimit = SCRIPT OFF EMAIL ON
hardlimit = SCRIPT OFF EMAIL OFF
appstart = SCRIPT OFF EMAIL OFF
appstop = SCRIPT OFF EMAIL OFF
denied = SCRIPT OFF EMAIL OFF
apptimeout = SCRIPT OFF EMAIL OFF
expired = SCRIPT OFF EMAIL OFF
EMAIL=Administrator@hyprotech.com

This configuration file requests the license server to send an e-mail


through lsmail.exe if:
a license is denied for HYSYS.Process or HYSYS.Dynamic.
a license times out for HYSYS.Dynamic.
the softlimit is exceeded for all the features available in the
license file ([* *]).

2-36
Software Licensing 2-37

2.9.2 Setting Group Reservations


Group reservations allows you to associate user groups with each
feature; each of these user groups is then reserved in a pool containing a
certain number of licenses for that feature. Any licenses not specifically
reserved fall in to the general pool.

A group specification consists of the following:


name of the feature for which the reservation applies,
name of the group,
number of licenses reserved for that group, and
login names of users/host IDs of computers belonging to that
group.

The groups must be mutually exclusive. Different groups for the same
feature should not have common users or computers. The number of
licenses reserved for a feature cannot exceed the number of concurrent
copies specified in the license code for that feature.

When the license server receives a request, it checks whether the user
making the request belongs to a group. If soand licenses are available
for that groupthe license server issues the license(s) and removes it
from that groups pool. Otherwise, requests are serviced with licenses
from the general pool until no licenses are available.

Setting a Group Reservation File


Group reservation information is normally held in a text file called
lsreserv (no extension). By default, this file should be placed in the
Sentinel server directory; this is the same location as the server program
(usually lservnt.exe) and the license file (lservrc).

By default, this location is:


C:\Program Files\Rainbow Technologies\SentinelLM Server
7.1.1 Server\<Language>

Where Language is set during the server install. If desired, the LSReserv
environment variable can be used to set a different file name or path.

2-37
2-38 User Options

Group reservations should be entered according to the following format,


with one group per line:
The characters $ and ! have feature_name[ ,ver
special meaning. $ indicates ]:group_name:num_of_licenses:{user_name | computer}
the name is a computer name,
and ! indicates a logical NOT.
One or more username and/or computer name may be specified, but at
least one value must be specified in the last field. User and computer
names should be separated by a space. The version number is optional.
If no version number is specified, only the feature name is used. (At this
time, feature version number is not supported by SLM.)

The reservation specifications are case sensitive; please ensure that the
License Feature Name, User Name, and Computer Name are all in the
correct case or they will not be used by the reservation utility. If you are
unsure of the case context of the names you are using, set up a log file
(see description of the LServOpts environment variable for details);
make sure you use the same case/spelling for the names as shown in
your log file.

Sample Group Reservation File:

## This is a sample Group Reservation file


## File name: lsreserv
## In this sample there are 3 Dynamics licenses being reserved for
## the user group Dynamics_Experts which contains 4 individuals;
## if there are more than 3 Dynamics licenses available
## on the server the remainder will be available for general use.
## Additionally anyone logging in to the computer named Control
## may access Dynamics. Michael is not allowed to access Dynamics
## at all (even via Control).
AEA_HYSYS_Dynamics:Dynamics_Experts:3:Bob John Mary Doug $Control !Michael

Excluding Users/Computers from Using a Feature


Specifying a user/computer in a group using the logical NOT (!) will
exclude that user/computer from any use of that feature. This means
that the user/computer will be prevented from using that feature even if
there are licenses available in the general pool.

2-38
Software Licensing 2-39

2.10 Troubleshooting
Additional troubleshooting This section is designed to give you answers to some of the common
information is available at
www.hyprotech.com/support.
problems encountered when setting up your licensing software. Please
work through the following checklists if you encounter any problems.
If you have gone through the checklist and you still have problems,
contact your local technical support centre as outlined in the Technical
Support section.
Before contacting Technical Support, please ensure that you have
checked that your
1. system clock is correct. Your licenses have a start date and end date.
Your clock must be correct for the licenses to function.
2. hardware key can communicate with the SLM security software.
(See Section 2.8.1 - Echoid32). Your licenses are locked to the
hardware key and will not function without access to the key.
3. licenses are properly installed.
When contacting Technical Support, you will be asked to supply five
pieces of information:
1. Product name(s) with which you are having problems (e.g., HYSYS).
2. System Configuration:
Licensing scheme. Standalone/standard network/token network
For Network licensing, where the application is installed locally/on
an application server.
3. An exact description of the error encountered: i.e., what happened,
when did the error happen (during installation, startup, when
opening a case, etc.) and most importantly, the specific text of the
error message(s) received (preferably screen shots should be
supplied).

The error message is the most important piece of information required


to troubleshoot your problem.

4. A copy of your license file.


5. The Echoid32.txt output file generated by running the Echoid32
application on the computer to which the hardware key is attached
(refer to Section 2.8.1 - Echoid32).
Giving us this information will help us solve your problem faster.

2-39
2-40 Troubleshooting

2.10.1 Port/ID Key Problems


If you run the Echoid32 application (refer to Section 2.8.1 - Echoid32)
and no lock code is displayed:
ensure that the SLM key is properly attached to the computer.
(Refer to Section 2.3 - Installing the Hardware Key for details.)

SLM Parallel Port Keys


If your key is properly attached to the server and still no lock code is
displayed:
ensure that you have installed the Sentinel system drivers used
by the server to communicate with the SLM key.

Install the drivers by running the setup.exe program from the Driver
folder of the Software CD. This installation is silent (i.e., there will be no
status messages). To check that the driver is installed, examine the
program list in Windows Settings\Control Panel\Add\Remove
Programs; you should see an entry for Sentinel System Driver.

Green Serial Port Keys


If your key is properly attached to the server and still no lock code is
displayed, please ensure that the port in use is either COM1 or COM2.
The SLM security does not support serial ports beyond COM2.

If you still cannot communicate with your key, then either the port is
occupied (by another program e.g., the Hot Sync Manager used by
Personal Digital Assistants), or the key/port is not functioning. To test if
the port is working properly, try connecting a printer or other device to
the port. If you do not have a device to attach to the port you can also try
installing the software on another computer.

2-40
Software Licensing 2-41

2.10.2 Network Problems


If your license server cannot be located using the WLMAdmin tool (see
Section 2.8.2 - WLMAdmin) then review the following checklist:
Have you installed the license server software on the server (refer
to Section 2.5 - Using Network Licensing)? If so is the
SentinelLM service running?
Check that the server is running. If the server is not running, start
the server as explained in Section 2.5 - Using Network
Licensing.
If the server is not on the same subnet, try specifying the IP
address of the server by defining the server in the Defined Server
List in WLMAdmin.
Check that the LSHost or LServOpts environment variable/file is
not set to NO_NET (refer to Section 2.7.1 - LSHost).
Check that there is no problem with your network. Ensure that
your workstation and server machines can communicate properly
(e.g., use the 'ping' command to test communication between
client and server).

If you can see the licenses on the server using WLMAdmin, but you
cannot connect to the server with the application, then review the
following checklist:
If license server is outside of your subnetwork, you need to set
the LSHOST environment variable/file on the client to point to that
server (refer to Section 2.7.1 - LSHost).
Check that the host name or IP address that you specified for the
LSHOST or LServOpts environment variable is entered correctly
(refer to Section 2.7.1 - LSHost).

If the license server can be located using WLMAdmin and the license file
is in the correct place but you do not see any licenses, or you see the
wrong licenses, then review the following checklist:
Did you stop and restart your license server after installing the
licenses on your server as described in Section 2.5 - Using
Network Licensing?
You may be experiencing network problems.

If you still cannot see the licenses you require, you may not have
purchased those licenses. If this is the case, go to our Web site or contact
your sales representative about purchasing the needed licenses.

2-41
2-42 Troubleshooting

2.10.3 Common Error Messages


6. This feature is node locked but the request for a key came from a
machine other than the host running the SentinelLM server usually
occurs with Unable to check out license.
Meaning: License for this product or feature was found but the
locking information couldn't be authenticated; i.e., the license file
was located but the lock code in the file couldn't match any of the
lock nodes (security key or other hardware containing lock
code) available.
Possible causes: the key/port is not functioning; either the key or
the lock code in the license file are wrong (i.e., the 2 are not
matched); the license file was generated for a standalone
installation and is being used on a key server computer.

18. No such feature recognized by server.


License for this product or feature could not be found; either the
license file could not be located or the license file does not
contain authorization for the required product or feature (if this is
a network installation, this could be confirmed by running
WLMAdmin and checking which licenses are available from the
key server).

2-42
Get Started 3-1

3 Get Started

3.1 Starting HYSYS ................................................................................3

3.2 Steady State Case............................................................................7

3.3 Dynamics Case ..............................................................................22

3-1
3-2 Get Started

3-2
Get Started 3-3

The Get Started section gives a quick introduction to HYSYS by recalling


a saved case and illustrating how to navigate through HYSYS.

3.1 Starting HYSYS


To start HYSYS:
1. Click on the Start menu in Windows.
2. From Programs menu, select Hyprotech then HYSYS 3.1.
3. Select HYSYS. HYSYS begins to load.

HYSYS Icon Now you are ready to begin working with HYSYS. The HYSYS Desktop is
the first thing you will see:

Figure 3.1

Menu bar Toolbar Desktop Minimize/Maximize/Close icons

Trace Window

3-3
3-4 Starting HYSYS

This view has been resized; your Desktop view should appear larger
than this when initially opened. To re-size the view, click and drag the
outside border. To make the view full size, click the Maximize icon in the
upper right corner.

Before opening the pre-built Get Started case, you should choose the
HYSYS unit set used for displaying information. You can check your
current unit set by accessing the Session Preferences from the menu bar:
1. From the Tools menu, select Preferences. The Session Preferences
view appears.
2. Click on the Variables tab. The Units page should be open by
default. The Current Unit Set is shown highlighted in the list of
Available Unit Sets. The HYSYS default is SI; however the Get Started
example has been developed in Field units.

Figure 3.2

The default unit set is SI.

This Close
icon is found
on every
view.

Click on the Variables tab


to access the Units page.

3. Click on Field to make it the current unit set.


4. Click the Close icon to close the Session Preferences view.

3-4
Get Started 3-5

Recalling the Simulation Case from Memory


Included with your HYSYS package are a number of pre-built simulation
cases located in the Samples subdirectory of the HYSYS root directory.
One of these cases is named gstrt-ss.hsc and is the example used here.
To load the case:
1. Do one of the following:
Click the Open Case icon on the toolbar.
Open Case icon
From the File menu, select Open then Case.
Press CTRL O.

The Open Simulation Case view appears.

Figure 3.3

2. Open the Samples subdirectory and scroll through the list of files
until gstrt-ss.hsc is visible.

3-5
3-6 Starting HYSYS

3. Click on gstrt-ss.hsc, then click the Open button. The pre-built


simulation case appears on your Desktop.

Figure 3.4

Saving the Case Under a New Name


Before working with this case, you should save it using a new name to
ensure that the original file remains intact.
1. Do one of the following:
From the File menu, select Save As.
Press CTRL SHIFT S.

The Save Simulation Case As view appears.

3-6
Get Started 3-7

2. Type a new name, for example MYCASE, in the File name field. Note
that you do not have to enter the .HSC extension; HYSYS will add it
automatically.

Figure 3.5

3. Click the Save button, and HYSYS saves your case with the new
name.

3.2 Steady State Case


This steady state simulation models the production of propylene glycol.
Using a continuously-stirred-tank reactor (CSTR), propylene oxide and
The Steady State - Dynamic
toggle on the toolbar indicates water are reacted at atmospheric pressure. The reaction is exothermic,
that you are currently in so a coolant is circulated to the reactor to maintain its temperature. The
Steady State mode.
reactor effluent, consisting of propylene glycol and unreacted feed, is
fed to a distillation column. In the column, 99.5 mol% glycol is produced
from the bottoms, while unreacted propylene oxide and water are
recovered overhead.

Three windows, or views, are currently displayed on the HYSYS Desktop.


Each view is identified by its title at the top of the view. The current
active view is the PFD, which is a graphical representation of the process
flowsheet.

3-7
3-8 Steady State Case

Figure 3.6

Unit operation icon for a CSTR reactor. Stream icon Maximize icon

The PFD has its


own toolbar.

Zoom All icon Properties table for Reactor Prods.

The PFD shows:


The streams and unit operations, represented by symbols (called
icons), in the flowsheet.
The connectivity amongst the streams and unit operations.
A property table for the Reactor Prods stream.

If you want, you can re-size the PFD view to make it more readable.
1. Do one of the following:
Click and drag the outside border to the new size.
Click the Maximize icon in the upper right corner of the view.
2. Click the Zoom All icon to zoom-in on all items in the PFD, filling the
resized view.

You can display summary information for a particular object (stream or


operation) simply by placing the cursor over the objects icon. For
example, position the cursor over the icon for stream Prop Oxide. A fly-
Stream Fly-By
by view appears at the cursor tip, showing the stream temperature,
pressure and molar flow.

3-8
Get Started 3-9

Accessing Stream Information from the PFD


For detailed information on the Every stream and operation (object) contained in a HYSYS simulation
information in this section, see
has its own property view, which contains multiple tabs and related
Chapter 3 - Streams in the
Operations Guide. pages of information or properties describing the object. You can access
the property view for a stream directly from the PFD by simply double-
clicking on the stream icon.

For example, to see the property view for one of the streams entering the
reactor, double-click on the Reactor Vent icon on the PFD. The property
view for the Reactor Vent appears as shown in the figure below.
Reactor Vent Icon

Figure 3.7

Conditions, Properties,
Composition, Notes
and K Value are all
pages associated with
the Worksheet tab.

Property view tabs are


listed along the bottom.

When an objects property view is initially opened, it displays the first


page on the first tab of the view. For the Reactor Vent property view, the
first tab is the Worksheet tab; its first page is the Conditions page. Tabs
are listed along the bottom of an objects view. Each tab has associated
pages that are listed in the column on the left side of the view. Change
the page or tab by clicking on the page or tab.

Conditions Page
The Conditions page of the Worksheet tab gives the basic conditions of
the stream: the vapour fraction, temperature, pressure, material flows
and heat flow (enthalpy).

3-9
3-10 Steady State Case

Properties Page
You can manipulate the The Properties page of the Worksheet tab displays all the Transport
Property page for all streams,
by using the Correlation
Properties for each stream phase. You can manipulate the properties
Manager. displayed on this page for an individual stream. The properties from the
Refer to Section 11.18 - Conditions page are not available for this page.
Correlation Manager in the
User Guide for more
information about the
Correlation Manager. Composition Page
The Composition page of the Worksheet tab displays the material
composition of the stream. In this case, five components are displayed
along with the liquid volume flow for each component. You can display
the composition on another basis, such as mass or molar fraction, by
clicking the Basis button.

Figure 3.8

Basis
button.

3-10
Get Started 3-11

K Value Page
The K Value page of the Worksheet tab displays the K values or
distribution coefficients for each component in the stream.

Figure 3.9

Electrolytes Page
In this case, there are no electrolytes being used, so an Electrolytes
page does not exist. Shown below is only an example of the Electrolytes
page.

The Electrolytes page is only The Electrolytes page of the Worksheet tab displays true species phase
available if the stream is in
an electrolyte system.
properties and compositions of an electrolyte stream.
Refer to Section 1.2.4 -
Adding Electrolyte
Components in the
Simulation Basis manual
for more information about
electrolytes.

3-11
3-12 Steady State Case

Figure 3.10

The Electrolytes
page is only visible
when an
electrolytes case is
loaded.

This page contains two radio buttons for phase selection:


Aqueous
Solid

There are two radio buttons corresponding to each phase selection:


Properties
Composition

The following are the combination views for the selection of the radio
buttons under Phase and True Species Info groups.

Phase True Species Info Display


Aqueous Properties Aqueous phase related properties like pH value, Osmotic
Pressure and Ionic Strength.
Composition The concentrations calculated on ionic basis. The real ionic
species from the aqueous phase are also shown.
Solid Properties Scale tendency* value for each solid in the lists. User can choose
to include or exclude the solid component in the list for the stream
thermo flash by checking the Include checkbox.
Composition Concentrations that are the same as in the traditional stream
phase view. But the solid component list indicates if the solid
component is a precipitate or a hydrate.

* It is a measure of the tendency of a solid species forming at the specified stream conditions.
Solids with a scale tendency index greater than one will form if the solid formation is governed
by equilibrium (as opposed to kinetics) and if there are no other solids with a common cation or
anion portion which also has a scaling tendency greater than one. If more than one solid exists
with a common ion and scaling tendency greater than one, then at least one will form. You can
use scaling tendencies to learn more about which solid can safely be deleted from the model.

3-12
Get Started 3-13

User Variables Page


The User Variables page of the Worksheet tab allows you to write and
attach code as a User Variable to extend the functionality of your stream.

Once you have finished examining the stream properties, close the view
Close icon using the Close icon in the upper right corner of the view. The next time
you open the property view, it will open to the last page that you
accessed before closing the view.

Cost Parameters Page


For more information You can enter a cost factor value for the stream in the Cost Parameters
regarding cost parameters
page of the Worksheet tab. You can also choose the flow basis associated
refer to the Sizing manual.
with the cost factor from the Flow Basis drop-down list.

Figure 3.11

3-13
3-14 Steady State Case

The remaining property view tabs and their associated pages are
explained below.

Attachments Tab
Figure 3.12

The Attachments tab consists of the following pages:


Unit Ops Page. Lists the unit operation(s) to which the stream is
attached.
Utilities Page. Allows you to create and attach utilities to the
stream.
DRU Stream Page. Allows you to add a transfer stream.

3-14
Get Started 3-15

Dynamics Tab
Figure 3.13

The Dynamics tab consists of the following pages:


Specs Page. Applicable only in Dynamics mode. You activate
dynamic specifications on this page.
Stripchart Page. Provides an automatic way to create a strip
chart for monitoring stream variables while running in Dynamics
mode.

3-15
3-16 Steady State Case

Using the Workbook to Change a Stream Temperature


Click the Workbook icon on the HYSYS toolbar to change the current
view to the Workbook.
Workbook icon
Figure 3.14

The temperature
of Reactor Prods
is currently
135oF.

Lists the unit operations to


which the stream is attached.

The Workbook view displays tabular information pertaining to the


streams and unit operations in the simulation. You can also add, delete
or modify streams and unit operations in the Workbook. The first tab of
the Workbook, Material Streams, displays for each stream the same
information that is available on the Conditions page of the stream
property view. You can view the streams that are not currently visible by
re-sizing the view, or by clicking repeatedly on the vertical scroll arrow.

The remaining Workbook tabs include:


Compositions. Displays the composition of each material
stream.
Energy Streams. Displays the name and heat flow of each
energy stream.
Unit Ops. Lists summary information for all unit operations.

3-16
Get Started 3-17

Suppose you want to investigate the amount of cooling required to


maintain the reactor at certain temperatures. The reactor is currently
operating at 135oF, which is the temperature of the product Reactor
Prods (as shown in the previous figure).

To see the cooling requirement to achieve this temperature, move to the


Energy Streams tab in the Workbook.

Figure 3.15

The reactor cooling requirement is Click here to move to the


represented by the Heat Flow of Energy Streams tab of the
the stream Coolant. Workbook.

The cooling duty required to maintain the specified reactor temperature


is 4.8 MMBtu/hr, the Heat Flow of the energy stream Coolant. Check the
cooling requirement for outlet temperatures of 100oF. The reactor
temperature is set by the specification on the outlet stream Reactor
Prods.

Workbook values shown in To specify the new separator temperature:


blue are user-specified.
Values in black are calculated 1. Return to the Material Streams tab in the Workbook by clicking on
by HYSYS. the tab.
2. Select the temperature cell for the Reactor Prods stream.

3-17
3-18 Steady State Case

3. Type 100, the press ENTER. HYSYS will automatically re-calculate the
Flowsheet based on the new temperature.

Figure 3.16

Enter 100 in the Temperature


cell for Reactor Prods.

4. Return to the Energy Streams tab to see the re-calculated cooling


requirement.

Figure 3.17
You might expect the cooling
requirement to increase as
the reactor temperature is
lowered. However, the
reaction has two attributes
that dominate the reactors
heat balance: The temperature change has decreased the required cooling duty to 4.4
1. The reaction produces MMBTU/hr.
heat proportional to the
amount of reaction
occurring. Suppose you want to examine the cooling duty at a number of other
2. Less reaction occurs at temperatures. Instead of repeating the above procedure for each new
100oF than at 135oF. temperature, the HYSYS Case Study feature will automatically make
So by lowering the reactor changes and tabulate the results for you.
temperature, less reaction is
taking place and less heat is
produced by the reaction.
Therefore, less cooling is
required.

3-18
Get Started 3-19

Using the Case Study


The third view open on your Desktop is the Case Studies view. To access
this view:
1. From the Window menu, select Case Studies -Main.

The three views that are currently open on the Desktop are listed at
the bottom of the menu. A checkmark indicates the view that
currently has focus. In this case, it is the Workbook view.
2. The Case Studies view appears as shown in the figure below.

Figure 3.18

The Case Studies view shows a plot of the separator cooling duty and the
Glycol stream molar flow rate (dependent variables) versus the
separator temperature (independent variable).

Case Study 1 has been configured to calculate and plot values over an
independent Temperature range of 75F to 130F with an increment of
10F. You may actually want to observe the results over a wider range.

3-19
3-20 Steady State Case

To change the bounds of the independent variable for the case study:
1. Click the Setup button on the Case Studies view. The Case Studies
Setup view appears.

Figure 3.19

Leave the Low Bound at its value of 75F, and the Step Size as 10F.
2. Change the High Bound value to 215F.
3. Click the Start button.
4. Click the Results button.

HYSYS begins calculations immediately, solving the Flowsheet at each


temperature and plotting the results on the Case Studies view. When the
Flowsheet has been solved at the final temperature of 215F, calculations
will stop automatically.

3-20
Get Started 3-21

The final Case Studies view is shown in the following figure.

Figure 3.20

The Case Study shows that the cooling requirement increases to its
maximum value at approximately 125F and then decreases, while the
glycol production rate increases over the entire temperature range.

You have now completed your first HYSYS steady state simulation! You
can save your case by doing one of the following:
Click on the Save icon on the toolbar.
From the File menu, select Save.
Save icon Press CTRL S.

You are now free to explore this case on your own. If you want, you can
continue on with the Dynamics Case in the next section, or quit HYSYS
by doing one of the following:
From the File menu, select Exit.
Click the Close icon in the right corner of the HYSYS desktop.

3-21
3-22 Dynamics Case

This case has been set up to


If you have made any changes to your case since the last time it was
run without any modifications saved, HYSYS will prompt you to save before exiting.
from the dynamic assistant.
However everything will still

3.3 Dynamics Case


work if the changes are made.
The dynamic assistant can be
toggeled on/off in the
preferences found under the
Tools menu.
The previous steady state section of this example continues with the
addition of a reactor control scheme in dynamics mode. To open the
case:
1. Do one of the following:
Click the Open Case icon on the toolbar.
From the File menu, select Open then Case.
Open Case icon Click CTRL O.

The Open Simulation Case view appears.


2. Open the Samples directory. Scroll through the list of files until
gstrt-dy.hsc is visible.
3. Click on gstrt-dy.hsc, the click Open. The pre-built simulation case
opens on the Desktop.

3-22
Get Started 3-23

Figure 3.21

Face plates Integrator

As with the steady state case, you should save this case under a new
name before making any changes.
1. Do one of the following:
From the File menu, select Save As.
Press CTRL SHIFT S.

The Save Simulation Case As view appears.

3-23
3-24 Dynamics Case

2. Type a new name, for example MYCASE2, in the File Name field.

You do not have to enter the .hsc extension; HYSYS will add it
automatically.

3. Click the Save icon, and HYSYS saves the simulation case under its
new name.

This case is a dynamic model of the propylene glycol reactor from the
steady state portion of the example. The PFD shows the control scheme
If the PFD is not open, you for the reactor, which includes the following three controllers:
can open it by clicking the
PFD icon on the toolbar.
Controller Action
Reactor LC Controls the liquid level in the reactor by manipulating the reactor
outlet flow.
Reactor TC Maintains the reactor temperature by manipulating the coolant flow.
Glycol Conc Controls the concentration of propylene glycol in the reactor outlet
stream by manipulating the flow of the propylene oxide feed.

The face plates for these three controllers are open along the top of the
Desktop. The face plates components are listed in the following table:

Face Plate Field Description


PV Cell The PV cell shows the current value of the Process Variable, or
controlled variable. For example, the PV for the Reactor LC is the
percent liquid level in the reactor. The current Set Point for the
Process Variable is indicated by the red pointer on the top of the
PV cell.
OP Cell The OP cell displays the current value of the controller Output as a
percentage.
Controller Mode Provides a drop-down list of the available controller modes.
Drop-Down Currently, two of the controllers are in Automatic mode and the
third is in Manual mode.

The face plate for the Reactor LC (level controller) is shown below:

Figure 3.22

PV cell. Set Point


indicator.
Drop-down for
OP cell.
controller modes.

3-24
Get Started 3-25

In addition to the PFD and controllers, two other views appear on the
desktop. They are:
You can also start and stop The Integrator, which lets you to start and stop dynamic
dynamic calculations using calculations.
the Integrator toggle icons in
the toolbar.
The Reactor Key Variables view that is currently behind the PFD.
To display this view, click on its title bar. The view is a customized
HYSYS Strip Chart, on which the values of selected key variables
will be plotted during dynamic calculations.

The green icon (left) starts In Dynamics mode, HYSYS performs flowsheet calculations with each
the integrator. The red icon time step. Currently, the Step Size is 0.5 seconds, so HYSYS will perform
stops it.
flowsheet calculations for every 0.5 seconds of real plant time.

In this example, the CSTR reactor will be set up from an empty condition
using the following procedure:
1. Fill the vessel with water until the level set point is reached, at which
time the Reactor LC controller will open the outlet control valve to
maintain the level.
2. Slowly introduce propylene oxide into the reactor while observing:
The Reactor TC controller maintaining the reactor temperature.
The concentration of propylene glycol in the product stream.
3. Switch the Glycol Conc controller to automatic mode to maintain
the product concentration at a specified set point.

Starting Dynamic Calculations


Switch to dynamics mode by clicking the Dynamics mode icon on the
toolbar. HYSYS will indicate that the Dynamics Assistant has identified
Dynamics mode icon items that need attention, click No.

Ensure that the Reactor Key Variables view is visible by clicking on its
title bar. To begin, click the Start button on the Integrator. HYSYS will
again indicate that the Dynamics Assistant has identified items that
need attention, click No.

The reactor will begin to fill and the values of the process variables will
immediately be displayed on the controllers and plotted on the strip
chart. When the Current Time reaches about 55 minutes, click the Stop
button.

3-25
3-26 Dynamics Case

Figure 3.23

To check the current level set point, place the cursor over the The Current Time displays
Set Point Indicator. When the cursor changes to a double- the real plant time.
headed arrow, left-click and hold.

The rising vessel level is plotted on the Product Coolant rate


Strip Chart and displayed in the PV cell of temperature
the Reactor LC controller.

Notice that the reactor level rises linearly as the vessel fills to its set point
of 85%.

If you want to reset dynamic calculations, click the Reset button on the
Integrator. Then click the Start button to restart the calculations from
zero. HYSYS will ask for confirmation before resetting the values.

Click the Continue button on the Integrator. As the reactor level


approaches its set point, the Reactor LC controller will open the outlet
valve to maintain the level. When the current time reaches
approximately 125 minutes, click Stop and view the results.

3-26
Get Started 3-27

Adding a Process Disturbance


Click the Continue button of the Integrator. When the reactor level and
product volume flows reach a steady state value, at about 200 minutes,
click Stop. To add the disturbance, introduce some propylene oxide into
the reactor by doing the following:
1. Double-click on the OP cell on the Glycol Conc controller face plate.
2. Type 25, then press ENTER. The control valve for the propylene oxide
feed will open 25%.
3. Note the Current Time displayed on the Integrator.
4. Start the Integrator again.
5. After the Current Time has increased by about 70 minutes, stop the
Integrator.

As a result of the disturbance:


The reactor temperature increases due to the exothermic
reaction. The reactor coolant will increase in flow to maintain the
reactor temperature at 110F.
The outlet flow increases to maintain the reactor level because of
the increased feed.
The propylene glycol begins to appear in the product stream.

3-27
3-28 Dynamics Case

Figure 3.24

Increase in cooling requirement Increase in reactor Propylene glycol concentration at 3.7%.


due to the reaction. outlet flow.

If you want, start the Integrator again and try entering other values for
the OP, such as 40 or 50%, and watch the response.

The next step is to switch the composition controller Glycol Conc to


automatic mode and let it maintain a concentration set point. Use a set
point of 0.25 mole fraction propylene glycol. Before changing the set
point, stop the Integrator again.

3-28
Get Started 3-29

To change the set point follow the procedure outlined below:

Figure 3.25

Place the cursor


over the set point
Open the drop-down Click on Auto in the indicators, and the
list of controller drop-down list to cursor will change
modes by clicking on change the controller to this double-
this arrow. mode. headed arrow.

Alternatively, you can enter


an exact set point by typing
the value in the PV cell, then
pressing the ENTER key.
With the double-headed Click and drag to slide the
arrow visible, click and hold. set point to the right. The set
This white box will appear, point value will change as
displaying the current set you drag. Release the left
point value. mouse button when you
reach the new set point.

If you want at any time to After you have entered the new set point, start the Integrator again. The
reset dynamic calculations
and begin filling the vessel
system will react to the new set point as follows:
again: The flow of propylene oxide feed increases because the
1. Click the Reset button. composition controller wants to raise the concentration of glycol
2. Return the Glycol Conc in the product stream.
controller to Manual The reactor level rises as a result of the higher feed rate; the
mode. product flow therefore increases to maintain the level set point.
3. Enter a value of 0 in the The reactor temperature rises because more exothermic reaction
OP cell of the Glycol Conc is taking place, and the coolant flow increases to compensate for
controller. this temperature change.
4. Click the Start button.

3-29
3-30 Dynamics Case

Figure 3.26

Coolant flow increases to accommodate for More propylene glycol starts


the extra heat introduced by the reaction. appearing in the product stream.

Feel free to experiment by changing either of the other set points and
watch the response. When you are finished, stop the Integrator.

You have now completed your first dynamic simulation using HYSYS!
Before moving on, you can save your case by doing one of the following:
Click the Save icon on the HYSYS toolbar.
From the File menu, select Save.
Save icon
Press CTRL S.

If you want, you can quit HYSYS by doing one of the following:
From the File menu, select Exit.
Press ALT F4.
Click the Close icon in the right corner of the HYSYS desktop.

If you have made any changes to your case since the last time it was
saved, HYSYS will prompt you to save before exiting.

3-30
Get Started 3-31

This concludes the Get Started example. You are encouraged to proceed
to the HYSYS Tutorials & Applications manual. The Tutorial problems
provide a more in-depth look at HYSYS by guiding you step-by-step
through a number of example simulations. Both steady state and
dynamic tutorials are available.

3-31
3-32 Dynamics Case

3-32

You might also like