33 namespace cavitationModels
55 p0_(
"0", pSat().dimensions(), 0.0),
57 mcCoeff_(Cc_*rhov()/tInf_),
58 mvCoeff_(Cv_*rhov()/(0.5*rhol()*
sqr(UInf_)*tInf_))
74 min(
max(alphal(), scalar(0)), scalar(1))
79 mcCoeff_*
sqr(limitedAlphal)
80 *
max(
p - pSat(), p0_)/
max(
p - pSat(), 0.01*pSat()),
81 -mvCoeff_*
min(
p - pSat(), p0_)
94 min(
max(alphal(), scalar(0)), scalar(1))
99 mcCoeff_*
sqr(limitedAlphal)*(1.0 - limitedAlphal)
100 *
pos0(
p - pSat())/
max(
p - pSat(), 0.01*pSat()),
101 (-mvCoeff_)*limitedAlphal*
neg(
p - pSat())
114 dict.lookup(
"UInf") >> UInf_;
115 dict.lookup(
"tInf") >> tInf_;
116 dict.lookup(
"Cv") >> Cv_;
117 dict.lookup(
"Cc") >> Cc_;
119 mcCoeff_ = Cc_*rhov()/tInf_;
120 mvCoeff_ = Cv_*rhov()/(0.5*rhol()*
sqr(UInf_)*tInf_);
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 <Type> with first() and second() elements.
Abstract base class for cavitation models.
virtual bool read(const dictionary &dict)=0
Read the dictionary and update.
virtual void correct()
Correct the Kunz phaseChange model.
Kunz(const dictionary &dict, const incompressibleTwoPhases &phases)
Construct for phases.
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 keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
Interface to two constant density phases.
defineTypeNameAndDebug(Kunz, 0)
addToRunTimeSelectionTable(cavitationModel, Kunz, dictionary)
const dimensionSet dimless
dimensionedScalar pos0(const dimensionedScalar &ds)
tmp< DimensionedField< typename outerProduct< Type, Type >::type, GeoMesh, Field >> sqr(const DimensionedField< Type, GeoMesh, PrimitiveField > &df)
const dimensionSet & dimVelocity
const dimensionSet & dimTime
dimensioned< Type > min(const DimensionedField< Type, GeoMesh, PrimitiveField > &df)
dimensionedScalar neg(const dimensionedScalar &ds)
dimensioned< Type > max(const DimensionedField< Type, GeoMesh, PrimitiveField > &df)