Examples of Entering Calculations

From SysCAD Documentation
Jump to navigation Jump to search
Warning! Page you're reading is outdated or was archived and very likely is referring to older version of the software. Please navigate to the most recent version instead.

Navigation: User Guide - General -> Project Configuration (cfg File) -> Calculation Configuration -> Examples of Entering Calculations

Related Links: Calculation Configuration, Material Flow Section, ETip: User Species Calculations


Introduction

This section provides examples of how to enter a Species Calculation and a User Property Calculation in the Project Configuration (cfg File). Please refer to Calculation Configuration for further explanations of all the options available.

The examples will show how to enter the calculation of the mass flow of Fe2+ in a stream. To calculate this we will take the mass flow of FeSO4(aq) and multiply it by the elemental weight of Fe divided by the molecular weight of FeSO4(aq) to give the mass flow of Fe2+ in the stream.

User Property Calculation

This calculation will be appended to the end of the material flow Access Window (eg Qo, QFeed etc), if the "Create New Tab ("User") for User Property Calculations" tick box is selected, then the properties will be displayed in the User Tab of the Access Window.


1. On the Calculations tab page, click on the Add button in the User Property Calculations box.

Calculationseg6b.png

2. A new calculation with a default name such as Prop00 will appear in the User Property Calculations list. The user should click on this name and type in the required calculation name "Massflow_of_Fe2+".

3. With this calculation still selected, the actual expression for the calculation can be inserted into the 'Expression' window. The user may either (a) insert the predefined terms using the 'Terms' button (recommended) or (b) type the required expression.

Calculationseg7b.png

(3a) Click on the Terms button to open the Select Calculation Term Dialog box.

Calculationseg9b.png

Use list boxes at the top of the dialog box to filter out functions.
For example,
  • click on the Species list box to select FeSO4(aq), this will display all the FeSO4 related functions.
  • click on the Phase list box to select l, this will display all the liquid phase functions.
With the above selection completed, double click on "m:[FeSO4(aq)]", this is the mass flow of FeSO4(aq).
Type in * in the expression window.
Click on the Terms button again, click on the Element list box to select Fe, this will display all the Fe related functions, double click on "MW(Fe)", this is the elemental weight of Fe.
Type in / in the expression window.
Click on the Terms button again, double click on "MW(FeSO4(aq))", this is the molecular weight of FeSO4(aq).

OR

(3b) Type "m:[FeSO4(aq)]*MW(Fe)/MW(FeSO4(aq))" in the expression window. This is not recommended as it is prone to the user making errors.

4. From the Cnv Type drop down list, choose "Qm". This means the type of conversion units will be mass flow.

5. User may choose the concealed button if this calculation does not need to be displayed, eg, intermediate calculation.

6. Check that there are no syntax errors by clicking on the Check button.

7. When you have finished editing the calculation configuration tab, you must click on the OK button to accept all of your changes, or the Cancel button to discard all of your changes.

Species Calculation

Please also see ETip: User Species Calculations.

This calculation will be displayed on the species flow tab of the pipe Access Window in SysCAD.

1. On the Calculations tab page, click on the Add button in the Species Calculations box.

Calculationseg1b.png

2. A new calculation with a default name such as Calc00 will appear in the Species Calculations list. The user should click on this name and type in the required calculation name "Fe2+".

3. With this calculation still selected, the actual expression for the calculation can be inserted into the 'Expression' window. The user may either (a) insert the predefined terms using the 'Terms' button (recommended) or (b) type the required expression.

(3a) Click on the Terms button to open the Select Calculation Term Dialog box.

Calculationseg3b.png

Use list boxes at the top of the dialog box to filter out functions.
For example,
  • click on the Species list box to select FeSO4(aq), this will display all the FeSO4 related functions.
  • click on the Phase list box to select l, this will display all the liquid phase functions.
With the above selection completed, double click on "[FeSO4(aq)]", this is the mass flow of FeSO4(aq).
Type in * in the expression window.

Click on the Terms button again, click on the Element list box to select Fe, this will display all the Fe related functions, double click on "MW(Fe)", this is the elemental weight of Fe.

Type in / in the expression window.

Click on the Terms button again, double click on "MW(FeSO4(aq))", this is the molecular weight of FeSO4(aq).


OR

(3b) Type "[FeSO4(aq)]*MW(Fe)/MW(FeSO4(aq))" in the expression window. This is not recommended as it is prone to the user making errors.

4. From the Cnv Type drop down list, choose "FromView". This means the conversion units will be the same as the view the user has chosen. For instance, if the user chooses mass flow, then this calculation will have the units of mass flow.

5. The concealed tick box can be selected if this is an intermediate calculation, ie. the value would not be visible in SysCAD.

6. From the View drop down list, choose "Mass". This will limit the calculation to only being shown in mass views. This is because this calculation is only valid for mass flows.

7. Leave the Display With option as "All". This means the calculation will be shown at the bottom of the species list unless the user has chosen Custom order on the species tab page and has moved it to another location.

8. Check that there are no syntax errors by clicking on the Check button.

9. When you have finished editing the calculation configuration tab, you must click on the OK button to accept all of your changes, or the Cancel button to discard all of your changes.

Example Video

Please see the YouTube link for a short video demonstrating how to add a species custom calculation to a configuration file.