Public Member Functions | List of all members
pressureNormalInletOutletVelocityFvPatchVectorField Class Reference

This velocity inlet/outlet boundary condition is applied to patches 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 flux with a direction normal to the patch faces. More...

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

Public Member Functions

 TypeName ("pressureNormalInletOutletVelocity")
 
 pressureNormalInletOutletVelocityFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &)
 
 pressureNormalInletOutletVelocityFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &, const dictionary &)
 
 pressureNormalInletOutletVelocityFvPatchVectorField (const pressureNormalInletOutletVelocityFvPatchVectorField &, const fvPatch &, const DimensionedField< vector, volMesh > &, const fvPatchFieldMapper &)
 
 pressureNormalInletOutletVelocityFvPatchVectorField (const pressureNormalInletOutletVelocityFvPatchVectorField &)
 
virtual tmp< fvPatchVectorFieldclone () const
 
 pressureNormalInletOutletVelocityFvPatchVectorField (const pressureNormalInletOutletVelocityFvPatchVectorField &, const DimensionedField< vector, volMesh > &)
 
virtual tmp< fvPatchVectorFieldclone (const DimensionedField< vector, volMesh > &iF) const
 
virtual bool assignable () const
 
const wordrhoName () const
 
wordrhoName ()
 
const wordphiName () const
 
wordphiName ()
 
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 patches 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 flux with a direction normal to the patch faces.

Usage
Property Description Required Default value
phi flux field name no phi
rho density field name no rho

Example of the boundary condition specification:

    <patchName>
    {
        type            pressureNormalInletOutletVelocity;
        phi             phi;
        rho             rho;
        value           uniform 0;
    }
Note
Sign conventions:
  • positive flux (out of domain): apply zero-gradient condition
  • negative flux (into of domain): derive from the flux and patch-normal direction
See also
Foam::mixedFvPatchVectorField
Source files

Definition at line 95 of file pressureNormalInletOutletVelocityFvPatchVectorField.H.

Constructor & Destructor Documentation

◆ pressureNormalInletOutletVelocityFvPatchVectorField() [1/5]

Definition at line 33 of file pressureNormalInletOutletVelocityFvPatchVectorField.C.

References Foam::Zero.

◆ pressureNormalInletOutletVelocityFvPatchVectorField() [2/5]

Definition at line 65 of file pressureNormalInletOutletVelocityFvPatchVectorField.C.

References dict, p, and Foam::Zero.

◆ pressureNormalInletOutletVelocityFvPatchVectorField() [3/5]

◆ pressureNormalInletOutletVelocityFvPatchVectorField() [4/5]

◆ pressureNormalInletOutletVelocityFvPatchVectorField() [5/5]

Member Function Documentation

◆ TypeName()

TypeName ( "pressureNormalInletOutletVelocity"  )

◆ 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

◆ rhoName() [1/2]

const word& rhoName ( ) const
inline

◆ rhoName() [2/2]

word& rhoName ( )
inline

◆ phiName() [1/2]

const word& phiName ( ) const
inline

◆ phiName() [2/2]

word& phiName ( )
inline

◆ updateCoeffs()

void updateCoeffs ( )
virtual

◆ write()

void write ( Ostream os) const
virtual

Definition at line 154 of file pressureNormalInletOutletVelocityFvPatchVectorField.C.

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

Here is the call graph for this function:

◆ operator=()

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

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