49 min(
max(alpha1_, scalar(0)), scalar(1))
53 nu_ =
mu()/(limitedAlpha1*rho1_ + (scalar(1) - limitedAlpha1)*rho2_);
69 "transportProperties",
99 rho1_(
"rho",
dimDensity, nuModel1_->viscosityProperties()),
100 rho2_(
"rho",
dimDensity, nuModel2_->viscosityProperties()),
110 U_.time().timeName(),
115 calculatedFvPatchScalarField::typeName
129 min(
max(alpha1_, scalar(0)), scalar(1))
135 limitedAlpha1*rho1_*nuModel1_->nu()
136 + (scalar(1) - limitedAlpha1)*rho2_*nuModel2_->nu()
172 )/(alpha1f*rho1_ + (scalar(1) - alpha1f)*rho2_)
185 subDict(phase1Name_ ==
"1" ?
"phase1": phase1Name_)
189 subDict(phase2Name_ ==
"2" ?
"phase2": phase2Name_)
193 nuModel1_->viscosityProperties().lookup(
"rho") >> rho1_;
194 nuModel2_->viscosityProperties().lookup(
"rho") >> rho2_;
const dimensionSet dimViscosity
tmp< surfaceScalarField > nuf() const
Return the face-interpolated kinematic laminar viscosity.
virtual bool read()
Read object.
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
incompressibleTwoPhaseMixture(const volVectorField &U, const surfaceScalarField &phi)
Construct from components.
static tmp< GeometricField< scalar, fvPatchField, volMesh > > New(const word &name, const Internal &, const PtrList< fvPatchField< scalar >> &)
Return a temporary field constructed from name,.
tmp< surfaceScalarField > muf() const
Return the face-interpolated dynamic laminar viscosity.
Macros for easy insertion into run-time selection tables.
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
bool read(const char *, int32_t &)
const dimensionSet dimDensity
const word & constant() const
Return constant name.
tmp< volScalarField > mu() const
Return the dynamic laminar viscosity.
const dimensionedScalar mu
Atomic mass unit.
const Mesh & mesh() const
Return mesh.
defineTypeNameAndDebug(combustionModel, 0)
dimensioned< Type > min(const dimensioned< Type > &, const dimensioned< Type > &)
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.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
const Time & time() const
Return time.
static autoPtr< viscosityModel > New(const word &name, const dictionary &viscosityProperties, const volVectorField &U, const surfaceScalarField &phi)
Return a reference to the selected viscosity model.
A two-phase mixture model.
virtual bool read()
Read base transportProperties dictionary.
void calcNu()
Calculate and return the laminar viscosity.
A class for managing temporary objects.
const objectRegistry & db() const
Return the local objectRegistry.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...