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... | |
const multiphaseInterSystem & | fluid () const |
Return the multiphaseInterSystem this interface belongs to. 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 > | Dfrom (const word &speciesName) const =0 |
Specie mass diffusivity for pure mixture. More... | |
virtual tmp< volScalarField > | Dto (const word &speciesName) const =0 |
Specie mass diffusivity for specie in a multicomponent. 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 |
Add/subtract alpha*div(U) as a source term for alpha, substituting div(U) = mDot(1/rho1 - 1/rho2) More... | |
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) |
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... | |
Static Protected Attributes | |
static const Enum< modelVariable > | modelVariableNames_ |
Selection names for the modelVariable. More... | |
Definition at line 61 of file interfaceCompositionModel.H.
enum modelVariable |
Enumeration for variable based mass transfer models.
Enumerator | |
---|---|
T | |
P | |
Y | |
alpha |
Definition at line 70 of file interfaceCompositionModel.H.
interfaceCompositionModel | ( | const dictionary & | dict, |
const phasePair & | pair | ||
) |
Construct from a dictionary and a phase pair.
Definition at line 52 of file interfaceCompositionModel.C.
|
virtualdefault |
Destructor.
TypeName | ( | "interfaceCompositionModel" | ) |
Runtime type information.
declareRunTimeSelectionTable | ( | autoPtr | , |
interfaceCompositionModel | , | ||
dictionary | , | ||
(const dictionary &dict, const phasePair &pair) | , | ||
(dict, pair) | |||
) |
|
static |
Definition at line 77 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 115 of file interfaceCompositionModel.C.
Referenced by MassTransferPhaseSystem< BasePhaseSystem >::calculateL().
const Foam::phasePair & pair | ( | ) | const |
The phase pair.
Definition at line 122 of file interfaceCompositionModel.C.
const Foam::multiphaseInterSystem & fluid | ( | ) | const |
Return the multiphaseInterSystem this interface belongs to.
Definition at line 129 of file interfaceCompositionModel.C.
References phaseModel::fluid(), and phasePair::to().
|
pure virtual |
Interface mass fraction.
Implemented in InterfaceCompositionModel< Thermo, OtherThermo >, NonRandomTwoLiquid< Thermo, OtherThermo >, Saturated< Thermo, OtherThermo >, Raoult< Thermo, OtherThermo >, and Henry< 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 |
Specie mass diffusivity for pure mixture.
Implemented in InterfaceCompositionModel< Thermo, OtherThermo >.
|
pure virtual |
Specie mass diffusivity for specie in a multicomponent.
Implemented in InterfaceCompositionModel< Thermo, OtherThermo >.
|
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 >, diffusionGasEvaporation< 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 >, diffusionGasEvaporation< 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 >, diffusionGasEvaporation< Thermo, OtherThermo >, interfaceHeatResistance< Thermo, OtherThermo >, and Lee< Thermo, OtherThermo >.
Referenced by MassTransferPhaseSystem< BasePhaseSystem >::alphaTransfer(), MassTransferPhaseSystem< BasePhaseSystem >::heatTransfer(), and MassTransferPhaseSystem< BasePhaseSystem >::volTransfer().
|
pure virtualnoexcept |
|
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 >, diffusionGasEvaporation< Thermo, OtherThermo >, interfaceHeatResistance< Thermo, OtherThermo >, and Lee< Thermo, OtherThermo >.
Definition at line 142 of file interfaceCompositionModel.C.
Referenced by MassTransferPhaseSystem< BasePhaseSystem >::alphaTransfer().
bool includeVolChange | ( | ) |
Add volume change in pEq.
Definition at line 149 of file interfaceCompositionModel.C.
const Foam::word & variable | ( | ) | const |
Returns the variable on which the model is based.
Definition at line 136 of file interfaceCompositionModel.C.
|
staticprotected |
Selection names for the modelVariable.
Definition at line 85 of file interfaceCompositionModel.H.
|
protected |
Enumeration for the model variable.
Definition at line 90 of file interfaceCompositionModel.H.
|
protected |
Add volume change in pEq.
Definition at line 95 of file interfaceCompositionModel.H.
|
protected |
Phase pair.
Definition at line 100 of file interfaceCompositionModel.H.
|
protected |
Names of the transferring specie.
Definition at line 105 of file interfaceCompositionModel.H.
|
protected |
Reference to mesh.
Definition at line 110 of file interfaceCompositionModel.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.