71 "transportProperties",
101 rho1_(
"rho",
dimDensity, nuModel1_->viscosityProperties()),
102 rho2_(
"rho",
dimDensity, nuModel2_->viscosityProperties()),
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_);
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,...
static autoPtr< Time > New()
Construct (dummy) Time - no functionObjects or libraries.
A two-phase incompressible transportModel.
tmp< surfaceScalarField > muf() const
Return the face-interpolated dynamic laminar viscosity.
tmp< surfaceScalarField > nuf() const
Return the face-interpolated kinematic laminar viscosity.
autoPtr< viscosityModel > nuModel2_
tmp< volScalarField > mu() const
Return the dynamic laminar viscosity.
void calcNu()
Calculate and return the laminar viscosity.
autoPtr< viscosityModel > nuModel1_
virtual bool read()
Read base transportProperties dictionary.
constant condensation/saturation model.
virtual bool read()
Read object.
A class for managing temporary objects.
A two-phase mixture model.
An abstract base class for incompressible viscosityModels.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
const volScalarField & mu
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 dimViscosity
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
bool read(const char *buf, int32_t &val)
Same as readInt32.
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.
static constexpr const zero Zero
Global zero (0)
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh > > &tdf1, const word &name, const dimensionSet &dimensions)
Global function forwards to reuseTmpDimensionedField::New.
const dimensionSet dimDensity