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

Non ideal law for the mixing of two species. A separate composition model is given for each species. The composition of a species is equal to the value given by the model, scaled by the species fraction in the bulk of the other phase, and multiplied by the activity coefficient for that species. The gas behaviour is assumed ideal; i.e. the fugacity coefficient is taken as equal to 1. More...

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

Public Member Functions

 TypeName ("nonRandomTwoLiquid")
 
 NonRandomTwoLiquid (const dictionary &dict, const phasePair &pair)
 
virtual ~NonRandomTwoLiquid ()
 
virtual void update (const volScalarField &Tf)
 
virtual tmp< volScalarFieldYf (const word &speciesName, const volScalarField &Tf) const
 
virtual tmp< volScalarFieldYfPrime (const word &speciesName, const volScalarField &Tf) const
 
- Public Member Functions inherited from InterfaceCompositionModel< Thermo, OtherThermo >
 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
 
 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
 
const hashedWordListspecies () const
 
bool transports (word &speciesName) const
 

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)
 
- Protected Member Functions inherited from InterfaceCompositionModel< Thermo, OtherThermo >
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 inherited from InterfaceCompositionModel< Thermo, OtherThermo >
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_
 
- Static Protected Attributes inherited from interfaceCompositionModel
static const Enum< modelVariablemodelVariableNames_
 

Detailed Description

template<class Thermo, class OtherThermo>
class Foam::interfaceCompositionModels::NonRandomTwoLiquid< Thermo, OtherThermo >

Non ideal law for the mixing of two species. A separate composition model is given for each species. The composition of a species is equal to the value given by the model, scaled by the species fraction in the bulk of the other phase, and multiplied by the activity coefficient for that species. The gas behaviour is assumed ideal; i.e. the fugacity coefficient is taken as equal to 1.

Source files

Definition at line 58 of file NonRandomTwoLiquid.H.

Constructor & Destructor Documentation

◆ NonRandomTwoLiquid()

NonRandomTwoLiquid ( const dictionary dict,
const phasePair pair 
)

Definition at line 28 of file NonRandomTwoLiquid.C.

References dict, Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::New(), and phasePair::phase1().

Here is the call graph for this function:

◆ ~NonRandomTwoLiquid()

Definition at line 120 of file NonRandomTwoLiquid.C.

Member Function Documentation

◆ TypeName()

TypeName ( "nonRandomTwoLiquid"  )

◆ update()

void update ( const volScalarField Tf)
virtual

Implements interfaceCompositionModel.

Definition at line 130 of file NonRandomTwoLiquid.C.

References Foam::dimMass, Foam::dimMoles, Foam::exp(), Foam::max(), and Foam::sqr().

Here is the call graph for this function:

◆ Yf()

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

Reimplemented from InterfaceCompositionModel< Thermo, OtherThermo >.

Definition at line 193 of file NonRandomTwoLiquid.C.

◆ YfPrime()

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

Implements interfaceCompositionModel.

Definition at line 225 of file NonRandomTwoLiquid.C.


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