Generic base class for interface composition models. These models describe the composition in phase 1 of the supplied pair at the interface with phase 2. More...

Public Member Functions | |
| TypeName ("interfaceCompositionModel") | |
| Runtime type information. More... | |
| declareRunTimeSelectionTable (autoPtr, interfaceCompositionModel, dictionary,(const dictionary &dict, const phaseInterface &interface),(dict, interface)) | |
| interfaceCompositionModel (const dictionary &dict, const phaseInterface &interface) | |
| Construct from a dictionary and an interface. More... | |
| virtual | ~interfaceCompositionModel () |
| Destructor. More... | |
| const sidedPhaseInterface & | interface () const |
| Return the interface. More... | |
| const hashedWordList & | species () const |
| Return the transferring species names. More... | |
| const rhoMulticomponentThermo & | thermo () const |
| Return the thermo. More... | |
| const basicSpecieMixture & | composition () const |
| Return the composition. More... | |
| const rhoThermo & | otherThermo () const |
| Return the other thermo. More... | |
| bool | otherHasComposition () const |
| Return whether the other side has a multi-specie composition. More... | |
| const basicSpecieMixture & | otherComposition () const |
| Return the other composition. More... | |
| virtual tmp< volScalarField > | Yf (const word &speciesName, const volScalarField &Tf) const =0 |
| Interface mass fraction. More... | |
| virtual tmp< volScalarField > | YfPrime (const word &speciesName, const volScalarField &Tf) const =0 |
| The interface mass fraction derivative w.r.t. temperature. More... | |
| tmp< volScalarField > | dY (const word &speciesName, const volScalarField &Tf) const |
| Mass fraction difference between the interface and the field. More... | |
| tmp< volScalarField > | dYfPrime (const word &speciesName, const volScalarField &Tf) const |
| Mass fraction difference between the interface and the field. More... | |
| tmp< volScalarField > | D (const word &speciesName) const |
| Mass diffusivity. More... | |
| virtual void | update (const volScalarField &Tf)=0 |
| Update the composition. More... | |
Static Public Member Functions | |
| static autoPtr< interfaceCompositionModel > | New (const dictionary &dict, const phaseInterface &interface, const bool outer=true) |
Generic base class for interface composition models. These models describe the composition in phase 1 of the supplied pair at the interface with phase 2.
Definition at line 56 of file interfaceCompositionModel.H.
| interfaceCompositionModel | ( | const dictionary & | dict, |
| const phaseInterface & | interface | ||
| ) |
Construct from a dictionary and an interface.
Definition at line 43 of file interfaceCompositionModel.C.
|
virtual |
Destructor.
Definition at line 65 of file interfaceCompositionModel.C.
| TypeName | ( | "interfaceCompositionModel" | ) |
Runtime type information.
| declareRunTimeSelectionTable | ( | autoPtr | , |
| interfaceCompositionModel | , | ||
| dictionary | , | ||
| (const dictionary &dict, const phaseInterface &interface) | , | ||
| (dict, interface) | |||
| ) |
|
static |
Definition at line 32 of file interfaceCompositionModelNew.C.
References dict, Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, phaseInterface::fluid(), Foam::Info, interfaceCompositionModel::interface(), dictionary::lookup(), phaseSystem::modelSubDict(), sidedPhaseInterface::name(), and Foam::outer().
Referenced by nonRandomTwoLiquid::nonRandomTwoLiquid(), and Raoult::Raoult().


|
inline |
Return the interface.
Definition at line 31 of file interfaceCompositionModelI.H.
Referenced by interfaceCompositionModel::New(), nonRandomTwoLiquid::nonRandomTwoLiquid(), and Raoult::Raoult().

|
inline |
Return the transferring species names.
Definition at line 37 of file interfaceCompositionModelI.H.
Referenced by InterfaceCompositionPhaseChangePhaseSystem< BasePhaseSystem >::correct(), InterfaceCompositionPhaseChangePhaseSystem< BasePhaseSystem >::correctInterfaceThermo(), Henry::Henry(), InterfaceCompositionPhaseChangePhaseSystem< BasePhaseSystem >::InterfaceCompositionPhaseChangePhaseSystem(), nonRandomTwoLiquid::nonRandomTwoLiquid(), Raoult::Raoult(), saturated::saturated(), and InterfaceCompositionPhaseChangePhaseSystem< BasePhaseSystem >::specieTransfer().

|
inline |
Return the thermo.
Definition at line 44 of file interfaceCompositionModelI.H.
Referenced by saturated::wRatioByP().

|
inline |
Return the composition.
Definition at line 51 of file interfaceCompositionModelI.H.
Referenced by nonRandomTwoLiquid::nonRandomTwoLiquid(), and saturated::wRatioByP().

|
inline |
Return the other thermo.
Definition at line 57 of file interfaceCompositionModelI.H.
|
inline |
Return whether the other side has a multi-specie composition.
Definition at line 63 of file interfaceCompositionModelI.H.
|
inline |
Return the other composition.
Definition at line 70 of file interfaceCompositionModelI.H.
|
pure virtual |
Interface mass fraction.
Implemented in saturated, Raoult, nonRandomTwoLiquid, and Henry.
Referenced by InterfaceCompositionPhaseChangePhaseSystem< BasePhaseSystem >::correct().

|
pure virtual |
The interface mass fraction derivative w.r.t. temperature.
Implemented in saturated, Raoult, nonRandomTwoLiquid, and Henry.
| Foam::tmp< Foam::volScalarField > dY | ( | const word & | speciesName, |
| const volScalarField & | Tf | ||
| ) | const |
Mass fraction difference between the interface and the field.
Definition at line 71 of file interfaceCompositionModel.C.
References composition, basicSpecieMixture::species(), and basicSpecieMixture::Y().
Referenced by InterfaceCompositionPhaseChangePhaseSystem< BasePhaseSystem >::correctInterfaceThermo().


| Foam::tmp< Foam::volScalarField > dYfPrime | ( | const word & | speciesName, |
| const volScalarField & | Tf | ||
| ) | const |
Mass fraction difference between the interface and the field.
derivative w.r.t. temperature
Definition at line 83 of file interfaceCompositionModel.C.
Referenced by InterfaceCompositionPhaseChangePhaseSystem< BasePhaseSystem >::correctInterfaceThermo().

| Foam::tmp< Foam::volScalarField > D | ( | const word & | speciesName | ) | const |
Mass diffusivity.
Definition at line 93 of file interfaceCompositionModel.C.
References composition, Cp(), IOobject::groupName(), Foam::constant::electromagnetic::kappa, GeometricField< Type, PatchField, GeoMesh >::New(), p, rho, basicSpecieMixture::species(), and Foam::T().
Referenced by InterfaceCompositionPhaseChangePhaseSystem< BasePhaseSystem >::correct(), and InterfaceCompositionPhaseChangePhaseSystem< BasePhaseSystem >::correctInterfaceThermo().


|
pure virtual |
Update the composition.
Implemented in saturated, Raoult, nonRandomTwoLiquid, and Henry.
Referenced by InterfaceCompositionPhaseChangePhaseSystem< BasePhaseSystem >::correctInterfaceThermo().
