Public Member Functions | List of all members
pressureInletOutletVelocityFvPatchVectorField Class Reference

This velocity inlet/outlet boundary condition is applied to velocity boundaries where the pressure is specified. A zero-gradient condition is applied for outflow (as defined by the flux); for inflow, the velocity is obtained from the patch-face normal component of the internal-cell value. More...

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

Public Member Functions

 TypeName ("pressureInletOutletVelocity")
 
 pressureInletOutletVelocityFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &)
 
 pressureInletOutletVelocityFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &, const dictionary &)
 
 pressureInletOutletVelocityFvPatchVectorField (const pressureInletOutletVelocityFvPatchVectorField &, const fvPatch &, const DimensionedField< vector, volMesh > &, const fvPatchFieldMapper &)
 
 pressureInletOutletVelocityFvPatchVectorField (const pressureInletOutletVelocityFvPatchVectorField &)
 
virtual tmp< fvPatchVectorFieldclone () const
 
 pressureInletOutletVelocityFvPatchVectorField (const pressureInletOutletVelocityFvPatchVectorField &, const DimensionedField< vector, volMesh > &)
 
virtual tmp< fvPatchVectorFieldclone (const DimensionedField< vector, volMesh > &iF) const
 
virtual bool assignable () const
 
const wordphiName () const
 
wordphiName ()
 
const vectorFieldtangentialVelocity () const
 
void setTangentialVelocity (const vectorField &tangentialVelocity)
 
virtual void autoMap (const fvPatchFieldMapper &)
 
virtual void rmap (const fvPatchVectorField &, const labelList &)
 
virtual void updateCoeffs ()
 
virtual void write (Ostream &) const
 
virtual void operator= (const fvPatchField< vector > &pvf)
 

Detailed Description

This velocity inlet/outlet boundary condition is applied to velocity boundaries where the pressure is specified. A zero-gradient condition is applied for outflow (as defined by the flux); for inflow, the velocity is obtained from the patch-face normal component of the internal-cell value.

The tangential patch velocity can be optionally specified.

Usage
Property Description Required Default value
phi flux field name no phi
tangentialVelocity tangential velocity field no

Example of the boundary condition specification:

    <patchName>
    {
        type            pressureInletOutletVelocity;
        phi             phi;
        tangentialVelocity uniform (0 0 0);
        value           uniform (0 0 0);
    }
Note
Sign conventions:
  • positive flux (out of domain): apply zero-gradient condition
  • negative flux (into of domain): derive from the flux in the patch-normal direction
Source files

Definition at line 94 of file pressureInletOutletVelocityFvPatchVectorField.H.

Constructor & Destructor Documentation

◆ pressureInletOutletVelocityFvPatchVectorField() [1/5]

Definition at line 32 of file pressureInletOutletVelocityFvPatchVectorField.C.

References Foam::Zero.

Referenced by pressureInletOutletVelocityFvPatchVectorField::clone().

Here is the caller graph for this function:

◆ pressureInletOutletVelocityFvPatchVectorField() [2/5]

Definition at line 67 of file pressureInletOutletVelocityFvPatchVectorField.C.

References dict, p, and Foam::Zero.

◆ pressureInletOutletVelocityFvPatchVectorField() [3/5]

◆ pressureInletOutletVelocityFvPatchVectorField() [4/5]

◆ pressureInletOutletVelocityFvPatchVectorField() [5/5]

Member Function Documentation

◆ TypeName()

TypeName ( "pressureInletOutletVelocity"  )

◆ clone() [1/2]

virtual tmp<fvPatchVectorField> clone ( ) const
inlinevirtual

◆ clone() [2/2]

virtual tmp<fvPatchVectorField> clone ( const DimensionedField< vector, volMesh > &  iF) const
inlinevirtual

◆ assignable()

virtual bool assignable ( ) const
inlinevirtual

◆ phiName() [1/2]

const word& phiName ( ) const
inline

◆ phiName() [2/2]

word& phiName ( )
inline

◆ tangentialVelocity()

const vectorField& tangentialVelocity ( ) const
inline

Definition at line 201 of file pressureInletOutletVelocityFvPatchVectorField.H.

Referenced by pressureInletOutletVelocityFvPatchVectorField::setTangentialVelocity().

Here is the caller graph for this function:

◆ setTangentialVelocity()

void setTangentialVelocity ( const vectorField tangentialVelocity)

◆ autoMap()

void autoMap ( const fvPatchFieldMapper m)
virtual

◆ rmap()

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

◆ updateCoeffs()

void updateCoeffs ( )
virtual

Definition at line 163 of file pressureInletOutletVelocityFvPatchVectorField.C.

References Foam::stringOps::evaluate(), Foam::I, Foam::neg(), Foam::foamVersion::patch, and Foam::sqr().

Here is the call graph for this function:

◆ write()

void write ( Ostream os) const
virtual

Reimplemented in rotatingPressureInletOutletVelocityFvPatchVectorField.

Definition at line 181 of file pressureInletOutletVelocityFvPatchVectorField.C.

References os(), fvPatchField::write(), and Ostream::writeEntryIfDifferent().

Here is the call graph for this function:

◆ operator=()

void operator= ( const fvPatchField< vector > &  pvf)
virtual

Definition at line 199 of file pressureInletOutletVelocityFvPatchVectorField.C.

References Foam::I, fvPatchField::operator=(), and Foam::transform().

Here is the call graph for this function:

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