50 twoPhaseMixture(U.
mesh()),
54 muModel_(mixtureViscosityModel::
New(*this)),
55 nucModel_(viscosityModel::
New(U.
mesh(), phase2Name())),
63 muModel_->lookupOrDefault(
"d", 0.0)
65 alphaMax_(lookupOrDefault(
"alphaMax", 1.0)),
79 calculatedFvPatchScalarField::typeName
82 UdmModel_(relativeVelocityModel::
New(*this, *this, g))
214 return UdmModel_->Udm();
221 return fvc::div(UdmModel_->tauDm());
228 mu_ = muModel_->mu(rhoc_*nucModel_->nu(), U_);
229 UdmModel_->correct();
237 if (muModel_->read() || nucModel_->read())
239 muModel_->lookup(
"rho") >> rhod_;
240 nucModel_->lookup(
"rho") >> rhoc_;
246 muModel_->lookupOrDefault(
"d", 0)
249 alphaMax_ = muModel_->lookupOrDefault(
"alphaMax", 1.0);
virtual void correct()
Correct the laminar viscosity.
const volScalarField & alpha2() const
Return the phase-fraction of phase 2.
FvWallInfoData< WallInfo, label > label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
virtual bool read()
Read base phaseProperties dictionary.
UniformDimensionedField< vector > uniformDimensionedVectorField
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()
const Boundary & boundaryField() const
Return const-reference to the boundary field.
const volScalarField & alphad() const
Return const-access to the dispersed phase-fraction.
const dimensionedScalar & rhoc() const
Return const-access to continuous-phase density.
tmp< GeometricField< Type, fvPatchField, volMesh > > div(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
const IOMRFZoneList & MRF() const
Return MRF zones.
Generic dimensioned Type class.
virtual ~incompressibleTwoPhaseInteractingMixture()
Destructor.
GeometricField< vector, fvPatchField, volMesh > volVectorField
const dimensionedScalar & rhod() const
Return const-access to the dispersed-phase density.
An abstract base class for Newtonian viscosity models.
Macros for easy insertion into run-time selection tables.
const volVectorField & U() const
Return const-access to the mixture velocity.
scalar alphaMax() const
Optional maximum phase-fraction (e.g. packing limit)
const dimensionSet dimLength
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
const volScalarField & alpha1() const
Return the phase-fraction of phase 1.
virtual tmp< volScalarField > nu() const
Return the mixture viscosity.
void correctBoundaryVelocity(volVectorField &U) const
Correct the boundary velocity for the rotation of the MRF region.
incompressibleTwoPhaseInteractingMixture(volVectorField &U, const surfaceScalarField &phi, const uniformDimensionedVectorField &g)
Construct from components.
An abstract base class for incompressible mixtureViscosityModels.
const dimensionSet dimDensity
const Type & value() const
Return const reference to value.
Calculate the divergence of the given field.
defineTypeNameAndDebug(combustionModel, 0)
tmp< volVectorField > divTauDm() const
Return the div stress tensor due to the phase transport.
const dimensionedScalar & dd() const
Return the diameter of the dispersed-phase particles.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
const volVectorField & Udm() const
Return the diffusion velocity of the dispersed phase.
const mixtureViscosityModel & muModel() const
Return const-access to the mixture viscosityModel.
virtual bool read()=0
Read base phaseProperties dictionary.
A class for managing temporary objects.
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
const dimensionedVector & g
const viscosityModel & nucModel() const
Return const-access to the continuous-phase viscosityModel.
List of MRF zones with IO functionality. MRF zones are specified by a list of dictionary entries...
tmp< volScalarField > mu() const
Return the dynamic mixture viscosity.
const volScalarField & alphac() const
Return const-access to the continuous phase-fraction.
virtual tmp< volScalarField > rho() const
Return the mixture density.