Public Member Functions | List of all members
rotatingPressureInletOutletVelocityFvPatchVectorField Class Reference

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

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

Public Member Functions

 TypeName ("rotatingPressureInletOutletVelocity")
 
 rotatingPressureInletOutletVelocityFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &)
 
 rotatingPressureInletOutletVelocityFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &, const dictionary &)
 
 rotatingPressureInletOutletVelocityFvPatchVectorField (const rotatingPressureInletOutletVelocityFvPatchVectorField &, const fvPatch &, const DimensionedField< vector, volMesh > &, const fvPatchFieldMapper &)
 
 rotatingPressureInletOutletVelocityFvPatchVectorField (const rotatingPressureInletOutletVelocityFvPatchVectorField &)
 
virtual tmp< fvPatchVectorFieldclone () const
 
 rotatingPressureInletOutletVelocityFvPatchVectorField (const rotatingPressureInletOutletVelocityFvPatchVectorField &, const DimensionedField< vector, volMesh > &)
 
virtual tmp< fvPatchVectorFieldclone (const DimensionedField< vector, volMesh > &iF) const
 
virtual void write (Ostream &) const
 
- Public Member Functions inherited from pressureInletOutletVelocityFvPatchVectorField
 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 &)
 
 pressureInletOutletVelocityFvPatchVectorField (const pressureInletOutletVelocityFvPatchVectorField &, const DimensionedField< vector, volMesh > &)
 
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 operator= (const fvPatchField< vector > &pvf)
 

Detailed Description

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

Usage
Property Description Required Default value
phi flux field name no phi
tangentialVelocity tangential velocity field no
omega angular velocity of the frame [rad/s] yes

Example of the boundary condition specification:

    <patchName>
    {
        type            rotatingPressureInletOutletVelocity;
        phi             phi;
        tangentialVelocity uniform (0 0 0);
        omega           100;
    }

The omega entry is a Function1 type, able to describe time varying functions.

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
See also
Foam::pressureInletOutletVelocityFvPatchVectorField Foam::Function1Types
Source files

Definition at line 106 of file rotatingPressureInletOutletVelocityFvPatchVectorField.H.

Constructor & Destructor Documentation

◆ rotatingPressureInletOutletVelocityFvPatchVectorField() [1/5]

Definition at line 50 of file rotatingPressureInletOutletVelocityFvPatchVectorField.C.

Referenced by rotatingPressureInletOutletVelocityFvPatchVectorField::clone().

Here is the caller graph for this function:

◆ rotatingPressureInletOutletVelocityFvPatchVectorField() [2/5]

Definition at line 78 of file rotatingPressureInletOutletVelocityFvPatchVectorField.C.

References dict, dictionary::getOrDefault(), and word::null.

Here is the call graph for this function:

◆ rotatingPressureInletOutletVelocityFvPatchVectorField() [3/5]

◆ rotatingPressureInletOutletVelocityFvPatchVectorField() [4/5]

◆ rotatingPressureInletOutletVelocityFvPatchVectorField() [5/5]

Member Function Documentation

◆ TypeName()

TypeName ( "rotatingPressureInletOutletVelocity"  )

◆ clone() [1/2]

virtual tmp<fvPatchVectorField> clone ( ) const
inlinevirtual

◆ clone() [2/2]

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

◆ write()

void write ( Ostream os) const
virtual

Reimplemented from pressureInletOutletVelocityFvPatchVectorField.

Definition at line 122 of file rotatingPressureInletOutletVelocityFvPatchVectorField.C.

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

Here is the call graph for this function:

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