
5-26 User Variable Examples
5-26
5.8.2 Automatic Pump Energy
Stream
The User Variable created in this example automatically adds an
energy stream to a pump operation whenever both Feed and
Product streams are connected. This is accomplished through an
Enumeration type User Variable. The code is such that the work
of creating and connecting the Energy stream to a pump is
performed only once, unless otherwise specified. The energy
streams added is named using the operation name, followed by
“_W.” For instance, the energy stream for pump P-100 is named
P-100_W.
1. Install a pump into the PFD, if the simulation case does not
already have a pump. Open the pump property view.
2. Go to the User Variables page on the Design tab.
3. Click the New User Variable icon from the top of the
matrix.
4. Enter the following information for the fields in the resulting
Create New User Variable property view, as specified in the
following table.
Figure 5.25
Field Input
Name QStream
Type Enumeration
New User Variable icon
Komentáře k této Příručce