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:
Collaboration diagram for fluxCorrectedVelocityFvPatchVectorField:

Public Member Functions

 TypeName ("fluxCorrectedVelocity")
 Runtime type information. More...
 
 fluxCorrectedVelocityFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &)
 Construct from patch and internal field. More...
 
 fluxCorrectedVelocityFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &, const dictionary &)
 Construct from patch, internal field and dictionary. More...
 
 fluxCorrectedVelocityFvPatchVectorField (const this_bctype &, const fvPatch &, const DimensionedField< vector, volMesh > &, const fvPatchFieldMapper &)
 Construct by mapping onto a new patch. More...
 
 fluxCorrectedVelocityFvPatchVectorField (const this_bctype &, const DimensionedField< vector, volMesh > &)
 Construct as copy setting internal field reference. More...
 
 fluxCorrectedVelocityFvPatchVectorField (const this_bctype &)=delete
 No copy without an internal field. More...
 
virtual tmp< fvPatchField< vector > > clone (const DimensionedField< vector, volMesh > &iF) const
 Clone with an internal field reference. More...
 
virtual void evaluate (const Pstream::commsTypes commsType=Pstream::commsTypes::buffered)
 Evaluate the patch field. More...
 
virtual void write (Ostream &) const
 Write. More...
 

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/5]

Construct from patch and internal field.

◆ fluxCorrectedVelocityFvPatchVectorField() [2/5]

Construct from patch, internal field and dictionary.

◆ fluxCorrectedVelocityFvPatchVectorField() [3/5]

Construct by mapping onto a new patch.

◆ fluxCorrectedVelocityFvPatchVectorField() [4/5]

Construct as copy setting internal field reference.

◆ fluxCorrectedVelocityFvPatchVectorField() [5/5]

No copy without an internal field.

Member Function Documentation

◆ TypeName()

TypeName ( "fluxCorrectedVelocity"  )

Runtime type information.

◆ clone()

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

Clone with an internal field reference.

Definition at line 205 of file fluxCorrectedVelocityFvPatchVectorField.H.

References fvPatchField< Type >::Clone().

Here is the call graph for this function:

◆ evaluate()

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

Evaluate the patch field.

◆ write()

virtual void write ( Ostream ) const
virtual

Write.


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