33 void Foam::incompressibleThreePhaseMixture::calcNu()
40 nu_ =
mu()/(alpha1_*rho1_ + alpha2_*rho2_ + alpha3_*rho3_);
120 calculatedFvPatchScalarField::typeName
123 nuModel1_(viscosityModel::
New(U.
mesh(), phase1Name_)),
124 nuModel2_(viscosityModel::
New(U.
mesh(), phase2Name_)),
125 nuModel3_(viscosityModel::
New(U.
mesh(), phase3Name_)),
131 alpha3_ == 1.0 - alpha1_ - alpha2_;
144 alpha1_*rho1_*nuModel1_->nu()
145 + alpha2_*rho2_*nuModel2_->nu()
146 + alpha3_*rho3_*nuModel3_->nu()
182 )/(alpha1f*rho1_ + alpha2f*rho2_ + alpha3f*rho3_)
191 nuModel1_->lookup(
"rho") >> rho1_;
192 nuModel2_->lookup(
"rho") >> rho2_;
193 nuModel3_->lookup(
"rho") >> rho3_;
const surfaceScalarField & phi() const
Return the flux.
incompressibleThreePhaseMixture(const volVectorField &U, const surfaceScalarField &phi)
Construct from components.
tmp< volScalarField > mu() const
Return the dynamic laminar viscosity.
virtual bool read()
Read object.
IOobject(const word &name, const fileName &instance, const objectRegistry ®istry, readOption r=NO_READ, writeOption w=NO_WRITE, bool registerObject=true)
Construct from name, instance, registry, io options.
static tmp< GeometricField< scalar, fvPatchField, volMesh > > New(const word &name, const Internal &, const PtrList< fvPatchField< scalar >> &)
Return a temporary field constructed from name,.
GeometricField< vector, fvPatchField, volMesh > volVectorField
Macros for easy insertion into run-time selection tables.
static word groupName(Name name, const word &group)
const dimensionSet dimDensity
tmp< surfaceScalarField > muf() const
Return the face-interpolated dynamic laminar viscosity.
IOdictionary(const IOobject &io, const word &wantedType)
Construct given an IOobject, supply wanted typeName.
static autoPtr< dictionary > New(Istream &)
Construct top-level dictionary on freestore from Istream.
const volVectorField & U() const
Return the velocity.
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
A List of words.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
const Time & time() const
Return time.
A class for managing temporary objects.
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
const objectRegistry & db() const
Return the local objectRegistry.
tmp< surfaceScalarField > nuf() const
Return the face-interpolated dynamic laminar viscosity.
bool read()
Read base phaseProperties dictionary.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.