41 word modelType(sootModels::noSoot::typeName);
42 if (
dict.found(sootModel::typeName))
44 dict.lookup(sootModel::typeName) >> modelType;
45 Info<<
"Selecting soot model " << modelType <<
endl;
50 if (cmpts.
size() == 3)
55 <<
"Template parameters are no longer required when selecting a "
56 << sootModel::typeName <<
". This information is now "
57 <<
"obtained directly from the thermodynamics. Actually selecting "
58 <<
"combustion model " << modelType <<
"." <<
endl;
61 typename dictionaryConstructorTable::iterator cstrIter =
62 dictionaryConstructorTablePtr_->find(modelType);
64 if (cstrIter == dictionaryConstructorTablePtr_->end())
67 <<
"Unknown " << sootModel::typeName <<
" type "
68 << modelType <<
nl <<
nl
69 <<
"Valid " << sootModel::typeName <<
" types are:" <<
nl
70 << dictionaryConstructorTablePtr_->sortedToc()
76 cstrIter()(
dict.optionalSubDict(modelType +
"Coeffs"),
mesh, modelType)
void size(const label)
Override size to be inconsistent with allocated storage.
static wordList splitThermoName(const word &thermoName, const int nCmpt)
Split name of thermo package into a list of the components names.
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
Mesh data needed to do the Finite Volume discretisation.
const fvMesh & mesh() const
Reference to the mesh.
static autoPtr< sootModel > New(const dictionary &dict, const fvMesh &mesh)
Selector.
A class for handling words, derived from string.
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
#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.