27 #include "surfaceInterpolate.H" 66 calculatedFvPatchScalarField::typeName
97 limitedAlpha1*rho1_*nuModel1_->nu()
98 + (scalar(1) - limitedAlpha1)*rho2_*nuModel2_->nu()
134 )/(alpha1f*rho1_ + (scalar(1) - alpha1f)*rho2_)
143 nuModel1_->lookup(
"rho") >> rho1_;
144 nuModel2_->lookup(
"rho") >> rho2_;
157 nuModel1_->correct();
158 nuModel2_->correct();
167 nu_ =
mu()/(limitedAlpha1*rho1_ + (scalar(1) - limitedAlpha1)*rho2_);
const dimensionSet dimViscosity
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)
tmp< surfaceScalarField > nuf() const
Return the face-interpolated kinematic laminar viscosity.
Info<< "Predicted p max-min : "<< max(p).value()<< " "<< min(p).value()<< endl;rho==max(rho0+psi *p, rhoMin);# 1 "/home/ubuntu/OpenFOAM-10/applications/solvers/multiphase/cavitatingFoam/alphavPsi.H" 1{ alphav=max(min((rho - rholSat)/(rhovSat - rholSat), scalar(1)), scalar(0));alphal=1.0 - alphav;Info<< "max-min alphav: "<< max(alphav).value()<< " "<< min(alphav).value()<< endl;psiModel-> correct()
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,.
volScalarField & alpha1(mixture.alpha1())
tmp< volScalarField > rho() const
Return the mixture density.
tmp< surfaceScalarField > muf() const
Return the face-interpolated dynamic laminar viscosity.
Macros for easy insertion into run-time selection tables.
const dimensionSet dimDensity
layerAndWeight min(const layerAndWeight &a, const layerAndWeight &b)
tmp< volScalarField > mu() const
Return the dynamic laminar viscosity.
static autoPtr< viscosityModel > New(const fvMesh &mesh, const word &group=word::null)
Return a reference to the selected viscosity model.
const dimensionedScalar mu
Atomic mass unit.
const Mesh & mesh() const
Return mesh.
defineTypeNameAndDebug(combustionModel, 0)
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.
virtual void correct()
Correct the laminar viscosity.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
A two-phase mixture model.
virtual bool read()
Read base phaseProperties dictionary.
virtual bool read()=0
Read base phaseProperties dictionary.
A class for managing temporary objects.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...