33 namespace twoPhaseChangeModels
44 const compressibleTwoPhaseMixture& mixture
47 cavitationModel(typeName, mixture),
49 UInf_(
"UInf",
dimVelocity, twoPhaseChangeModelCoeffs_),
50 tInf_(
"tInf",
dimTime, twoPhaseChangeModelCoeffs_),
51 Cc_(
"Cc",
dimless, twoPhaseChangeModelCoeffs_),
52 Cv_(
"Cv",
dimless, twoPhaseChangeModelCoeffs_),
54 p0_(
"0", pSat().dimensions(), 0.0)
79 return Pair<tmp<volScalarField::Internal>>
81 mcCoeff_*
sqr(limitedAlpha1)
106 return Pair<tmp<volScalarField::Internal>>
108 mcCoeff_*
sqr(limitedAlpha1)*(1.0 - limitedAlpha1)
111 (-mvCoeff_)*limitedAlpha1*
neg(p -
pSat())
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)
defineTypeNameAndDebug(cavitationModel, 0)
virtual Pair< tmp< volScalarField > > mDotP() const
Return the mass condensation and vaporisation rates as coefficients.
virtual void correct()
Correct the Kunz phaseChange model.
dictionary twoPhaseChangeModelCoeffs_
Model coefficient dictionary.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
Kunz(const immiscibleIncompressibleTwoPhaseMixture &mixture)
Construct for mixture.
const dimensionSet dimless
const dimensionedScalar & pSat() const
Return const-access to the saturation vapour pressure.
DimensionedField< scalar, volMesh > Internal
Type of the internal field from which this GeometricField is derived.
const Type & lookupObject(const word &name) const
Lookup and return the object of the given Type.
dimensionedScalar neg(const dimensionedScalar &ds)
Macros for easy insertion into run-time selection tables.
const volScalarField & alpha1() const
Return the phase-fraction of phase 1.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
const dimensionSet dimTime
virtual Pair< tmp< volScalarField > > mDotAlphal() const
Return the mass condensation and vaporisation rates as a.
const volScalarField::Internal & rho1() const
Return the internal field of the density of phase 1.
An ordered pair of two objects of type <T> with first() and second() elements.
virtual bool read()
Read the phaseProperties dictionary and update.
const dictionary & optionalSubDict(const word &) const
Find and return a sub-dictionary if found.
virtual void correct()=0
Correct the phaseChange model.
layerAndWeight min(const layerAndWeight &a, const layerAndWeight &b)
dimensionedScalar pos0(const dimensionedScalar &ds)
const dimensionSet dimVelocity
addToRunTimeSelectionTable(cavitationModel, Kunz, dictionary)
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.
const objectRegistry & db() const
Return the local objectRegistry.
const volScalarField::Internal & rho2() const
Return the internal field of the density of phase 2.
const immiscibleIncompressibleTwoPhaseMixture & mixture_
Reference to the two-phase mixture.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
virtual bool read()
Read the phaseProperties dictionary and update.