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")
 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 fluxCorrectedVelocityFvPatchVectorField &, const fvPatch &, const DimensionedField< vector, volMesh > &, const fvPatchFieldMapper &)
 Construct by mapping given fluxCorrectedVelocityFvPatchVectorField. More...
 
virtual tmp< fvPatchVectorFieldclone () const
 Construct and return a clone. More...
 
 fluxCorrectedVelocityFvPatchVectorField (const fluxCorrectedVelocityFvPatchVectorField &, const DimensionedField< vector, volMesh > &)
 Construct as copy 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 evaluate (const Pstream::commsTypes commsType=Pstream::blocking)
 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:

    myPatch
    {
        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 129 of file fluxCorrectedVelocityFvPatchVectorField.H.

Constructor & Destructor Documentation

Construct from patch and internal field.

Definition at line 36 of file fluxCorrectedVelocityFvPatchVectorField.C.

Referenced by fluxCorrectedVelocityFvPatchVectorField::clone(), and fluxCorrectedVelocityFvPatchVectorField::fluxCorrectedVelocityFvPatchVectorField().

Here is the caller graph for this function:

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

Construct from patch, internal field and dictionary.

Definition at line 64 of file fluxCorrectedVelocityFvPatchVectorField.C.

References fluxCorrectedVelocityFvPatchVectorField::fluxCorrectedVelocityFvPatchVectorField().

Here is the call graph for this function:

Construct by mapping given fluxCorrectedVelocityFvPatchVectorField.

onto a new patch

Definition at line 49 of file fluxCorrectedVelocityFvPatchVectorField.C.

References fluxCorrectedVelocityFvPatchVectorField::fluxCorrectedVelocityFvPatchVectorField().

Here is the call graph for this function:

Construct as copy setting internal field reference.

Definition at line 80 of file fluxCorrectedVelocityFvPatchVectorField.C.

References fluxCorrectedVelocityFvPatchVectorField::evaluate().

Here is the call graph for this function:

Member Function Documentation

TypeName ( "fluxCorrectedVelocity"  )

Runtime type information.

virtual tmp<fvPatchVectorField> clone ( ) const
inlinevirtual

Construct and return a clone.

Definition at line 176 of file fluxCorrectedVelocityFvPatchVectorField.H.

References fluxCorrectedVelocityFvPatchVectorField::fluxCorrectedVelocityFvPatchVectorField().

Here is the call graph for this function:

virtual tmp<fvPatchVectorField> clone ( const DimensionedField< vector, volMesh > &  iF) const
inlinevirtual
void evaluate ( const Pstream::commsTypes  commsType = Pstream::blocking)
virtual
void write ( Ostream os) const
virtual

Write.

Definition at line 140 of file fluxCorrectedVelocityFvPatchVectorField.C.

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

Referenced by fluxCorrectedVelocityFvPatchVectorField::clone().

Here is the call graph for this function:

Here is the caller graph for this function:


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