36void Foam::incompressibleThreePhaseMixture::calcNu()
43 nu_ =
mu()/(alpha1_*rho1_ + alpha2_*rho2_ + alpha3_*rho3_);
59 "transportProperties",
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()
183Foam::tmp<Foam::surfaceScalarField>
203Foam::tmp<Foam::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_);
Macros for easy insertion into run-time selection tables.
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
Defines the attributes of an object for which implicit objectRegistry management is supported,...
Dimension set for the base types, which can be used to implement rigorous dimension checking for alge...
incompressibleThreePhaseMixture(const volVectorField &U, const surfaceScalarField &phi)
Construct from components.
tmp< surfaceScalarField > muf() const
Return the face-interpolated dynamic laminar viscosity.
tmp< volScalarField > mu() const
Return the dynamic laminar viscosity.
bool read()
Read base transportProperties dictionary.
tmp< surfaceScalarField > nuf() const
Return the face-interpolated dynamic laminar viscosity.
A class for managing temporary objects.
virtual bool read()=0
Read transportProperties dictionary.
An abstract base class for incompressible viscosityModels.
List< ReturnType > get(const UPtrList< T > &list, const AccessOp &aop)
List of values generated by applying the access operation to each list item.
Different types of constants.
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.
List< word > wordList
List of word.
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
bool read(const char *buf, int32_t &val)
Same as readInt32.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
static constexpr const zero Zero
Global zero (0).
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
const dimensionSet dimDensity