33 const dictionary& dict,
34 const phaseInterface& interface,
38 const dictionary& modelDict =
43 const word wallLubricationModelType(modelDict.lookup(
"type"));
45 Info<<
"Selecting wallLubricationModel for " 46 << interface.name() <<
": " << wallLubricationModelType <<
endl;
48 dictionaryConstructorTable::iterator cstrIter =
49 dictionaryConstructorTablePtr_->find(wallLubricationModelType);
51 if (cstrIter == dictionaryConstructorTablePtr_->end())
54 <<
"Unknown wallLubricationModelType type " 55 << wallLubricationModelType << endl << endl
56 <<
"Valid wallLubricationModel types are : " << endl
57 << dictionaryConstructorTablePtr_->sortedToc()
61 return cstrIter()(modelDict, interface);
68 const dictionary& dict,
69 const phaseInterface& interface
73 autoPtr<blendedWallLubricationModel>
75 new blendedWallLubricationModel(dict, interface)
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.
static autoPtr< blendedWallLubricationModel > New(const dictionary &dict, const phaseInterface &interface)
static autoPtr< wallLubricationModel > New(const dictionary &dict, const phaseInterface &interface, const bool outer=true)
wallLubricationModel(const dictionary &dict, const phaseInterface &interface)
Construct from a dictionary and an interface.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...