Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
InterfaceCompositionModel< Thermo, OtherThermo > Class Template Reference

Base class for interface composition models, templated on the two thermodynamic models either side of the interface. More...

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

Public Member Functions

 InterfaceCompositionModel (const dictionary &dict, const phasePair &pair)
 
 ~InterfaceCompositionModel ()=default
 
virtual tmp< volScalarFielddY (const word &speciesName, const volScalarField &Tf) const
 
virtual tmp< volScalarFieldYf (const word &speciesName, const volScalarField &Tf) const
 
virtual tmp< volScalarFieldD (const word &speciesName) const
 
virtual tmp< volScalarFieldL (const word &speciesName, const volScalarField &Tf) const
 
 InterfaceCompositionModel (const dictionary &dict, const phasePair &pair)
 
 ~InterfaceCompositionModel ()=default
 
virtual tmp< volScalarFielddY (const word &speciesName, const volScalarField &Tf) const
 
virtual tmp< volScalarFieldD (const word &speciesName) const
 
virtual tmp< volScalarFieldL (const word &speciesName, const volScalarField &Tf) const
 
virtual void addMDotL (const volScalarField &K, const volScalarField &Tf, volScalarField &mDotL, volScalarField &mDotLPrime) const
 
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::volScalarFieldgetSpecieMassFraction (const word &speciesName, const multiComponentMixture< ThermoType > &mixture) const
 
template<class ThermoType >
Foam::tmp< Foam::volScalarFieldgetSpecieMassFraction (const word &speciesName, const pureMixture< ThermoType > &mixture) const
 
template<class ThermoType >
Foam::tmp< Foam::volScalarFieldMwMixture (const pureMixture< ThermoType > &mixture) const
 
template<class ThermoType >
Foam::tmp< Foam::volScalarFieldMwMixture (const multiComponentMixture< ThermoType > &mixture) const
 
- Public Member Functions inherited from interfaceCompositionModel
 TypeName ("interfaceCompositionModel")
 
 declareRunTimeSelectionTable (autoPtr, interfaceCompositionModel, dictionary,(const dictionary &dict, const phasePair &pair),(dict, pair))
 
 interfaceCompositionModel (const dictionary &dict, const phasePair &pair)
 
virtual ~interfaceCompositionModel ()=default
 
const word transferSpecie () const
 
const phasePairpair () const
 
virtual tmp< volScalarFieldKexp (const volScalarField &field)=0
 
virtual tmp< volScalarFieldKSp (label modelVariable, const volScalarField &field)=0
 
virtual tmp< volScalarFieldKSu (label modelVariable, const volScalarField &field)=0
 
virtual const dimensionedScalarTactivate () const noexcept=0
 
virtual bool includeDivU () const noexcept
 
bool includeVolChange ()
 
const wordvariable () const
 
 TypeName ("interfaceCompositionModel")
 
 declareRunTimeSelectionTable (autoPtr, interfaceCompositionModel, dictionary,(const dictionary &dict, const phasePair &pair),(dict, pair))
 
 interfaceCompositionModel (const dictionary &dict, const phasePair &pair)
 
virtual ~interfaceCompositionModel ()=default
 
virtual void update (const volScalarField &Tf)=0
 
const hashedWordListspecies () const
 
bool transports (word &speciesName) const
 
virtual tmp< volScalarFieldYfPrime (const word &speciesName, const volScalarField &Tf) const =0
 

Protected Member Functions

template<class ThermoType >
const pureMixture< ThermoType >::thermoType & getLocalThermo (const word &speciesName, const pureMixture< ThermoType > &globalThermo) const
 
template<class ThermoType >
const multiComponentMixture< ThermoType >::thermoType & getLocalThermo (const word &speciesName, const multiComponentMixture< ThermoType > &globalThermo) const
 
template<class ThermoType >
tmp< volScalarFieldgetSpecieMassFraction (const word &speciesName, const pureMixture< ThermoType > &thermo) const
 
template<class ThermoType >
tmp< volScalarFieldgetSpecieMassFraction (const word &speciesName, const multiComponentMixture< ThermoType > &thermo) const
 
template<class ThermoType >
tmp< volScalarFieldMwMixture (const pureMixture< ThermoType > &thermo) const
 
template<class ThermoType >
tmp< volScalarFieldMwMixture (const multiComponentMixture< ThermoType > &) const
 
template<class ThermoType >
const pureMixture< ThermoType >::thermoType & getLocalThermo (const word &speciesName, const pureMixture< ThermoType > &globalThermo) const
 
template<class ThermoType >
const multiComponentMixture< ThermoType >::thermoType & getLocalThermo (const word &speciesName, const multiComponentMixture< ThermoType > &globalThermo) const
 

Protected Attributes

const Thermo & fromThermo_
 
const OtherThermo & toThermo_
 
const dimensionedScalar Le_
 
const Thermo & thermo_
 
const OtherThermo & otherThermo_
 
- Protected Attributes inherited from interfaceCompositionModel
modelVariable modelVariable_
 
bool includeVolChange_
 
const phasePairpair_
 
word speciesName_
 
const fvMeshmesh_
 
const hashedWordList speciesNames_
 

Additional Inherited Members

- Public Types inherited from interfaceCompositionModel
enum  modelVariable { T, P, Y, alpha }
 
- 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)
 
- Static Protected Attributes inherited from interfaceCompositionModel
static const Enum< modelVariablemodelVariableNames_
 

Detailed Description

template<class Thermo, class OtherThermo>
class Foam::InterfaceCompositionModel< Thermo, OtherThermo >

Base class for interface composition models, templated on the two thermodynamic models either side of the interface.

Source files

Source files

Definition at line 54 of file InterfaceCompositionModel.H.

Constructor & Destructor Documentation

◆ InterfaceCompositionModel() [1/2]

InterfaceCompositionModel ( const dictionary dict,
const phasePair pair 
)

Definition at line 174 of file InterfaceCompositionModel.C.

◆ ~InterfaceCompositionModel() [1/2]

◆ InterfaceCompositionModel() [2/2]

InterfaceCompositionModel ( const dictionary dict,
const phasePair pair 
)

◆ ~InterfaceCompositionModel() [2/2]

Member Function Documentation

◆ getLocalThermo() [1/6]

const pureMixture<ThermoType>::thermoType& getLocalThermo ( const word speciesName,
const pureMixture< ThermoType > &  globalThermo 
) const
protected

◆ getLocalThermo() [2/6]

const multiComponentMixture<ThermoType>::thermoType& getLocalThermo ( const word speciesName,
const multiComponentMixture< ThermoType > &  globalThermo 
) const
protected

◆ getSpecieMassFraction() [1/4]

tmp<volScalarField> getSpecieMassFraction ( const word speciesName,
const pureMixture< ThermoType > &  thermo 
) const
protected

◆ getSpecieMassFraction() [2/4]

tmp<volScalarField> getSpecieMassFraction ( const word speciesName,
const multiComponentMixture< ThermoType > &  thermo 
) const
protected

◆ MwMixture() [1/4]

tmp<volScalarField> MwMixture ( const pureMixture< ThermoType > &  thermo) const
protected

◆ MwMixture() [2/4]

tmp<volScalarField> MwMixture ( const multiComponentMixture< ThermoType > &  ) const
protected

◆ dY() [1/2]

Foam::tmp< Foam::volScalarField > dY ( const word speciesName,
const volScalarField Tf 
) const
virtual

Implements interfaceCompositionModel.

Definition at line 299 of file InterfaceCompositionModel.C.

References NotImplemented.

◆ Yf()

Foam::tmp< Foam::volScalarField > Yf ( const word speciesName,
const volScalarField Tf 
) const
virtual

◆ D() [1/2]

Foam::tmp< Foam::volScalarField > D ( const word speciesName) const
virtual

Implements interfaceCompositionModel.

Definition at line 211 of file InterfaceCompositionModel.C.

References D, Foam::dimArea, Foam::dimTime, forAll, Foam::New(), p, T, and Foam::Zero.

Here is the call graph for this function:

◆ L() [1/2]

Foam::tmp< Foam::volScalarField > L ( const word speciesName,
const volScalarField Tf 
) const
virtual

Implements interfaceCompositionModel.

Definition at line 257 of file InterfaceCompositionModel.C.

References Foam::dimEnergy, Foam::dimMass, forAll, L(), Foam::New(), p, and Foam::Zero.

Here is the call graph for this function:

◆ getLocalThermo() [3/6]

const pureMixture<ThermoType>::thermoType& getLocalThermo ( const word speciesName,
const pureMixture< ThermoType > &  globalThermo 
) const
protected

◆ getLocalThermo() [4/6]

const multiComponentMixture<ThermoType>::thermoType& getLocalThermo ( const word speciesName,
const multiComponentMixture< ThermoType > &  globalThermo 
) const
protected

◆ dY() [2/2]

virtual tmp<volScalarField> dY ( const word speciesName,
const volScalarField Tf 
) const
virtual

◆ D() [2/2]

virtual tmp<volScalarField> D ( const word speciesName) const
virtual

◆ L() [2/2]

virtual tmp<volScalarField> L ( const word speciesName,
const volScalarField Tf 
) const
virtual

◆ addMDotL()

void addMDotL ( const volScalarField K,
const volScalarField Tf,
volScalarField mDotL,
volScalarField mDotLPrime 
) const
virtual

Implements interfaceCompositionModel.

Definition at line 202 of file InterfaceCompositionModel.C.

References D, and L().

Here is the call graph for this function:

◆ getLocalThermo() [5/6]

const Foam::multiComponentMixture< ThermoType >::thermoType & getLocalThermo ( const word speciesName,
const multiComponentMixture< ThermoType > &  globalThermo 
) const

Definition at line 35 of file InterfaceCompositionModel.C.

References multiComponentMixture::getLocalThermo().

Here is the call graph for this function:

◆ getLocalThermo() [6/6]

const Foam::pureMixture< ThermoType >::thermoType & getLocalThermo ( const word speciesName,
const pureMixture< ThermoType > &  globalThermo 
) const

Definition at line 55 of file InterfaceCompositionModel.C.

References pureMixture::cellMixture().

Here is the call graph for this function:

◆ getSpecieMassFraction() [3/4]

Foam::tmp<Foam::volScalarField> getSpecieMassFraction ( const word speciesName,
const multiComponentMixture< ThermoType > &  mixture 
) const

Definition at line 68 of file InterfaceCompositionModel.C.

References Foam::dimless, mesh, Foam::New(), and Foam::Zero.

Here is the call graph for this function:

◆ getSpecieMassFraction() [4/4]

Foam::tmp<Foam::volScalarField> getSpecieMassFraction ( const word speciesName,
const pureMixture< ThermoType > &  mixture 
) const

Definition at line 102 of file InterfaceCompositionModel.C.

References Foam::dimless, mesh, and Foam::New().

Here is the call graph for this function:

◆ MwMixture() [3/4]

Foam::tmp<Foam::volScalarField> MwMixture ( const pureMixture< ThermoType > &  mixture) const

Definition at line 130 of file InterfaceCompositionModel.C.

References Foam::dimMass, Foam::dimMoles, Foam::constant::electromagnetic::e, mesh, and Foam::New().

Here is the call graph for this function:

◆ MwMixture() [4/4]

Foam::tmp<Foam::volScalarField> MwMixture ( const multiComponentMixture< ThermoType > &  mixture) const

Definition at line 162 of file InterfaceCompositionModel.C.

Member Data Documentation

◆ fromThermo_

const Thermo& fromThermo_
protected

Definition at line 63 of file InterfaceCompositionModel.H.

◆ toThermo_

const OtherThermo& toThermo_
protected

Definition at line 66 of file InterfaceCompositionModel.H.

◆ Le_

const dimensionedScalar Le_
protected

Definition at line 69 of file InterfaceCompositionModel.H.

◆ thermo_

const Thermo& thermo_
protected

Definition at line 63 of file InterfaceCompositionModel.H.

◆ otherThermo_

const OtherThermo& otherThermo_
protected

Definition at line 66 of file InterfaceCompositionModel.H.


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