Generic base class for interface models. Mass transfer models are interface models between two thermos. Abstract class for mass transfer functions. More...
Public Types | |
enum | modelVariable { T, P, Y, alpha } |
Enumeration for variable based mass transfer models. More... | |
Public Member Functions | |
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 > | Yf (const word &speciesName, const volScalarField &Tf) const =0 |
Interface mass fraction. More... | |
virtual tmp< volScalarField > | dY (const word &speciesName, const volScalarField &Tf) const =0 |
Mass fraction difference between the interface and the field. More... | |
virtual tmp< volScalarField > | D (const word &speciesName) const =0 |
Mass diffusivity. More... | |
virtual tmp< volScalarField > | L (const word &speciesName, const volScalarField &Tf) const =0 |
Latent heat (delta Hc) 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 > | 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... | |
virtual tmp< volScalarField > | dY (const word &speciesName, const volScalarField &Tf) const =0 |
Mass fraction difference between the interface and the field. More... | |
virtual tmp< volScalarField > | D (const word &speciesName) const =0 |
Mass diffusivity. More... | |
virtual tmp< volScalarField > | L (const word &speciesName, const volScalarField &Tf) const =0 |
Latent heat. More... | |
virtual void | addMDotL (const volScalarField &K, const volScalarField &Tf, volScalarField &mDotL, volScalarField &mDotLPrime) const =0 |
Add latent heat flow rate to total. More... | |
Static Public Member Functions | |
static autoPtr< interfaceCompositionModel > | New (const dictionary &dict, const phasePair &pair) |
static autoPtr< interfaceCompositionModel > | New (const dictionary &dict, const phasePair &pair) |
Protected Attributes | |
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... | |
Static Protected Attributes | |
static const Enum< modelVariable > | modelVariableNames_ |
Selection names for the modelVariable. More... | |
Generic base class for interface models. Mass transfer models are interface models between two thermos. Abstract class for mass transfer functions.
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 59 of file interfaceCompositionModel.H.
enum modelVariable |
Enumeration for variable based mass transfer models.
Enumerator | |
---|---|
T | |
P | |
Y | |
alpha |
Definition at line 66 of file interfaceCompositionModel.H.
interfaceCompositionModel | ( | const dictionary & | dict, |
const phasePair & | pair | ||
) |
Construct from a dictionary and a phase pair.
Definition at line 54 of file interfaceCompositionModel.C.
|
virtualdefault |
Destructor.
interfaceCompositionModel | ( | const dictionary & | dict, |
const phasePair & | pair | ||
) |
Construct from a dictionary and a phase pair.
|
virtualdefault |
Destructor.
TypeName | ( | "interfaceCompositionModel" | ) |
Runtime type information.
declareRunTimeSelectionTable | ( | autoPtr | , |
interfaceCompositionModel | , | ||
dictionary | , | ||
(const dictionary &dict, const phasePair &pair) | , | ||
(dict, pair) | |||
) |
|
static |
Definition at line 79 of file interfaceCompositionModel.C.
References dict, Foam::endl(), Foam::exit(), Foam::FatalIOError, FatalIOErrorInLookup, Foam::Info, phasePair::phase1(), phasePair::phase2(), and phaseModel::thermo().
const Foam::word transferSpecie | ( | ) | const |
Return the transferring species name.
Definition at line 116 of file interfaceCompositionModel.C.
References interfaceCompositionModel::speciesName_.
Referenced by MassTransferPhaseSystem< BasePhaseSystem >::calculateL().
const Foam::phasePair & pair | ( | ) | const |
The phase pair.
Definition at line 122 of file interfaceCompositionModel.C.
|
pure virtual |
Interface mass fraction.
Implemented in InterfaceCompositionModel< Thermo, OtherThermo >, NonRandomTwoLiquid< Thermo, OtherThermo >, Saturated< Thermo, OtherThermo >, Henry< Thermo, OtherThermo >, and Raoult< Thermo, OtherThermo >.
Referenced by InterfaceCompositionPhaseChangePhaseSystem< BasePhaseSystem >::massTransfer().
|
pure virtual |
Mass fraction difference between the interface and the field.
Implemented in InterfaceCompositionModel< Thermo, OtherThermo >, and InterfaceCompositionModel< Thermo, OtherThermo >.
|
pure virtual |
Mass diffusivity.
Implemented in InterfaceCompositionModel< Thermo, OtherThermo >, and InterfaceCompositionModel< Thermo, OtherThermo >.
Referenced by InterfaceCompositionPhaseChangePhaseSystem< BasePhaseSystem >::massTransfer().
|
pure virtual |
Latent heat (delta Hc)
Implemented in InterfaceCompositionModel< Thermo, OtherThermo >, and InterfaceCompositionModel< Thermo, OtherThermo >.
Referenced by MassTransferPhaseSystem< BasePhaseSystem >::calculateL().
|
pure virtual |
Explicit full mass transfer.
Implemented in interfaceOxideRate< Thermo, OtherThermo >, kineticGasEvaporation< Thermo, OtherThermo >, interfaceHeatResistance< Thermo, OtherThermo >, and Lee< Thermo, OtherThermo >.
Referenced by MassTransferPhaseSystem< BasePhaseSystem >::correctMassSources().
|
pure virtual |
Implicit mass transfer.
Implemented in interfaceOxideRate< Thermo, OtherThermo >, kineticGasEvaporation< Thermo, OtherThermo >, interfaceHeatResistance< Thermo, OtherThermo >, and Lee< Thermo, OtherThermo >.
Referenced by MassTransferPhaseSystem< BasePhaseSystem >::heatTransfer(), and MassTransferPhaseSystem< BasePhaseSystem >::volTransfer().
|
pure virtual |
Explicit mass transfer.
Implemented in interfaceOxideRate< Thermo, OtherThermo >, kineticGasEvaporation< Thermo, OtherThermo >, interfaceHeatResistance< Thermo, OtherThermo >, and Lee< Thermo, OtherThermo >.
Referenced by MassTransferPhaseSystem< BasePhaseSystem >::alphaTransfer(), MassTransferPhaseSystem< BasePhaseSystem >::heatTransfer(), and MassTransferPhaseSystem< BasePhaseSystem >::volTransfer().
|
pure virtualnoexcept |
Reference value.
Implemented in interfaceOxideRate< Thermo, OtherThermo >, kineticGasEvaporation< Thermo, OtherThermo >, interfaceHeatResistance< Thermo, OtherThermo >, and Lee< Thermo, OtherThermo >.
|
virtualnoexcept |
Add/subtract alpha*div(U) as a source term for alpha, substituting div(U) = mDot(1/rho1 - 1/rho2)
Reimplemented in interfaceOxideRate< Thermo, OtherThermo >, kineticGasEvaporation< Thermo, OtherThermo >, interfaceHeatResistance< Thermo, OtherThermo >, and Lee< Thermo, OtherThermo >.
Definition at line 134 of file interfaceCompositionModel.C.
Referenced by MassTransferPhaseSystem< BasePhaseSystem >::alphaTransfer().
bool includeVolChange | ( | ) |
Add volume change in pEq.
Definition at line 140 of file interfaceCompositionModel.C.
const Foam::word & variable | ( | ) | const |
Returns the variable on which the model is based.
Definition at line 128 of file interfaceCompositionModel.C.
TypeName | ( | "interfaceCompositionModel" | ) |
Runtime type information.
declareRunTimeSelectionTable | ( | autoPtr | , |
interfaceCompositionModel | , | ||
dictionary | , | ||
(const dictionary &dict, const phasePair &pair) | , | ||
(dict, pair) | |||
) |
|
static |
|
pure virtual |
Update the composition.
Implemented in NonRandomTwoLiquid< Thermo, OtherThermo >, Saturated< Thermo, OtherThermo >, Henry< Thermo, OtherThermo >, and Raoult< Thermo, OtherThermo >.
|
inline |
The transferring species names.
Definition at line 123 of file interfaceCompositionModel.H.
References interfaceCompositionModel::speciesNames_.
Referenced by InterfaceCompositionPhaseChangePhaseSystem< BasePhaseSystem >::dmdts(), InterfaceCompositionPhaseChangePhaseSystem< BasePhaseSystem >::InterfaceCompositionPhaseChangePhaseSystem(), and InterfaceCompositionPhaseChangePhaseSystem< BasePhaseSystem >::massTransfer().
Returns whether the species is transported by the model and provides the name of the diffused species
Definition at line 96 of file interfaceCompositionModel.C.
|
pure virtual |
Interface mass fraction.
Implemented in InterfaceCompositionModel< Thermo, OtherThermo >, NonRandomTwoLiquid< Thermo, OtherThermo >, Saturated< Thermo, OtherThermo >, Henry< Thermo, OtherThermo >, and Raoult< Thermo, OtherThermo >.
|
pure virtual |
The interface mass fraction derivative w.r.t. temperature.
Implemented in NonRandomTwoLiquid< Thermo, OtherThermo >, Saturated< Thermo, OtherThermo >, Henry< Thermo, OtherThermo >, and Raoult< Thermo, OtherThermo >.
|
pure virtual |
Mass fraction difference between the interface and the field.
Implemented in InterfaceCompositionModel< Thermo, OtherThermo >, and InterfaceCompositionModel< Thermo, OtherThermo >.
|
pure virtual |
Mass diffusivity.
Implemented in InterfaceCompositionModel< Thermo, OtherThermo >, and InterfaceCompositionModel< Thermo, OtherThermo >.
|
pure virtual |
Latent heat.
Implemented in InterfaceCompositionModel< Thermo, OtherThermo >, and InterfaceCompositionModel< Thermo, OtherThermo >.
|
pure virtual |
Add latent heat flow rate to total.
Implemented in InterfaceCompositionModel< Thermo, OtherThermo >.
|
staticprotected |
Selection names for the modelVariable.
Definition at line 79 of file interfaceCompositionModel.H.
|
protected |
Enumeration for the model variable.
Definition at line 82 of file interfaceCompositionModel.H.
|
protected |
Add volume change in pEq.
Definition at line 85 of file interfaceCompositionModel.H.
|
protected |
Phase pair.
Definition at line 88 of file interfaceCompositionModel.H.
|
protected |
Names of the transferring specie.
Definition at line 91 of file interfaceCompositionModel.H.
Referenced by interfaceCompositionModel::transferSpecie().
|
protected |
Reference to mesh.
Definition at line 94 of file interfaceCompositionModel.H.
|
protected |
Names of the transferring species.
Definition at line 70 of file interfaceCompositionModel.H.
Referenced by interfaceCompositionModel::species().