33 namespace twoPhaseChangeModels
44 const twoPhaseMixtureThermo& 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),
56 mcCoeff_(Cc_/(0.5*
sqr(UInf_)*tInf_))
75 return Pair<tmp<volScalarField::Internal>>
99 return Pair<tmp<volScalarField::Internal>>
101 mcCoeff_*(1.0 - limitedAlpha1)*
pos0(p -
pSat()),
103 (-mvCoeff_)*limitedAlpha1*
neg(p -
pSat())
defineTypeNameAndDebug(cavitationModel, 0)
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
dictionary twoPhaseChangeModelCoeffs_
Model coefficient dictionary.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
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
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 Pair< tmp< volScalarField > > mDotP() const
Return the mass condensation and vaporisation rates as coefficients.
const dictionary & optionalSubDict(const word &) const
Find and return a sub-dictionary if found.
virtual bool read()
Read the transportProperties dictionary and update.
virtual void correct()=0
Correct the phaseChange model.
dimensionedScalar pos0(const dimensionedScalar &ds)
const dimensionSet dimVelocity
addToRunTimeSelectionTable(cavitationModel, Kunz, dictionary)
dimensioned< Type > min(const dimensioned< Type > &, const dimensioned< Type > &)
virtual Pair< tmp< volScalarField > > mDotAlphal() const
Return the mass condensation and vaporisation rates as a.
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.
Merkle(const immiscibleIncompressibleTwoPhaseMixture &mixture)
Construct for mixture.
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.
virtual void correct()
Correct the Merkle phaseChange model.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
virtual bool read()
Read the transportProperties dictionary and update.