Go to the documentation of this file.
34 template<
class Thermo,
class OtherThermo>
37 const dictionary&
dict,
41 InterfaceCompositionModel<Thermo, OtherThermo>(
dict, pair),
44 alphaMin_(
dict.getOrDefault<scalar>(
"alphaMin", 0))
50 template<
class Thermo,
class OtherThermo>
60 min(
max(this->pair().from(), scalar(0)), scalar(1))
65 C_*from*this->pair().from().
rho()*
pos(from - alphaMin_)
66 *(refValue - Tactivate_)
70 if (
sign(C_.value()) > 0)
74 coeff*
pos(refValue - Tactivate_)
81 coeff*
pos(Tactivate_ - refValue)
88 template<
class Thermo,
class OtherThermo>
96 if (this->modelVariable_ == variable)
100 min(
max(this->pair().from(), scalar(0)), scalar(1))
105 C_*from*this->pair().from().
rho()*
pos(from - alphaMin_)
109 if (
sign(C_.value()) > 0)
113 coeff*
pos(refValue - Tactivate_)
120 coeff*
pos(Tactivate_ - refValue)
126 return tmp<volScalarField> ();
131 template<
class Thermo,
class OtherThermo>
139 if (this->modelVariable_ == variable)
143 min(
max(this->pair().from(), scalar(0)), scalar(1))
148 C_*from*this->pair().from().
rho()*
pos(from - alphaMin_)
151 if (
sign(C_.value()) > 0)
155 -coeff*
pos(refValue - Tactivate_)
162 coeff*
pos(Tactivate_ - refValue)
168 return tmp<volScalarField> ();
173 template<
class Thermo,
class OtherThermo>
181 template<
class Thermo,
class OtherThermo>
virtual const dimensionedScalar & Tactivate() const
Return T transition between phases.
A class for managing temporary objects.
dimensionedScalar sign(const dimensionedScalar &ds)
virtual tmp< volScalarField > KSu(label modelVariable, const volScalarField &field)
Explicit mass transfer coefficient.
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.
virtual tmp< volScalarField > Kexp(const volScalarField &field)
Explicit total mass transfer coefficient.
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
virtual tmp< volScalarField > KSp(label modelVariable, const volScalarField &field)
Implicit mass transfer coefficient.
dimensionedSphericalTensor inv(const dimensionedSphericalTensor &dt)
virtual bool includeDivU()
GeometricField< scalar, fvPatchField, volMesh > volScalarField
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
Macros for easy insertion into run-time selection tables.
Generic dimensioned Type class.
Lee(const dictionary &dict, const phasePair &pair)
Construct from components.
const dimensionSet dimTemperature(0, 0, 0, 1, 0, 0, 0)
dimensionedScalar pos(const dimensionedScalar &ds)