cavitationModel Class Referenceabstract
Inheritance diagram for cavitationModel:
Collaboration diagram for cavitationModel:

Public Member Functions

 TypeName ("cavitation")
 Runtime type information. More...
 
 declareRunTimeSelectionTable (autoPtr, cavitationModel, dictionary,(const dictionary &dict, const compressibleTwoPhases &phases),(dict, phases))
 
 cavitationModel (const dictionary &dict, const compressibleTwoPhases &phases)
 Construct for phases. More...
 
virtual ~cavitationModel ()
 Destructor. More...
 
tmp< volScalarField::InternalpSat1 () const
 Return the saturation vapour pressure for phase 1. More...
 
tmp< volScalarField::InternalpSat2 () const
 Return the saturation vapour pressure for phase 2. More...
 
virtual Pair< tmp< volScalarField::Internal > > mDotcvAlphal () 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 compressibleTwoPhases &phases)
 

Protected Member Functions

const volScalarField::Internalalphal () const
 Return the liquid density. More...
 
const volScalarField::Internalalphav () const
 Return the vapour density. More...
 
const volScalarField::Internalrhol () const
 Return the liquid density. More...
 
const volScalarField::Internalrhov () const
 Return the vapour density. More...
 
const rhoFluidThermothermol () const
 Return the liquid thermo. More...
 
const rhoFluidThermothermov () const
 Return the vapour thermo. More...
 
tmp< volScalarField::InternalpSatl () const
 Return the saturation vapour pressure for the liquid. More...
 
tmp< volScalarField::InternalpSatv () const
 Return the saturation vapour pressure for the vapour. More...
 

Protected Attributes

const compressibleTwoPhasesphases_
 Phases. More...
 
const bool liquidIndex_
 Index of the liquid. More...
 
autoPtr< saturationPressureModelsaturationModel_
 The saturation pressure model. More...
 

Detailed Description

Definition at line 53 of file cavitationModel.H.

Constructor & Destructor Documentation

◆ cavitationModel()

cavitationModel ( const dictionary dict,
const compressibleTwoPhases phases 
)

Construct for phases.

Definition at line 44 of file cavitationModel.C.

◆ ~cavitationModel()

virtual ~cavitationModel ( )
inlinevirtual

Destructor.

Definition at line 160 of file cavitationModel.H.

Member Function Documentation

◆ alphal()

const volScalarField::Internal& alphal ( ) const
inlineprotected

Return the liquid density.

Definition at line 72 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 78 of file cavitationModel.H.

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

Here is the call graph for this function:

◆ rhol()

const volScalarField::Internal& rhol ( ) const
inlineprotected

Return the liquid density.

Definition at line 84 of file cavitationModel.H.

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

Here is the call graph for this function:

◆ rhov()

const volScalarField::Internal& rhov ( ) const
inlineprotected

Return the vapour density.

Definition at line 90 of file cavitationModel.H.

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

Here is the call graph for this function:

◆ thermol()

const rhoFluidThermo& thermol ( ) const
inlineprotected

Return the liquid thermo.

Definition at line 96 of file cavitationModel.H.

References cavitationModel::liquidIndex_, cavitationModel::phases_, and compressibleTwoPhases::thermo().

Referenced by cavitationModel::pSatl().

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

◆ thermov()

const rhoFluidThermo& thermov ( ) const
inlineprotected

Return the vapour thermo.

Definition at line 102 of file cavitationModel.H.

References cavitationModel::liquidIndex_, cavitationModel::phases_, and compressibleTwoPhases::thermo().

Referenced by cavitationModel::pSatv().

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

◆ pSatl()

tmp<volScalarField::Internal> pSatl ( ) const
inlineprotected

Return the saturation vapour pressure for the liquid.

Definition at line 108 of file cavitationModel.H.

References cavitationModel::saturationModel_, Foam::T(), and cavitationModel::thermol().

Referenced by cavitationModel::pSat1(), and cavitationModel::pSat2().

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

◆ pSatv()

tmp<volScalarField::Internal> pSatv ( ) const
inlineprotected

Return the saturation vapour pressure for the vapour.

Definition at line 114 of file cavitationModel.H.

References cavitationModel::saturationModel_, Foam::T(), and cavitationModel::thermov().

Referenced by cavitationModel::pSat1(), and cavitationModel::pSat2().

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

◆ TypeName()

TypeName ( "cavitation"  )

Runtime type information.

◆ declareRunTimeSelectionTable()

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

◆ New()

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

Definition at line 31 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:

◆ pSat1()

tmp<volScalarField::Internal> pSat1 ( ) const
inline

Return the saturation vapour pressure for phase 1.

Definition at line 167 of file cavitationModel.H.

References cavitationModel::liquidIndex_, cavitationModel::pSatl(), and cavitationModel::pSatv().

Here is the call graph for this function:

◆ pSat2()

tmp<volScalarField::Internal> pSat2 ( ) const
inline

Return the saturation vapour pressure for phase 2.

Definition at line 173 of file cavitationModel.H.

References cavitationModel::liquidIndex_, cavitationModel::pSatl(), and cavitationModel::pSatv().

Here is the call graph for this function:

◆ mDotcvAlphal()

virtual Pair<tmp<volScalarField::Internal> > mDotcvAlphal ( ) 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, Saito, 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, Saito, 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 189 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 196 of file cavitationModel.H.

◆ correct()

virtual void correct ( )
pure virtual

Correct the cavitation model.

Implemented in SchnerrSauer, Saito, Merkle, and Kunz.

◆ read()

bool read ( const dictionary dict)
pure virtual

Read the dictionary and update.

Implemented in SchnerrSauer, Saito, Merkle, and Kunz.

Definition at line 56 of file cavitationModel.C.

References dict, and saturationPressureModel::New().

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

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

Member Data Documentation

◆ phases_

◆ liquidIndex_

◆ saturationModel_

autoPtr<saturationPressureModel> saturationModel_
protected

The saturation pressure model.

Definition at line 66 of file cavitationModel.H.

Referenced by cavitationModel::pSatl(), and cavitationModel::pSatv().


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