33 namespace interfaceCompositionModels
83 <<
"nonRandomTwoLiquid model is suitable for two species only."
97 dict.subDict(species1Name_).lookup(
"alpha")
103 dict.subDict(species2Name_).lookup(
"alpha")
110 dict.subDict(species1Name_).lookup(
"beta")
116 dict.subDict(species2Name_).lookup(
"beta")
119 saturationModel12_.reset
124 dict.subDict(species1Name_)
127 saturationModel21_.reset
132 dict.subDict(species2Name_)
140 dict.subDict(species1Name_),
148 dict.subDict(species2Name_),
194 tau21*
sqr(G21)/
max(
sqr(X1 + X2*G21), small)
195 + tau12*G12/
max(
sqr(X2 + X1*G12), small)
203 tau12*
sqr(G12)/
max(
sqr(X2 + X1*G12), small)
204 + tau21*G21/
max(
sqr(X1 + X2*G21), small)
213 const word& speciesName,
217 if (speciesName == species1Name_)
220 otherMulticomponentThermo().Y(speciesName)
221 *speciesModel1_->Yf(speciesName, Tf)
224 else if (speciesName == species2Name_)
227 otherMulticomponentThermo().Y(speciesName)
228 *speciesModel2_->Yf(speciesName, Tf)
235 *(scalar(1) - Yf(species1Name_, Tf) - Yf(species2Name_, Tf));
243 const word& speciesName,
247 if (speciesName == species1Name_)
250 otherMulticomponentThermo().Y(speciesName)
251 *speciesModel1_->YfPrime(speciesName, Tf)
254 else if (speciesName == species2Name_)
257 otherMulticomponentThermo().Y(speciesName)
258 *speciesModel2_->YfPrime(speciesName, Tf)
265 *(YfPrime(species1Name_, Tf) + YfPrime(species2Name_, Tf));
Macros for easy insertion into run-time selection tables.
Generic GeometricField class.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
Generic base class for interface composition models. These models describe the composition in phase 1...
const sidedPhaseInterface & interface() const
Return the interface.
const rhoFluidMulticomponentThermo & thermo() const
Return the thermo.
static autoPtr< interfaceCompositionModel > New(const dictionary &dict, const phaseInterface &interface, const bool outer=false)
const hashedWordList & species() const
Return the transferring species names.
Non ideal law for the mixing of two species. A separate composition model is given for each species....
virtual void update(const volScalarField &Tf)
Update the composition.
virtual ~nonRandomTwoLiquid()
Destructor.
nonRandomTwoLiquid(const dictionary &dict, const phaseInterface &interface)
Construct from a dictionary and an interface.
virtual tmp< volScalarField > Yf(const word &speciesName, const volScalarField &Tf) const
The interface species fraction.
virtual tmp< volScalarField > YfPrime(const word &speciesName, const volScalarField &Tf) const
The interface species fraction derivative w.r.t. temperature.
virtual const speciesTable & species() const =0
Return the table of species.
Class to represent an interface between phases. Derivations can further specify the configuration of ...
static autoPtr< saturationPressureModel > New(const word &name, const dictionary &dict)
Select with name within a dictionary.
A class for managing temporary objects.
A class for handling words, derived from string.
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
const dimensionSet dimless
addToRunTimeSelectionTable(interfaceCompositionModel, Henry, dictionary)
defineTypeNameAndDebug(Henry, 0)
errorManipArg< error, int > exit(error &err, const int errNo=1)
dimensionedScalar exp(const dimensionedScalar &ds)
const dimensionSet & dimless
tmp< DimensionedField< typename outerProduct< Type, Type >::type, GeoMesh, Field >> sqr(const DimensionedField< Type, GeoMesh, PrimitiveField > &df)
scalarList W(const fluidMulticomponentThermo &thermo)
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.
const dimensionSet & dimTemperature
dimensioned< Type > max(const DimensionedField< Type, GeoMesh, PrimitiveField > &df)
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
PtrList< volScalarField > & Y
fluidMulticomponentThermo & thermo