34 const word& combustionProperties,
38 const word combModelName
44 IOobject::groupName(combustionProperties, phaseName),
51 ).
lookup(
"combustionModel")
54 Info<<
"Selecting combustion model " << combModelName <<
endl;
56 dictionaryConstructorTable::iterator cstrIter =
57 dictionaryConstructorTablePtr_->find(combModelName);
59 if (cstrIter == dictionaryConstructorTablePtr_->end())
62 <<
"Unknown psiCombustionModel type " 63 << combModelName << endl << endl
64 <<
"Valid combustionModels are : " << endl
65 << dictionaryConstructorTablePtr_->toc()
69 const word className = combModelName(0, combModelName.find(
'<'));
73 cstrIter()(className,
mesh, combustionProperties, phaseName)
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Ostream & endl(Ostream &os)
Add newline and flush stream.
const Time & time() const
Return the top-level database.
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
A class for handling words, derived from string.
const word & constant() const
Return constant name.
static autoPtr< psiCombustionModel > New(const fvMesh &mesh, const word &combustionProperties=combustionPropertiesName, const word &phaseName=word::null)
Selector.
Mesh data needed to do the Finite Volume discretisation.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.