Public Member Functions | Protected Attributes | List of all members
pressureFvPatchScalarField Class Reference

Static pressure boundary condition. More...

Inheritance diagram for pressureFvPatchScalarField:
Inheritance graph
[legend]
Collaboration diagram for pressureFvPatchScalarField:
Collaboration graph
[legend]

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 &)
 Construct as copy. More...
 
virtual tmp< fvPatchScalarFieldclone () const
 Construct and return a clone. More...
 
 pressureFvPatchScalarField (const pressureFvPatchScalarField &, const DimensionedField< scalar, volMesh > &)
 Construct as copy 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 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]

Construct as copy.

Definition at line 83 of file pressureFvPatchScalarField.C.

References pressureFvPatchScalarField::pressureFvPatchScalarField().

Here is the call graph for this function:

◆ pressureFvPatchScalarField() [5/5]

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

Construct as copy setting internal field reference.

Definition at line 93 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() [1/2]

virtual tmp<fvPatchScalarField> clone ( ) const
inlinevirtual

Construct and return a clone.

Definition at line 134 of file pressureFvPatchScalarField.H.

References pressureFvPatchScalarField::pressureFvPatchScalarField().

Here is the call graph for this function:

◆ clone() [2/2]

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

Construct and return a clone setting internal field reference.

Definition at line 151 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 167 of file pressureFvPatchScalarField.H.

References pressureFvPatchScalarField::p_.

◆ p() [2/2]

scalarField& p ( )
inline

Return reference to the static pressure to allow adjustment.

Definition at line 173 of file pressureFvPatchScalarField.H.

References pressureFvPatchScalarField::autoMap(), pressureFvPatchScalarField::p_, pressureFvPatchScalarField::rmap(), pressureFvPatchScalarField::updateCoeffs(), and pressureFvPatchScalarField::write().

Here is the call graph for this function:

◆ autoMap()

void autoMap ( const fvPatchFieldMapper m)
virtual

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

Definition at line 106 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.

Definition at line 116 of file pressureFvPatchScalarField.C.

References pressureFvPatchScalarField::p_, 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:

◆ updateCoeffs()

void updateCoeffs ( )
virtual

Update the coefficients associated with the patch field.

Definition at line 130 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 143 of file pressureFvPatchScalarField.C.

References Foam::makePatchTypeField(), pressureFvPatchScalarField::p_, fvPatchField< Type >::write(), and Field< Type >::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_

scalarField p_
protected

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