etc/codeTemplates/dynamicCode: Added basicChemistryModel dynamic compilation support
for chemFoam, fireFoam, buoyantReactingFoam, reactingFoam, chtMultiRegionFoam, buoyantReactingParticleFoam, reactingParticleFoam, simpleReactingParticleFoam If the combination of chemistry model and solver selected in chemistryProperties is not already compiled and present in the standard libraries for the selected thermophysical properties the chemistry package will be constructed and compiled automatically using the standard dynamicCode system provided in OpenFOAM. The chemistry package is constructed automatically from the etc/codeTemplates/dynamicCode/basicChemistryModel.* files, if these files do not exist the standard chemistry lookup error message is generated as before. As with all other dynamicCode options in OpenFOAM (codeStream, codedFunctionObject etc.) dynamic compilation of the chemistry package is only enabled if allowSystemOperations is set true.
This commit is contained in:
54
etc/codeTemplates/dynamicCode/basicChemistryModel
Normal file
54
etc/codeTemplates/dynamicCode/basicChemistryModel
Normal file
@ -0,0 +1,54 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Version: dev
|
||||
\\/ M anipulation |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
object basicChemistryModel;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
solver
|
||||
(
|
||||
EulerImplicit
|
||||
ode
|
||||
noChemistrySolver
|
||||
);
|
||||
|
||||
solverRenamed
|
||||
(
|
||||
none noChemistrySolver
|
||||
);
|
||||
|
||||
method
|
||||
(
|
||||
Standard
|
||||
TDAC
|
||||
);
|
||||
|
||||
methodRenamed
|
||||
(
|
||||
standard Standard
|
||||
);
|
||||
|
||||
codeOptions
|
||||
#{
|
||||
EXE_INC = \
|
||||
-I$(LIB_SRC)/transportModels/lnInclude \
|
||||
-I$(LIB_SRC)/thermophysicalModels/specie/lnInclude \
|
||||
-I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \
|
||||
-I$(LIB_SRC)/thermophysicalModels/reactionThermo/lnInclude \
|
||||
-I$(LIB_SRC)/thermophysicalModels/chemistryModel/lnInclude \
|
||||
-I$(LIB_SRC)/ODE/lnInclude \
|
||||
-I$(LIB_SRC)/finiteVolume/lnInclude \
|
||||
-I$(LIB_SRC)/meshTools/lnInclude
|
||||
#};
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
Reference in New Issue
Block a user