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 (e.g. fluidThermo), currently these are provided only for fluidThermo but the others will be added shortly. 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.
106 lines
1.8 KiB
C++
106 lines
1.8 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 psiThermo
|
|
heRhoThermo rhoThermo
|
|
);
|
|
|
|
energy
|
|
(
|
|
sensibleEnthalpy
|
|
absoluteEnthalpy
|
|
sensibleInternalEnergy
|
|
absoluteInternalEnergy
|
|
);
|
|
|
|
mixture
|
|
(
|
|
pureMixture
|
|
);
|
|
|
|
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/thermophysicalProperties/lnInclude \
|
|
-I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \
|
|
-I$(LIB_SRC)/finiteVolume/lnInclude
|
|
#};
|
|
|
|
codeLibs
|
|
#{
|
|
LIB_LIBS = \
|
|
-ltransportModels \
|
|
-lspecie \
|
|
-lthermophysicalProperties \
|
|
-lfluidThermophysicalModels \
|
|
-lfiniteVolume
|
|
#};
|
|
|
|
|
|
// ************************************************************************* //
|