27 #include "phasePair.H" 35 const dictionary& dict,
39 word interfaceCompositionModelType
41 word(dict.lookup(
"type"))
43 + pair.phase1().thermo().type()
45 + pair.phase2().thermo().type()
49 Info<<
"Selecting interfaceCompositionModel for " 50 << pair <<
": " << interfaceCompositionModelType <<
endl;
52 dictionaryConstructorTable::iterator cstrIter =
53 dictionaryConstructorTablePtr_->find(interfaceCompositionModelType);
55 if (cstrIter == dictionaryConstructorTablePtr_->end())
58 <<
"Unknown interfaceCompositionModelType type " 59 << interfaceCompositionModelType << endl << endl
60 <<
"Valid interfaceCompositionModel types are : " << endl
61 << dictionaryConstructorTablePtr_->sortedToc()
65 return cstrIter()(
dict, pair);
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
static autoPtr< interfaceCompositionModel > New(const dictionary &dict, const phasePair &pair)
Ostream & endl(Ostream &os)
Add newline and flush stream.