Public Member Functions | Protected Attributes
variableHeightFlowRateFvPatchScalarField Class Reference

This boundary condition provides a phase fraction condition based on the local flow conditions, whereby the values are constrained to lay between user-specified upper and lower bounds. The behaviour is described by: More...

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

Public Member Functions

 TypeName ("variableHeightFlowRate")
 Runtime scalar information. More...
 
 variableHeightFlowRateFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &)
 Construct from patch and internal field. More...
 
 variableHeightFlowRateFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &)
 Construct from patch, internal field and dictionary. More...
 
 variableHeightFlowRateFvPatchScalarField (const variableHeightFlowRateFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &)
 Construct by mapping given. More...
 
 variableHeightFlowRateFvPatchScalarField (const variableHeightFlowRateFvPatchScalarField &)
 Construct as copy. More...
 
virtual tmp< fvPatchField< scalar > > clone () const
 Construct and return a clone. More...
 
 variableHeightFlowRateFvPatchScalarField (const variableHeightFlowRateFvPatchScalarField &, const DimensionedField< scalar, volMesh > &)
 Construct as copy setting internal field reference. More...
 
virtual tmp< fvPatchField< scalar > > clone (const DimensionedField< scalar, 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...
 

Protected Attributes

word phiName_
 Name of flux field. More...
 
scalar lowerBound_
 Lower bound for alpha1. More...
 
scalar upperBound_
 Upper bound for alpha1. More...
 

Detailed Description

This boundary condition provides a phase fraction condition based on the local flow conditions, whereby the values are constrained to lay between user-specified upper and lower bounds. The behaviour is described by:

if alpha > upperBound:

if lower bound <= alpha <= upper bound:

if alpha < lowerBound:


Patch usage

Property Description Required Default value
phi flux field name no phi
lowerBound lower bound for clipping yes
upperBound upper bound for clipping yes

Example of the boundary condition specification:

    myPatch
    {
        type            variableHeightFlowRate;
        lowerBound      0.0;
        upperBound      0.9;
        value           uniform 0;
    }
Source files

Definition at line 102 of file variableHeightFlowRateFvPatchField.H.

Constructor & Destructor Documentation

◆ variableHeightFlowRateFvPatchScalarField() [1/5]

variableHeightFlowRateFvPatchScalarField ( const fvPatch p,
const DimensionedField< scalar, volMesh > &  iF 
)

Construct from patch and internal field.

Definition at line 36 of file variableHeightFlowRateFvPatchField.C.

Referenced by variableHeightFlowRateFvPatchScalarField::clone().

Here is the caller graph for this function:

◆ variableHeightFlowRateFvPatchScalarField() [2/5]

variableHeightFlowRateFvPatchScalarField ( const fvPatch p,
const DimensionedField< scalar, volMesh > &  iF,
const dictionary dict 
)

Construct from patch, internal field and dictionary.

Definition at line 70 of file variableHeightFlowRateFvPatchField.C.

References dict, p, and scalarField().

Here is the call graph for this function:

◆ variableHeightFlowRateFvPatchScalarField() [3/5]

Construct by mapping given.

variableHeightFlowRateFvPatchScalarField onto a new patch

Definition at line 54 of file variableHeightFlowRateFvPatchField.C.

◆ variableHeightFlowRateFvPatchScalarField() [4/5]

Construct as copy.

Definition at line 102 of file variableHeightFlowRateFvPatchField.C.

◆ variableHeightFlowRateFvPatchScalarField() [5/5]

Construct as copy setting internal field reference.

Definition at line 115 of file variableHeightFlowRateFvPatchField.C.

Member Function Documentation

◆ TypeName()

TypeName ( "variableHeightFlowRate"  )

Runtime scalar information.

◆ clone() [1/2]

virtual tmp<fvPatchField<scalar> > clone ( ) const
inlinevirtual

Construct and return a clone.

Definition at line 161 of file variableHeightFlowRateFvPatchField.H.

References variableHeightFlowRateFvPatchScalarField::variableHeightFlowRateFvPatchScalarField().

Here is the call graph for this function:

◆ clone() [2/2]

virtual tmp<fvPatchField<scalar> > clone ( const DimensionedField< scalar, volMesh > &  iF) const
inlinevirtual

Construct and return a clone setting internal field reference.

Definition at line 178 of file variableHeightFlowRateFvPatchField.H.

References variableHeightFlowRateFvPatchScalarField::variableHeightFlowRateFvPatchScalarField().

Here is the call graph for this function:

◆ updateCoeffs()

void updateCoeffs ( )
virtual

◆ write()

void write ( Ostream os) const
virtual

Write.

Definition at line 172 of file variableHeightFlowRateFvPatchField.C.

References token::END_STATEMENT, Foam::nl, fvPatchField::write(), and Ostream::writeKeyword().

Here is the call graph for this function:

Field Documentation

◆ phiName_

word phiName_
protected

Name of flux field.

Definition at line 112 of file variableHeightFlowRateFvPatchField.H.

Referenced by variableHeightFlowRateFvPatchScalarField::updateCoeffs().

◆ lowerBound_

scalar lowerBound_
protected

Lower bound for alpha1.

Definition at line 115 of file variableHeightFlowRateFvPatchField.H.

Referenced by variableHeightFlowRateFvPatchScalarField::updateCoeffs().

◆ upperBound_

scalar upperBound_
protected

Upper bound for alpha1.

Definition at line 118 of file variableHeightFlowRateFvPatchField.H.

Referenced by variableHeightFlowRateFvPatchScalarField::updateCoeffs().


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