cavitationModel Class Referenceabstract

Abstract base class for cavitation models. More...

Inheritance diagram for cavitationModel:
Collaboration diagram for cavitationModel:

Public Member Functions

 TypeName ("cavitationModel")
 Runtime type information. More...
 
 declareRunTimeSelectionTable (autoPtr, cavitationModel, dictionary,(const dictionary &dict, const incompressibleTwoPhases &phases),(dict, phases))
 
 cavitationModel (const dictionary &dict, const incompressibleTwoPhases &phases)
 Construct for phases. More...
 
virtual ~cavitationModel ()
 Destructor. More...
 
const dimensionedScalarpSat () const
 Return the saturation vapour pressure. More...
 
virtual Pair< tmp< volScalarField::Internal > > mDotcvAlpha () const =0
 Return the mass condensation and vaporisation rates as a. More...
 
virtual Pair< tmp< volScalarField::Internal > > mDotcvP () const =0
 Return the mass condensation and vaporisation rates as coefficients. More...
 
Pair< tmp< volScalarField::Internal > > mDot12Alpha () const
 Return the mass transfer rates of the two phases as coefficients to. More...
 
Pair< tmp< volScalarField::Internal > > mDot12P () const
 Return the mass transfer rates of the two phases as coefficients to. More...
 
virtual void correct ()=0
 Correct the cavitation model. More...
 
virtual bool read (const dictionary &dict)=0
 Read the dictionary and update. More...
 

Static Public Member Functions

static autoPtr< cavitationModelNew (const dictionary &dict, const incompressibleTwoPhases &phases)
 

Protected Member Functions

const volScalarField::Internalalphal () const
 Return the liquid density. More...
 
const volScalarField::Internalalphav () const
 Return the vapour density. More...
 
const dimensionedScalarrhol () const
 Return the liquid density. More...
 
const dimensionedScalarrhov () const
 Return the vapour density. More...
 

Protected Attributes

const incompressibleTwoPhasesphases_
 Mixture properties. More...
 
const bool liquidIndex_
 Index of the liquid. More...
 
dimensionedScalar pSat_
 Saturation vapour pressure. More...
 

Detailed Description

Abstract base class for cavitation models.

Source files

Definition at line 50 of file cavitationModel.H.

Constructor & Destructor Documentation

◆ cavitationModel()

cavitationModel ( const dictionary dict,
const incompressibleTwoPhases phases 
)

Construct for phases.

Definition at line 40 of file cavitationModel.C.

◆ ~cavitationModel()

virtual ~cavitationModel ( )
inlinevirtual

Destructor.

Definition at line 133 of file cavitationModel.H.

Member Function Documentation

◆ alphal()

const volScalarField::Internal& alphal ( ) const
inlineprotected

Return the liquid density.

Definition at line 69 of file cavitationModel.H.

References twoPhases::alpha(), cavitationModel::liquidIndex_, and cavitationModel::phases_.

Here is the call graph for this function:

◆ alphav()

const volScalarField::Internal& alphav ( ) const
inlineprotected

Return the vapour density.

Definition at line 75 of file cavitationModel.H.

References twoPhases::alpha(), cavitationModel::liquidIndex_, and cavitationModel::phases_.

Here is the call graph for this function:

◆ rhol()

const dimensionedScalar& rhol ( ) const
inlineprotected

Return the liquid density.

Definition at line 81 of file cavitationModel.H.

References cavitationModel::liquidIndex_, cavitationModel::phases_, and incompressibleTwoPhases::rho().

Here is the call graph for this function:

◆ rhov()

const dimensionedScalar& rhov ( ) const
inlineprotected

Return the vapour density.

Definition at line 87 of file cavitationModel.H.

References cavitationModel::liquidIndex_, cavitationModel::phases_, and incompressibleTwoPhases::rho().

Here is the call graph for this function:

◆ TypeName()

TypeName ( "cavitationModel"  )

Runtime type information.

◆ declareRunTimeSelectionTable()

declareRunTimeSelectionTable ( autoPtr  ,
cavitationModel  ,
dictionary  ,
(const dictionary &dict, const incompressibleTwoPhases &phases)  ,
(dict, phases)   
)

◆ New()

Foam::autoPtr< Foam::cavitationModel > New ( const dictionary dict,
const incompressibleTwoPhases phases 
)
static

Definition at line 30 of file cavitationModelNew.C.

References dict, Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::Info, and Foam::nl.

Here is the call graph for this function:

◆ pSat()

const dimensionedScalar& pSat ( ) const
inline

Return the saturation vapour pressure.

Definition at line 140 of file cavitationModel.H.

References cavitationModel::pSat_.

◆ mDotcvAlpha()

virtual Pair<tmp<volScalarField::Internal> > mDotcvAlpha ( ) const
pure virtual

Return the mass condensation and vaporisation rates as a.

coefficient to multiply alphav for the condensation rate and a coefficient to multiply alphal for the vaporisation rate

Implemented in SchnerrSauer, Merkle, and Kunz.

◆ mDotcvP()

virtual Pair<tmp<volScalarField::Internal> > mDotcvP ( ) const
pure virtual

Return the mass condensation and vaporisation rates as coefficients.

to multiply (p - pSat)

Implemented in SchnerrSauer, Merkle, and Kunz.

◆ mDot12Alpha()

Pair<tmp<volScalarField::Internal> > mDot12Alpha ( ) const
inline

Return the mass transfer rates of the two phases as coefficients to.

multiply the volume fraction of the other phase

Definition at line 156 of file cavitationModel.H.

◆ mDot12P()

Pair<tmp<volScalarField::Internal> > mDot12P ( ) const
inline

Return the mass transfer rates of the two phases as coefficients to.

multiply (p - pSat)

Definition at line 163 of file cavitationModel.H.

◆ correct()

virtual void correct ( )
pure virtual

Correct the cavitation model.

Implemented in SchnerrSauer, Merkle, and Kunz.

◆ read()

bool read ( const dictionary dict)
pure virtual

Read the dictionary and update.

Implemented in SchnerrSauer, Merkle, and Kunz.

Definition at line 54 of file cavitationModel.C.

References dict, and dictionary::lookup().

Referenced by Kunz::read(), Merkle::read(), and SchnerrSauer::read().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ phases_

const incompressibleTwoPhases& phases_
protected

Mixture properties.

Definition at line 57 of file cavitationModel.H.

Referenced by cavitationModel::alphal(), cavitationModel::alphav(), cavitationModel::rhol(), and cavitationModel::rhov().

◆ liquidIndex_

const bool liquidIndex_
protected

Index of the liquid.

Definition at line 60 of file cavitationModel.H.

Referenced by cavitationModel::alphal(), cavitationModel::alphav(), cavitationModel::rhol(), and cavitationModel::rhov().

◆ pSat_

dimensionedScalar pSat_
protected

Saturation vapour pressure.

Definition at line 63 of file cavitationModel.H.

Referenced by cavitationModel::pSat().


The documentation for this class was generated from the following files: