71 "transportProperties",
101 rho1_(
"rho",
dimDensity, nuModel1_->viscosityProperties()),
102 rho2_(
"rho",
dimDensity, nuModel2_->viscosityProperties()),
147 return mu()().boundaryField()[patchI];
184 )/(alpha1f*
rho1_ + (scalar(1) - alpha1f)*
rho2_)
197 subDict(phase1Name_ ==
"1" ?
"phase1": phase1Name_)
201 subDict(phase2Name_ ==
"2" ?
"phase2": phase2Name_)
205 nuModel1_->viscosityProperties().readEntry(
"rho", rho1_);
206 nuModel2_->viscosityProperties().readEntry(
"rho", rho2_);
Macros for easy insertion into run-time selection tables.
static tmp< GeometricField< scalar, fvPatchField, volMesh > > New(const word &name, IOobjectOption::registerOption regOpt, const Mesh &mesh, const dimensionSet &dims, const word &patchFieldType=fvPatchField< scalar >::calculatedType())
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
IOdictionary(const IOobject &io, const dictionary *fallback=nullptr)
Construct given an IOobject and optional fallback dictionary content.
@ NO_REGISTER
Do not request registration (bool: false).
@ NO_WRITE
Ignore writing from objectRegistry::writeObject().
Defines the attributes of an object for which implicit objectRegistry management is supported,...
const Time & time() const noexcept
Return Time associated with the objectRegistry.
const objectRegistry & db() const noexcept
Return the local objectRegistry.
const dictionary & subDict(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Find and return a sub-dictionary.
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.
const volVectorField & U() const
Return const-access to the mixture velocity.
autoPtr< viscosityModel > nuModel2_
const surfaceScalarField & phi_
tmp< volScalarField > mu() const
Return the dynamic laminar viscosity.
const volVectorField & U_
void calcNu()
Calculate and return the laminar viscosity.
autoPtr< viscosityModel > nuModel1_
incompressibleTwoPhaseMixture(const volVectorField &U, const surfaceScalarField &phi)
Construct from components.
virtual bool read()
Read base transportProperties dictionary.
virtual bool read()
Read object.
A class for managing temporary objects.
A two-phase mixture model.
twoPhaseMixture(const fvMesh &mesh, const dictionary &dict)
Construct from components.
An abstract base class for incompressible viscosityModels.
Represents 0/1 range or concept. Used for tagged dispatch or clamping.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
Different types of constants.
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
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh > > &tf1, const word &name, const dimensionSet &dimensions, const bool initCopy=false)
Global function forwards to reuseTmpDimensionedField::New.
GeometricField< vector, fvPatchField, volMesh > volVectorField
bool read(const char *buf, int32_t &val)
Same as readInt32.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
dimensionSet clamp(const dimensionSet &a, const dimensionSet &range)
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
static constexpr const zero Zero
Global zero (0).
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
const dimensionSet dimDensity