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 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... | |
virtual void | update (const volScalarField &Tf)=0 |
Update the composition. More... | |
const hashedWordList & | species () const |
Return 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... | |
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 |
Return 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 =0 |
Reference value. More... | |
virtual bool | includeDivU () |
bool | includeVolChange () |
Add volume change in pEq. More... | |
const word | variable () const |
Returns the variable on which the model is based. 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) |
Public Attributes | |
modelVariable | modelVariable_ |
Enumeration for model variables. More... | |
bool | includeVolChange_ |
Add volume change in pEq. More... | |
Static Public Attributes | |
static const Enum< modelVariable > | modelVariableNames |
Protected Attributes | |
const phasePair & | pair_ |
Phase pair. More... | |
const hashedWordList | speciesNames_ |
Names of the transferring species. More... | |
word | speciesName_ |
Names of the transferring specie. More... | |
const fvMesh & | mesh_ |
Reference to mesh. More... | |
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.
Generic base class for interface models. Mass transfer models are interface models between two thermos. Abstract class for mass transfer functions.
Definition at line 58 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 44 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 37 of file newInterfaceCompositionModel.C.
References Foam::abort(), dict, Foam::endl(), Foam::FatalIOError, FatalIOErrorInLookup, Foam::Info, phasePair::phase1(), phasePair::phase2(), and phaseModel::thermo().
|
pure virtual |
Update the composition.
Implemented in NonRandomTwoLiquid< Thermo, OtherThermo >, Saturated< Thermo, OtherThermo >, Henry< Thermo, OtherThermo >, and Raoult< Thermo, OtherThermo >.
const Foam::hashedWordList & species | ( | ) | const |
Return the transferring species names.
Definition at line 56 of file interfaceCompositionModel.C.
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 62 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 |
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 >.
Referenced by InterfaceCompositionPhaseChangePhaseSystem< BasePhaseSystem >::massTransfer().
|
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 >.
TypeName | ( | "interfaceCompositionModel" | ) |
Runtime type information.
declareRunTimeSelectionTable | ( | autoPtr | , |
interfaceCompositionModel | , | ||
dictionary | , | ||
(const dictionary &dict, const phasePair &pair) | , | ||
(dict, pair) | |||
) |
|
static |
const word transferSpecie | ( | ) | const |
Return the transferring species name.
const phasePair& pair | ( | ) | const |
Return pair.
|
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 |
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 (delta Hc)
Implemented in InterfaceCompositionModel< Thermo, OtherThermo >, and InterfaceCompositionModel< Thermo, OtherThermo >.
|
pure virtual |
Explicit full mass transfer.
Implemented in kineticGasEvaporation< Thermo, OtherThermo >, interfaceHeatResistance< Thermo, OtherThermo >, and Lee< Thermo, OtherThermo >.
|
pure virtual |
Implicit mass transfer.
Implemented in kineticGasEvaporation< Thermo, OtherThermo >, interfaceHeatResistance< Thermo, OtherThermo >, and Lee< Thermo, OtherThermo >.
|
pure virtual |
Explicit mass transfer.
Implemented in kineticGasEvaporation< Thermo, OtherThermo >, interfaceHeatResistance< Thermo, OtherThermo >, and Lee< Thermo, OtherThermo >.
|
pure virtual |
Reference value.
Implemented in kineticGasEvaporation< Thermo, OtherThermo >, interfaceHeatResistance< Thermo, OtherThermo >, and Lee< Thermo, OtherThermo >.
|
virtual |
Add/subtract alpha*div(U) as a source term for alpha, substituting div(U) = mDot(1/rho1 - 1/rho2)
Reimplemented in kineticGasEvaporation< Thermo, OtherThermo >, interfaceHeatResistance< Thermo, OtherThermo >, and Lee< Thermo, OtherThermo >.
bool includeVolChange | ( | ) |
Add volume change in pEq.
const word variable | ( | ) | const |
Returns the variable on which the model is based.
|
protected |
Phase pair.
Definition at line 65 of file interfaceCompositionModel.H.
|
protected |
Names of the transferring species.
Definition at line 68 of file interfaceCompositionModel.H.
Referenced by interfaceCompositionModel::species().
|
static |
Definition at line 74 of file interfaceCompositionModel.H.
modelVariable modelVariable_ |
Enumeration for model variables.
Definition at line 77 of file interfaceCompositionModel.H.
bool includeVolChange_ |
Add volume change in pEq.
Definition at line 80 of file interfaceCompositionModel.H.
|
protected |
Names of the transferring specie.
Definition at line 91 of file interfaceCompositionModel.H.
|
protected |
Reference to mesh.
Definition at line 94 of file interfaceCompositionModel.H.