45 const dictionary& relaxationDict
48 dictionary(relaxationDict),
49 coeffDict_(optionalSubDict(type +
"Coeffs"))
57 const dictionary& relaxationDict
60 word faceAreaWeightModelTypeName
62 relaxationDict.lookup(
"faceAreaWeightModel")
65 Info<<
nl <<
"Selecting faceAreaWeightModel " 66 << faceAreaWeightModelTypeName <<
endl;
68 dictionaryConstructorTable::iterator cstrIter =
69 dictionaryConstructorTablePtr_->find(faceAreaWeightModelTypeName);
71 if (cstrIter == dictionaryConstructorTablePtr_->end())
74 <<
"Unknown faceAreaWeightModel type " 75 << faceAreaWeightModelTypeName
77 <<
"Valid faceAreaWeightModel types are :" << endl
78 << dictionaryConstructorTablePtr_->toc()
82 return autoPtr<faceAreaWeightModel>(cstrIter()(relaxationDict));
faceAreaWeightModel(const word &type, const dictionary &faceAreaWeightDict)
Construct from components.
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.
Macros for easy insertion into run-time selection tables.
static autoPtr< faceAreaWeightModel > New(const dictionary &faceAreaWeightDict)
Return a reference to the selected faceAreaWeightModel.
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
defineTypeNameAndDebug(combustionModel, 0)
virtual ~faceAreaWeightModel()
Destructor.
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.