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:
Collaboration diagram for rotatingPressureInletOutletVelocityFvPatchVectorField:

Public Member Functions

 TypeName ("rotatingPressureInletOutletVelocity")
 Runtime type information. More...
 
 rotatingPressureInletOutletVelocityFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &)
 Construct from patch and internal field. More...
 
 rotatingPressureInletOutletVelocityFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &, const dictionary &)
 Construct from patch, internal field and dictionary. More...
 
 rotatingPressureInletOutletVelocityFvPatchVectorField (const rotatingPressureInletOutletVelocityFvPatchVectorField &, const fvPatch &, const DimensionedField< vector, volMesh > &, const fvPatchFieldMapper &)
 Construct by mapping given. More...
 
 rotatingPressureInletOutletVelocityFvPatchVectorField (const rotatingPressureInletOutletVelocityFvPatchVectorField &)=delete
 Disallow copy without setting internal field reference. More...
 
 rotatingPressureInletOutletVelocityFvPatchVectorField (const rotatingPressureInletOutletVelocityFvPatchVectorField &, const DimensionedField< vector, volMesh > &)
 Copy constructor setting internal field reference. More...
 
virtual tmp< fvPatchVectorField > clone (const DimensionedField< vector, volMesh > &iF) const
 Construct and return a clone setting internal field reference. More...
 
virtual void write (Ostream &) const
 Write. More...
 
- Public Member Functions inherited from pressureInletOutletVelocityFvPatchVectorField
 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 bool assignable () const
 Return true: this patch field is altered by assignment. More...
 
const word & phiName () const
 Return the name of phi. More...
 
word & phiName ()
 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 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::Function1s
Source files

Definition at line 105 of file rotatingPressureInletOutletVelocityFvPatchVectorField.H.

Constructor & Destructor Documentation

◆ rotatingPressureInletOutletVelocityFvPatchVectorField() [1/5]

◆ rotatingPressureInletOutletVelocityFvPatchVectorField() [2/5]

Construct from patch, internal field and dictionary.

Definition at line 66 of file rotatingPressureInletOutletVelocityFvPatchVectorField.C.

References rotatingPressureInletOutletVelocityFvPatchVectorField::rotatingPressureInletOutletVelocityFvPatchVectorField().

Here is the call graph for this function:

◆ rotatingPressureInletOutletVelocityFvPatchVectorField() [3/5]

◆ rotatingPressureInletOutletVelocityFvPatchVectorField() [4/5]

Disallow copy without setting internal field reference.

◆ rotatingPressureInletOutletVelocityFvPatchVectorField() [5/5]

Copy constructor setting internal field reference.

Definition at line 97 of file rotatingPressureInletOutletVelocityFvPatchVectorField.C.

References rotatingPressureInletOutletVelocityFvPatchVectorField::write().

Here is the call graph for this function:

Member Function Documentation

◆ TypeName()

TypeName ( "rotatingPressureInletOutletVelocity"  )

Runtime type information.

◆ clone()

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

◆ write()


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