45 const dictionary& relaxationDict,
49 dictionary(relaxationDict),
51 coeffDict_(subDict(
type +
"Coeffs"))
59 const dictionary& relaxationDict,
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));