33 void Foam::incompressibleThreePhaseMixture::calcNu()
40 nu_ =
mu()/(alpha1_*rho1_ + alpha2_*rho2_ + alpha3_*rho3_);
56 "transportProperties",
120 calculatedFvPatchScalarField::typeName
154 rho1_(
"rho",
dimDensity, nuModel1_->viscosityProperties()),
155 rho2_(
"rho",
dimDensity, nuModel2_->viscosityProperties()),
156 rho3_(
"rho",
dimDensity, nuModel3_->viscosityProperties())
158 alpha3_ == 1.0 - alpha1_ - alpha2_;
168 return tmp<volScalarField>
173 alpha1_*rho1_*nuModel1_->nu()
174 + alpha2_*rho2_*nuModel2_->nu()
175 + alpha3_*rho3_*nuModel3_->nu()
188 return tmp<surfaceScalarField>
208 return tmp<surfaceScalarField>
217 )/(alpha1f*rho1_ + alpha2f*rho2_ + alpha3f*rho3_)
229 nuModel1_().
read(*
this)
230 && nuModel2_().
read(*
this)
231 && nuModel3_().
read(*
this)
234 nuModel1_->viscosityProperties().lookup(
"rho") >> rho1_;
235 nuModel2_->viscosityProperties().lookup(
"rho") >> rho2_;
236 nuModel3_->viscosityProperties().lookup(
"rho") >> rho3_;
tmp< surfaceScalarField > nuf() const
Return the face-interpolated dynamic laminar viscosity.
incompressibleThreePhaseMixture(const volVectorField &U, const surfaceScalarField &phi)
Construct from components.
const volVectorField & U() const
Return the velocity.
const objectRegistry & db() const
Return the local objectRegistry.
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.
const dictionary & subDict(const word &) const
Find and return a sub-dictionary.
GeometricField< vector, fvPatchField, volMesh > volVectorField
Macros for easy insertion into run-time selection tables.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
const Time & time() const
Return time.
static word groupName(Name name, const word &group)
const surfaceScalarField & phi() const
Return the flux.
static autoPtr< dictionary > New(Istream &)
Construct top-level dictionary on freestore from Istream.
tmp< volScalarField > mu() const
Return the 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
A List of words.
IOdictionary(const IOobject &)
Construct given an IOobject.
tmp< surfaceScalarField > muf() const
Return the face-interpolated dynamic laminar viscosity.
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
bool read()
Read base transportProperties dictionary.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.