Public Member Functions | List of all members
variableHeightFlowRateInletVelocityFvPatchVectorField Class Reference

This boundary condition provides a velocity boundary condition for multphase flow based on a user-specified volumetric flow rate. More...

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

Public Member Functions

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

Detailed Description

This boundary condition provides a velocity boundary condition for multphase flow based on a user-specified volumetric flow rate.

The flow rate is made proportional to the phase fraction alpha at each face of the patch and alpha is ensured to be bound between 0 and 1.


Patch usage

Property Description Required Default value
flowRate volumetric flow rate [m3/s] yes
alpha phase-fraction field yes

Example of the boundary condition specification:

    myPatch
    {
        type            variableHeightFlowRateInletVelocity;
        flowRate        0.2;
        alpha           alpha.water;
        value           uniform (0 0 0); // placeholder
    }
Note
  • the value is positive into the domain
  • may not work correctly for transonic inlets
  • strange behaviour with potentialFoam since the momentum equation is not solved
See also
Foam::fixedValueFvPatchField
Source files

Definition at line 97 of file variableHeightFlowRateInletVelocityFvPatchVectorField.H.

Constructor & Destructor Documentation

Construct from patch, internal field and dictionary.

Definition at line 64 of file variableHeightFlowRateInletVelocityFvPatchVectorField.C.

References variableHeightFlowRateInletVelocityFvPatchVectorField::variableHeightFlowRateInletVelocityFvPatchVectorField().

Here is the call graph for this function:

Construct as copy setting internal field reference.

Definition at line 90 of file variableHeightFlowRateInletVelocityFvPatchVectorField.C.

References variableHeightFlowRateInletVelocityFvPatchVectorField::updateCoeffs().

Here is the call graph for this function:

Member Function Documentation

TypeName ( "variableHeightFlowRateInletVelocity"  )

Runtime type information.

virtual tmp<fvPatchVectorField> clone ( ) const
inlinevirtual

Construct and return a clone.

Definition at line 151 of file variableHeightFlowRateInletVelocityFvPatchVectorField.H.

References variableHeightFlowRateInletVelocityFvPatchVectorField::variableHeightFlowRateInletVelocityFvPatchVectorField().

Here is the call graph for this function:

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

Construct and return a clone setting internal field reference.

Definition at line 168 of file variableHeightFlowRateInletVelocityFvPatchVectorField.H.

References variableHeightFlowRateInletVelocityFvPatchVectorField::variableHeightFlowRateInletVelocityFvPatchVectorField().

Here is the call graph for this function:

scalar flowRate ( ) const
inline

Return the flux.

Definition at line 188 of file variableHeightFlowRateInletVelocityFvPatchVectorField.H.

scalar& flowRate ( )
inline

Return reference to the flux to allow adjustment.

Definition at line 194 of file variableHeightFlowRateInletVelocityFvPatchVectorField.H.

References variableHeightFlowRateInletVelocityFvPatchVectorField::updateCoeffs(), and variableHeightFlowRateInletVelocityFvPatchVectorField::write().

Here is the call graph for this function:

void updateCoeffs ( )
virtual
void write ( Ostream os) const
virtual

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