35 #ifndef cavitationModel_H
36 #define cavitationModel_H
47 namespace compressible
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
An ordered pair of two objects of type <T> with first() and second() elements.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
const volScalarField & rho(const bool index) const
Return the density of a given phase.
const rhoThermo & thermo(const bool index) const
Return the density of a given phase.
Pair< tmp< volScalarField::Internal > > mDot12P() const
Return the mass transfer rates of the two phases as coefficients to.
virtual Pair< tmp< volScalarField::Internal > > mDotcvP() const =0
Return the mass condensation and vaporisation rates as coefficients.
virtual bool read(const dictionary &dict)=0
Read the dictionary and update.
const rhoThermo & thermov() const
Return the vapour thermo.
cavitationModel(const dictionary &dict, const compressibleTwoPhases &phases)
Construct for phases.
Pair< tmp< volScalarField::Internal > > mDot12Alpha() const
Return the mass transfer rates of the two phases as coefficients to.
const volScalarField::Internal & rhol() const
Return the liquid density.
const compressibleTwoPhases & phases_
Phases.
const volScalarField::Internal & alphav() const
Return the vapour density.
const volScalarField::Internal & rhov() const
Return the vapour density.
static autoPtr< cavitationModel > New(const dictionary &dict, const compressibleTwoPhases &phases)
tmp< volScalarField::Internal > pSatv() const
Return the saturation vapour pressure for the vapour.
autoPtr< saturationPressureModel > saturationModel_
The saturation pressure model.
const rhoThermo & thermol() const
Return the liquid thermo.
tmp< volScalarField::Internal > pSatl() const
Return the saturation vapour pressure for the liquid.
virtual void correct()=0
Correct the cavitation model.
virtual Pair< tmp< volScalarField::Internal > > mDotcvAlphal() const =0
Return the mass condensation and vaporisation rates as a.
const bool liquidIndex_
Index of the liquid.
tmp< volScalarField::Internal > pSat2() const
Return the saturation vapour pressure for phase 2.
declareRunTimeSelectionTable(autoPtr, cavitationModel, dictionary,(const dictionary &dict, const compressibleTwoPhases &phases),(dict, phases))
TypeName("cavitation")
Runtime type information.
virtual ~cavitationModel()
Destructor.
const volScalarField::Internal & alphal() const
Return the liquid density.
tmp< volScalarField::Internal > pSat1() const
Return the saturation vapour pressure for phase 1.
A list of keyword definitions, which are a keyword followed by any number of values (e....
Base-class for fluid thermodynamic properties based on density.
A class for managing temporary objects.
const volScalarField & alpha(const bool index) const
Return the volume-fraction of a given phase.
Forward declarations of fvMatrix specialisations.
void reverse(UList< T > &, const label n)
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)