26 #include "cavitationModel.H" 35 namespace twoPhaseChangeModels
46 const compressibleTwoPhaseMixture& mixture
49 twoPhaseChangeModel(type, mixture),
67 const Pair<tmp<volScalarField::Internal>> mDotAlphal = this->
mDotAlphal();
72 return Pair<tmp<volScalarField::Internal>>
75 vDotvAlphal - vDotcAlphal
89 const Pair<tmp<volScalarField::Internal>> mDotP = this->
mDotP();
96 -
fvm::Sp(vDotvP - vDotcP, p_rgh);
defineTypeNameAndDebug(cavitationModel, 0)
tmp< GeometricField< Type, fvPatchField, volMesh > > div(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
const dimensionSet dimPressure
const dimensionedScalar & pSat() const
Return const-access to the saturation vapour pressure.
tmp< fvMatrix< Type > > Sp(const volScalarField::Internal &, const GeometricField< Type, fvPatchField, volMesh > &)
GeometricField< vector, fvPatchField, volMesh > volVectorField
DimensionedField< scalar, volMesh > Internal
Type of the internal field from which this GeometricField is derived.
const volScalarField & alpha1() const
Return the phase-fraction of phase 1.
tmp< GeometricField< Type, fvPatchField, volMesh > > ddt(const dimensioned< Type > dt, const fvMesh &mesh)
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Calculate the first temporal derivative.
const volScalarField::Internal & rho1() const
Return the internal field of the density of phase 1.
stressControl lookup("compactNormalStress") >> compactNormalStress
An ordered pair of two objects of type <T> with first() and second() elements.
virtual bool read()=0
Read the phaseProperties dictionary and update.
virtual Pair< tmp< volScalarField::Internal > > Salpha(volScalarField &alpha) const
Return the cavitation explicit and implicit sources.
Calculate the divergence of the given field.
virtual Pair< tmp< volScalarField > > mDotAlphal() const =0
Return the mass condensation and vaporisation rates as a.
cavitationModel(const word &type, const immiscibleIncompressibleTwoPhaseMixture &mixture)
Construct for mixture.
virtual tmp< fvVectorMatrix > SU(const volScalarField &rho, const surfaceScalarField &rhoPhi, volVectorField &U) const
Return the cavitation source matrix for the momentum equation.
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.
virtual tmp< fvScalarMatrix > Sp_rgh(const volScalarField &rho, const volScalarField &gh, volScalarField &p_rgh) const
Return the cavitation source matrix.
const volScalarField & gh
A class for managing temporary objects.
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
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 Pair< tmp< volScalarField > > mDotP() const =0
Return the mass condensation and vaporisation rates as coefficients.
Calculate the matrix for implicit and explicit sources.
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.