Go to the documentation of this file.
34 namespace regionModels
36 namespace pyrolysisModels
44 const word& regionType
54 regionType +
"Properties",
55 mesh.time().constant(),
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()
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
A class for handling words, derived from string.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
Ostream & endl(Ostream &os)
Add newline and flush stream.
static autoPtr< pyrolysisModel > New(const fvMesh &mesh, const word ®ionType="pyrolysis")
Return a reference to the selected pyrolysis model.
A list of keyword definitions, which are a keyword followed by any number of values (e....
Mesh data needed to do the Finite Volume discretisation.
errorManipArg< error, int > exit(error &err, const int errNo=1)
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.