35 const word& combustionProperties
43 thermo.
T().
mesh().time().constant(),
51 word modelType(combustionModels::noCombustion::typeName);
58 Info<<
"Combustion model not active: " 60 <<
" not found" <<
endl;
63 Info<<
"Selecting combustion model " << modelType <<
endl;
65 const wordList cmpts2(basicThermo::splitThermoName(modelType, 2));
66 const wordList cmpts3(basicThermo::splitThermoName(modelType, 3));
67 if (cmpts2.
size() == 2 || cmpts3.
size() == 3)
69 modelType = cmpts2.
size() ? cmpts2[0] : cmpts3[0];
72 <<
"Template parameters are no longer required when selecting a " 73 << combustionModel::typeName <<
". This information is now " 74 <<
"obtained directly from the thermodynamics. Actually selecting " 75 <<
"combustion model " << modelType <<
"." <<
endl;
78 typename dictionaryConstructorTable::iterator cstrIter =
79 dictionaryConstructorTablePtr_->find(modelType);
81 if (cstrIter == dictionaryConstructorTablePtr_->end())
84 <<
"Unknown " << combustionModel::typeName <<
" type " 85 << modelType <<
nl <<
nl 86 <<
"Valid " << combustionModel::typeName <<
" types are:" <<
nl 87 << dictionaryConstructorTablePtr_->sortedToc()
90 const wordList names(dictionaryConstructorTablePtr_->sortedToc());
95 cstrIter()(modelType,
thermo, turb, combustionProperties)
fluidReactionThermo & thermo
static word phasePropertyName(const word &name, const word &phaseName)
Name of a property for a given phase.
bool headerOk()
Read header (uses typeGlobalFile to find file) and check.
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Templated form of IOobject providing type information for file reading and header type checking...
void size(const label)
Override size to be inconsistent with allocated storage.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Base-class for multi-component fluid thermodynamic properties.
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
static autoPtr< combustionModel > New(const fluidReactionThermo &thermo, const compressibleMomentumTransportModel &turb, const word &combustionProperties=combustionPropertiesName)
Select using thermo and turbulence.
A class for handling words, derived from string.
const Mesh & mesh() const
Return mesh.
#define WarningInFunction
Report a warning using Foam::Warning.
virtual const volScalarField & T() const =0
Temperature [K].
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
Base class for single-phase compressible turbulence models.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.