Examples of Entering Calculations

From SysCAD Documentation

Revision as of 07:20, 11 February 2010 by Merry.Huang (Talk)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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

Related Links: Calculation Configuration, Material Flow Section

This page is valid for SysCAD 9.2 and later builds. Refer to Models Configuration (.cfg File) for SysCAD 9.1.

Introduction

This section provides examples of how to enter a Specie 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.

Specie Calculation

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

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

Image:Calculationseg1.png

2. A new calculation with a default name such as Calc00 will appear in the Specie 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.

Image:Calculationseg2.png

(a) Click on the terms button, with the View group selected, double click on "FeSO4(aq)" (under the Species heading). This is the mass flow of FeSO4(aq).

Image:Calculationseg3.png

Type in "*" in the expression window.

Click on the terms button again, and with the Molecular Wt group selected, double click on "MW(Fe)" (under the Elements heading). This is the elemental weight of Fe.

Image:Calculationseg4.png

Type in "/" in the expression window.

Click on the terms button again, and with the Molecular Wt group selected, double click on "MW(FeSO4(aq))" (under the Species heading). This is the molecular weight of FeSO4(aq).

OR (b) 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.

Image:Calculationseg5.png

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.

User Property Calculation

This calculation will be displayed at on the last Qi/Qo tab of the pipe Access Window in SysCAD.

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

Image:Calculationseg6.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.

Image:Calculationseg7.png

(a) Click on the terms button, with the Mass group selected, double click on "m:[FeSO4(aq)]" (under the Species heading). This is the mass flow of FeSO4(aq).

Type in "*" in the expression window.

Click on the terms button again, and with the Molecular Wt group selected, double click on "MW(Fe)" (under the Elements heading). This is the elemental weight of Fe.

Image:Calculationseg9.png

Type in "/" in the expression window.

Click on the terms button again, and with the Molecular Wt group selected, double click on "MW(FeSO4(aq))" (under the Species heading). This is the molecular weight of FeSO4(aq).

OR (b) 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.

Image:Calculationseg10.png

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

6. The View drop down list is not displayed. This is only relevant to Specie Calculations.

7. The Display With drop down list is not displayed. This is only relevant to Specie Calculations.

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.

Document Sections