34 const dictionary& dict,
35 const phaseInterface& interface,
39 const dictionary& modelDict =
44 const word interfaceCompositionModelType(modelDict.lookup(
"type"));
46 Info<<
"Selecting interfaceCompositionModel for " 47 << interface.name() <<
": " << interfaceCompositionModelType <<
endl;
49 dictionaryConstructorTable::iterator cstrIter =
50 dictionaryConstructorTablePtr_->find(interfaceCompositionModelType);
52 if (cstrIter == dictionaryConstructorTablePtr_->end())
55 <<
"Unknown interfaceCompositionModelType type " 56 << interfaceCompositionModelType << endl << endl
57 <<
"Valid interfaceCompositionModel types are : " << endl
58 << dictionaryConstructorTablePtr_->sortedToc()
69 const dictionary& dict,
70 const phaseInterface& interface
73 return autoPtr<sidedInterfaceCompositionModel>
75 new sidedInterfaceCompositionModel(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.
const sidedPhaseInterface & interface() const
Return the interface.
interfaceCompositionModel(const dictionary &dict, const phaseInterface &interface)
Construct from a dictionary and an interface.
static autoPtr< interfaceCompositionModel > New(const dictionary &dict, const phaseInterface &interface, const bool outer=true)
static autoPtr< sidedInterfaceCompositionModel > New(const dictionary &dict, const phaseInterface &interface)