32 const dictionary& dict,
33 const phaseInterface& interface,
35 const bool registerObject
38 const dictionary& modelDict =
41 const word virtualMassModelType(modelDict.lookup(
"type"));
43 Info<<
"Selecting virtualMassModel for " 44 << interface.name() <<
": " << virtualMassModelType <<
endl;
46 dictionaryConstructorTable::iterator cstrIter =
47 dictionaryConstructorTablePtr_->find(virtualMassModelType);
49 if (cstrIter == dictionaryConstructorTablePtr_->end())
52 <<
"Unknown virtualMassModelType type " 53 << virtualMassModelType << endl << endl
54 <<
"Valid virtualMassModel types are : " << endl
55 << dictionaryConstructorTablePtr_->sortedToc()
65 const dictionary& dict,
66 const phaseInterface& interface
70 autoPtr<blendedVirtualMassModel>
72 new blendedVirtualMassModel(dict, interface)
static autoPtr< virtualMassModel > New(const dictionary &dict, const phaseInterface &interface, const bool outer=true, const bool registerObject=true)
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
static autoPtr< blendedVirtualMassModel > New(const dictionary &dict, const phaseInterface &interface)
Ostream & endl(Ostream &os)
Add newline and flush stream.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
bool & registerObject()
Register object created from this IOobject with registry if true.
virtualMassModel(const dictionary &dict, const phaseInterface &interface, const bool registerObject)
Construct from a dictionary and an interface.