Files
OpenFOAM-12/etc/codeTemplates/dynamicCode/fluidReactionThermo
Henry Weller 29bbbd6984 etc/codeTemplates/dynamicCode: Added fluidReactionThermo dynamic compilation support
for chemFoam, fireFoam, buoyantReactingFoam, reactingFoam, chtMultiRegionFoam,
buoyantReactingParticleFoam, reactingParticleFoam, simpleReactingParticleFoam

If the combination of property models selected in thermophysicalProperties is
not already compiled and present in the standard libraries the thermophysical
property package will be constructed and compiled automatically using the
standard dynamicCode system provided in OpenFOAM.

The thermophysical property package is constructed automatically from the
etc/codeTemplates/dynamicCode files for the corresponding base thermo type,
fluidThermo, fluidReactionThermo etc. If the corresponding codeTemplates files
do not exist the standard thermo lookup error message is generated as before.

As with all other dynamicCode options in OpenFOAM (codeStream,
codedFunctionObject etc.) dynamic compilation of the thermophysical property
package is only enabled if allowSystemOperations is set true.
2021-04-16 18:42:38 +01:00

114 lines
2.1 KiB
C++

/*--------------------------------*- 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 fluidThermo;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
type
(
hePsiThermo
heRhoThermo
);
baseType
(
hePsiThermo psiReactionThermo
heRhoThermo rhoReactionThermo
);
energy
(
sensibleEnthalpy
absoluteEnthalpy
sensibleInternalEnergy
absoluteInternalEnergy
);
mixture
(
singleComponentMixture
coefficientMultiComponentMixture
valueMultiComponentMixture
coefficientWilkeMultiComponentMixture
);
renameMixture
(
pureMixture singleComponentMixture
multiComponentMixture coefficientMultiComponentMixture
);
transport
(
const
icoTabulated
logPolynomial
polynomial
sutherland
tabulated
WLF
);
thermo
(
eConst
eIcoTabulated
ePolynomial
ePower
eTabulated
hConst
hIcoTabulated
hPolynomial
hPower
hTabulated
janaf
);
equationOfState
(
adiabaticPerfectFluid
Boussinesq
icoPolynomial
icoTabulated
incompressiblePerfectGas
linear
PengRobinsonGas
perfectFluid
perfectGas
rhoConst
rhoTabulated
rPolynomial
);
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)/finiteVolume/lnInclude
#};
codeLibs
#{
LIB_LIBS = \
-ltransportModels \
-lspecie \
-lfluidThermophysicalModels \
-lfiniteVolume
#};
// ************************************************************************* //