ChemApp Model Configuration
Navigation: Models -> TPS Models -> ChemApp FactSage Models -> ChemApp Model Configuration
ChemApp Overview | ChemApp Model Configuration | ChemApp Direct Calc Model | ChemApp Side Calc Model | ChemApp Reactor |
---|
See also: ChemApp SysCAD Project Workflow
This model is only available in SysCAD Build 138 and later versions. Currently in BETA - contact SysCAD for demonstrations or further information.
Contents
General Description
ChemApp is a computer program for thermodynamic phase equilibrium calculation using FactSage. It is developed and maintained by GTT-Technologies. See gtt-technologies.de for further information.
This model allows the user to define the ChemApp Model file to be used in SysCAD and some configuration of its use.
The two main functions of the "ChemApp Model Configuration" model are:
- To select a ChemApp Model File (*.dat or *.cst) and
- This allow user to use the ChemApp functionality to calculate equilibrium data. ChemApp Direct Calc Model
- For the mapping of the ChemApp species to SysCAD species/ions used in the project.
- This allows the other ChemApp models (ChemApp Side Calc Model and ChemApp Reactor) in SysCAD to convert the SysCAD species flow data to ChemApp species data (and vice-versa) and use the ChemApp functionality to calculate equilibrium data.
The ChemApp Model Configuration model does not do any calculations and has no process links to any other models in SysCAD flowsheets. Its sole purpose is for management and configuration of a selected ChemApp Model file, other unit models performing ChemApp calculations will reference this model. Therefore, this model is essential if the user wishes to use the ChemApp functionality in SysCAD, at least one of these file must exist in the project.
- For more information on how this model is used, please see ChemApp SysCAD Project Workflow.
NOTES:
- User MUST have installed a version of ChemApp on their computer. Please see gtt-technologies.de for more information.
- The user must have a ChemApp Model file before initialising the SysCAD ChemApp Model Configuration. See Referenced File (next heading) for instructions on where to find this file.
Referenced File
The file that will be referenced by the SysCAD ChemApp Model Configuration is the ChemApp Model file which either comes with the installation of ChemApp or is purchased from suppliers (GTT, M4Dynamics, ThermFACT and more). The ChemApp Model file can have extension .dat or .cst
- The .dat format can be read by a text editor, it is normally used by ChemApp light for evaluation purposes.
- The .cst format is encrypted, normally for the ChemApp full version to protect the model data information.
For example, ChemApp Light model files are stored in the \dat subfolder of the ChemAppLight installation. Typical path is C:\Program Files (x86)\GTT-Technologies\ChemAppLight\MSVC\Vx.x.x\dat.
Notes:
- This file is essential for the ChemApp functionality to work in SysCAD.
- The file can be saved at any location - it does not have to be saved in the SysCAD project.
Diagram
The diagram shows the default drawing of a ChemApp Model Configuration unit model.
Inputs and Outputs
There are no connections to this unit.
Model Theory
ChemApp requires a defined input stream which defines species composition in phases. At the given conditions (temperature, pressure), ChemApp returns an output stream in an equilibrium state..
The ChemApp Model Configuration defines the mapping of SysCAD species to ChemApp species to define the required input stream, and the convert the ChemApp output stream back to SysCAD species.
The mapping of species is based on the following criteria:
- The SysCAD phase matches the ChemApp phase, via the “IPhaseMap.txt” file.
- The elemental compositions of the SysCAD and ChemApp species must match.
- The charge of the two species must be the same. The redox state of each element is not compared, and thus, this only provides a partial check of equal redox state.
A diagram is provided below to explain the mapping process. Red lines represent the mapping criteria.
Notes:
- For each phase defined in the ChemApp Model, there should be a corresponding individual phase in SysCAD. Individual phases are all immiscible phases within an occurrence, eg. slag and liquid metal within liquid.
- Some automatic mapping functions are available to match species based on elements.
- Users can also manually adjust the mappings by selecting matching species from dropdown lists.
- Where there are multiple possible matches in either direction (i.e. more than one SysCAD species for one ChemApp species, or vice versa) mapping is completed as per the criteria above and a warning is issued to the user.
- Not ALL ChemApp species must be mapped. However, if an unmapped ChemApp species is formed in the model, a run time generated warning will result, and the model result will be incorrect.
- It is the responsibility of the user to ensure proper mapping between SysCAD and ChemApp.
- There is a utility available to generate a SysCAD database file from a ChemApp Model file. It will use data from the SysCAD default database and other databases supplied by the user to autogenerate a SysCAD database file based on the ChemApp species list.
Workflow
The suggested workflow for configuring the model is:
- On the ChemAppModelCfg tab page, browse for required .dat file.
- On the ChemAppModelCfg tab page, press the Load button to load the .dat file.
- Map the ChemApp species to SysCAD species on the ChemAppConfig tab page. The simplest way to do this is to press the Try Map Species button next to MapByElements on the ChemAppConfig tab page.
- If required, set the species Suppression on/off on the ChemAppConfig tab page.
- Once these steps are performed and the mappings are checked, the project can be run.
NOTES:
- The ChemApp Direct Calc Model does not require species mapping between ChemApp and SysCAD. If the user wants to perform ChemApp Direct Calculations only, then only Steps 1 and 2 are required from the above workflow.
- Any other ChemApp unit models such as the ChemApp Side Calc Model or ChemApp Reactor referencing this ChemApp Model Configuration unit model will use the mappings defined.
Data Sections
The tabs and variable names are described in detail in the following tables.
- ChemAppModelCfg tab - This first tab requires the user select the ChemApp database file and has various related options and parameters.
- ChemAppConfig tab - This tab requires the user to map the ChemApp ions/species to the equivalent species/ions in SysCAD, so that ChemApp stream compositions can be converted to a SysCAD stream and vice-versa.
- ScdSpMap tab - This tab reports the SysCAD to ChemApp species mapping as a result of choices made on the ChemAppConfig tab page, so the SysCAD stream composition can be converted to a ChemApp stream.
- Engines tab - This tab contains information about the ChemApp Engines.
- Info tab - contains general settings for the unit and allows the user to include documentation about the unit and create Hyperlinks to external documents.
ChemApp Model Configuration tab page
Unit Type: ChemAppModelCfg - The first tab page in the access window will have this name.
Tag (Long/Short) | Input / Calc | Description/Calculated Variables / Options |
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:
|
======== BETA VERSION ======== This program contains ChemApp (or ChemApp "light") Copyright GTT-Technologies, Kaiserstrasse 103, D-52134 Herzogenrath, Germany http://www.gtt-technologies.de | ||
Interface... | ||
Acknowledgement | Display | This program contains ChemApp (or ChemApp "light") Copyright GTT-Technologies, Kaiserstrasse 103, D-52134 Herzogenrath, Germany http://www.gtt-technologies.de |
Website | Web Link | https://gtt-technologies.de/software/chemapp |
Version | Display | This displays the version of ChemApp installed on the user's computer |
License.ID | Display | This displays the ChemApp License ID number. (This is purchased separately from GTT). For ChemApp light, it may display 0001. |
License.User | Display | This displays the Registered ChemApp User. For ChemApp light, it may display "Demonstration Version". |
License.Expiration | Display | This displays the ChemApp License Expiration Date. |
Model... | ||
Select ChemApp FACTSage database file | ||
FileName | Input | This is the name of the ChemApp Model (database) file that was created by ChemApp, e.g. cosi.dat |
Folder | Display | The folder where the database file shown above is saved. |
Browse | ![]() |
Click on this button to browse to the required database file. |
Load | ![]() ![]() |
Click on this button to load the required database file. If the model has not been initialised, then the button will show "Init and Load" and when pressed the model will first be initialised and then the database file will be loaded. |
DefnStatus | List | If the model has been loaded and no errors have been detected then will show OK, otherwise will show error message. |
SpDBCount | Display | The number of species loaded from the ChemApp database file. |
Sol.Count | Display | The number of solid species loaded from the ChemApp database file. |
Liq.Count | Display | The number of liquid species loaded from the ChemApp database file. |
Vap.Count | Display | The number of gaseous species loaded from the ChemApp database file. |
ElemCount | Display | The number of elements used in the species that are defined in the SysCAD project. |
ElemList | Display | The list of the elements used in the species that are defined in the SysCAD project. |
Mapping Tolerances | ||
Discard.Tol.SigDigits | Input | This provides an easy way to change the Discard.Tol.Rel value. For example, 4 here will set 1.00e-4 to Discard.Tol.Rel. If user changes the Discard.Tol.Rel value, this value will also be updated. |
Discard.Tol.Rel | Input | The relative tolerance for ignoring species produced from the ChemApp calculations. If the mass fraction of a species is > DiscardTol and it is not mapped to a SysCAD species/ion then an error is generated. |
Convergence Tolerances | ||
ElemBal.Tol.SigDigits | Input | This provides an easy way to change the ElemBal.Tol.Rel value. For example, 4 here will set 1.00e-4 to ElemBal.Tol.Rel. If user changes the ElemBal.Tol.Rel value, this value will also be updated. |
ElemBal.Tol.Rel | Input | The relative tolerance for ChemApp Element Balance (Input - Output). If the relative error is > ElemBal.Tol.Rel then an error is generated. The ElemBal is used in ChemApp Side Calc Model and ChemApp Reactor. |
EnthConv.Tol.SigDigits | Input | This provides an easy way to change the EnthConv.Tol.Rel value. For example, 4 here will set 1.00e-4 to EnthConv.Tol.Rel. If user changes the EnthConv.Tol.Rel value, this value will also be updated. |
EnthConv.Tol.Rel | Input | Enthalpy convergence tolerance. This is used for iterative enthalpy convergence calculations in SysCAD. |
ChemAppConfig tab page
This tab is used to map the ChemApp species/ions to the SysCAD species/ions. There are usually more ChemApp solid species than there are solid species in the SysCAD project.
Tag (Long/Short) | Input / Calc | Description/Calculated Variables / Options |
ChemAppConfig... | ||
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. |
Map CHEMAPP species to SysCAD species | ||
MapByElements | ![]() |
This will try to map the ChemApp species/ions to the SysCAD species/ions based on their Elemental compositions. |
CheckMapByElements | ![]() |
This will check the mapping of the ChemApp species/ions to the SysCAD species/ions based on their Elemental compositions. Any unexpected results in the current mappings will be displayed as warnings in the Messages Window. |
MaximumMWDiff / MaxMWDiff | Input | This is the maximum allowed difference between molecular weights of mapped species without generating a warning when CheckMapByElements is pressed. |
MaximumChargeDiff / MaxChargeDiff | Input | This is the maximum allowed charge difference between mapped species without generating a warning when CheckMapByElements is pressed. |
SpDBCount | Display | The number of species/ions defined in the ChemApp database. |
SpUsedCount | Display | The number of species/ions in the ChemApp database that are used in the project. These are shown on the ChemAppConfig tab page. |
SpMappedCount | Display | The number of species/ions in the ChemApp database that have been mapped to equivalent SysCAD species/ions. |
SpCFECount | Display | The number of species/ions in the ChemApp database that can be used with CFE (constrained free energy). |
DetailedGridView | Tickbox | Global selection. If enabled, more fields will be shown in grid views (tables) including the tables on this page. |
Suppress | ![]() |
User can suppress the formation of all species currently visible by pressing this button. The Sup option for all species currently visible will be ticked when you press this button. |
Unsuppress | ![]() |
User can disable the suppress option of all species currently visible by pressing this button. The Sup option for all species currently visible will be unticked when you press this button. |
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. | |
OtherIPhase | Only show "OtherIPhase" individual phase species, hide other species. The individual phases shown will depend on the ChemApp 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 ChemApp species/ions from the selected database and the mapped SysCAD species/ions. The user can choose, or change, the mapped SysCAD species/ions using the dropdown list.) (Each table has the following columns (one row per ChemApp species/ion):) | ||
Sup | Tickbox | User can suppress the formation of species by ticking this option. Note that suppressing species may have a profound effect on the final chemistry, so a good understanding of actual process chemistry is very important when building a predictive model. |
MoleWt | Display | The Molecular Weight of the ChemApp species/ion. |
Charge | Display | Only shown if DetailedGridView has been enabled. The electrical charge of the ChemApp species/ion. |
IsCFE | Display | Only shown if DetailedGridView has been enabled. |
Index | Display | Only shown if DetailedGridView has been enabled. The index of the ChemApp species/ion. |
MappedSpecies | List | The user may select the most appropriate SysCAD species from a dropdown list to map to the ChemApp species. |
MapSpByEl | Button | Only shown if DetailedGridView has been enabled. If pressed, SysCAD will try to find the most appropriate SysCAD species to map to this ChemApp species by matching elemental compositions. |
At the bottom of each phase table, the following two buttons will appear: | ||
SuppressIPhase | ![]() |
User can suppress the formation of the entire individual phase by pressing this button. The Sup option for all species within this individual phase will be ticked when you press this button (even species that are not visible). |
UnsuppressIPhase | ![]() |
User can disable the suppress option of all species within the entire individual phase by pressing this button. The Sup option for all species within this individual phase will be unticked when you press this button (even species that are not visible). |
ScdSpMap tab page
This tab is used to display the mapping of SysCAD species to ChemApp species. This is often a 1 to 1 mapping. This shows how a SysCAD species is mapped to a ChemApp species.
Tag (Long/Short) | Input / Calc | Description/Calculated Variables / Options |
SysCAD to CHEMAPP mapping | ||
ScdSpMap... | ||
(The following table displays all the SysCAD species in the project with its mapped ChemApp species (if there is one).) (The table has the following columns (one row per SysCAD species):) | ||
Mapping | Display | The name of the first mapped ChemApp species (if there is one). |
MapCount | Display | The number of ChemApp species that are mapped to the relevant SysCAD species. |
MW_Diff | Display | The difference in Molecular Weights between the SysCAD species and the the first mapped ChemApp species (shown in the name column). |
Engines tab page
Tag (Long/Short) | Input / Calc | Description/Calculated Variables / Options |
======== BETA VERSION ======== This program contains ChemApp (or ChemApp "light") Copyright GTT-Technologies, Kaiserstrasse 103, D-52134 Herzogenrath, Germany http://www.gtt-technologies.de | ||
Global Engines for CHEMAPP Interface | ||
Interface... | ||
Status | OK | The engines have all been initialised correctly. |
Init Required | The engines to be initialised. | |
Init Failed | The engines initialisation has been attempted but failed. | |
Not installed | ||
Wrong Version | ||
Reload | If the user clicks on the 'Reload' button, then it will Reload the ChemApp engines. | |
InitTime | Display | The time taken to initialise the engines on the last attempt. |
TotalCalcCount | Display | The number of calculations that have been performed by all of the ChemApp engines combined. The calculations are required for units such as the ChemApp Direct Calc Model, ChemApp Side Calc Model or ChemApp Reactor . This is cumulative and may include multiple iterations. It is reset to zero at the beginning of a run. |
TotalCalcTime | Display | The cumulative amount of time that ChemApp engines have been performing calculations. |
AverageCalcTime | Display | The average amount of time required for ChemApp calculations. AverageCalcTime = TotalCalcTime/TotalCalcCount. Because ChemApp engines are used by all ChemApp Model Configurations, this represents the average calculation time over all of the models used. |
TotalReloadCount | Display | The number of model reloads that have been performed by all of the ChemApp engines combined. The reloads are required when an engine switches between models. It is reset to zero at the beginning of a run. |
TotalReloadTime | Display | The cumulative amount of time that ChemApp engines have been reloading different models. |
AverageReloadTime | Display | The average amount of time required for a ChemApp reload. AverageCalcTime = TotalReloadTime/TotalReloadCount. Because ChemApp engines are used by all ChemApp Model Configurations, this represents the average reload time over all of the models used. |
TotalWaitTime | Display | |
(Times that Engine instances are locked. The following parameters are shown for 3 ChemApp Engines:) | ||
TimeLocked | Display | The time that the relevant Engine is locked. |
Status | OK | The model has been initialised correctly and the database file has been found and loaded correctly. |
Init Required | The model needs to be initialised. | |
Init Failed | The model initialisation has been attempted but failed. | |
Not installed | ||
Wrong Version |
Adding this Model to a Project
Insert into Configuration file
Sort either by DLL or Group.
|
DLL: |
ScdChemApp.dll |
→ |
Units/Links |
→ |
ChemApp: ChemApp Chem Model Configuration |
or |
Group: |
General |
→ |
Units/Links |
→ |
ChemApp: ChemApp Chem Model Configuration |
See Project Configuration for more information on adding models to the configuration file.
Insert into Project
|
Insert Unit |
→ |
ChemApp |
→ |
ChemApp Chem Model Configuration |
See Insert Unit for general information on inserting units.