Go to the documentation of this file.
71 "transportProperties",
101 rho1_(
"rho",
dimDensity, nuModel1_->viscosityProperties()),
102 rho2_(
"rho",
dimDensity, nuModel2_->viscosityProperties()),
112 U_.time().timeName(),
117 calculatedFvPatchScalarField::typeName
131 min(
max(alpha1_, scalar(0)), scalar(1))
137 limitedAlpha1*rho1_*nuModel1_->nu()
138 + (scalar(1) - limitedAlpha1)*rho2_*nuModel2_->nu()
147 return mu()().boundaryField()[patchI];
182 )/(alpha1f*rho1_ + (scalar(1) - alpha1f)*rho2_)
195 subDict(phase1Name_ ==
"1" ?
"phase1": phase1Name_)
199 subDict(phase2Name_ ==
"2" ?
"phase2": phase2Name_)
203 nuModel1_->viscosityProperties().readEntry(
"rho", rho1_);
204 nuModel2_->viscosityProperties().readEntry(
"rho", rho2_);
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,...
tmp< volScalarField > mu() const
Return the dynamic laminar viscosity.
const dimensionedScalar mu
Atomic mass unit.
A class for managing temporary objects.
static constexpr const zero Zero
Global zero (0)
const dimensionSet dimDensity
virtual bool read()
Read base transportProperties dictionary.
autoPtr< viscosityModel > nuModel2_
bool read(const char *buf, int32_t &val)
Same as readInt32.
tmp< surfaceScalarField > muf() const
Return the face-interpolated dynamic laminar viscosity.
virtual bool read()
Read object.
autoPtr< viscosityModel > nuModel1_
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.
A two-phase mixture model.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
const dimensionSet dimViscosity
Macros for easy insertion into run-time selection tables.
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.
tmp< surfaceScalarField > nuf() const
Return the face-interpolated kinematic laminar viscosity.
static tmp< T > New(Args &&... args)
Construct tmp of T with forwarding arguments.
void calcNu()
Calculate and return the laminar viscosity.
incompressibleTwoPhaseMixture(const volVectorField &U, const surfaceScalarField &phi)
Construct from components.
static autoPtr< viscosityModel > New(const word &name, const dictionary &viscosityProperties, const volVectorField &U, const surfaceScalarField &phi)
Return a reference to the selected viscosity model.
defineTypeNameAndDebug(combustionModel, 0)