42 faceAreaWeightModel::faceAreaWeightModel
45 const dictionary& relaxationDict
48 dictionary(relaxationDict),
49 coeffDict_(subDict(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));
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.
fileName::Type type(const fileName &)
Return the file type: DIRECTORY or FILE.