Lee< Thermo, OtherThermo > Class Template Reference

Mass transfer Lee model. Simple model driven by field value difference as: More...

Inheritance diagram for Lee< Thermo, OtherThermo >:
[legend]
Collaboration diagram for Lee< Thermo, OtherThermo >:
[legend]

Public Member Functions

 TypeName ("Lee")
 Runtime type information. More...
 
 Lee (const dictionary &dict, const phasePair &pair)
 Construct from components. More...
 
virtual ~Lee ()=default
 Destructor. More...
 
virtual tmp< volScalarFieldKexp (const volScalarField &field)
 Explicit total mass transfer coefficient. More...
 
virtual tmp< volScalarFieldKSp (label modelVariable, const volScalarField &field)
 Implicit mass transfer coefficient. More...
 
virtual tmp< volScalarFieldKSu (label modelVariable, const volScalarField &field)
 Explicit mass transfer coefficient. More...
 
virtual const dimensionedScalarTactivate () const
 Return T transition between phases. More...
 
virtual bool includeDivU ()
 
- Public Member Functions inherited from InterfaceCompositionModel< Thermo, OtherThermo >
 InterfaceCompositionModel (const dictionary &dict, const phasePair &pair)
 Construct from components. More...
 
 ~InterfaceCompositionModel ()=default
 Destructor. More...
 
virtual tmp< volScalarFielddY (const word &speciesName, const volScalarField &Tf) const
 Mass fraction difference between the interface and the field. More...
 
virtual tmp< volScalarFieldD (const word &speciesName) const
 Mass diffusivity. More...
 
virtual tmp< volScalarFieldL (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...
 
 InterfaceCompositionModel (const dictionary &dict, const phasePair &pair)
 Construct from components. More...
 
 ~InterfaceCompositionModel ()=default
 Destructor. More...
 
virtual tmp< volScalarFielddY (const word &speciesName, const volScalarField &Tf) const
 Mass fraction difference between the interface and the field. More...
 
virtual tmp< volScalarFieldYf (const word &speciesName, const volScalarField &Tf) const
 Reference mass fraction for species based models. More...
 
virtual tmp< volScalarFieldD (const word &speciesName) const
 Mass diffusivity of the local thermo. More...
 
virtual tmp< volScalarFieldL (const word &speciesName, const volScalarField &Tf) const
 Latent heat (to - from)(thermo - otherThermo) 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
 
- Public Member Functions inherited from interfaceCompositionModel
 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 hashedWordListspecies () const
 Return the transferring species names. More...
 
bool transports (word &speciesName) const
 
virtual tmp< volScalarFieldYfPrime (const word &speciesName, const volScalarField &Tf) const =0
 The interface mass fraction derivative w.r.t. temperature. 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 phasePairpair () const
 Return pair. More...
 
bool includeVolChange ()
 Add volume change in pEq. More...
 
const word variable () const
 Returns the variable on which the model is based. More...
 

Additional Inherited Members

- Public Types inherited from interfaceCompositionModel
enum  modelVariable { T, P, Y, alpha }
 Enumeration for variable based mass transfer models. More...
 
- Static Public Member Functions inherited from interfaceCompositionModel
static autoPtr< interfaceCompositionModelNew (const dictionary &dict, const phasePair &pair)
 
static autoPtr< interfaceCompositionModelNew (const dictionary &dict, const phasePair &pair)
 
- Public Attributes inherited from interfaceCompositionModel
modelVariable modelVariable_
 Enumeration for model variables. More...
 
bool includeVolChange_
 Add volume change in pEq. More...
 
- Static Public Attributes inherited from interfaceCompositionModel
static const Enum< modelVariablemodelVariableNames
 
- Protected Member Functions inherited from InterfaceCompositionModel< Thermo, OtherThermo >
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 >
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< volScalarFieldgetSpecieMassFraction (const word &speciesName, const pureMixture< ThermoType > &thermo) const
 Return mass fraction for a pureMixture equal to one. More...
 
template<class ThermoType >
tmp< volScalarFieldgetSpecieMassFraction (const word &speciesName, const multiComponentMixture< ThermoType > &thermo) const
 Return mass fraction for speciesName. More...
 
template<class ThermoType >
tmp< volScalarFieldMwMixture (const pureMixture< ThermoType > &thermo) const
 Return moleculas weight of the mixture for pureMixture [Kg/mol]. More...
 
template<class ThermoType >
tmp< volScalarFieldMwMixture (const multiComponentMixture< ThermoType > &) const
 Return moleculas weight of the mixture for multiComponentMixture. More...
 
- Protected Attributes inherited from InterfaceCompositionModel< Thermo, OtherThermo >
const Thermo & thermo_
 Thermo. More...
 
const OtherThermo & otherThermo_
 Other Thermo. More...
 
const dimensionedScalar Le_
 Lewis number. More...
 
const Thermo & fromThermo_
 Thermo (from) More...
 
const OtherThermo & toThermo_
 Other Thermo (to) More...
 
- Protected Attributes inherited from interfaceCompositionModel
const phasePairpair_
 Phase pair. More...
 
const hashedWordList speciesNames_
 Names of the transferring species. More...
 
word speciesName_
 Names of the transferring specie. More...
 
const fvMeshmesh_
 Reference to mesh. More...
 

Detailed Description

template<class Thermo, class OtherThermo>
class Foam::meltingEvaporationModels::Lee< Thermo, OtherThermo >

Mass transfer Lee model. Simple model driven by field value difference as:

\[ \dot{m} = C \rho \alpha (T - T_{activate})/T_{activate} \]

where C is a model constant.

if C > 0:

\[ \dot{m} = C \rho \alpha (T - T_{activate})/T_{activate} \]

for

\[ T > T_{activate} \]

and

\[ mDot = 0.0 \]

for

\[ T < T_{activate} \]

if C < 0:

\[ \dot{m} = -C \rho \alpha (T_{activate} - T)/T_{activate} \]

for

\[ T < T_{activate} \]

and

\[ \dot{m} = 0.0 \]

for

\[ T > T_{activate} \]

Based on the reference:

  1. W. H. Lee. "A Pressure Iteration Scheme for Two-Phase Modeling". Technical Report LA-UR 79-975. Los Alamos Scientific Laboratory, Los Alamos, New Mexico. 1979.
Usage
Example usage:
    massTransferModel
    (
        (solid to liquid)
        {
            type            Lee;
            C               40;
            Tactivate       302.78;
        }
    );

Where:

Property Description Required Default value
Tactivate Activation temperature yes
C Model constant yes
includeVolChange Volumen change no yes
species Specie name on the other phase no none
Source files

Definition at line 131 of file Lee.H.

Constructor & Destructor Documentation

◆ Lee()

Lee ( const dictionary dict,
const phasePair pair 
)

Construct from components.

◆ ~Lee()

virtual ~Lee ( )
virtualdefault

Destructor.

Member Function Documentation

◆ TypeName()

TypeName ( "Lee< Thermo, OtherThermo >"  )

Runtime type information.

◆ Kexp()

virtual tmp<volScalarField> Kexp ( const volScalarField field)
virtual

Explicit total mass transfer coefficient.

Implements interfaceCompositionModel.

◆ KSp()

virtual tmp<volScalarField> KSp ( label  modelVariable,
const volScalarField field 
)
virtual

Implicit mass transfer coefficient.

Implements interfaceCompositionModel.

◆ KSu()

virtual tmp<volScalarField> KSu ( label  modelVariable,
const volScalarField field 
)
virtual

Explicit mass transfer coefficient.

Implements interfaceCompositionModel.

◆ Tactivate()

virtual const dimensionedScalar& Tactivate ( ) const
virtual

Return T transition between phases.

Implements interfaceCompositionModel.

◆ includeDivU()

virtual bool includeDivU ( )
virtual

Add/subtract alpha*div(U) as a source term for alpha, substituting div(U) = mDot(1/rho1 - 1/rho2)

Reimplemented from interfaceCompositionModel.


The documentation for this class was generated from the following file: