Foam::autoPtr<Foam::interfaceCompositionModel> Foam::interfaceCompositionModel::New ( const dictionary& dict, const phasePair& pair ) { word interfaceCompositionModelType ( word(dict.lookup("type")) + "<" + pair.phase1().thermo().type() + "," + pair.phase2().thermo().type() + ">" ); Info<< "Selecting interfaceCompositionModel for " << pair << ": " << interfaceCompositionModelType << endl; dictionaryConstructorTable::iterator cstrIter = dictionaryConstructorTablePtr_->find(interfaceCompositionModelType); if (cstrIter == dictionaryConstructorTablePtr_->end()) { FatalErrorInFunction << "Unknown interfaceCompositionModelType type " << interfaceCompositionModelType << endl << endl << "Valid interfaceCompositionModel types are : " << endl << dictionaryConstructorTablePtr_->sortedToc() << exit(FatalError); } return cstrIter()(dict, pair); }
Foam::InterfaceCompositionModel<Thermo, OtherThermo>::InterfaceCompositionModel ( const dictionary& dict, const phasePair& pair ) : interfaceCompositionModel(dict, pair), thermo_ ( pair.phase1().mesh().lookupObject<Thermo> ( IOobject::groupName(basicThermo::dictName, pair.phase1().name()) ) ), otherThermo_ ( pair.phase2().mesh().lookupObject<OtherThermo> ( IOobject::groupName(basicThermo::dictName, pair.phase2().name()) ) ), Le_("Le", dimless, dict.lookup("Le")) {}