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")
 
 variableHeightFlowRateInletVelocityFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &)
 
 variableHeightFlowRateInletVelocityFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &, const dictionary &)
 
 variableHeightFlowRateInletVelocityFvPatchVectorField (const variableHeightFlowRateInletVelocityFvPatchVectorField &, const fvPatch &, const DimensionedField< vector, volMesh > &, const fvPatchFieldMapper &)
 
 variableHeightFlowRateInletVelocityFvPatchVectorField (const variableHeightFlowRateInletVelocityFvPatchVectorField &)
 
virtual tmp< fvPatchVectorFieldclone () const
 
 variableHeightFlowRateInletVelocityFvPatchVectorField (const variableHeightFlowRateInletVelocityFvPatchVectorField &, const DimensionedField< vector, volMesh > &)
 
virtual tmp< fvPatchVectorFieldclone (const DimensionedField< vector, volMesh > &iF) const
 
virtual void updateCoeffs ()
 
virtual void write (Ostream &) const
 

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.

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

Example of the boundary condition specification:

    <patchName>
    {
        type            variableHeightFlowRateInletVelocity;
        flowRate        0.2;
        alpha           alpha.water;
        value           uniform (0 0 0); // placeholder
    }

The flowRate entry is a Function1 of time, see Foam::Function1Types.

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 Foam::Function1Types
Source files

Definition at line 98 of file variableHeightFlowRateInletVelocityFvPatchVectorField.H.

Constructor & Destructor Documentation

◆ variableHeightFlowRateInletVelocityFvPatchVectorField() [1/5]

Definition at line 30 of file variableHeightFlowRateInletVelocityFvPatchVectorField.C.

Referenced by variableHeightFlowRateInletVelocityFvPatchVectorField::clone().

Here is the caller graph for this function:

◆ variableHeightFlowRateInletVelocityFvPatchVectorField() [2/5]

◆ variableHeightFlowRateInletVelocityFvPatchVectorField() [3/5]

◆ variableHeightFlowRateInletVelocityFvPatchVectorField() [4/5]

◆ variableHeightFlowRateInletVelocityFvPatchVectorField() [5/5]

Member Function Documentation

◆ TypeName()

TypeName ( "variableHeightFlowRateInletVelocity"  )

◆ clone() [1/2]

virtual tmp<fvPatchVectorField> clone ( ) const
inlinevirtual

◆ clone() [2/2]

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

◆ updateCoeffs()

void updateCoeffs ( )
virtual

Definition at line 98 of file variableHeightFlowRateInletVelocityFvPatchVectorField.C.

References Foam::gSum(), Foam::max(), Foam::min(), n, Foam::operator==(), and Foam::foamVersion::patch.

Here is the call graph for this function:

◆ write()

void write ( Ostream os) const
virtual

Definition at line 126 of file variableHeightFlowRateInletVelocityFvPatchVectorField.C.

References os(), and Foam::vtk::write().

Here is the call graph for this function:

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