36 void Foam::incompressibleThreePhaseMixture::calcNu()
43 nu_ =
mu()/(alpha1_*rho1_ + alpha2_*rho2_ + alpha3_*rho3_);
59 "transportProperties",
62 IOobject::MUST_READ_IF_MODIFIED,
75 IOobject::groupName(
"alpha", phase1Name_),
88 IOobject::groupName(
"alpha", phase2Name_),
101 IOobject::groupName(
"alpha", phase3Name_),
130 subDict(phase1Name_),
140 subDict(phase2Name_),
150 subDict(phase3Name_),
156 rho1_(
"rho",
dimDensity, nuModel1_->viscosityProperties()),
157 rho2_(
"rho",
dimDensity, nuModel2_->viscosityProperties()),
158 rho3_(
"rho",
dimDensity, nuModel3_->viscosityProperties())
160 alpha3_ == 1.0 - alpha1_ - alpha2_;
170 return tmp<volScalarField>
175 alpha1_*rho1_*nuModel1_->nu()
176 + alpha2_*rho2_*nuModel2_->nu()
177 + alpha3_*rho3_*nuModel3_->nu()
190 return tmp<surfaceScalarField>
210 return tmp<surfaceScalarField>
219 )/(alpha1f*rho1_ + alpha2f*rho2_ + alpha3f*rho3_)
231 nuModel1_().
read(*
this)
232 && nuModel2_().
read(*
this)
233 && nuModel3_().
read(*
this)
236 nuModel1_->viscosityProperties().readEntry(
"rho", rho1_);
237 nuModel2_->viscosityProperties().readEntry(
"rho", rho2_);
238 nuModel3_->viscosityProperties().readEntry(
"rho", rho3_);
List< ReturnType > get(const UPtrList< T > &list, const AccessOp &aop)
List of values generated by applying the access operation to each list item.
incompressibleThreePhaseMixture(const volVectorField &U, const surfaceScalarField &phi)
Construct from components.
tmp< volScalarField > mu() const
Return the dynamic laminar viscosity.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tf1, const word &name, const dimensionSet &dimensions, const bool initCopy=false)
Global function forwards to reuseTmpDimensionedField::New.
GeometricField< vector, fvPatchField, volMesh > volVectorField
Macros for easy insertion into run-time selection tables.
bool read(const char *buf, int32_t &val)
Same as readInt32.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
tmp< surfaceScalarField > muf() const
Return the face-interpolated dynamic laminar viscosity.
static tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > interpolate(const GeometricField< Type, fvPatchField, volMesh > &tvf, const surfaceScalarField &faceFlux, Istream &schemeData)
Interpolate field onto faces using scheme given by Istream.
const dimensionSet dimDensity
List< word > wordList
List of word.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
virtual bool read()=0
Read transportProperties dictionary.
A class for managing temporary objects.
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
tmp< surfaceScalarField > nuf() const
Return the face-interpolated dynamic laminar viscosity.
bool read()
Read base transportProperties dictionary.
static constexpr const zero Zero
Global zero (0)