ChemApp Direct Calc Model
Navigation: Models -> TPS Models -> ChemApp FactSage Models -> ChemApp Direct Calc Model
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
The ChemApp Direct Calc model allows the user to 'call' the ChemApp solver to determine the state of an equilibrium solution at a given temperature/enthalpy and pressure. The user enters the mass or molar makeup of the 'Feed' stream, and the unit will then determine the equilibrium conditions of the resulting stream at the user defined temperature/enthalpy and pressure.
The model has no links to any other models in SysCAD. Therefore, this model is not a part of any SysCAD network, but is a stand-alone calculation that allows the user to check the status of an equilibrium solution.
Notes
- The user MUST have added and configured a ChemApp Model Configuration unit in the SysCAD project before this unit can function.
- The user MUST have installed a version of ChemApp on their computer to make use of the ChemApp functionality in SysCAD. Please see gtt-technologies.de for more information.
Diagram
The diagram shows the default drawing of a ChemApp Direct Calc unit model.
Inputs and Outputs
There are no connections to this unit.
Model Theory
The ChemApp Direct Calc Model uses the ChemApp algorithms and data to determine the status of the equilibrium solution.
The DInput, Input, Output and Diff pages are displayed using ChemApp species, as defined in the database (.dat or .cst) file specified in the corresponding ChemApp Model Configuration unit model. The species used in the SysCAD project are not used in this model.
The calculations performed are similar to using ChemApp directly. Please see gtt-technologies.de for more information.
Workflow
The suggested workflow for configuring the model is:
- Make sure the project contains at least one of the ChemApp Model Configuration model, and the model is loaded with the correct ChemApp database file you would like to use for the direct calculation.
- On the Direct Calc DInput tab page, type in the required feed properties for T, P and mass or mole flow of individual species.
- Press the
button to transfer the inputs from the DInput tab page to the Input tab page.
- Perform an equilibrium calculation based on constant Temperature or constant enthalpy by pressing the corresponding
button.
- The Results are displayed on the Results and Output tabs.
NOTES:
- The ChemApp Direct Calc Model does not require species mapping between ChemApp and SysCAD.
Data Sections
The tabs and variable names are described in detail in the following tables.
- ChemAppDirectCalc tab - This first tab allows the user to choose the corresponding ChemApp Model Configuration unit and set some general options.
- DInput tab - This tab allows the user to set the final conditions, specify the Input composition and perform calculations.
- VLE - Optional tab, only visible if the UseSysCADVLE/VLE.On option is enabled on the first tab page.
- CFE - Optional tab, only visible if the UseCFE option is enabled on the first tab page.
- Results tab - This tab displays the key results of the calculations.
- Input tab - This tab displays a summary of the Input stream.
- Output tab - This tab displays the Output stream results including the amounts of each species present in the final solution.
- Diff tab - Optional tab, only visible if ShowRxnDiff is enabled on the first tab page. This tab displays the amounts of each species which are formed or reacted as part of the calculations.
- ElemBal tab - This tab displays an elemental balance between the Input and Output streams.
- Deportment tab - Optional tab, only visible if the PhaseElemDeportment option is enabled on the first tab page. This tab shows the mass movement of elements for the Solid, Liquid and Gas phases.
- IDeportment tab - Optional tab, only visible if the IPhaseElemDeportment option is enabled on the first tab page. This tab shows the mass movement of elements for the selected ChemApp phases.
- ParamSweep tab - Optional tab, only visible if the ShowPlotter option is enabled on the first tab page. This tab allows the user to generate sets of data.
- SpForPlot tab - Optional tab, only visible if the SelectSp option is enabled on the ParamSweep tab. This tab allows the user to select which species to be reported in the sets of data to be generated.
- TargCalc tab - This tab allows the user to target a variable in the final solution.
- Info tab - contains general settings for the unit and allows the user to include documentation about the unit and create Hyperlinks to external documents.
ChemAppDirectCalc tab page
Unit Type: ChemAppDirectCalc - 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 "light" Copyright GTT-Technologies, Kaiserstrasse 103, D-52134 Herzogenrath, Germany http://www.gtt-technologies.de | ||
Chemistry Model | ||
ChemModel... | ||
UnitTag | List | The tag of the relevant ChemApp Model Configuration unit model- this may be chosen from the drop down list of all ChemApp Model Configuration unit models available in the project. |
ChemModel.Selected | Display | The tag of the relevant ChemApp Model Configuration unit model. |
Check | ![]() |
If the user clicks on this button, SysCAD will check that the UnitTag is a valid ChemApp Model Configuration unit model. |
ConnOK | Tickbox | If SysCAD finds a valid ChemApp Model Configuration unit model, then this field will be enabled. |
Status | OK | The specified chemistry model (ChemApp Model Configuration) has been initialised correctly and the database file has been found and loaded correctly. |
ChemModel Tag not Specified | No tag has been specified for the Chemistry Model. Specify the desired Chemistry Model (ChemApp Model Configuration) in the UnitTag field. | |
Valid ChemModel Tag Required | The tag specified for the Chemistry Model in the UnitTag field is invalid and needs to be corrected. | |
Init Required | The specified Chemistry Model (ChemApp Model Configuration) needs to be initialised. | |
ChemModel Load Required | The database of the specified Chemistry Model ((ChemApp Model Configuration) needs to be loaded. | |
DLL or Version Error | There is a problem with the ChemApp DLL or version. | |
Init Failed | Initialisation of the specified Chemistry Model ((ChemApp Model Configuration) has been attempted but failed. | |
UseSysCADVLE / VLE.On | Tickbox | This can be used to switch on the SysCAD Vapour Liquid Equilibrium (VLE) calculator. If this is 'On' then the associated page, VLE becomes visible and may be configured. |
UseCFE | Tickbox | If this is ticked, then the CFE (Constrained Free Energy) tab page will appear.
|
PhaseElemDeportment | Tickbox | If this is ticked, then the Deportment tab page will appear. This tab shows the mass movement of elements for the Solid, Liquid and Gas phases. |
IPhaseElemDeportment | Tickbox | If this is ticked, then the IDeportment tab page will appear. This tab shows the mass movement of elements for the selected ChemApp phases. |
ShowRxnDiff | Tickbox | If this is ticked, then the Diff tab page will appear. This tab shows the mass movement of each species, positive value indicates the species has been created. |
ShowPlotter | Tickbox | If this is ticked, then the ParamSweep tab page will appear. |
DebugMode | Tickbox | Allows the user to use the debug mode of ChemApp. When this mode is enabled, a log file will be written to showing the stream inputs seen by ChemApp and calculation results generated by ChemApp. |
DebugErrorFile | ![]() |
Only visible when DebugMode is ticked. Opens the error debug file that was just written to by the unit operation. |
DebugMessageFile | ![]() |
Only visible when DebugMode is ticked. Opens the message debug file that was just written to by the unit operation. |
DInput tab page
This tab is used to define the Inputs for the ChemApp calculation, including the composition in terms of ChemApp species. It also includes a button to perform calculations.
TargCalc tab page
This tab allows the user to control the outcome of the ChemApp calculation.
Tag (Long/Short) | Input / Calc | Description/Calculated Variables / Options |
Target Calculation | ||
OpMode... | ||
OpMode | Temperature | The target variable is the Temperature of the final solution. |
Enthalpy | This method is not applicable in this model as SysCAD stream information is unknown. | |
Enthalpy ChemApp | The target variable is the ChemApp Enthalpy of the final solution. | |
PhaseFormation | The target variable is the amount of a particular phase present in the final solution. | |
TemperatureReqd / T_Reqd | Input | Only visible if OpMode = Temperature. The user specified target temperature for the final solution. |
dEnth.Reqd / dH.Reqd | Input | Only visible if OpMode = Enthalpy or Enthalpy ChemApp. The user specified target change of enthalpy. |
Phase | List | Only visible if OpMode = PhaseFormation. The user can select one phase from the list of all phases in the ChemApp database. |
MoleBasis | Tickbox | Only visible if OpMode = PhaseFormation. Selecting this tickbox allows user to specify the target mole flow. If this is not selected, then mass flow is used. |
MassFlowReqd / QmReqd | Input | Only visible if OpMode = PhaseFormation and MoleBasis = unticked. The user specified mass flow of the chosen phase that is to be formed. |
MoleFlowReqd / QMlReqd | Input | Only visible if OpMode = PhaseFormationand MoleBasis = ticked. The user specified mole flow of the chosen phase that is to be formed. |
Detailed | Tickbox | If enabled, displays additional parameters for the user to specify, see AdjustVar section. |
Environmental Heat Transfer | ||
HeatLossMethod | None | No heat transfer between the unit and the environment. |
Fixed HeatFlow | The user specifies a fixed heat loss between the unit and the environment. | |
Ambient | SysCAD calculates the overall heat loss based on user specified HTC and Area and the temperature difference between the Feed and environmental temperatures. The environmental temperature is assumed to remain constant. | |
EHX.HeatLossReqd | Input | Visible when the HeatLossMethod = Fixed HeatFlow. The required heat loss. |
EHX.HTC | Input | Visible when the HeatLossMethod = Ambient. The Overall Heat Transfer coefficient. |
EHX.Area | Input | Visible when the HeatLossMethod = Ambient. The Heat Transfer area. |
EHX.AmbientT | Display | Visible when the HeatLossMethod = Ambient. The ambient temperature. The ambient temperature is specified in the Plant Model - Environment_Tab |
EHX.HeatLoss | Calc | Visible when the HeatLossMethod = Ambient. The calculated heat flowrate. |
(The following fields are only displayed if the Detailed option has been enabled.) | ||
AdjustVar... | ||
Method | AdjustT | The chosen independent variable for adjustment is Temperature. |
AdjustQMl | The chosen independent variable is flow of an individual species. | |
InitTemperature / InitT | Input | Only visible if Method = AdjustT. The initial guess to be used for the temperature of the final solution. |
MaxTemperature / MaxT | Input | Only visible if Method = AdjustT. The maximum temperature of the final solution. |
TargSpAdjust | List | Only visible if Method = AdjustQMl. The user can select a single species to have limits imposed from the list of all species in the loaded database. |
MoleBasis | Tickbox | Only visible if Method = AdjustQMl. If this box is ticked, user specifies the minimum and maximum mole flow of selected species. If this is not ticked, user can specify these flows in terms of mass flow. |
MinSpMassFlow / MinSpQm | Input | Only visible if Method = AdjustQMl and MoleBasis is not ticked. The minimum mass flow of the selected species in the final solution. |
MaxSpMassFlow / MaxSpQm | Input | Only visible if Method = AdjustQMl and MoleBasis is not ticked. The maximum mass flow of the selected species in the final solution. |
MinSpMoleFlow / MinSpQMl | Input | Only visible if Method = AdjustQMl and MoleBasis is ticked. The minimum mole flow of the selected species in the final solution. |
MaxSpMoleFlow / MaxSpQMl | Input | Only visible if Method = AdjustQMl and MoleBasis is ticked. The maximum mole flow of the selected species in the final solution. |
TargCalc... | ||
UseRelaxation | Tickbox | |
RelaxationFactor | Input | The relaxationFactor, used when UseRelaxation is ticked. Values limits: 0.001 < RelaxationFactor < 5. |
Settings | ![]() |
If the user clicks on this button, the all the target solver settings will be reset to their default values. |
Solve | ![]() |
If the user clicks on this button, SysCAD will perform the Direct Calculation based on the chosen parameters. |
Solver Options | ||
UseSysCADSolver | Tickbox | Only visible when OpMode = "Enthalpy CHEMAPP" or "PhaseFormation". Whether to use internal SysCAD solver or internal solver of ChemAppEngine. |
Adding this Model to a Project
Insert into Configuration file
Sort either by DLL or Group.
|
DLL: |
ScdChemApp.dll |
→ |
Units/Links |
→ |
ChemApp: ChemApp DirectCalc |
or |
Group: |
General |
→ |
Units/Links |
→ |
ChemApp: ChemApp DirectCalc |
See Project Configuration for more information on adding models to the configuration file.
Insert into Project
|
Insert Unit |
→ |
ChemApp |
→ |
ChemApp DirectCalc |
See Insert Unit for general information on inserting units.