35 const word& combustionProperties
51 word modelType(combustionModels::noCombustion::typeName);
54 IOdictionary(combIO).lookup(combustionModel::typeName) >> modelType;
58 Info<<
"Combustion model not active: "
60 <<
" not found" <<
endl;
63 Info<<
"Selecting combustion model " << modelType <<
endl;
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)
const Mesh & mesh() const
Return mesh.
IOdictionary(const IOobject &io, const word &wantedType)
Construct given an IOobject, supply wanted typeName.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
void size(const label)
Override size to be inconsistent with allocated storage.
static word phasePropertyName(const word &name, const word &phaseName)
Name of a property for a given phase.
static wordList splitThermoName(const word &thermoName, const int nCmpt)
Split name of thermo package into a list of the components names.
virtual const volScalarField & T() const =0
Temperature [K].
const fluidMulticomponentThermo & thermo() const
Return const access to the thermo.
static autoPtr< combustionModel > New(const fluidMulticomponentThermo &thermo, const compressibleMomentumTransportModel &turb, const word &combustionProperties=combustionPropertiesName)
Select using thermo and turbulence.
Base class for single-phase compressible turbulence models.
Base-class for multi-component fluid thermodynamic properties.
Templated form of IOobject providing type information for file reading and header type checking.
bool headerOk()
Read header (uses typeGlobalFile to find file) and check.
A class for handling words, derived from string.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
#define WarningInFunction
Report a warning using Foam::Warning.
errorManipArg< error, int > exit(error &err, const int errNo=1)
Ostream & endl(Ostream &os)
Add newline and flush stream.
fluidMulticomponentThermo & thermo