pressureInletOutletVelocityFvPatchVectorField Class Reference

This velocity inlet/outlet boundary condition is applied to pressure 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:
Collaboration diagram for pressureInletOutletVelocityFvPatchVectorField:

Public Member Functions

 TypeName ("pressureInletOutletVelocity")
 Runtime type information. More...
 
 pressureInletOutletVelocityFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &)
 Construct from patch and internal field. More...
 
 pressureInletOutletVelocityFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &, const dictionary &)
 Construct from patch, internal field and dictionary. More...
 
 pressureInletOutletVelocityFvPatchVectorField (const pressureInletOutletVelocityFvPatchVectorField &, const fvPatch &, const DimensionedField< vector, volMesh > &, const fvPatchFieldMapper &)
 Construct by mapping given. More...
 
 pressureInletOutletVelocityFvPatchVectorField (const pressureInletOutletVelocityFvPatchVectorField &)=delete
 Disallow copy without setting internal field reference. More...
 
 pressureInletOutletVelocityFvPatchVectorField (const pressureInletOutletVelocityFvPatchVectorField &, const DimensionedField< vector, volMesh > &)
 Copy constructor setting internal field reference. More...
 
virtual tmp< fvPatchVectorFieldclone (const DimensionedField< vector, volMesh > &iF) const
 Construct and return a clone setting internal field reference. More...
 
virtual bool assignable () const
 Return true: this patch field is altered by assignment. More...
 
const wordphiName () const
 Return the name of phi. More...
 
wordphiName ()
 Return reference to the name of phi to allow adjustment. More...
 
virtual void updateCoeffs ()
 Update the coefficients associated with the patch field. More...
 
virtual void write (Ostream &) const
 Write. More...
 
virtual void operator= (const fvPatchField< vector > &pvf)
 

Detailed Description

This velocity inlet/outlet boundary condition is applied to pressure 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 no

Example of the boundary condition specification:

    <patchName>
    {
        type            pressureInletOutletVelocity;
        phi             phi;
        tangentialVelocity (0 0 0);
        value           uniform 0;
    }

The tangentialVelocity entry is a Function1 of time, see Foam::Function1s.

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 97 of file pressureInletOutletVelocityFvPatchVectorField.H.

Constructor & Destructor Documentation

◆ pressureInletOutletVelocityFvPatchVectorField() [1/5]

Construct from patch and internal field.

Definition at line 36 of file pressureInletOutletVelocityFvPatchVectorField.C.

References Foam::Zero.

Referenced by pressureInletOutletVelocityFvPatchVectorField::clone(), and pressureInletOutletVelocityFvPatchVectorField::pressureInletOutletVelocityFvPatchVectorField().

Here is the caller graph for this function:

◆ pressureInletOutletVelocityFvPatchVectorField() [2/5]

Construct from patch, internal field and dictionary.

Definition at line 67 of file pressureInletOutletVelocityFvPatchVectorField.C.

References dictionary::found(), Foam::compressible::New(), pressureInletOutletVelocityFvPatchVectorField::pressureInletOutletVelocityFvPatchVectorField(), fvPatch::size(), vectorField(), and Foam::Zero.

Here is the call graph for this function:

◆ pressureInletOutletVelocityFvPatchVectorField() [3/5]

◆ pressureInletOutletVelocityFvPatchVectorField() [4/5]

Disallow copy without setting internal field reference.

◆ pressureInletOutletVelocityFvPatchVectorField() [5/5]

Copy constructor setting internal field reference.

Definition at line 92 of file pressureInletOutletVelocityFvPatchVectorField.C.

Member Function Documentation

◆ TypeName()

TypeName ( "pressureInletOutletVelocity"  )

Runtime type information.

◆ clone()

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

Construct and return a clone setting internal field reference.

Reimplemented in rotatingPressureInletOutletVelocityFvPatchVectorField.

Definition at line 158 of file pressureInletOutletVelocityFvPatchVectorField.H.

References pressureInletOutletVelocityFvPatchVectorField::pressureInletOutletVelocityFvPatchVectorField().

Here is the call graph for this function:

◆ assignable()

virtual bool assignable ( ) const
inlinevirtual

Return true: this patch field is altered by assignment.

Definition at line 174 of file pressureInletOutletVelocityFvPatchVectorField.H.

◆ phiName() [1/2]

const word& phiName ( ) const
inline

Return the name of phi.

Definition at line 183 of file pressureInletOutletVelocityFvPatchVectorField.H.

Referenced by rotatingPressureInletOutletVelocityFvPatchVectorField::write().

Here is the caller graph for this function:

◆ phiName() [2/2]

word& phiName ( )
inline

Return reference to the name of phi to allow adjustment.

Definition at line 189 of file pressureInletOutletVelocityFvPatchVectorField.H.

References pressureInletOutletVelocityFvPatchVectorField::operator=(), pressureInletOutletVelocityFvPatchVectorField::updateCoeffs(), and pressureInletOutletVelocityFvPatchVectorField::write().

Here is the call graph for this function:

◆ updateCoeffs()

void updateCoeffs ( )
virtual

Update the coefficients associated with the patch field.

Definition at line 105 of file pressureInletOutletVelocityFvPatchVectorField.C.

References Foam::evaluate(), Foam::I, n, Foam::neg(), Foam::sqr(), autoPtr< T >::valid(), Function1< Type >::value(), and pressureInletOutletVelocityFvPatchVectorField::write().

Referenced by pressureInletOutletVelocityFvPatchVectorField::phiName().

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

◆ write()

void write ( Ostream os) const
virtual

◆ operator=()

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

Definition at line 149 of file pressureInletOutletVelocityFvPatchVectorField.C.

References Foam::I, Foam::makePatchTypeField(), fvPatchField< Type >::operator=(), and Foam::transform().

Referenced by pressureInletOutletVelocityFvPatchVectorField::phiName().

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

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