Calculator is a versatile utility module that allows you to perform calculations using information from the flowsheet and to transfer the results to the other unit operation modules and streams. Calculator is a true unit operation module that interacts with the other flowsheet modules and is calculated along with them. Therefore, its placement in the calculation sequence is very important for the proper execution.
Use any of the following procedures to perform the calculations.
The calculator has two main sections - setup and procedure. The setup section retrieves flowsheet variables involved in the calculations, resizes various arrays, defines invariant constants, sequences streams for DO loop processing and assigns descriptive labels to results. For the data retrieval, access is provided to all stream data, unit operation results and also to the component physical properties for use in the calculations. Special Calculator Intrinsic Functions can be used in the procedure statements for direct retrieval of stream and component properties.
The Procedure section contains FORTRAN-based statements that perform calculations. These statements use the data retrieved in the setup section and stores the results in the R[ ] array. The results from this array can then be referred by other unit operations and streams using the Define system. Also, special Stream Functions can be used to store a calculator result as an overall stream property or as a stream component property.
FORTRAN calculations to model
reactor kinetics are defined in Procedure
Data.
In the Excel procedure, the parameter, constant, stream data, and component properties are transferred to a Microsoft Excel spreadsheet, which invokes a user-defined macro to perform the calculations and sends the results back to PRO/II in R[] array. Other unit operations and streams can refer to the results using the Define system.
In the Excel spreadsheet, if the values of Molar rate, Mass rate, Volume rate, Temperature, or Pressure are changed by macro or by using a formula, special Stream Functions such as SRXSTR are automatically used by PRO/II to re-flash the changed values in the respective streams.
For typical applications that use the calculator module, see Calculator
- Examples.
Procedure Data - General Information