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...
Public Member Functions | |
TypeName ("nonRandomTwoLiquid") | |
NonRandomTwoLiquid (const dictionary &dict, const phasePair &pair) | |
virtual | ~NonRandomTwoLiquid () |
virtual void | update (const volScalarField &Tf) |
virtual tmp< volScalarField > | Yf (const word &speciesName, const volScalarField &Tf) const |
virtual tmp< volScalarField > | YfPrime (const word &speciesName, const volScalarField &Tf) const |
![]() | |
InterfaceCompositionModel (const dictionary &dict, const phasePair &pair) | |
~InterfaceCompositionModel ()=default | |
virtual tmp< volScalarField > | dY (const word &speciesName, const volScalarField &Tf) const |
virtual tmp< volScalarField > | D (const word &speciesName) const |
virtual tmp< volScalarField > | L (const word &speciesName, const volScalarField &Tf) const |
InterfaceCompositionModel (const dictionary &dict, const phasePair &pair) | |
~InterfaceCompositionModel ()=default | |
virtual tmp< volScalarField > | dY (const word &speciesName, const volScalarField &Tf) const |
virtual tmp< volScalarField > | D (const word &speciesName) const |
virtual tmp< volScalarField > | L (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::volScalarField > | getSpecieMassFraction (const word &speciesName, const multiComponentMixture< ThermoType > &mixture) const |
template<class ThermoType > | |
Foam::tmp< Foam::volScalarField > | getSpecieMassFraction (const word &speciesName, const pureMixture< ThermoType > &mixture) const |
template<class ThermoType > | |
Foam::tmp< Foam::volScalarField > | MwMixture (const pureMixture< ThermoType > &mixture) const |
template<class ThermoType > | |
Foam::tmp< Foam::volScalarField > | MwMixture (const multiComponentMixture< ThermoType > &mixture) 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 word | transferSpecie () const |
const phasePair & | pair () const |
virtual tmp< volScalarField > | Kexp (const volScalarField &field)=0 |
virtual tmp< volScalarField > | KSp (label modelVariable, const volScalarField &field)=0 |
virtual tmp< volScalarField > | KSu (label modelVariable, const volScalarField &field)=0 |
virtual const dimensionedScalar & | Tactivate () const noexcept=0 |
virtual bool | includeDivU () const noexcept |
bool | includeVolChange () |
const word & | variable () 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 hashedWordList & | species () const |
bool | transports (word &speciesName) const |
Additional Inherited Members | |
![]() | |
enum | modelVariable { T, P, Y, alpha } |
![]() | |
static autoPtr< interfaceCompositionModel > | New (const dictionary &dict, const phasePair &pair) |
static autoPtr< interfaceCompositionModel > | New (const dictionary &dict, const phasePair &pair) |
![]() | |
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< volScalarField > | getSpecieMassFraction (const word &speciesName, const pureMixture< ThermoType > &thermo) const |
template<class ThermoType > | |
tmp< volScalarField > | getSpecieMassFraction (const word &speciesName, const multiComponentMixture< ThermoType > &thermo) const |
template<class ThermoType > | |
tmp< volScalarField > | MwMixture (const pureMixture< ThermoType > &thermo) const |
template<class ThermoType > | |
tmp< volScalarField > | MwMixture (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 |
![]() | |
const Thermo & | fromThermo_ |
const OtherThermo & | toThermo_ |
const dimensionedScalar | Le_ |
const Thermo & | thermo_ |
const OtherThermo & | otherThermo_ |
![]() | |
modelVariable | modelVariable_ |
bool | includeVolChange_ |
const phasePair & | pair_ |
word | speciesName_ |
const fvMesh & | mesh_ |
const hashedWordList | speciesNames_ |
![]() | |
static const Enum< modelVariable > | modelVariableNames_ |
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.
Definition at line 58 of file NonRandomTwoLiquid.H.
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().
|
virtual |
Definition at line 120 of file NonRandomTwoLiquid.C.
TypeName | ( | "nonRandomTwoLiquid" | ) |
|
virtual |
Implements interfaceCompositionModel.
Definition at line 130 of file NonRandomTwoLiquid.C.
References Foam::dimMass, Foam::dimMoles, Foam::exp(), Foam::max(), and Foam::sqr().
|
virtual |
Reimplemented from InterfaceCompositionModel< Thermo, OtherThermo >.
Definition at line 193 of file NonRandomTwoLiquid.C.
|
virtual |
Implements interfaceCompositionModel.
Definition at line 225 of file NonRandomTwoLiquid.C.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.