Base class for interface composition models, templated on the two thermodynamic models either side of the interface. More...
Public Member Functions | |
InterfaceCompositionModel (const dictionary &dict, const phasePair &pair) | |
Construct from components. More... | |
~InterfaceCompositionModel ()=default | |
Destructor. More... | |
virtual tmp< volScalarField > | dY (const word &speciesName, const volScalarField &Tf) const |
Mass fraction difference between the interface and the field. More... | |
virtual tmp< volScalarField > | Yf (const word &speciesName, const volScalarField &Tf) const |
Reference mass fraction for species based models. More... | |
virtual tmp< volScalarField > | D (const word &speciesName) const |
Mass diffusivity of the local thermo. More... | |
virtual tmp< volScalarField > | L (const word &speciesName, const volScalarField &Tf) const |
Latent heat (to - from)(thermo - otherThermo) More... | |
InterfaceCompositionModel (const dictionary &dict, const phasePair &pair) | |
Construct from components. More... | |
~InterfaceCompositionModel ()=default | |
Destructor. More... | |
virtual tmp< volScalarField > | dY (const word &speciesName, const volScalarField &Tf) const |
Mass fraction difference between the interface and the field. More... | |
virtual tmp< volScalarField > | D (const word &speciesName) const |
Mass diffusivity. More... | |
virtual tmp< volScalarField > | L (const word &speciesName, const volScalarField &Tf) const |
Latent heat. More... | |
virtual void | addMDotL (const volScalarField &K, const volScalarField &Tf, volScalarField &mDotL, volScalarField &mDotLPrime) const |
Add latent heat flow rate to total. More... | |
template<class ThermoType > | |
const Foam::multiComponentMixture< ThermoType >::thermoType & | getLocalThermo (const word &speciesName, const multiComponentMixture< ThermoType > &globalThermo) const |
template<class ThermoType > | |
const Foam::pureMixture< ThermoType >::thermoType & | getLocalThermo (const word &speciesName, const pureMixture< ThermoType > &globalThermo) const |
template<class ThermoType > | |
Foam::tmp< Foam::volScalarField > | getSpecieMassFraction (const word &speciesName, const multiComponentMixture< ThermoType > &mixture) const |
template<class ThermoType > | |
Foam::tmp< Foam::volScalarField > | getSpecieMassFraction (const word &speciesName, const pureMixture< ThermoType > &mixture) const |
template<class ThermoType > | |
Foam::tmp< Foam::volScalarField > | MwMixture (const pureMixture< ThermoType > &mixture) const |
template<class ThermoType > | |
Foam::tmp< Foam::volScalarField > | MwMixture (const multiComponentMixture< ThermoType > &mixture) const |
![]() | |
TypeName ("interfaceCompositionModel") | |
Runtime type information. More... | |
declareRunTimeSelectionTable (autoPtr, interfaceCompositionModel, dictionary,(const dictionary &dict, const phasePair &pair),(dict, pair)) | |
interfaceCompositionModel (const dictionary &dict, const phasePair &pair) | |
Construct from a dictionary and a phase pair. More... | |
virtual | ~interfaceCompositionModel ()=default |
Destructor. More... | |
const word | transferSpecie () const |
Return the transferring species name. More... | |
const phasePair & | pair () const |
The phase pair. More... | |
virtual tmp< volScalarField > | Kexp (const volScalarField &field)=0 |
Explicit full mass transfer. More... | |
virtual tmp< volScalarField > | KSp (label modelVariable, const volScalarField &field)=0 |
Implicit mass transfer. More... | |
virtual tmp< volScalarField > | KSu (label modelVariable, const volScalarField &field)=0 |
Explicit mass transfer. More... | |
virtual const dimensionedScalar & | Tactivate () const noexcept=0 |
Reference value. More... | |
virtual bool | includeDivU () const noexcept |
bool | includeVolChange () |
Add volume change in pEq. More... | |
const word & | variable () const |
Returns the variable on which the model is based. More... | |
TypeName ("interfaceCompositionModel") | |
Runtime type information. More... | |
declareRunTimeSelectionTable (autoPtr, interfaceCompositionModel, dictionary,(const dictionary &dict, const phasePair &pair),(dict, pair)) | |
interfaceCompositionModel (const dictionary &dict, const phasePair &pair) | |
Construct from a dictionary and a phase pair. More... | |
virtual | ~interfaceCompositionModel ()=default |
Destructor. More... | |
virtual void | update (const volScalarField &Tf)=0 |
Update the composition. More... | |
const hashedWordList & | species () const |
The transferring species names. More... | |
bool | transports (word &speciesName) const |
virtual tmp< volScalarField > | YfPrime (const word &speciesName, const volScalarField &Tf) const =0 |
The interface mass fraction derivative w.r.t. temperature. More... | |
Protected Member Functions | |
template<class ThermoType > | |
const pureMixture< ThermoType >::thermoType & | getLocalThermo (const word &speciesName, const pureMixture< ThermoType > &globalThermo) const |
Get a reference to the local thermo for a pure mixture. More... | |
template<class ThermoType > | |
const multiComponentMixture< ThermoType >::thermoType & | getLocalThermo (const word &speciesName, const multiComponentMixture< ThermoType > &globalThermo) const |
Get a reference to the local thermo for a multi component mixture. More... | |
template<class ThermoType > | |
tmp< volScalarField > | getSpecieMassFraction (const word &speciesName, const pureMixture< ThermoType > &thermo) const |
Return mass fraction for a pureMixture equal to one. More... | |
template<class ThermoType > | |
tmp< volScalarField > | getSpecieMassFraction (const word &speciesName, const multiComponentMixture< ThermoType > &thermo) const |
Return mass fraction for speciesName. More... | |
template<class ThermoType > | |
tmp< volScalarField > | MwMixture (const pureMixture< ThermoType > &thermo) const |
Return moleculas weight of the mixture for pureMixture [Kg/mol]. More... | |
template<class ThermoType > | |
tmp< volScalarField > | MwMixture (const multiComponentMixture< ThermoType > &) const |
Return moleculas weight of the mixture for multiComponentMixture. More... | |
template<class ThermoType > | |
const pureMixture< ThermoType >::thermoType & | getLocalThermo (const word &speciesName, const pureMixture< ThermoType > &globalThermo) const |
Get a reference to the local thermo for a pure mixture. More... | |
template<class ThermoType > | |
const multiComponentMixture< ThermoType >::thermoType & | getLocalThermo (const word &speciesName, const multiComponentMixture< ThermoType > &globalThermo) const |
Get a reference to the local thermo for a multi component mixture. More... | |
Protected Attributes | |
const Thermo & | fromThermo_ |
Thermo (from) More... | |
const OtherThermo & | toThermo_ |
Other Thermo (to) More... | |
const dimensionedScalar | Le_ |
Lewis number. More... | |
const Thermo & | thermo_ |
Thermo. More... | |
const OtherThermo & | otherThermo_ |
Other Thermo. More... | |
![]() | |
modelVariable | modelVariable_ |
Enumeration for the model variable. More... | |
bool | includeVolChange_ |
Add volume change in pEq. More... | |
const phasePair & | pair_ |
Phase pair. More... | |
word | speciesName_ |
Names of the transferring specie. More... | |
const fvMesh & | mesh_ |
Reference to mesh. More... | |
const hashedWordList | speciesNames_ |
Names of the transferring species. More... | |
Additional Inherited Members | |
![]() | |
enum | modelVariable { T, P, Y, alpha } |
Enumeration for variable based mass transfer models. More... | |
![]() | |
static autoPtr< interfaceCompositionModel > | New (const dictionary &dict, const phasePair &pair) |
static autoPtr< interfaceCompositionModel > | New (const dictionary &dict, const phasePair &pair) |
![]() | |
static const Enum< modelVariable > | modelVariableNames_ |
Selection names for the modelVariable. More... | |
Base class for interface composition models, templated on the two thermodynamic models either side of the interface.
Definition at line 58 of file InterfaceCompositionModel.H.
InterfaceCompositionModel | ( | const dictionary & | dict, |
const phasePair & | pair | ||
) |
Construct from components.
Definition at line 181 of file InterfaceCompositionModel.C.
|
default |
Destructor.
InterfaceCompositionModel | ( | const dictionary & | dict, |
const phasePair & | pair | ||
) |
Construct from components.
|
default |
Destructor.
|
protected |
Get a reference to the local thermo for a pure mixture.
|
protected |
Get a reference to the local thermo for a multi component mixture.
|
protected |
Return mass fraction for a pureMixture equal to one.
|
protected |
Return mass fraction for speciesName.
|
protected |
Return moleculas weight of the mixture for pureMixture [Kg/mol].
|
protected |
Return moleculas weight of the mixture for multiComponentMixture.
[Kg/mol]
|
virtual |
Mass fraction difference between the interface and the field.
Implements interfaceCompositionModel.
Definition at line 306 of file InterfaceCompositionModel.C.
References NotImplemented.
|
virtual |
Reference mass fraction for species based models.
Implements interfaceCompositionModel.
Reimplemented in NonRandomTwoLiquid< Thermo, OtherThermo >, Saturated< Thermo, OtherThermo >, Henry< Thermo, OtherThermo >, and Raoult< Thermo, OtherThermo >.
Definition at line 319 of file InterfaceCompositionModel.C.
References NotImplemented.
|
virtual |
Mass diffusivity of the local thermo.
Implements interfaceCompositionModel.
Definition at line 218 of file InterfaceCompositionModel.C.
References D, Foam::dimArea, Foam::dimTime, forAll, Foam::New(), p, T, and Foam::Zero.
|
virtual |
Latent heat (to - from)(thermo - otherThermo)
Implements interfaceCompositionModel.
Definition at line 264 of file InterfaceCompositionModel.C.
References Foam::dimEnergy, Foam::dimMass, forAll, L(), Foam::New(), p, and Foam::Zero.
|
protected |
Get a reference to the local thermo for a pure mixture.
|
protected |
Get a reference to the local thermo for a multi component mixture.
|
virtual |
Mass fraction difference between the interface and the field.
Implements interfaceCompositionModel.
|
virtual |
Mass diffusivity.
Implements interfaceCompositionModel.
|
virtual |
Latent heat.
Implements interfaceCompositionModel.
|
virtual |
Add latent heat flow rate to total.
Implements interfaceCompositionModel.
Definition at line 209 of file InterfaceCompositionModel.C.
const Foam::multiComponentMixture< ThermoType >::thermoType & getLocalThermo | ( | const word & | speciesName, |
const multiComponentMixture< ThermoType > & | globalThermo | ||
) | const |
Definition at line 42 of file InterfaceCompositionModel.C.
References multiComponentMixture< ThermoType >::getLocalThermo().
const Foam::pureMixture< ThermoType >::thermoType & getLocalThermo | ( | const word & | speciesName, |
const pureMixture< ThermoType > & | globalThermo | ||
) | const |
Definition at line 62 of file InterfaceCompositionModel.C.
References pureMixture< ThermoType >::cellMixture().
Foam::tmp<Foam::volScalarField> getSpecieMassFraction | ( | const word & | speciesName, |
const multiComponentMixture< ThermoType > & | mixture | ||
) | const |
Definition at line 75 of file InterfaceCompositionModel.C.
References Foam::dimless, mesh, Foam::New(), and Foam::Zero.
Foam::tmp<Foam::volScalarField> getSpecieMassFraction | ( | const word & | speciesName, |
const pureMixture< ThermoType > & | mixture | ||
) | const |
Definition at line 109 of file InterfaceCompositionModel.C.
References Foam::dimless, mesh, and Foam::New().
Foam::tmp<Foam::volScalarField> MwMixture | ( | const pureMixture< ThermoType > & | mixture | ) | const |
Definition at line 137 of file InterfaceCompositionModel.C.
References Foam::dimMass, Foam::dimMoles, Foam::constant::electromagnetic::e, mesh, and Foam::New().
Foam::tmp<Foam::volScalarField> MwMixture | ( | const multiComponentMixture< ThermoType > & | mixture | ) | const |
Definition at line 169 of file InterfaceCompositionModel.C.
|
protected |
Thermo (from)
Definition at line 67 of file InterfaceCompositionModel.H.
|
protected |
Other Thermo (to)
Definition at line 70 of file InterfaceCompositionModel.H.
|
protected |
Lewis number.
Definition at line 73 of file InterfaceCompositionModel.H.
|
protected |
Thermo.
Definition at line 67 of file InterfaceCompositionModel.H.
|
protected |
Other Thermo.
Definition at line 70 of file InterfaceCompositionModel.H.