FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

flowRateInletVelocityFvPatchVectorField Class Reference

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

#include <finiteVolume/flowRateInletVelocityFvPatchVectorField.H>


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
{
typeflowRateInletVelocity;
flowRate0.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 69 of file flowRateInletVelocityFvPatchVectorField.H.

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.

Constructor & Destructor Documentation

Construct from patch and internal field.

Definition at line 37 of file flowRateInletVelocityFvPatchVectorField.C.

Referenced by flowRateInletVelocityFvPatchVectorField::clone().

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

Construct from patch, internal field and dictionary.

Definition at line 69 of file flowRateInletVelocityFvPatchVectorField.C.

Construct by mapping given.

flowRateInletVelocityFvPatchVectorField onto a new patch

Definition at line 52 of file flowRateInletVelocityFvPatchVectorField.C.

Construct as copy setting internal field reference.

Definition at line 99 of file flowRateInletVelocityFvPatchVectorField.C.


Member Function Documentation

TypeName ( "flowRateInletVelocity"    )

Runtime type information.

virtual tmp<fvPatchVectorField> clone (  ) const [inline, virtual]
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 143 of file flowRateInletVelocityFvPatchVectorField.H.

References flowRateInletVelocityFvPatchVectorField::flowRateInletVelocityFvPatchVectorField().

scalar flowRate (  ) const [inline]
scalar& flowRate (  ) [inline]

Return reference to the flux to allow adjustment.

Definition at line 165 of file flowRateInletVelocityFvPatchVectorField.H.


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