dynamicPressureFvPatchScalarField Class Reference

This boundary condition provides a dynamic pressure condition. It subtracts a kinetic energy term from a reference pressure to get a value which is fixed on the boundary. It forms the base class for the total and entrainment pressure conditions. More...

Inheritance diagram for dynamicPressureFvPatchScalarField:
Collaboration diagram for dynamicPressureFvPatchScalarField:

Public Member Functions

 TypeName ("dynamicPressure")
 Runtime type information. More...
 
 dynamicPressureFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &)
 Construct from patch and internal field. More...
 
 dynamicPressureFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &)
 Construct from patch, internal field and dictionary. More...
 
 dynamicPressureFvPatchScalarField (const dynamicPressureFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &)
 Construct by mapping given dynamicPressureFvPatchScalarField. More...
 
 dynamicPressureFvPatchScalarField (const dynamicPressureFvPatchScalarField &)
 Copy constructor. More...
 
 dynamicPressureFvPatchScalarField (const dynamicPressureFvPatchScalarField &, const DimensionedField< scalar, volMesh > &)
 Copy constructor setting internal field reference. More...
 
virtual void autoMap (const fvPatchFieldMapper &)
 Map (and resize as needed) from self given a mapping object. More...
 
virtual void rmap (const fvPatchScalarField &, const labelList &)
 Reverse map the given fvPatchField onto this fvPatchField. More...
 
void updateCoeffs (const scalarField &p0p, const scalarField &Kp)
 Update the coefficients associated with the patch field. More...
 
virtual void write (Ostream &) const
 Write. More...
 

Protected Attributes

const word rhoName_
 Name of the density field used to normalise the mass flux. More...
 
const word psiName_
 Name of the compressibility field used to calculate the wave speed. More...
 
const scalar gamma_
 Heat capacity ratio. More...
 
scalarField p0_
 Reference pressure. More...
 

Detailed Description

This boundary condition provides a dynamic pressure condition. It subtracts a kinetic energy term from a reference pressure to get a value which is fixed on the boundary. It forms the base class for the total and entrainment pressure conditions.

See also
Foam::totalPressureFvPatchField
Source files

Definition at line 54 of file dynamicPressureFvPatchScalarField.H.

Constructor & Destructor Documentation

◆ dynamicPressureFvPatchScalarField() [1/5]

dynamicPressureFvPatchScalarField ( const fvPatch p,
const DimensionedField< scalar, volMesh > &  iF 
)

Construct from patch and internal field.

Definition at line 43 of file dynamicPressureFvPatchScalarField.C.

Referenced by dynamicPressureFvPatchScalarField::dynamicPressureFvPatchScalarField().

Here is the caller graph for this function:

◆ dynamicPressureFvPatchScalarField() [2/5]

dynamicPressureFvPatchScalarField ( const fvPatch p,
const DimensionedField< scalar, volMesh > &  iF,
const dictionary dict 
)

Construct from patch, internal field and dictionary.

Definition at line 57 of file dynamicPressureFvPatchScalarField.C.

References dynamicPressureFvPatchScalarField::dynamicPressureFvPatchScalarField(), dictionary::found(), fvPatchField< Type >::operator=(), and fvPatch::size().

Here is the call graph for this function:

◆ dynamicPressureFvPatchScalarField() [3/5]

dynamicPressureFvPatchScalarField ( const dynamicPressureFvPatchScalarField ptf,
const fvPatch p,
const DimensionedField< scalar, volMesh > &  iF,
const fvPatchFieldMapper mapper 
)

Construct by mapping given dynamicPressureFvPatchScalarField.

onto a new patch

Definition at line 84 of file dynamicPressureFvPatchScalarField.C.

References dynamicPressureFvPatchScalarField::dynamicPressureFvPatchScalarField().

Here is the call graph for this function:

◆ dynamicPressureFvPatchScalarField() [4/5]

Copy constructor.

Definition at line 100 of file dynamicPressureFvPatchScalarField.C.

References dynamicPressureFvPatchScalarField::dynamicPressureFvPatchScalarField().

Here is the call graph for this function:

◆ dynamicPressureFvPatchScalarField() [5/5]

Copy constructor setting internal field reference.

Definition at line 113 of file dynamicPressureFvPatchScalarField.C.

References dynamicPressureFvPatchScalarField::autoMap().

Here is the call graph for this function:

Member Function Documentation

◆ TypeName()

TypeName ( "dynamicPressure"  )

Runtime type information.

◆ autoMap()

void autoMap ( const fvPatchFieldMapper m)
virtual

Map (and resize as needed) from self given a mapping object.

Used to update fields following mesh topology change

Definition at line 129 of file dynamicPressureFvPatchScalarField.C.

References dynamicPressureFvPatchScalarField::rmap().

Referenced by dynamicPressureFvPatchScalarField::dynamicPressureFvPatchScalarField().

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

◆ rmap()

void rmap ( const fvPatchScalarField ptf,
const labelList addr 
)
virtual

Reverse map the given fvPatchField onto this fvPatchField.

Used to reconstruct fields

Definition at line 139 of file dynamicPressureFvPatchScalarField.C.

References dynamicPressureFvPatchScalarField::p0_, dynamicPressureFvPatchScalarField::rmap(), and dynamicPressureFvPatchScalarField::updateCoeffs().

Referenced by dynamicPressureFvPatchScalarField::autoMap(), and dynamicPressureFvPatchScalarField::rmap().

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

◆ updateCoeffs()

void updateCoeffs ( const scalarField p0p,
const scalarField Kp 
)

Update the coefficients associated with the patch field.

using the given patch reference pressure and kinetic energy fields

Definition at line 154 of file dynamicPressureFvPatchScalarField.C.

References Foam::dimDensity, Foam::dimPressure, Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::nl, Foam::operator==(), Foam::pow(), and rho.

Referenced by dynamicPressureFvPatchScalarField::rmap(), and entrainmentPressureFvPatchScalarField::updateCoeffs().

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

◆ write()

void write ( Ostream os) const
virtual

Member Data Documentation

◆ rhoName_

const word rhoName_
protected

Name of the density field used to normalise the mass flux.

Definition at line 63 of file dynamicPressureFvPatchScalarField.H.

◆ psiName_

const word psiName_
protected

Name of the compressibility field used to calculate the wave speed.

Definition at line 66 of file dynamicPressureFvPatchScalarField.H.

◆ gamma_

const scalar gamma_
protected

Heat capacity ratio.

Definition at line 69 of file dynamicPressureFvPatchScalarField.H.

◆ p0_


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