Loading...
Searching...
No Matches
prghPressureFvPatchScalarField Class Reference

This boundary condition provides static pressure condition for p_rgh, calculated as: More...

#include <prghPressureFvPatchScalarField.H>

Inheritance diagram for prghPressureFvPatchScalarField:
Collaboration diagram for prghPressureFvPatchScalarField:

Public Member Functions

 TypeName ("prghPressure")
 Runtime type information.
 prghPressureFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &)
 Construct from patch and internal field.
 prghPressureFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &)
 Construct from patch, internal field and dictionary.
 prghPressureFvPatchScalarField (const prghPressureFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &)
 Construct by mapping given.
 prghPressureFvPatchScalarField (const prghPressureFvPatchScalarField &)
 Construct as copy.
 prghPressureFvPatchScalarField (const prghPressureFvPatchScalarField &, const DimensionedField< scalar, volMesh > &)
 Construct as copy setting internal field reference.
virtual tmp< fvPatchField< scalar > > clone () const
 Return a clone.
virtual tmp< fvPatchField< scalar > > clone (const DimensionedField< scalar, volMesh > &iF) const
 Clone with an internal field reference.
const scalarFieldp () const
 Return the static pressure.
scalarFieldp ()
 Return reference to the static pressure to allow adjustment.
virtual void autoMap (const fvPatchFieldMapper &)
 Map (and resize as needed) from self given a mapping object.
virtual void rmap (const fvPatchScalarField &, const labelList &)
 Reverse map the given fvPatchField onto this fvPatchField.
virtual void updateCoeffs ()
 Update the coefficients associated with the patch field.
virtual void write (Ostream &) const
 Write.

Protected Attributes

word rhoName_
 Name of phase-fraction field.
scalarField p_
 Static pressure.

Detailed Description

This boundary condition provides static pressure condition for p_rgh, calculated as:

\‍[        p_rgh = p - \rho g (h - hRef)
\‍]

where

$        p_rgh   $=Pseudo hydrostatic pressure [Pa]
$        p       $=Static pressure [Pa]
$        h       $=Height in the opposite direction to gravity
$        hRef    $=Reference height in the opposite direction to gravity
$        \rho    $=density
$        g       $=acceleration due to gravity [m/s^2]
Usage
Property Description Required Default value
rho rho field name no rho
p static pressure yes

Example of the boundary condition specification:

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

Definition at line 124 of file prghPressureFvPatchScalarField.H.

Constructor & Destructor Documentation

◆ prghPressureFvPatchScalarField() [1/5]

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

Construct from patch and internal field.

Definition at line 30 of file prghPressureFvPatchScalarField.C.

References p(), p_, rhoName_, and Foam::Zero.

Referenced by prghPressureFvPatchScalarField(), prghPressureFvPatchScalarField(), prghPressureFvPatchScalarField(), rmap(), and TypeName().

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

◆ prghPressureFvPatchScalarField() [2/5]

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

Construct from patch, internal field and dictionary.

Definition at line 43 of file prghPressureFvPatchScalarField.C.

References dict, fvPatchField< Type >::operator=(), p(), p_, and rhoName_.

Here is the call graph for this function:

◆ prghPressureFvPatchScalarField() [3/5]

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

Construct by mapping given.

prghPressureFvPatchScalarField onto a new patch

Definition at line 62 of file prghPressureFvPatchScalarField.C.

References p(), p_, prghPressureFvPatchScalarField(), and rhoName_.

Here is the call graph for this function:

◆ prghPressureFvPatchScalarField() [4/5]

prghPressureFvPatchScalarField ( const prghPressureFvPatchScalarField & ptf)

Construct as copy.

Definition at line 77 of file prghPressureFvPatchScalarField.C.

References p_, prghPressureFvPatchScalarField(), and rhoName_.

Here is the call graph for this function:

◆ prghPressureFvPatchScalarField() [5/5]

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

Construct as copy setting internal field reference.

Definition at line 89 of file prghPressureFvPatchScalarField.C.

References p_, prghPressureFvPatchScalarField(), and rhoName_.

Here is the call graph for this function:

Member Function Documentation

◆ TypeName()

TypeName ( "prghPressure" )

Runtime type information.

References prghPressureFvPatchScalarField().

Here is the call graph for this function:

◆ clone() [1/2]

virtual tmp< fvPatchField< scalar > > clone ( ) const
inlinevirtual

Return a clone.

Definition at line 206 of file prghPressureFvPatchScalarField.H.

References fvPatchField< Type >::Clone().

Here is the call graph for this function:

◆ clone() [2/2]

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

Clone with an internal field reference.

Definition at line 214 of file prghPressureFvPatchScalarField.H.

References fvPatchField< Type >::Clone().

Here is the call graph for this function:

◆ p() [1/2]

const scalarField & p ( ) const
inline

Return the static pressure.

Definition at line 230 of file prghPressureFvPatchScalarField.H.

References p_.

Referenced by prghPressureFvPatchScalarField(), prghPressureFvPatchScalarField(), and prghPressureFvPatchScalarField().

Here is the caller graph for this function:

◆ p() [2/2]

scalarField & p ( )
inline

Return reference to the static pressure to allow adjustment.

Definition at line 238 of file prghPressureFvPatchScalarField.H.

References p_.

◆ autoMap()

void autoMap ( const fvPatchFieldMapper & m)
virtual

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

Definition at line 104 of file prghPressureFvPatchScalarField.C.

References p_.

◆ rmap()

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

Reverse map the given fvPatchField onto this fvPatchField.

Definition at line 114 of file prghPressureFvPatchScalarField.C.

References p_, prghPressureFvPatchScalarField(), and Foam::refCast().

Here is the call graph for this function:

◆ updateCoeffs()

void updateCoeffs ( )
virtual

Update the coefficients associated with the patch field.

Definition at line 129 of file prghPressureFvPatchScalarField.C.

References Foam::cmptMag(), Foam::dimLength, g, Foam::mag(), gravity::New(), Foam::operator==(), p_, and rhoName_.

Here is the call graph for this function:

◆ write()

void write ( Ostream & os) const
virtual

Write.

Definition at line 158 of file prghPressureFvPatchScalarField.C.

References os(), p_, rhoName_, fvPatchField< Type >::write(), and fvPatchField< Type >::writeValueEntry().

Here is the call graph for this function:

Member Data Documentation

◆ rhoName_

◆ p_


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