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") | |
Runtime type information. More... | |
nonRandomTwoLiquid (const dictionary &dict, const phaseInterface &interface) | |
Construct from a dictionary and an interface. More... | |
virtual | ~nonRandomTwoLiquid () |
Destructor. More... | |
virtual void | update (const volScalarField &Tf) |
Update the composition. More... | |
virtual tmp< volScalarField > | Yf (const word &speciesName, const volScalarField &Tf) const |
The interface species fraction. More... | |
virtual tmp< volScalarField > | YfPrime (const word &speciesName, const volScalarField &Tf) const |
The interface species fraction derivative w.r.t. temperature. More... | |
![]() | |
TypeName ("interfaceCompositionModel") | |
Runtime type information. More... | |
declareRunTimeSelectionTable (autoPtr, interfaceCompositionModel, dictionary,(const dictionary &dict, const phaseInterface &interface),(dict, interface)) | |
interfaceCompositionModel (const dictionary &dict, const phaseInterface &interface) | |
Construct from a dictionary and an interface. More... | |
virtual | ~interfaceCompositionModel () |
Destructor. More... | |
const sidedPhaseInterface & | interface () const |
Return the interface. More... | |
const hashedWordList & | species () const |
Return the transferring species names. More... | |
const rhoFluidMulticomponentThermo & | thermo () const |
Return the thermo. More... | |
const rhoThermo & | otherThermo () const |
Return the other thermo. More... | |
const rhoFluidMulticomponentThermo & | otherMulticomponentThermo () const |
Return the other multicomponent thermo. More... | |
tmp< volScalarField > | dY (const word &speciesName, const volScalarField &Tf) const |
Mass fraction difference between the interface and the field. More... | |
tmp< volScalarField > | dYfPrime (const word &speciesName, const volScalarField &Tf) const |
Mass fraction difference between the interface and the field. More... | |
tmp< volScalarField > | D (const word &speciesName) const |
Mass diffusivity. More... | |
Additional Inherited Members | |
![]() | |
static autoPtr< interfaceCompositionModel > | New (const dictionary &dict, const phaseInterface &interface, const bool outer=true) |
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 56 of file nonRandomTwoLiquid.H.
nonRandomTwoLiquid | ( | const dictionary & | dict, |
const phaseInterface & | interface | ||
) |
Construct from a dictionary and an interface.
Definition at line 48 of file nonRandomTwoLiquid.C.
References dict, Foam::dimless, Foam::dimTemperature, Foam::exit(), Foam::FatalError, FatalErrorInFunction, interfaceCompositionModel::interface(), saturationPressureModel::New(), interfaceCompositionModel::New(), interfaceCompositionModel::species(), multicomponentThermo::species(), and interfaceCompositionModel::thermo().
|
virtual |
Destructor.
Definition at line 159 of file nonRandomTwoLiquid.C.
TypeName | ( | "nonRandomTwoLiquid" | ) |
Runtime type information.
|
virtual |
Update the composition.
Implements interfaceCompositionModel.
Definition at line 165 of file nonRandomTwoLiquid.C.
References Foam::exp(), Foam::max(), Foam::sqr(), thermo, Foam::W(), and Y.
|
virtual |
The interface species fraction.
Implements interfaceCompositionModel.
Definition at line 213 of file nonRandomTwoLiquid.C.
References thermo.
|
virtual |
The interface species fraction derivative w.r.t. temperature.
Implements interfaceCompositionModel.
Definition at line 243 of file nonRandomTwoLiquid.C.
References thermo.