45 const dictionary& relaxationDict,
49 dictionary(relaxationDict),
51 coeffDict_(optionalSubDict(type +
"Coeffs"))
63 word relaxationModelTypeName
65 relaxationDict.lookup(
"relaxationModel")
68 Info<<
nl <<
"Selecting relaxationModel " 69 << relaxationModelTypeName <<
endl;
71 dictionaryConstructorTable::iterator cstrIter =
72 dictionaryConstructorTablePtr_->find(relaxationModelTypeName);
74 if (cstrIter == dictionaryConstructorTablePtr_->end())
77 <<
"Unknown relaxationModel type " 78 << relaxationModelTypeName
80 <<
"Valid relaxationModel types are :" << endl
81 << dictionaryConstructorTablePtr_->toc()
85 return autoPtr<relaxationModel>(cstrIter()(relaxationDict, runTime));
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
static autoPtr< relaxationModel > New(const dictionary &relaxationDict, const Time &runTime)
Return a reference to the selected relaxationModel.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Macros for easy insertion into run-time selection tables.
dictionary()
Construct top-level dictionary null.
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
defineTypeNameAndDebug(combustionModel, 0)
relaxationModel(const word &type, const dictionary &relaxationDict, const Time &runTime)
Construct from components.
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.
virtual ~relaxationModel()
Destructor.