# PHREEQC Flash Tank

Navigation: Models ➔ TCE Models ➔ PHREEQC ➔ PHREEQC Flash Tank

Latest SysCAD Version: 26 October 2022 - SysCAD 9.3 Build 139.31866

## General Description

The PHREEQC solver is called to determine the state of a SysCAD stream. The composition, temperature and pressure of the 'Feed' stream are based on the feed to the unit. The unit will then determine the equilibrium conditions of the resulting stream.

• The PHREEQC Flash Tank is used to 'flash' a feed stream to produce a liquid and vapour product at a set pressure or temperature.
• There are two operational modes for the PHREEQC Flash Tank: (1) as a stand-alone unit; or (2) as part of a Flash Train. The user sets the operational mode of the Flash Tank. However, if the user sets the mode as Flash Train and the Flash Tank is NOT connected to any Flash Train aware destination unit, the model will go to an error state.
• The PHREEQC Flash Tank model may be used as a Crystallizer. Vapour is flashed off and the remaining solution is then supersaturated with the required species. This species then precipitates out as the crystal product.

Notes

1. The user MUST have added and configured a PHREEQC Model Configuration unit in the SysCAD project before this unit can function.
2. The user MUST have installed a version of PHREEQC on their computer to make use of the PHREEQC functionality in SysCAD. Please see https://www.usgs.gov/software/phreeqc-version-3 for more information.

### Diagram

The diagram shows a drawing of the PHREEQC Flash Tank unit, with Feed, Product, Overflow and Vapour streams. When the user inserts the PHREEQC Reactor unit into a flowsheet, a different graphics symbol can be selected from a pull down menu. The streams may be connected to any area of the drawing without affecting the actual connection point as SysCAD ignores the physical position of the connection.

## Inputs and Outputs

Label Input / Output No. of Connections Description
Min Max
Feed Input 1 10 Feed Stream
Overflow Output 0 1 Overflow liquor Stream
Product Output 1 1 Product Slurry Stream - this stream normally contains the majority of the solids.
Vapour Output 1 1 Optional Vent Stream

## Behaviour when Model is OFF

If the user disables the unit, by un-ticking the On tick box, then the following actions occur:

• All material in streams connected to the 'Feed' will flow straight out of the 'Product' outlet, with no change in phase;
• No sub-models will be called.

So basically, the unit will be 'bypassed' without the user having to change any connections.

## Model Theory

The PHREEQC Flash Tank Model uses the PHREEQC algorithms and data to determine the status of the aqueous solution.

Mapping of the SysCAD to PHREEQC streams is done via Species Mapping.

The PHREEQC Flash Tank can be incorporated into a SysCAD flowsheet, it can be connected with SysCAD inlet and outlet streams.

1. User connects the PHREEQC Flash Tank with SysCAD input streams,
2. The SysCAD feed stream(s) using SysCAD species is converted into PHREEQC "Input" using PHREEQC Species. The species mapping is defined in the corresponding PHREEQC Model Configuration unit model.
3. The PHREEQC Flash Tank calls the PHREEQC algorithms to determine the status of the mixture using the converted PHREEQC "input" data.
4. The PHREEQC results are displayed in the "output" tab using PHREEQC species.
5. The results are converted back into SysCAD species. Please see Species Mapping for more information.

NOTES:

• The Input, Output and Diff tab pages are displayed using PHREEQC species, as defined in the PHREEQC database file (.dat)} specified in the corresponding PHREEQC Model Configuration unit model.
• The species used in the SysCAD project are shown on the optional Sp pages, shown as part of the QFeed, QBypass, QUnmapped, QRxnProdBypass and QProd pages.
• The calculations performed are similar to using PHREEQC directly, except the contents of the SysCAD stream are mapped to equivalent PHREEQC species using the settings defined in the PHREEQC Model Configuration unit model. Please see https://www.usgs.gov/software/phreeqc-version-3 for more information.

### Calculation of Osmotic Pressure

PHREEQC calculates the activity of water, which is then used to calculate the osmotic pressure by the Van't Hoff formula. The Van't Hoff formula is:

$\displaystyle{ \Pi=-\frac{RT}{\overline{V}}ln(a_w) }$

where $\displaystyle{ \Pi }$ is the osmotic pressure, $\displaystyle{ \overline{V} }$ is the partial molar volume of water (ideal), and $\displaystyle{ a_w }$ is the activity of water (mole fraction basis).

• This model uses the VLE model of SysCAD, not PHREEQC, for calculating the vapour. The liquid fraction of the stream is fed to PHREEQC to determine the ionic solution properties, which are then used in an iterative manner to calculate the BPE, and ultimately, the temperature, pressure, amount of vapour generated, etc. Thus PHREEQC is used for calculating the liquid and solid fractions of the stream, and SysCAD VLE is used to calculate the vapour.
• The resulting mixture is then separated into vapour and product streams.

## WorkFlow

The suggested workflow for configuring the model is:

1. Make sure the project contains at least one of the PHREEQC Model Configuration model, and the model is loaded with the correct PHREEQC database you would like to use for the PHREEQC Flash Tank model.
2. On the PHREEQCFlashTank tab page, configure the model - methods, pressures, etc.
3. On the TCE tab page, select the correct ChemModel (to match step 1) (Note: In older builds, this selection was made on the PHREEQCFlashTank tab page).
4. Select other TCE options (Bypass, CFE, etc.)
5. Perform an equilibrium calculation by pressing Solve in SysCAD.
6. The Results are displayed in the PHREEQCResults and Output tabs.
7. Check and fix any species mapping issues. (PHREEQC resulting species may change if the operating conditions change, so it is likely a change of temperature or feed composition will result in different PHREEQC species.)

## Data Sections

The default access window consists of several sections:

1. PHREEQCFlashTank tab. This first tab contains general information relating to the unit.
2. TCE tab - This tab allows the user to choose the corresponding PHREEQC Model Configuration unit and set other TCE options.
3. VLE - Always on.
4. CFE - Optional tab, only visible if the UseCFE option is enabled on the TCE tab page.
5. Bypass - Always on, with H2O(g) bypassed.
6. RxnBypass - Always shown.
7. PHREEQCResults tab - This tab displays the key results of the calculations.
8. Input tab - This tab displays a summary of the mapped Input stream as PHREEQC species.
9. Output tab - This tab displays the Output stream results including the amounts of each PHREEQC species present in the final mixture.
10. Diff tab - Optional tab, only visible if the ShowRxnDiff option is enabled on the TCE tab page. This tab displays the amounts of each species which are formed or reacted as part of the calculations.
11. ElemBal tab - This tab displays an elemental balance between the Input and Output streams.
12. PhDeport tab - Optional tab, only visible if the PhaseElemDeportment option is enabled on the TCE tab page. This tab shows the movement of elements for the Solid, Liquid and Gas phases.
13. IPhDeport tab - Optional tab, only visible if the IPhaseElemDeportment option is enabled on the TCE tab page. This tab shows the movement of elements for the individual PHREEQC phases.
14. UnitTag.ParamSweep tab - Optional tab, only visible if the ShowPlotter option is enabled on the TCE tab page. This tab allows the user to generate sets of data.
15. SpForPlot tab - Optional tab, only visible if the SelectSp option is enabled on the UnitTag.ParamSweep tab. This tab allows the user to select which species to be reported in the sets of data to be generated.
16. QUnmapped - Optional tab, only visible if ShowQUnmapped is enabled on the TCE tab page.
17. QRxnUnmapped - Optional tab, only visible if ShowQRxnUnmapped is enabled on the TCE tab page.
18. QBypass - Optional tab, only visible if ShowQBypass is enabled on the TCE tab page.
19. QRxnBypass - Optional tab, only visible if ShowQRxnBypass is enabled on the TCE tab page.
20. QFeed - Optional tab, only visible if ShowQFeed is enabled on the first tab page.
21. QProd - Optional tab, only visible if ShowQProd is enabled on the first tab page.
22. Info tab - Contains general settings for the unit and allows the user to include documentation about the unit and create Hyperlinks to external documents.
23. Links tab, contains a summary table for all the input and output streams.
24. Audit tab - Contains summary information required for Mass and Energy balance. See Model Examples for enthalpy calculation Examples.

### PHREEQCFlashTank tab page

Unit Type: PHREEQCFlashTank - The first tab page in the access window will have this name.

Tag (Long/Short) Input/ Calc Description
Tag Display This name tag may be modified with the change tag option.
Condition Display OK if no errors/warnings, otherwise lists errors/warnings.
ConditionCount Display The current number of errors/warnings. If condition is OK, returns 0.
GeneralDescription / GenDesc Display This is an automatically generated description for the unit. If the user has entered text in the 'EqpDesc' field on the Info tab (see below), this will be displayed here.
If this field is blank, then SysCAD will display the unit class ID.
Requirements
On Tickbox This variable in used to enable flashing in the unit. If this not selected, the material will flow out of the liquor outlet with no change in state, i.e. the unit acts as a pipe.
Mode Stand Alone (Manual) The flash tank will not form part of a flash train.
Flash Train The flash tank will form part of a Flash Train if appropriate units are connected to it. The OperatingP - Method will be set to Saturated.
OperatingP The user may only set the operating pressure or temperature of the PHREEQC Flash Tank if it is NOT part of a Flash Train.
Method Atmospheric This method is only available if 'Stand Alone' Mode is chosen. All flash calculations will be done at Atmospheric Pressure. The atmospheric pressure is calculated by SysCAD based on the user defined elevation (default elevation is at sea level = 101.325 kPa). The elevation can be changed on the Environment tab page of the Plant Model.
RequiredP This method is only available if 'Stand Alone' Mode is chosen. All flash calculations will be done at the user specified pressure (and saturated temperature @ P).
RequiredT This method is only available if 'Stand Alone' Mode is chosen. All flash calculations will be done at the user specified temperature (and saturated pressure @ T).
Saturated 'The OperatingP - Method will be set to Saturated if 'Flash Train' Mode is chosen. All flash calculations will be done at the saturated pressure.
PressureReqd / P_Reqd Input This field is only visible if the RequiredP method is chosen. This is user specified flash pressure.
TemperatureReqd / T_Reqd Input This field is only visible if the RequiredT method is chosen. This is user specified flash temperature.
Result Calc The actual pressure used for the sum of the feeds which will also be the outlet pressure (unless further model options change the pressure).
MinFlashP Input This is only visible when 'Flash Train' Mode is chosen. The Minimum Flash Pressure.
Options
VapStandardSpModel Tick Box If ticked then the Standard (default) species model will be used in the vapour exit stream. This selection has no effect on the model operation.
ShowQFeed Tick Box QFeed and associated tab pages (eg Sp) will become visible if this is enabled. These tabs will show the properties of the combined feed stream to the Unit. These values are BEFORE any flashing calculations or other sub-models occur.
ShowQProd Tick Box QProd and associated tab pages (eg Sp) will become visible if this is enabled. These tabs will show the properties of the combined product streams from the Unit. These values are after any flashing calculations or other sub-models occur but before the final phase split is made.
Vapour Entrainment
FlashVapToLiquid Input This field allows the user to set a proportion of the flash vapour bypassing to the liquid stream. The default is 0%.
OtherGasToLiquid Input This field allows the user to set a proportion of any non-condensable gas bypassing to the liquid stream. The default is 0%.
Results
TemperatureIn / Ti Calc The flash tank feed temperature.
PressureIn / Pi Calc The flash tank feed pressure.
BPE Calc The Boiling Point Elevation of the Flash Tank discharge. This is the BPE value that is used for the Flash calculations.
HeatFlow Calc Any environmental heat loss will be displayed here.
FlashT Calc The calculated temperature at the operating pressure of the Flash Tank.
FlashP Calc The calculated operating pressure of the Flash Tank.
VapourMassFlow / VQm Calc The mass flow of flashed vapour.
Flash Train Macro Model

These extra fields are only visible if the unit is part of a Flash Train.

VapourMassFlow / VQm Calc The mass flow of flashed vapour.
PressureReqd / P_Reqd Calc The required flash pressure calculated by the Flash Train.
TotalPressChange / TotaldP Calc The total pressure change calculated by the Flash Train.
FlashTrain Display A unique tag assigned to the flash train by SysCAD. Each unit in the flash train will have the same tag in this block.
FlashTearBlock Display Displays the name of the tear block that is part of the Flash Train.
FlashTrainEqp List This contains a list of all of the equipment tags in this flash train. the list might be as follows:
FT_FT_001
FT_ST2_001
PAdvBase Input Additional damping or acceleration for calculated pressure change (DP) for the iteration. DP = DP * PAdvBase when PAdvExtra=0.
PAdvExtra Input Additional damping or acceleration for calculated pressure change (DP) for the iteration. DP = DP * (PAdvBase + PAdvExtra*(VQmReqd-VQm)/Max(VQmReqd,VQm)).

### CFE tab page

This tab is only visible if the UseCFE option is enabled on the TCE tab page.

• This option allows a portion of a species to be locked up and not allowed to react.
• Applying CFE can have a significant effect on the final composition, use of this feature requires detailed knowledge of the process chemistry.
• This feature is unavailable if using SysCAD VLE with PHREEQC.
 Tag (Long/Short) Input / Calc Description/Calculated Variables / Options Constrained Free Energy (CFE) Configuration CFE... SpeciesName The Species:Long or Short button is used to change the display of the Species names between the Short form, the Chemical compound, or the longer species names. Filter View Filter This button will enable or disable the species filter options. ShowUnmapped(Only visible if Filter is enabled) Tickbox When enabled, all species will be displayed. When disabled, only species that are mapped to a SysCAD species will be shown. Phases(Only visible if Filter is enabled) All No filtering of species based on phase. Solids Only show solid phase species, hide other species. Liquids Only show liquid phase species, hide other species. Vapours Only show vapour (gaseous) phase species, hide other species. Solids & Liquids Only show solid and liquid phase species, hide other species. Solids & Vapours Only show solid and vapour (gaseous) phase species, hide other species. Liquids & Vapours Only show liquid and vapour (gaseous) phase species, hide other species. IPhase Only show "IPhase" individual phase species, hide other species. The individual phases shown will depend on the PHREEQC database chosen. Filters Display Always set to 'Content'. Content(Only visible if Filter is enabled) All No filtering of species based on element or name. Contains Any Element This will display all species that contain any of the elements entered in their elemental definition. Contains All Elements This will display only species that contain ALL of the elements entered in their elemental definition. Starts with ... This will display species that start with the text entered based on the short or long species tag depending on the current SpeciesTag selection. Contains any ... This will display species that contain the text entered in the currently displayed short or long species tag. Contains All ... This will display species that contain ALL the separate text entered in the currently displayed short or long species tag. Select Input Only visible if Filter is enabled and Content is NOT set to All. The user specified Elements or text to filter the species list. Refer to Species Filter for more information and examples. (The following tables (one per phase) display the PHREEQC species from the selected database. The user can set the Inert Fraction for each species. Note that liquid ions are not shown on this page as the Inert Fractions cannot be set for them.)(Each table has the following column (one row per PHREEQC species):) InertFrac Input The user specified fraction of the species that is considered inert, ie. cannot react to form other species/ions. The presence of the inert fraction is still taken into account when calculating stream properties. This is only available as an input for molecular species (not ions).

### Bypass tab page

This tab is only visible if the WithBypass option is enabled on the TCE tab page. This will allow some or all of the SysCAD species to bypass the thermodynamic engine calculations.

### RxnBypass tab page

This tab is only visible if the WithBypass option is enabled on the TCE tab page. This will allow some or all of the SysCAD species to bypass the thermodynamic engine calculations.

### PHREEQCResults tab page

 Tag (Long/Short) Input / Calc Description/Calculated Variables / Options PHREEQC Calculation Results Summary Feed Massflow Summary Bypass.MassFlow / Qm Display The mass flow of material in the feed which bypasses the calculation due to user selection of bypass species. Use show ShowQBypass to view full stream. Unmapped.MassFlow / Qm Display The mass flow of material in the feed which is not forward mapped to a species and therefore bypasses the calculation. Use show ShowQUnmapped to view full stream. PHREEQC.Feed.MassFlow / Qm Display The mass flow of material in the feed to the PHREEQC calculation. Same value as tag Feed.Qm. TotalFeed.MassFlow / Qm Display The total feed mass to the PHREEQC model block. Sum of bypasses and feed to PHREEQC calculation. Product Massflow Summary PHREEQC.Prod.MassFlow / Qm Display The mass flow of material in the product of the PHREEQC calculation. Same value as tag Prod.Qm. RxnBypass.MassFlow / Qm Display The mass flow of material for RxnUnmapped.MassFlow / Qm Display The mass flow of material in the prod which is not reverse mapped to SysCAD species. TotalProd.MassFlow / Qm Display The total product mass for the PHREEQC model block. Sum of bypasses and product of PHREEQC calculation. Solids Yield Solids.Yield Display The solids concentration in the product stream. Solids.Precip Display The change in solids flow, feed-product. A positive value indicates precipitation has occurred. A negative value indicates dissolution has occurred. Stream Properties Summary Prod... Temperature / T Display The Temperature of the final solution. Pressure / P Display The Pressure of the final solution. MassFlow / Qm Display The Mass flow of the final solution. [email protected] Display The Enthalpy of the final solution per unit mass. Enthalpy / [email protected] Display The Enthalpy of the final solution. AqDensity / AqRho Display The density of aqueous species (solution) in the final solution. IonicStrength / I Display The molar Ionic Strength of the final solution. pH Display The pH of the final solution. Alkalinity Display The alkalinity of the final solution. WaterActivity Display The water activity of the final solution. TotalDissolvedSolids / TDS Display The mass concentration of Total Dissolved Solids (total aqueous-water) in the final solution. OsmoticPressure / OsmP Display The Osmotic Pressure of the final solution. pKw Display The pKw of the final solution. Zeros If the Hide Zeros button is clicked, all phases/species that have NO mass flow will be hidden.If the Show Zeros button is clicked, all phases/species will be displayed, including those with zero mass flow. Note this setting applies to the subsequent pages as well. Feed... Feed Phase Flowrate Summary (The following table displays a summary of results for the different phases. The table has the following columns (one row per phase)): MassFlow / Qm Display The mass flow of the relevant phase in the feed. MassFrac / Mf Display The mass fraction of the relevant phase in the feed. MoleFlow / QMl Display The mole flow of the relevant phase in the feed. MoleFrac / Mlf Display The mole fraction of the relevant phase in the feed. Prod... Prod Phase Flowrate Summary (The following table displays a summary of results for the different phases. The table has the following columns (one row per phase)): MassFlow / Qm Display The mass flow of the relevant phase in the final solution. MassFrac / Mf Display The mass fraction of the relevant phase in the final solution. MoleFlow / QMl Display The mole flow of the relevant phase in the final solution. MoleFrac / Mlf Display The mole fraction of the relevant phase in the final solution. PHREEQC Energy Balance (only shown if CalcEnthalpy is enabled on PHREEQCDirectCalc tab page) PHREEQC.HeatFlow Display Difference in enthalpy between the product and feed of the PHREEQC reactions calculated by SysCAD. Bypass.HeatFlow Display The heat required to adjust the temperature and pressure of the bypass stream to exit conditions. HeatLoss Display The environmental heat loss. HeatFlow Display The heat flow required to achieve the product conditions relative to the feed conditions. Includes environmental heat loss if applicable. This is calculated by SysCAD and accounts for bypass and heat loss. Note that Bypass heat is calculated by SysCAD. Summary... Calculation Summary LastCalcType Display This displays the type of calculation (OpMode) used for the last calculation. Remove If the user clicks on this button, SysCAD will remove duplicate error messages received. ErrorCount Display The total number of errors encountered in the last calculation. ErrorXX Display If there are error messages associated with the last calculation, they will be displayed here. ConvergenceError Display The largest numerical convergence error. This is often zero when the solution converges with no errors.

### Input tab page

 Tag (Long/Short) Input / Calc Description/Calculated Variables / Options Stream Properties Summary Feed... Temperature / T Display The Temperature of the feed solution. This is calculated using the SysCAD enthalpy context. Pressure / P Display The Pressure of the feed solution. MassFlow / Qm Display The Mass Flow of the feed solution. [email protected] Display The Enthalpy of the feed solution per unit mass. This is calculated by PHREEQC. Enthalpy / [email protected] Display The Enthalpy of the feed solution. This is calculated by PHREEQC. Feed... SpeciesName The Species:Long or Short button is used to change the display of the Species names between the Short form, the Chemical compound, or the longer species names. Zeros If the Hide Zeros button is clicked, all species that have NO mass flow will be hidden.If the Show Zeros button is clicked, all species will be displayed, including those with zero mass flow. StreamView If the Mass button is clicked, the species will be shown in mass flow view. If the Mole button is clicked, the species will be shown in mole flow view. Stream Mass Copy stream contents to clipboard, mass basis, for pasting into Excel. If Zeros is set to hide, zero values will not be copied to the clipboard. Mole Copy stream contents to clipboard, mole basis, for pasting into Excel. If Zeros is set to hide, zero values will not be copied to the clipboard. Unmapped Mass Copy unmapped stream contents to clipboard, mass basis, for pasting into Excel. If Zeros is set to hide, zero values will not be copied to the clipboard. Unmapped species are those which will not be mapped to the exiting SysCAD stream. Unmapped Mole Copy unmapped stream contents to clipboard, mole basis, for pasting into Excel. If Zeros is set to hide, zero values will not be copied to the clipboard. Unmapped species are those which will not be mapped to the exiting SysCAD stream. Filter View Filter This button will enable or disable the species filter options. ShowUnmapped(Only visible if Filter is enabled) Tickbox When enabled, all species will be displayed. When disabled, only species that are mapped to a SysCAD species will be shown. Phases(Only visible if Filter is enabled) All No filtering of species based on phase. Solids Only show solid phase species, hide other species. Liquids Only show liquid phase species, hide other species. Vapours Only show vapour (gaseous) phase species, hide other species. Solids & Liquids Only show solid and liquid phase species, hide other species. Solids & Vapours Only show solid and vapour (gaseous) phase species, hide other species. Liquids & Vapours Only show liquid and vapour (gaseous) phase species, hide other species. IPhase Only show "IPhase" individual phase species, hide other species. The individual phases shown will depend on the PHREEQC database chosen. Filters(Only visible if Filter is enabled) Content All species which meet the Phase and Content criteria will be displayed. Content & MassFrac Limit Only species which meet the Phase and Content criteria AND have a mass fraction greater than or equal to the user specified MassFrac.Limit will be displayed. Content & MassFrac Largest Only the top N species (based on Mass Fraction) which meet the Phase and Content criteria will be displayed, where N = the user specified MassFrac.Count. Content & MassFrac Smallest Only the bottom N species (based on Mass Fraction) which meet the Phase and Content criteria will be displayed, where N = the user specified MassFrac.Count. MassFrac Limit Only species which meet the Phase criteria AND have a mass fraction greater than or equal to the user specified MassFrac.Limit will be displayed. MassFrac Largest Only the top N species (based on Mass Fraction) which meet the Phase criteria will be displayed, where N = the user specified MassFrac.Count. MassFrac Smallest Only the bottom N species (based on Mass Fraction) which meet the Phase criteria will be displayed, where N = the user specified MassFrac.Count. Content(Only visible when one of the Content Filter options is selected) All No filtering of species based on element or name. Contains Any Element This will display all species that contain any of the elements entered in their elemental definition. Contains All Elements This will display only species that contain ALL of the elements entered in their elemental definition. Starts with ... This will display species that start with the text entered based on the short or long species tag depending on the current SpeciesTag selection. Contains any ... This will display species that contain the text entered in the currently displayed short or long species tag. Contains All ... This will display species that contain ALL the separate text entered in the currently displayed short or long species tag. Select Input Only visible if Content is NOT set to All. The user specified Elements or text to filter the species list. Refer to Species Filter for more information and examples. MassFrac.Limit Input Only visible if Filters = Content & MassFrac Limit or MassFrac Limit. The user specified MassFrac Limit, the maximum mass fraction to be displayed. MassFrac.Count Input Only visible if Filters = Content & MassFrac Largest, Content & MassFrac Smallest, MassFrac Largest or MassFrac Smallest. The user specified Mass Frac Count, the maximum number of species to be displayed. (The following tables display the mass/mole flow, mass/mole fraction of the individual species.)(Each table (one for each phase) has the following columns (one row for each species):) MassFlow / Qm Display Visible when StreamView = Mass. The mass flow of the species in the feed stream. MassFrac / Mf Display Visible when StreamView = Mass. The mass fraction of the species in the feed stream. PhaseMassFrac / IPh:Mf Display Visible when StreamView = Mass. The mass fraction of the species in the displayed phase. MoleFlow / QMl Display Visible when StreamView = Mole. The mole flow of the species in the feed stream. MoleFrac / Mlf Display Visible when StreamView = Mole. The mole fraction of the species in the feed stream. PhaseMoleFrac / IPh:Mlf Display Visible when StreamView = Mole. The mole fraction of the species in the displayed phase.

### Diff tab page

This tab is only visible if ShowRxnDiff is ticked. The displayed results are the difference between input and output streams.

 Tag (Long/Short) Input / Calc Description/Calculated Variables / Options Stream Properties Summary Diff... Temperature / T Display The Temperature difference between the feed and product solutions. This is calculated using the SysCAD enthalpy context. Pressure / P Display The Pressure difference between the feed and product solutions. MassFlow / Qm Display The Mass Flow difference between the feed and product solutions. [email protected] Display The Enthalpy difference between the feed and product solutions per unit mass. This is calculated by PHREEQC. Enthalpy / [email protected] Display The Enthalpy difference between the feed and product solutions. This is calculated by PHREEQC. Diff... SpeciesName The Species:Long or Short button is used to change the display of the Species names between the Short form, the Chemical compound, or the longer species names. Zeros If the Hide Zeros button is clicked, all species that have NO mass flow will be hidden.If the Show Zeros button is clicked, all species will be displayed, including those with zero mass flow. StreamView If the Mass button is clicked, the species will be shown in mass flow view. If the Mole button is clicked, the species will be shown in mole flow view. Stream Mass Copy stream contents to clipboard, mass basis, for pasting into Excel. If Zeros is set to hide, zero values will not be copied to the clipboard. Mole Copy stream contents to clipboard, mole basis, for pasting into Excel. If Zeros is set to hide, zero values will not be copied to the clipboard. Unmapped Mass Copy unmapped stream contents to clipboard, mass basis, for pasting into Excel. If Zeros is set to hide, zero values will not be copied to the clipboard. Unmapped species are those which will not be mapped to the exiting SysCAD stream. Unmapped Mole Copy unmapped stream contents to clipboard, mole basis, for pasting into Excel. If Zeros is set to hide, zero values will not be copied to the clipboard. Unmapped species are those which will not be mapped to the exiting SysCAD stream. Filter View Filter This button will enable or disable the species filter options. ShowUnmapped(Only visible if Filter is enabled) Tickbox When enabled, all species will be displayed. When disabled, only species that are mapped to a SysCAD species will be shown. Phases(Only visible if Filter is enabled) All No filtering of species based on phase. Solids Only show solid phase species, hide other species. Liquids Only show liquid phase species, hide other species. Vapours Only show vapour (gaseous) phase species, hide other species. Solids & Liquids Only show solid and liquid phase species, hide other species. Solids & Vapours Only show solid and vapour (gaseous) phase species, hide other species. Liquids & Vapours Only show liquid and vapour (gaseous) phase species, hide other species. IPhase Only show "IPhase" individual phase species, hide other species. The individual phases shown will depend on the PHREEQC database chosen. Filters(Only visible if Filter is enabled) Content All species which meet the Phase and Content criteria will be displayed. Content & MassFrac Limit Only species which meet the Phase and Content criteria AND have a mass fraction greater than or equal to the user specified MassFrac.Limit will be displayed. Content & MassFrac Largest Only the top N species (based on Mass Fraction) which meet the Phase and Content criteria will be displayed, where N = the user specified MassFrac.Count. Content & MassFrac Smallest Only the bottom N species (based on Mass Fraction) which meet the Phase and Content criteria will be displayed, where N = the user specified MassFrac.Count. MassFrac Limit Only species which meet the Phase criteria AND have a mass fraction greater than or equal to the user specified MassFrac.Limit will be displayed. MassFrac Largest Only the top N species (based on Mass Fraction) which meet the Phase criteria will be displayed, where N = the user specified MassFrac.Count. MassFrac Smallest Only the bottom N species (based on Mass Fraction) which meet the Phase criteria will be displayed, where N = the user specified MassFrac.Count. Content(Only visible when one of the Content Filter options is selected) All No filtering of species based on element or name. Contains Any Element This will display all species that contain any of the elements entered in their elemental definition. Contains All Elements This will display only species that contain ALL of the elements entered in their elemental definition. Starts with ... This will display species that start with the text entered based on the short or long species tag depending on the current SpeciesTag selection. Contains any ... This will display species that contain the text entered in the currently displayed short or long species tag. Contains All ... This will display species that contain ALL the separate text entered in the currently displayed short or long species tag. Select Input Only visible if Content is NOT set to All. The user specified Elements or text to filter the species list. Refer to Species Filter for more information and examples. MassFrac.Limit Input Only visible if Filters = Content & MassFrac Limit or MassFrac Limit. The user specified MassFrac Limit, the maximum mass fraction to be displayed. MassFrac.Count Input Only visible if Filters = Content & MassFrac Largest, Content & MassFrac Smallest, MassFrac Largest or MassFrac Smallest. The user specified Mass Frac Count, the maximum number of species to be displayed. (The following tables display the mass/mole flow, mass/mole fraction of the individual species.)(Each table (one for each phase) has the following columns (one row for each species):) MassFlow / Qm Display Visible when StreamView = Mass. The difference in mass flow of the species. MassFrac / Mf Display Visible when StreamView = Mass. The difference in mass fraction of the species. PhaseMassFrac / IPh:Mf Display Visible when StreamView = Mass. The difference in mass fraction of the species in the displayed phase. MoleFlow / QMl Display Visible when StreamView = Mole. The difference in mole flow of the species. MoleFrac / Mlf Display Visible when StreamView = Mole. The difference in mole fraction of the species. PhaseMoleFrac / IPh:Mlf Display Visible when StreamView = Mole. The difference in mole fraction of the species in the displayed phase.

### ElemBal tab page

This tab performs an element balance between the PHREEQC Input and Output streams and separately, between the SysCAD Input and Output streams.

 Tag (Long/Short) Input / Calc Description/Calculated Variables / Options ElemBal... Tol.SigDigits Input This provides an easy way to change the Tol.Rel value. For example, 4 here will set Tol.Rel = 1.00e-4. If user changes the Tol.Rel value, this value will also be updated. Tol.Rel Input The relative tolerance for Element Balance (Input - Output). If the relative error is > Tol.Rel then an error is generated. Tol.Abs Input The absolute tolerance for Element Balance (Input - Output). If the absolute error is > Tol.Abs then an error is generated. PHREEQC... ElementBalanceView If the Mass button is clicked, the elements will be shown in mass flow view.If the Mole button is clicked, the elements will be shown in mole flow view. Zeros If the Hide Zeros button is clicked, all elements that have NO mass flow will be hidden.If the Show Zeros button is clicked, all elements will be displayed, including those with zero mass flow. PHREEQC Element Balance (The following table displays the mass/molar flows, and absolute and relative errors of the individual elements.)The table has the following columns (one row for each element): FlowIn / Qm.In Display Visible when ElementBalanceView = Mass. The mass flow of the element in the PHREEQC Input stream. FlowOut / Qm.Out Display Visible when ElementBalanceView = Mass. The mass flow of the element in the PHREEQC Output stream. The QRxnBypass stream is also included in this total. This can be viewed by clicking "ShowQRxnBypass". AbsErr / Qm.Err Display Visible when ElementBalanceView = Mass. The difference in mass flow of the element between the PHREEQC Output and Input streams. FlowIn / QMl.In Display Visible when ElementBalanceView = Mole. The molar flow of the element in the PHREEQC Input stream. FlowOut / QMl.Out Display Visible when ElementBalanceView = Mole. The molar flow of the element in the PHREEQC Output stream. AbsErr / QMl.Err Display Visible when ElementBalanceView = Mole. The difference in molar flow of the element between the PHREEQC Output and Input streams. RelErr Display The relative difference in flow of the element between the PHREEQC Output and Input streams, relative to the Input stream. Scd... SysCAD Element Balance (The following table displays the mass/molar flows, and absolute and relative errors of the individual elements.)The table has the following columns (one row for each element): FlowIn / Qm.In Display Visible when ElementBalanceView = Mass. The mass flow of the element in the SysCAD Input stream. FlowOut / Qm.Out Display Visible when ElementBalanceView = Mass. The mass flow of the element in the SysCAD Output stream. The QRxnBypass stream is also included in this total. This can be viewed by clicking "ShowQRxnBypass". AbsErr / Qm.Err Display Visible when ElementBalanceView = Mass. The difference in mass flow of the element between the SysCAD Output and Input streams. FlowIn / QMl.In Display Visible when ElementBalanceView = Mole. The molar flow of the element in the SysCAD Input stream. FlowOut / QMl.Out Display Visible when ElementBalanceView = Mole. The molar flow of the element in the SysCAD Output stream. AbsErr / QMl.Err Display Visible when ElementBalanceView = Mole. The difference in molar flow of the element between the SysCAD Output and Input streams. RelErr Display The relative difference in flow of the element between the SysCAD Output and Input streams, relative to the Input stream.

### PhDeport tab page

This tab is only visible if PhaseElemDeportment is ticked. This tab shows the mass movement of elements for the Liquid, Solid and Gas phases.

 Tag (Long/Short) Input / Calc Description/Calculated Variables / Options PD... ElementBalanceView If the Mass button is clicked, the elements will be shown in mass flow view.If the Mole button is clicked, the elements will be shown in mole flow view. Zeros If the Hide Zeros button is clicked, all elements that have NO mass flow will be hidden.If the Show Zeros button is clicked, all elements will be displayed, including those with zero mass flow. PHREEQC.Liquid... PHREEQC Deportment (The following table displays the mass/molar flows, and absolute and relative changes of the individual elements.)The table has the following columns (one row for each element): FlowIn / Qm.In Display Visible when ElementBalanceView = Mass. The mass flow of the element in the liquid phase of the Input stream. FlowOut / Qm.Out Display Visible when ElementBalanceView = Mass. The mass flow of the element in the liquid phase of the Output stream. Change / Qm.Chng Display Visible when ElementBalanceView = Mass. The change in mass flow of the element between the liquid phase of the Output and Input streams. FlowIn / QMl.In Display Visible when ElementBalanceView = Mole. The molar flow of the element in the liquid phase of the Input stream. FlowOut / QMl.Out Display Visible when ElementBalanceView = Mole. The molar flow of the element in the liquid phase of the Output stream. Change / QMl.Chng Display Visible when ElementBalanceView = Mole. The difference in molar flow of the element between the liquid phase of the Output and Input streams. RelChange Display The relative change in flow of the element between the liquid phase of the Output and Input streams, relative to the Input stream. PHREEQC.Solid... PHREEQC Deportment (The following table displays the mass/molar flows, and absolute and relative changes of the individual elements.)The table has the following columns (one row for each element): FlowIn / Qm.In Display Visible when ElementBalanceView = Mass. The mass flow of the element in the solid phase of the Input stream. FlowOut / Qm.Out Display Visible when ElementBalanceView = Mass. The mass flow of the element in the solid phase of the Output stream. Change / Qm.Chng Display Visible when ElementBalanceView = Mass. The change in mass flow of the element between the solid phase of the Output and Input streams. FlowIn / QMl.In Display Visible when ElementBalanceView = Mole. The molar flow of the element in the solid phase of the Input stream. FlowOut / QMl.Out Display Visible when ElementBalanceView = Mole. The molar flow of the element in the solid phase of the Output stream. Change / QMl.Chng Display Visible when ElementBalanceView = Mole. The difference in molar flow of the element between the solid phase of the Output and Input streams. RelChange Display The relative change in flow of the element between the solid phase of the Output and Input streams, relative to the Input stream. PHREEQC.Gas... PHREEQC Deportment (The following table displays the mass/molar flows, and absolute and relative changes of the individual elements.)The table has the following columns (one row for each element): FlowIn / Qm.In Display Visible when ElementBalanceView = Mass. The mass flow of the element in the gas phase of the Input stream. FlowOut / Qm.Out Display Visible when ElementBalanceView = Mass. The mass flow of the element in the gas phase of the Output stream. Change / Qm.Chng Display Visible when ElementBalanceView = Mass. The change in mass flow of the element between the gas phase of the Output and Input streams. FlowIn / QMl.In Display Visible when ElementBalanceView = Mole. The molar flow of the element in the gas phase of the Input stream. FlowOut / QMl.Out Display Visible when ElementBalanceView = Mole. The molar flow of the element in the gas phase of the Output stream. Change / QMl.Chng Display Visible when ElementBalanceView = Mole. The difference in molar flow of the element between the gas phase of the Output and Input streams. RelChange Display The relative change in flow of the element between the gas phase of the Output and Input streams, relative to the Input stream.

### IPhDeport tab page

This tab is only visible if IPhaseElemDeportment is ticked. This tab shows the mass movement of elements for each PHREEQC phase.

 Tag (Long/Short) Input / Calc Description/Calculated Variables / Options IPD... ElementBalanceView If the Mass button is clicked, the elements will be shown in mass flow view.If the Mole button is clicked, the elements will be shown in mole flow view. Zeros If the Hide Zeros button is clicked, all elements that have NO mass flow will be hidden.If the Show Zeros button is clicked, all elements will be displayed, including those with zero mass flow. PHREEQC.... PHREEQC Deportment (The following table displays the mass/molar flows, and absolute and relative changes of the individual elements.)The table has the following columns (one row for each element): FlowIn / Qm.In Display Visible when ElementBalanceView = Mass. The mass flow of the element in the selected PHREEQC phase of the Input stream. FlowOut / Qm.Out Display Visible when ElementBalanceView = Mass. The mass flow of the element in the selected PHREEQC phase of the Output stream. Change / Qm.Chng Display Visible when ElementBalanceView = Mass. The change in mass flow of the element between the selected PHREEQC phase of the Output and Input streams. FlowIn / QMl.In Display Visible when ElementBalanceView = Mole. The molar flow of the element in the selected PHREEQC phase of the Input stream. FlowOut / QMl.Out Display Visible when ElementBalanceView = Mole. The molar flow of the element in the selected PHREEQC phase of the Output stream. Change / QMl.Chng Display Visible when ElementBalanceView = Mole. The difference in molar flow of the element between the selected PHREEQC phase of the Output and Input streams. RelChange Display The relative change in flow of the element between the selected PHREEQC phase of the Output and Input streams, relative to the Input stream.

### ParamSweep tab page

This tab is only visible if ShowPlotter is ticked. This option is only shown if this model has been successfully run.

This tab allows the user to perform multiple calculations to generate a set of data. The data can be copied and pasted into external programs such as Excel to allow the data to be plotted and analysed.

### SpForPlot tab page

This tab is only visible if the SelectSp option is enabled on the ParamSweep tab. It allows the user to select which species to be reported in the sets of data to be generated.

 Tag (Long/Short) Input / Calc Description/Calculated Variables / Options SpForPlot... SpeciesName The Species:Long or Short button is used to change the display of the Species names between the Short form, the Chemical compound, or the longer species names. SelectVisible User can select all the species which are currently visible in the access window. The ones that are visible may be limited by use of the Filter (see options below). UnselectVisible User can unselect all the species which are currently visible in the access window. The ones that are visible may be limited by use of the Filter (see options below). Filter View Filter This button will enable or disable the species filter options. ShowUnmapped(Only visible if Filter is enabled) Tickbox When enabled, all species will be displayed. When disabled, only species that are mapped to a SysCAD species will be shown. Phases(Only visible if Filter is enabled) All No filtering of species based on phase. Solids Only show solid phase species, hide other species. Liquids Only show liquid phase species, hide other species. Vapours Only show vapour (gaseous) phase species, hide other species. Solids & Liquids Only show solid and liquid phase species, hide other species. Solids & Vapours Only show solid and vapour (gaseous) phase species, hide other species. Liquids & Vapours Only show liquid and vapour (gaseous) phase species, hide other species. IPhase Only show "IPhase" individual phase species, hide other species. The individual phases shown will depend on the PHREEQC database chosen. Filters Display Always set to 'Content'. Content(Only visible if Filter is enabled) All No filtering of species based on element or name. Contains Any Element This will display all species that contain any of the elements entered in their elemental definition. Contains All Elements This will display only species that contain ALL of the elements entered in their elemental definition. Starts with ... This will display species that start with the text entered based on the short or long species tag depending on the current SpeciesTag selection. Contains any ... This will display species that contain the text entered in the currently displayed short or long species tag. Contains All ... This will display species that contain ALL the separate text entered in the currently displayed short or long species tag. Select Input Only visible if Filter is enabled and Content is NOT set to All. The user specified Elements or text to filter the species list. Refer to Species Filter for more information and examples. (The following tables (one per phase) display the PHREEQC species from the selected database. The user can select any number of species.)(Each table has the following column (one row per PHREEQC species):) Select Tickbox The properties (selected on the ParamSweep tab) of the selected species will be reported when the Generate function (ParamSweep tab) is used. SetAll...(displayed at the end of each phase) SelectAll User can select all the species in the relevant phase. UnselectAll User can unselect all the species in the relevant phase.

## Adding this Model to a Project

Insert into Configuration file

Sort either by DLL or Group.

 DLL: ScdPHREEQC.dll → Units/Links → PHREEQC TCE: PHREEQC Flash Tank or Group: Energy Transfer → Units/Links → PHREEQC TCE: PHREEQC Flash Tank

See Model Selection for more information on adding models to the configuration file.

Insert into Project

 Insert Unit → PHREEQC TCE → PHREEQC Flash Tank

See Insert Unit for general information on inserting units.