OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

flowRateInletVelocityFvPatchVectorField Class Reference

Describes a volumetric/mass flow normal vector boundary condition by its magnitude as an integral over its area. More...

Inheritance diagram for flowRateInletVelocityFvPatchVectorField:
Collaboration diagram for flowRateInletVelocityFvPatchVectorField:

List of all members.


Public Member Functions

 TypeName ("flowRateInletVelocity")
 Runtime type information.
 flowRateInletVelocityFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &)
 Construct from patch and internal field.
 flowRateInletVelocityFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &, const dictionary &)
 Construct from patch, internal field and dictionary.
 flowRateInletVelocityFvPatchVectorField (const flowRateInletVelocityFvPatchVectorField &, const fvPatch &, const DimensionedField< vector, volMesh > &, const fvPatchFieldMapper &)
 Construct by mapping given.
 flowRateInletVelocityFvPatchVectorField (const flowRateInletVelocityFvPatchVectorField &)
 Construct as copy.
virtual tmp< fvPatchVectorField > clone () const
 Construct and return a clone.
 flowRateInletVelocityFvPatchVectorField (const flowRateInletVelocityFvPatchVectorField &, const DimensionedField< vector, volMesh > &)
 Construct as copy setting internal field reference.
virtual tmp< fvPatchVectorField > clone (const DimensionedField< vector, volMesh > &iF) const
 Construct and return a clone setting internal field reference.
scalar flowRate () const
 Return the flux.
scalar & flowRate ()
 Return reference to the flux to allow adjustment.
virtual void updateCoeffs ()
 Update the coefficients associated with the patch field.
virtual void write (Ostream &) const
 Write.

Detailed Description

Describes a volumetric/mass flow normal vector boundary condition by its magnitude as an integral over its area.

The basis of the patch (volumetric or mass) is determined by the dimensions of the flux, phi. The current density is used to correct the velocity when applying the mass basis.

Example of the boundary condition specification:

inlet
{
    type            flowRateInletVelocity;
    flowRate        0.2;        // Volumetric/mass flow rate [m3/s or kg/s]
    value           uniform (0 0 0); // placeholder
}

Note:
  • The value is positive inwards
  • May not work correctly for transonic inlets
  • Strange behaviour with potentialFoam since the U equation is not solved
Source files

Definition at line 64 of file flowRateInletVelocityFvPatchVectorField.H.


Constructor & Destructor Documentation

Construct from patch and internal field.

Definition at line 29 of file flowRateInletVelocityFvPatchVectorField.C.

flowRateInletVelocityFvPatchVectorField ( const fvPatch &  p,
const DimensionedField< vector, volMesh > &  iF,
const dictionary &  dict 
)

Construct from patch, internal field and dictionary.

Definition at line 61 of file flowRateInletVelocityFvPatchVectorField.C.

Construct by mapping given.

flowRateInletVelocityFvPatchVectorField onto a new patch

Definition at line 44 of file flowRateInletVelocityFvPatchVectorField.C.

Construct as copy setting internal field reference.

Definition at line 91 of file flowRateInletVelocityFvPatchVectorField.C.


Member Function Documentation

TypeName ( "flowRateInletVelocity"   ) 

Runtime type information.

virtual tmp<fvPatchVectorField> clone (  )  const [inline, virtual]

Construct and return a clone.

Reimplemented in timeVaryingFlowRateInletVelocityFvPatchVectorField.

Definition at line 123 of file flowRateInletVelocityFvPatchVectorField.H.

virtual tmp<fvPatchVectorField> clone ( const DimensionedField< vector, volMesh > &  iF  )  const [inline, virtual]

Construct and return a clone setting internal field reference.

Reimplemented in timeVaryingFlowRateInletVelocityFvPatchVectorField.

Definition at line 140 of file flowRateInletVelocityFvPatchVectorField.H.

scalar flowRate (  )  const [inline]

Return the flux.

Definition at line 156 of file flowRateInletVelocityFvPatchVectorField.H.

scalar& flowRate (  )  [inline]

Return reference to the flux to allow adjustment.

Definition at line 162 of file flowRateInletVelocityFvPatchVectorField.H.

void updateCoeffs (  )  [virtual]

Update the coefficients associated with the patch field.

Reimplemented in timeVaryingFlowRateInletVelocityFvPatchVectorField.

Definition at line 105 of file flowRateInletVelocityFvPatchVectorField.C.

void write ( Ostream &  os  )  const [virtual]


The documentation for this class was generated from the following files:
Copyright © 2000-2009 OpenCFD Ltd