Public Member Functions | List of all members
fluxCorrectedVelocityFvPatchVectorField Class Reference

This boundary condition provides a velocity outlet boundary condition for patches where the pressure is specified. The outflow velocity is obtained by "zeroGradient" and then corrected from the flux: More...

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

Public Member Functions

 TypeName ("fluxCorrectedVelocity")
 
 fluxCorrectedVelocityFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &)
 
 fluxCorrectedVelocityFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &, const dictionary &)
 
 fluxCorrectedVelocityFvPatchVectorField (const fluxCorrectedVelocityFvPatchVectorField &, const fvPatch &, const DimensionedField< vector, volMesh > &, const fvPatchFieldMapper &)
 
virtual tmp< fvPatchVectorFieldclone () const
 
 fluxCorrectedVelocityFvPatchVectorField (const fluxCorrectedVelocityFvPatchVectorField &, const DimensionedField< vector, volMesh > &)
 
virtual tmp< fvPatchVectorFieldclone (const DimensionedField< vector, volMesh > &iF) const
 
virtual void evaluate (const Pstream::commsTypes commsType=Pstream::commsTypes::blocking)
 
virtual void write (Ostream &) const
 

Detailed Description

This boundary condition provides a velocity outlet boundary condition for patches where the pressure is specified. The outflow velocity is obtained by "zeroGradient" and then corrected from the flux:

\[ U_p = U_c - n (n \cdot U_c) + \frac{n \phi_p}{|S_f|} \]

where

$ U_p $ = velocity at the patch [m/s]
$ U_c $ = velocity in cells adjacent to the patch [m/s]
$ n $ = patch normal vectors
$ \phi_p $ = flux at the patch [m3/s or kg/s]
$ S_f $ = patch face area vectors [m2]

where

Property Description Required Default value
phi name of flux field no phi
rho name of density field no rho

Example of the boundary condition specification:

    <patchName>
    {
        type            fluxCorrectedVelocity;
        phi             phi;
        rho             rho;
    }
Note
If reverse flow is possible or expected use the pressureInletOutletVelocity condition instead.
See also
Foam::zeroGradientFvPatchField Foam::pressureInletOutletVelocityFvPatchVectorField
Source files

Definition at line 127 of file fluxCorrectedVelocityFvPatchVectorField.H.

Constructor & Destructor Documentation

◆ fluxCorrectedVelocityFvPatchVectorField() [1/4]

Definition at line 32 of file fluxCorrectedVelocityFvPatchVectorField.C.

Referenced by fluxCorrectedVelocityFvPatchVectorField::clone().

Here is the caller graph for this function:

◆ fluxCorrectedVelocityFvPatchVectorField() [2/4]

fluxCorrectedVelocityFvPatchVectorField ( const fvPatch p,
const DimensionedField< vector, volMesh > &  iF,
const dictionary dict 
)

Definition at line 60 of file fluxCorrectedVelocityFvPatchVectorField.C.

References dict.

◆ fluxCorrectedVelocityFvPatchVectorField() [3/4]

Definition at line 45 of file fluxCorrectedVelocityFvPatchVectorField.C.

◆ fluxCorrectedVelocityFvPatchVectorField() [4/4]

Definition at line 77 of file fluxCorrectedVelocityFvPatchVectorField.C.

Member Function Documentation

◆ TypeName()

TypeName ( "fluxCorrectedVelocity"  )

◆ clone() [1/2]

virtual tmp<fvPatchVectorField> clone ( ) const
inlinevirtual

Definition at line 174 of file fluxCorrectedVelocityFvPatchVectorField.H.

References fluxCorrectedVelocityFvPatchVectorField::fluxCorrectedVelocityFvPatchVectorField().

Here is the call graph for this function:

◆ clone() [2/2]

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

Definition at line 191 of file fluxCorrectedVelocityFvPatchVectorField.H.

References fluxCorrectedVelocityFvPatchVectorField::fluxCorrectedVelocityFvPatchVectorField().

Here is the call graph for this function:

◆ evaluate()

void evaluate ( const Pstream::commsTypes  commsType = Pstream::commsTypes::blocking)
virtual

◆ write()

void write ( Ostream os) const
virtual

Definition at line 134 of file fluxCorrectedVelocityFvPatchVectorField.C.

References os(), and fvPatchField::write().

Here is the call graph for this function:

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