Public Member Functions | List of all members
pressureInletOutletParSlipVelocityFvPatchVectorField Class Reference

This velocity inlet/outlet boundary condition for pressure boundary where the pressure is specified. A zero-gradient is applied for outflow (as defined by the flux); for inflow, the velocity is obtained from the flux with the specified inlet direction. More...

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

Public Member Functions

 TypeName ("pressureInletOutletParSlipVelocity")
 
 pressureInletOutletParSlipVelocityFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &)
 
 pressureInletOutletParSlipVelocityFvPatchVectorField (const pressureInletOutletParSlipVelocityFvPatchVectorField &, const fvPatch &, const DimensionedField< vector, volMesh > &, const fvPatchFieldMapper &)
 
 pressureInletOutletParSlipVelocityFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &, const dictionary &)
 
 pressureInletOutletParSlipVelocityFvPatchVectorField (const pressureInletOutletParSlipVelocityFvPatchVectorField &)
 
virtual tmp< fvPatchVectorFieldclone () const
 
 pressureInletOutletParSlipVelocityFvPatchVectorField (const pressureInletOutletParSlipVelocityFvPatchVectorField &, 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 for pressure boundary where the pressure is specified. A zero-gradient is applied for outflow (as defined by the flux); for inflow, the velocity is obtained from the flux with the specified inlet direction.

A slip condition is applied tangential to the patch.

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            pressureInletOutletParSlipVelocity;
        value           uniform 0;
    }
Note
Sign conventions:
  • positive flux (out of domain): apply zero-gradient condition
  • negative flux (into of domain): derive from the flux with specified direction
See also
Foam::mixedFvPatchVectorField Foam::pressureDirectedInletOutletVelocityFvPatchVectorField
Source files

Definition at line 96 of file pressureInletOutletParSlipVelocityFvPatchVectorField.H.

Constructor & Destructor Documentation

◆ pressureInletOutletParSlipVelocityFvPatchVectorField() [1/5]

Definition at line 33 of file pressureInletOutletParSlipVelocityFvPatchVectorField.C.

References Foam::Zero.

◆ pressureInletOutletParSlipVelocityFvPatchVectorField() [2/5]

◆ pressureInletOutletParSlipVelocityFvPatchVectorField() [3/5]

Definition at line 65 of file pressureInletOutletParSlipVelocityFvPatchVectorField.C.

References dict, p, and Foam::Zero.

◆ pressureInletOutletParSlipVelocityFvPatchVectorField() [4/5]

◆ pressureInletOutletParSlipVelocityFvPatchVectorField() [5/5]

Member Function Documentation

◆ TypeName()

TypeName ( "pressureInletOutletParSlipVelocity"  )

◆ 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 158 of file pressureInletOutletParSlipVelocityFvPatchVectorField.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 172 of file pressureInletOutletParSlipVelocityFvPatchVectorField.C.

References fvPatchField::operator=().

Here is the call graph for this function:

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