Calculator Main Window
This window is used to specify the calculator setup data and select the calculation procedure. For an introduction to the calculator unit, see Calculator - General Information.
Calculation Model
In this section, select the required calculation procedure and the Thermodynamic system.
Check Procedure button
This button becomes available once any text is typed into the procedure section. Pushing this button executes the procedure syntax checker. The "Status" window is then displayed where input errors and warnings, if any, are shown.
Edit/View, Hide Declarations button
This button displays and hides the View Area, where you can define calculator parameters, constants, result names, stream sequence and resize the arrays required for the setup section of the calculator.
View Area
When the view area is displayed, it contains the following buttons. When one of the buttons is pushed, the table corresponding to the selected button is displayed:
Parameters button: When this button is pushed, it displays the Parameters table , where you can specify the stream or unit operation results to be retrieved and assigned to distinct parameter numbers. These results can then be used in the procedure statements using the P(parameter number) variable.
Constants button: When this button is pushed, it displays the Constants table, where you can initialize various constant numbers to numerical values that remain unchanged by any calculation in the procedure section. To use these values in the procedure section, use the C(constant number) specification.
Results button: When this button is pushed, it displays the Results Table, where you can enter descriptive labels for the elements of the R( ) array (where the results of the calculation are stored).
Arrays button: When this button is pushed, it displays the current size of the parameter (P), constants (C), Results (R), DO loop indices (IS, IX) and variable (V) Arrays. These arrays have default sizes of 50, 50, 50, 10, 200 and 10 respectively, which can be changed if desired.
Stream Sequence button: When this button is pushed, it displays two stream lists. The Available streams list contains all the streams that have been drawn in the flowsheet. You must select the streams from which you want to retrieve data or assign results by moving them over to the Selected Streams list. See Stream Sequence for more details.
Procedure
In this section, enter the FORTRAN-based statements which will perform the calculations. The data types that are allowed in the Procedure statements are the arrays that have been defined in the setup portion and numeric values. You can use the normal FORTRAN Mathematical Operators and Intrinsic Functions . Additionally, you can also use Calculator Intrinsic Functions for direct retrieval of stream and component properties and special Stream Functions for storing overall stream or component properties.
Excel Procedure
If you select the Excel procedure for performing the calculations, enter the details pertaining to the following fields and select the required check boxes.
Spreadsheet Name: Browse and select the spreadsheet required for performing the calculations.
Worksheet Name: Enter the name of the worksheet that contains fields for displaying parameters, constants, results, and stream properties, and for transferring them from PRO/II to Excel, and vice versa.
Component Sheet: Enter the name of the worksheet that contains fields for displaying component properties.
Macro Name: Enter the name of the macro defined in the spreadsheet for performing the calculations.
Display Excel during calculations: Select this check box to display the Excel spreadsheet while calculations are performed.
Save Excel after calculations: Select this check box to save the Excel spreadsheet after the calculations are performed.
Keep Excel open after calculations: Select this check box to keep the Excel spreadsheet open after the calculations are performed.
Calculator - General Information