
5-2 Introduction
5-2
5.1 Introduction
User Variables help you to increase the internal functionality of
HYSYS objects, such as streams and unit operations, by
dynamically attaching variables and code to those objects from
within HYSYS itself. User Variables are indistinguishable from
the variables built into HYSYS objects and, as such, can be
added to spreadsheets, targeted by logic controllers, have their
values specified by your input, etc.
For example, you could attach a User Variable to a stream to
ensure that the flow rate is specified lower than a certain value.
Or, you could have a property view appear when a vessel
temperature exceeds a certain value.
User Variables let you attach code written in a Visual Basic
©
compatible macro language to simulation objects and specify
when that code is to execute. In doing so, you have a simple
means of adding extra functionality to any HYSYS simulation.
5.2 Adding a User Variable
You can add User Variables on three levels within your case:
• Flowsheet Object.
User Variables can be added to most HYSYS flowsheet
objects in the User Variables matrix located on the User
Variables page or the User Variables tab, of the
object's property view.
Komentáře k této Příručce