Excel Procedure

As an alternative to the FORTRAN calculations, use the Excel procedure to perform calculations to determine the results of different input conditions.

In Excel procedure, the specified 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.

An Excel spreadsheet template (ExcelCalculatorTemplate.xlsm) is provided along with the PRO/II application. It is available in the User folder. It has two worksheets, Parameter worksheet and Component worksheet, which are used to transfer data from PRO/II to Excel, and vice versa. Also, all the values are saved according to the UOM set customization in the spreadsheet.

Note: You can customize the spreadsheet to include new macro and new formulas.

To use the Excel procedure

  1. In PRO/II, double-click the calculator unit operation module.

  2. Select the Use Excel Procedure check box.

  3. Select the required Thermodynamic System from the Thermodynamic System drop-down list box.

  4. In Excel Procedure section, enter the details pertaining to the following fields.

Note: If the information entered in any of the above fields is incorrect, an error message is displayed.

  1. Select any of the following check boxes, as necessary.

  1.  “” button will allow the user to select the file. This button will point to TEMP folder if there are any excel templates present in the TEMP folder. If no excel files are present in TEMP folder then it will point to user folder where the default template is present.

If the user selects an excel file from non-TEMP location then it will be copied to the TEMP location immediately. If the file with similar name is already present in the TEMP folder then it will pop-up the following window to select any one option.

  1. Edit button will open the template from the TEMP folder allowing modifying.

  2. Rename button will allow the user to rename the excel file in the TEMP folder.

  3. Click OK.

  4. Run the simulation.

Rules for Transferring Data from Excel Spreadsheet to PRO/II, and Vice Versa.

Note: In the Excel spreadsheet, modification of individual component flow rates for Assay and Spiral streams is not recommended.