variableHeightFlowRateInletVelocityFvPatchVectorField Class Reference

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

Inheritance diagram for variableHeightFlowRateInletVelocityFvPatchVectorField:
Collaboration diagram for variableHeightFlowRateInletVelocityFvPatchVectorField:

Public Member Functions

 TypeName ("variableHeightFlowRateInletVelocity")
 Runtime type information. 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 &)=delete
 Disallow copy without setting internal field reference. More...
 
 variableHeightFlowRateInletVelocityFvPatchVectorField (const variableHeightFlowRateInletVelocityFvPatchVectorField &, const DimensionedField< vector, volMesh > &)
 Copy constructor setting internal field reference. More...
 
virtual tmp< fvPatchVectorFieldclone (const DimensionedField< vector, volMesh > &iF) const
 Construct and return a clone setting internal field reference. 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 multiphase 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 [m^3/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::Function1s.

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::Function1s
Source files

Definition at line 97 of file variableHeightFlowRateInletVelocityFvPatchVectorField.H.

Constructor & Destructor Documentation

◆ variableHeightFlowRateInletVelocityFvPatchVectorField() [1/4]

Construct from patch, internal field and dictionary.

Definition at line 32 of file variableHeightFlowRateInletVelocityFvPatchVectorField.C.

◆ variableHeightFlowRateInletVelocityFvPatchVectorField() [2/4]

◆ variableHeightFlowRateInletVelocityFvPatchVectorField() [3/4]

Disallow copy without setting internal field reference.

◆ variableHeightFlowRateInletVelocityFvPatchVectorField() [4/4]

Member Function Documentation

◆ TypeName()

TypeName ( "variableHeightFlowRateInletVelocity"  )

Runtime type information.

◆ clone()

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

Construct and return a clone setting internal field reference.

Definition at line 151 of file variableHeightFlowRateInletVelocityFvPatchVectorField.H.

◆ updateCoeffs()

void updateCoeffs ( )
virtual

Update the coefficients associated with the patch field.

Definition at line 76 of file variableHeightFlowRateInletVelocityFvPatchVectorField.C.

References Foam::gSum(), Foam::max(), Foam::min(), n, Foam::operator==(), and fvPatchField< Type >::updateCoeffs().

Here is the call graph for this function:

◆ write()

void write ( Ostream os) const
virtual

Write.

Definition at line 104 of file variableHeightFlowRateInletVelocityFvPatchVectorField.C.

References fvPatchField< Type >::write(), and Foam::writeEntry().

Here is the call graph for this function:

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