Functions
- Last UpdatedFeb 28, 2025
- 1 minute read
Smart objects use formulas with functions to get the properties of other objects and return calculated values.
The syntax of a function is
object type(object name;object property)
E.g.: Stream(FL1;MASSFLOWRATE)
The object type, object name and object property are case insensitive and you must enter the object property after the object name, with a semicolon (“;”) separator.
The object name cannot have blanks. The equation cannot recognize this character and won’t work.
If the object name has been changed at the flowsheet, the user doesn’t have to change its name in each equation which uses the object name. It will change automatically. The following table lists the available object types in the function.
|
Object type |
Description |
|
Stream |
|
|
StatStream |
The static (or design) data of stream object. |
|
Stream |
The event (or variable) data of stream object. |
|
Process |
|
|
StatProcess |
The static (or design) data of process object. |
|
Process |
The event (or variable) data of process object. |
|
Node |
|
|
StatNode |
The static (or design) data of node object. |
|
Node |
The event (or variable) data of node object. |
|
Tank |
|
|
StatTank |
The static (or design) data of tank object. |
|
Tank |
The event (or variable) data of tank object. |
For example, use StatStream(FL1;MASSFLOWRATE) to get the default mass flow rate for the stream object FL1, where the default mass flow rate can be a numeric value or formula, and Stream(FL1;MASSFLOWRATE) to get the event mass flow rate for the stream object FL1.