33 namespace cavitationModels
57 mcCoeff_(Cc_/(0.5*
sqr(UInf_)*tInf_)),
58 mvCoeff_(Cv_*rhol()/(0.5*
sqr(UInf_)*tInf_*rhov()))
74 mcCoeff_*
max(
p - pSat(), p0_),
75 -mvCoeff_*
min(
p - pSat(), p0_)
88 min(
max(alphal(), scalar(0)), scalar(1))
93 mcCoeff_*(1.0 - limitedAlphal)*
pos0(
p - pSat()),
94 (-mvCoeff_)*limitedAlphal*
neg(
p - pSat())
107 dict.lookup(
"UInf") >> UInf_;
108 dict.lookup(
"tInf") >> tInf_;
109 dict.lookup(
"Cv") >> Cv_;
110 dict.lookup(
"Cc") >> Cc_;
112 mcCoeff_ = Cc_/(0.5*
sqr(UInf_)*tInf_);
113 mvCoeff_ = Cv_*rhol()/(0.5*
sqr(UInf_)*tInf_*rhov());
Macros for easy insertion into run-time selection tables.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Generic GeometricField class.
An ordered pair of two objects of type <T> with first() and second() elements.
Abstract base class for cavitation models.
virtual bool read(const dictionary &dict)=0
Read the dictionary and update.
Merkle(const dictionary &dict, const incompressibleTwoPhases &phases)
Construct for phases.
virtual void correct()
Correct the Merkle phaseChange model.
virtual bool read(const dictionary &dict)
Read the dictionary and update.
virtual Pair< tmp< volScalarField::Internal > > mDotcvAlpha() const
Return the mass condensation and vaporisation rates as a.
virtual Pair< tmp< volScalarField::Internal > > mDotcvP() const
Return the mass condensation and vaporisation rates as coefficients.
A list of keyword definitions, which are a keyword followed by any number of values (e....
Interface to two constant density phases.
defineTypeNameAndDebug(Kunz, 0)
addToRunTimeSelectionTable(cavitationModel, Kunz, dictionary)
dimensionedScalar pos0(const dimensionedScalar &ds)
dimensionedSymmTensor sqr(const dimensionedVector &dv)
const HashTable< dimensionSet > & dimensions()
Get the table of dimension sets.
const dimensionSet dimless
layerAndWeight min(const layerAndWeight &a, const layerAndWeight &b)
const dimensionSet dimTime
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)
dimensionedScalar neg(const dimensionedScalar &ds)
const dimensionSet dimVelocity