34 namespace regionModels
36 namespace pyrolysisModels
44 const word& regionType
54 regionType +
"Properties",
64 Info<<
"Selecting pyrolysisModel " << modelType <<
endl;
66 meshConstructorTable::iterator cstrIter =
67 meshConstructorTablePtr_->find(modelType);
69 if (cstrIter == meshConstructorTablePtr_->end())
72 <<
"Unknown pyrolysisModel type " << modelType
73 <<
nl <<
nl <<
"Valid pyrolisisModel types are:" <<
nl 74 << meshConstructorTablePtr_->sortedToc()
86 const word& regionType
90 const word modelType = dict.
lookup(
"pyrolysisModel");
92 Info<<
"Selecting pyrolysisModel " << modelType <<
endl;
94 dictionaryConstructorTable::iterator cstrIter =
95 dictionaryConstructorTablePtr_->find(modelType);
97 if (cstrIter == dictionaryConstructorTablePtr_->end())
100 <<
"Unknown pyrolysisModel type " << modelType
101 <<
nl <<
nl <<
"Valid pyrolisisModel types are:" <<
nl 102 << dictionaryConstructorTablePtr_->sortedToc()
errorManipArg< error, int > exit(error &err, const int errNo=1)
A list of keyword definitions, which are a keyword followed by any number of values (e...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Ostream & endl(Ostream &os)
Add newline and flush stream.
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
static autoPtr< pyrolysisModel > New(const fvMesh &mesh, const word ®ionType="pyrolysis")
Return a reference to the selected pyrolysis model.
A class for handling words, derived from string.
const word & constant() const
Return constant name.
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...
const Time & time() const
Return the top-level database.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.