pressureFvPatchScalarField Class Reference

Static pressure boundary condition. More...

Inheritance diagram for pressureFvPatchScalarField:
Collaboration diagram for pressureFvPatchScalarField:

Public Member Functions

 TypeName ("pressure")
 Runtime type information. More...
 
 pressureFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &)
 Construct from patch and internal field. More...
 
 pressureFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &)
 Construct from patch, internal field and dictionary. More...
 
 pressureFvPatchScalarField (const pressureFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &)
 Construct by mapping given. More...
 
 pressureFvPatchScalarField (const pressureFvPatchScalarField &)=delete
 Disallow copy without setting internal field reference. More...
 
 pressureFvPatchScalarField (const pressureFvPatchScalarField &, const DimensionedField< scalar, volMesh > &)
 Copy constructor setting internal field reference. More...
 
virtual tmp< fvPatchScalarFieldclone (const DimensionedField< scalar, volMesh > &iF) const
 Construct and return a clone setting internal field reference. More...
 
const scalarFieldp () const
 Return the static pressure. More...
 
scalarFieldp ()
 Return reference to the static pressure to allow adjustment. 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...
 
virtual void reset (const fvPatchScalarField &)
 Reset the fvPatchField to the given fvPatchField. More...
 
virtual void updateCoeffs ()
 Update the coefficients associated with the patch field. More...
 
virtual void write (Ostream &) const
 Write. More...
 

Protected Attributes

scalarField p_
 Static pressure. More...
 

Detailed Description

Static pressure boundary condition.

Used as the base-class for static pressure boundary conditions force alternative pressure variables, e.g. p_rgh.

Usage
Property Description Required Default value
p static pressure yes

Example of the boundary condition specification:

    <patchName>
    {
        type            pressure;
        p               uniform 0;
        value           uniform 0; // optional initial value
    }
See also
Foam::fixedValueFvPatchScalarField Foam::PrghPressureFvPatchScalarField
Source files

Definition at line 81 of file pressureFvPatchScalarField.H.

Constructor & Destructor Documentation

◆ pressureFvPatchScalarField() [1/5]

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

Construct from patch and internal field.

Definition at line 35 of file pressureFvPatchScalarField.C.

Referenced by pressureFvPatchScalarField::clone(), and pressureFvPatchScalarField::pressureFvPatchScalarField().

Here is the caller graph for this function:

◆ pressureFvPatchScalarField() [2/5]

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

Construct from patch, internal field and dictionary.

Definition at line 46 of file pressureFvPatchScalarField.C.

References dictionary::found(), pressureFvPatchScalarField::pressureFvPatchScalarField(), scalarField(), and fvPatch::size().

Here is the call graph for this function:

◆ pressureFvPatchScalarField() [3/5]

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

Construct by mapping given.

pressureFvPatchScalarField onto a new patch

Definition at line 70 of file pressureFvPatchScalarField.C.

References pressureFvPatchScalarField::pressureFvPatchScalarField().

Here is the call graph for this function:

◆ pressureFvPatchScalarField() [4/5]

Disallow copy without setting internal field reference.

◆ pressureFvPatchScalarField() [5/5]

pressureFvPatchScalarField ( const pressureFvPatchScalarField ptf,
const DimensionedField< scalar, volMesh > &  iF 
)

Copy constructor setting internal field reference.

Definition at line 83 of file pressureFvPatchScalarField.C.

References pressureFvPatchScalarField::autoMap().

Here is the call graph for this function:

Member Function Documentation

◆ TypeName()

TypeName ( "pressure"  )

Runtime type information.

◆ clone()

virtual tmp<fvPatchScalarField> clone ( const DimensionedField< scalar, volMesh > &  iF) const
inlinevirtual

Construct and return a clone setting internal field reference.

Definition at line 139 of file pressureFvPatchScalarField.H.

References pressureFvPatchScalarField::pressureFvPatchScalarField().

Here is the call graph for this function:

◆ p() [1/2]

const scalarField& p ( ) const
inline

Return the static pressure.

Definition at line 155 of file pressureFvPatchScalarField.H.

References pressureFvPatchScalarField::p_.

◆ p() [2/2]

scalarField& p ( )
inline

◆ 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 96 of file pressureFvPatchScalarField.C.

References pressureFvPatchScalarField::rmap().

Referenced by pressureFvPatchScalarField::p(), and pressureFvPatchScalarField::pressureFvPatchScalarField().

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 106 of file pressureFvPatchScalarField.C.

References pressureFvPatchScalarField::p_, pressureFvPatchScalarField::reset(), and pressureFvPatchScalarField::rmap().

Referenced by pressureFvPatchScalarField::autoMap(), pressureFvPatchScalarField::p(), and pressureFvPatchScalarField::rmap().

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

◆ reset()

void reset ( const fvPatchScalarField ptf)
virtual

Reset the fvPatchField to the given fvPatchField.

Used for mesh to mesh mapping

Definition at line 121 of file pressureFvPatchScalarField.C.

References pressureFvPatchScalarField::p_, and pressureFvPatchScalarField::reset().

Referenced by pressureFvPatchScalarField::p(), pressureFvPatchScalarField::reset(), and pressureFvPatchScalarField::rmap().

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

◆ updateCoeffs()

void updateCoeffs ( )
virtual

Update the coefficients associated with the patch field.

Definition at line 134 of file pressureFvPatchScalarField.C.

References Foam::operator==(), and pressureFvPatchScalarField::p_.

Referenced by pressureFvPatchScalarField::p().

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

◆ write()

void write ( Ostream os) const
virtual

Write.

Definition at line 147 of file pressureFvPatchScalarField.C.

References Foam::makePatchTypeField(), pressureFvPatchScalarField::p_, fvPatchField< Type >::write(), and Foam::writeEntry().

Referenced by pressureFvPatchScalarField::p().

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

Member Data Documentation

◆ p_


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