TCE Configuration Options
Navigation: Models ➔ TCE Models ➔ Thermodynamic Calculation Engines ➔ TCE Configuration Options
Thermodynamic Calculation Engines (TCEs) | TCE Options | TCE FAQ | |||||
---|---|---|---|---|---|---|---|
TCE Functionality Overview | TCE Species Mapping | TCE Configuration Options | AQSol | ChemApp | PHREEQC | OLI |
Latest SysCAD Version: 25 October 2024 - SysCAD 9.3 Build 139.36522
Related Links: TCE Configuration
Edit TCE Configuration
Available from Build 139. The following Thermodynamic Calculation Engines (TCE's) are available in SysCAD: AQSol, ChemApp, OLI and PHREEQC.
In Build 139.29706 or later, the configuration file options for the TCE add-ons is edited via the Configuration editor.
There are several configuration settings to modify how a particular TCE behaves within a project. These include:
Number | Setting/Selection | Description |
TCE Add-On | Edit the relevant TCE section based on your project requirements. TCE add-ons available are: AQSol, ChemApp, OLI and PHREEQC. In the example screenshot above, PHREEQC is used. | |
TCE License Option | User can specify whether the licensed or demonstration version of the TCE interface should be used.
| |
Number of Engines | The SysCAD implementation of TCE supports multithreading, you can choose how many engines to load.
| |
Minimum Water Content | This specifies the minimum total water content in the feed solution required for the specified TCE to solve.
| |
Use Ion Mapping | If checked, ion mapping algorithms will be available for use within ChemApp. This is only needed if using an aqueous database with ChemApp. | |
TCE Database Folder | ||
TCE Database File(s) | ||
IonList | The ion list can be viewed / edited using the "Edit Ion List" button. This will open the ion list stored in the project CfgFiles folder for editing (via the default text editor).
| |
Use Registry to locate OLI | For OLI only. It is recommended to select this option as the registry entry corresponds to the most recently installed version of the OLI Engine. | |
OLI Dll Path | This is used if the Use Registry to locate OLI option is not checked. This option is only required if multiple versions of OLI Engines are installed on the machine, and the user wishes to use a specific engine file to run the SysCAD model. Caution: If this option is used, other users may not be able to open the project as is, because their OLI engine path may be different. For others to use the project, they may need to edit the OLI DLL path to point to the correct OLI Engine location. | |
AQSol Database Folder | This refers to the installation folder of AQSol. Use the ‘Browse’ button to locate the installation folder. Typically, this is found at C:\Program Files (x86)\AQSolxxx\. | |
Edit IPhaseMap File | This button enables the user to create or edit the IPhaseMap File. See Defining IPhaseMap for more information. |
Edit TCE Configuration Manually (OLI Liquid-2 Phase)
Available from Build 139.34985. Liquid-2 functionality is available for use in the SysCAD-OLI interface when a second liquid phase, typically used for organics, is configured in the OLI dbs file. This functionality allows for the modelling of unit operations where two immiscible liquids are present, such as OLI Solvent Extraction. To use this functionality, the SysCAD configuration file must be manually updated to indicate the individual phase in the SysCAD species database which corresponds with the second liquid phase in the OLI dbs file. If using multiple dbs files, this is repeated for each OLI dbs file that contains a second liquid phase. The steps are as follows:
- Open the cfg file within the CfgFiles folder using a text editor.
- Search for "[OLI]" to locate the OLI section of the file.
- Update the cfg file in a similar manner to that shown in the following example.
Example:
Given an [OLI] section that looks like this in the cfg file: [OLI] NumEngines=3 MinWaterContentForSolve=0.2 DatabaseFolder=C:\SysCAD Projects\OLItest\OLI\ Database0=SolvEx.dbs
the cfg file [OLI] section should be modified to this: [OLI] NumEngines=3 MinWaterContentForSolve=0.2 DatabaseFolder=C:\SysCAD Projects\OLItest\OLI\ Database0=SolvEx.dbs Second_Liquid_Phase_Name0=o
- where:
- SolvEx.dbs contains a second liquid phase
- The SysCAD database contains corresponding species for mapping to the second liquid phase using the individual phase "o" for organic, i.e.:
- C12H26(o)
- R3NH2SO4(o)
- etc...
Edit TCE Configuration Manually (Before Build 139.29706)
Prior to Build 139.29706 (and for BETA versions in Build 138), it was required to edit the configuration file manually by opening the .cfg file in a text editor (e.g.: Notepad++). The required syntax is given below.
NOTE: For older projects upgraded to Build 139.29706 or later, please edit the configuration file via the Configuration editor to auto-update these settings to the new format. Be sure to review database folder location and file selection. Once the TCE configuration data has been updated via this method, the following old format is ignored.
Examples
- Example 1: If you are wanting to not allow PHREEQC to solve below 20% water, and you want to use 5 engines, you would add the following lines to the configuration:
[PHREEQC] MinWaterContentForSolve=0.2 NumEngines=5
- Example 2: You can specify to use the demonstration version of the interface for PHREEQC, ChemApp, and AQSol by adding the following line in the configuration file:
[AQSol] UseDemoVersion=1
[ChemApp] UseDemoVersion=1
[PHREEQC] UseDemoVersion=1
- If this line does not exist, SysCAD will assume that you wish to use the licensed version. The Demonstration version has some limitations but can be used for:
- Regular operation for a limited number of species
- Full single point calculations in the DirectCalc unit operation
- If this line does not exist, SysCAD will assume that you wish to use the licensed version. The Demonstration version has some limitations but can be used for:
- Example 3: If you are storing the TCE database files in a folder at the same folder level as the CfgFiles, i.e. one folder above each project, you would specify the database options as shown below.
[AQSol_DATABASES] DB0000=$Prj\~\Databases\AQSol001.dat DBName0000=AQSol001.dat
[ChemApp_DATABASES] DB0000=$Prj\~\ChemApp_DAT_File\cno.dat DBName0000=cno.dat
[PHREEQC_DATABASES] DB0000=$Prj\~\Databases_for_PHREEQC\minteq.v4.dat DB0001=$Prj\~\Databases_for_PHREEQC\pitzer.dat DBName0000=minteq_v4 DBName0001=pitzer
NOTES:
- The examples are given for AQSol, ChemApp and PHREEQC. You can copy and paste this into your configuration file, change the name as required, and then specify the correct database folder and database filenames.
- In the above, DB0000 line entry specifies the actual file location. DBName0000 specifies the short name for this file, which is listed as an option within a model configuration unit in SysCAD.
- The $Prj is a shortcut for the project folder. The \~\ moves the location to one folder above the project folder. Thus, $Prj\~\Databases would look for the Databases folder from the parent folder of the project folder (usually where you store the configuration folder CfgFiles).
- You can also use full path names for the files.
Additional steps for AQSol
SysCAD 138 required an AQSol configuration file similar to this example. H2O Aqueous Solutions ApS (https://www.phasediagram.dk/) has added new functionality to the AQSol software which eliminates the need for an AQSol configuration file. Users of AQSol can contact H2O Aqueous Solutions ApS to get an updated AQSol dll that does not require an AQSol configuration file.
That being said, the AQSol configuration file can continue to be used with your existing AQSol dll version. However, in this case, the user must add the following line to their AQSol configuration file (this line is NOT added by the SysCAD configuration editor when modifying from the TCEs tab):
DllPath C:\Program Files (x86)\AQSOLxxx\
This update is required to ensure that the correct AQSol dll is loaded. Note that the above is the normal installation location of AQSol. If it is located elsewhere, set the DllPath to the correct location.
This step is only required if you wish to use your existing AQSol dll.