Arrays

When the Arrays button is pushed, it displays six array names and their sizes. These arrays are used for retrieving data from the flowsheet, storing intermediate results and exporting the results from the calculator to other unit operations. You can change these array sizes if desired. The arrays listed are:

 

P( ) An array of flowsheet parameters used to retrieve and store stream or unit operations data. The array elements can be used only on the right hand side of Assignment Statements in the Procedure section.

 

C( ) An array of constant values to be used on the right hand side of the assignment statements in the procedure section.

 

R( ) An array of calculator results, which can be used on both sides of the assignment statements in the procedure section.

 

IS( ) An array of elements used as indices of DO loops for stepping through a series of streams in the order defined in the Stream Sequence table. The first index of the array is zero and hence the array indices range from 0..Array size -1. The default size is 10.

 

IX( ) An array of integer values. The first index of the array is zero and hence the array indices range from 0..Array size - 1. The default size is 200.

 

V( ) This is a floating-point work array used to store intermediate results. The elements of this array are initialized to a large negative value and they cannot be accessed from outside the calculator unit. The default size is 10.

 

Usage

 

To display the array list, first push the Edit/View Declarations button if the View Area is not visible. Then push the Arrays... button in the View Area.

 

If you wish to change the size of the array(s), enter the array size in the corresponding data entry field.

 

image\SML_LINE.gif

Related Topics

Calculator - General Information

Calculator Main Window

Calculator Procedure

Excel Procedure