34template<
class Thermo,
class OtherThermo>
44 alphaMin_(
dict.getOrDefault<scalar>(
"alphaMin", 0))
50template<
class Thermo,
class OtherThermo>
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)
88template<
class Thermo,
class OtherThermo>
93 const volScalarField& refValue
96 if (this->modelVariable_ == variable)
98 const volScalarField from
100 clamp(this->pair().from(), zero_one{})
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)
131template<
class Thermo,
class OtherThermo>
139 if (this->modelVariable_ == variable)
146 const volScalarField coeff
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)
Macros for easy insertion into run-time selection tables.
InterfaceCompositionModel(const dictionary &dict, const phasePair &pair)
Construct from components.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Lee(const dictionary &dict, const phasePair &pair)
Construct from components.
virtual tmp< volScalarField > Kexp(const volScalarField &field)
Explicit total mass transfer coefficient.
virtual tmp< volScalarField > KSu(label modelVariable, const volScalarField &field)
Explicit mass transfer coefficient.
virtual tmp< volScalarField > KSp(label modelVariable, const volScalarField &field)
Implicit mass transfer coefficient.
const phasePair & pair() const
The phase pair.
const word & variable() const
Returns the variable on which the model is based.
modelVariable modelVariable_
Enumeration for the model variable.
Description for mass transfer between a pair of phases. The direction of the mass transfer is from th...
A class for managing temporary objects.
Represents 0/1 range or concept. Used for tagged dispatch or clamping.
dimensionedScalar pos(const dimensionedScalar &ds)
dimensionedScalar sign(const dimensionedScalar &ds)
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
GeometricField< scalar, fvPatchField, volMesh > volScalarField
dimensionSet clamp(const dimensionSet &a, const dimensionSet &range)
const dimensionSet dimTemperature(0, 0, 0, 1, 0, 0, 0)
dimensionedSphericalTensor inv(const dimensionedSphericalTensor &dt)