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

timeVaryingFlowRateInletVelocityFvPatchVectorField Class Reference

A time-varying form of a flow normal vector boundary condition. More...

Inheritance diagram for timeVaryingFlowRateInletVelocityFvPatchVectorField:
Collaboration diagram for timeVaryingFlowRateInletVelocityFvPatchVectorField:

List of all members.


Public Member Functions

 TypeName ("timeVaryingFlowRateInletVelocity")
 Runtime type information.
 timeVaryingFlowRateInletVelocityFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &)
 Construct from patch and internal field.
 timeVaryingFlowRateInletVelocityFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &, const dictionary &)
 Construct from patch, internal field and dictionary.
 timeVaryingFlowRateInletVelocityFvPatchVectorField (const timeVaryingFlowRateInletVelocityFvPatchVectorField &, const fvPatch &, const DimensionedField< vector, volMesh > &, const fvPatchFieldMapper &)
 Construct by mapping given patch field onto a new patch.
 timeVaryingFlowRateInletVelocityFvPatchVectorField (const timeVaryingFlowRateInletVelocityFvPatchVectorField &)
 Construct as copy.
virtual tmp< fvPatchVectorField > clone () const
 Construct and return a clone.
 timeVaryingFlowRateInletVelocityFvPatchVectorField (const timeVaryingFlowRateInletVelocityFvPatchVectorField &, 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.
const interpolationTable
< scalar > & 
timeSeries () const
 Return the time series used.
virtual void updateCoeffs ()
 Update the coefficients associated with the patch field.
virtual void write (Ostream &) const
 Write.

Detailed Description

A time-varying form of a flow normal vector boundary condition.

Example of the boundary condition specification:

inlet
{
    type            timeVaryingFlowRateInletVelocity;
    flowRate        0.2;         // Volumetric/mass flow rate [m3/s or kg/s]
    value           uniform (0 0 0);  // placeholder
    fileName        "$FOAM_CASE/time-series";
    outOfBounds     repeat;           // (error|warn|clamp|repeat)
}

Note:
  • The value is positive inwards
  • may not work correctly for transonic inlets!
  • strange behaviour with potentialFoam since the U equation is not solved
See also:
Foam::interpolationTable and Foam::flowRateInletVelocityFvPatchVectorField
Source files

Definition at line 64 of file timeVaryingFlowRateInletVelocityFvPatchVectorField.H.


Constructor & Destructor Documentation

Construct from patch and internal field.

Definition at line 29 of file timeVaryingFlowRateInletVelocityFvPatchVectorField.C.

Construct from patch, internal field and dictionary.

Definition at line 55 of file timeVaryingFlowRateInletVelocityFvPatchVectorField.C.

Construct by mapping given patch field onto a new patch.

Definition at line 41 of file timeVaryingFlowRateInletVelocityFvPatchVectorField.C.

Construct as copy setting internal field reference.

Definition at line 79 of file timeVaryingFlowRateInletVelocityFvPatchVectorField.C.


Member Function Documentation

TypeName ( "timeVaryingFlowRateInletVelocity"   ) 

Runtime type information.

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

Construct and return a clone.

Reimplemented from flowRateInletVelocityFvPatchVectorField.

Definition at line 113 of file timeVaryingFlowRateInletVelocityFvPatchVectorField.H.

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

Construct and return a clone setting internal field reference.

Reimplemented from flowRateInletVelocityFvPatchVectorField.

Definition at line 130 of file timeVaryingFlowRateInletVelocityFvPatchVectorField.H.

const interpolationTable<scalar>& timeSeries (  )  const [inline]

Return the time series used.

Definition at line 150 of file timeVaryingFlowRateInletVelocityFvPatchVectorField.H.

void updateCoeffs (  )  [virtual]

Update the coefficients associated with the patch field.

Reimplemented from flowRateInletVelocityFvPatchVectorField.

Definition at line 92 of file timeVaryingFlowRateInletVelocityFvPatchVectorField.C.

void write ( Ostream &  os  )  const [virtual]


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