Public Member Functions | List of all members
freestreamVelocityFvPatchVectorField Class Reference

This boundary condition provides a free-stream condition for velocity. More...

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

Public Member Functions

 TypeName ("freestreamVelocity")
 
 freestreamVelocityFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &)
 
 freestreamVelocityFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &, const dictionary &)
 
 freestreamVelocityFvPatchVectorField (const freestreamVelocityFvPatchVectorField &, const fvPatch &, const DimensionedField< vector, volMesh > &, const fvPatchFieldMapper &)
 
 freestreamVelocityFvPatchVectorField (const freestreamVelocityFvPatchVectorField &)
 
virtual tmp< fvPatchVectorFieldclone () const
 
 freestreamVelocityFvPatchVectorField (const freestreamVelocityFvPatchVectorField &, const DimensionedField< vector, volMesh > &)
 
virtual tmp< fvPatchVectorFieldclone (const DimensionedField< vector, volMesh > &iF) const
 
const vectorFieldfreestreamValue () const
 
vectorFieldfreestreamValue ()
 
virtual void updateCoeffs ()
 
virtual void write (Ostream &) const
 

Detailed Description

This boundary condition provides a free-stream condition for velocity.

It is an inlet-outlet condition that uses the velocity orientation to continuously blend between fixed value for normal inlet and zero gradient for normal outlet flow.

Usage
Property Description Required Default value
freestreamValue freestream velocity yes

Example of the boundary condition specification:

    <patchName>
    {
        type            freestreamVelocity;
        freestreamValue uniform (300 0 0);
    }
Note
This condition is designed to operate with the freestreamPressure condition
See also
Foam::mixedFvPatchField Foam::freestreamFvPatchField
Source files

Definition at line 86 of file freestreamVelocityFvPatchVectorField.H.

Constructor & Destructor Documentation

◆ freestreamVelocityFvPatchVectorField() [1/5]

Definition at line 27 of file freestreamVelocityFvPatchVectorField.C.

Referenced by freestreamVelocityFvPatchVectorField::clone().

Here is the caller graph for this function:

◆ freestreamVelocityFvPatchVectorField() [2/5]

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

Definition at line 37 of file freestreamVelocityFvPatchVectorField.C.

References dict, p, and Foam::Zero.

◆ freestreamVelocityFvPatchVectorField() [3/5]

Definition at line 65 of file freestreamVelocityFvPatchVectorField.C.

◆ freestreamVelocityFvPatchVectorField() [4/5]

Definition at line 77 of file freestreamVelocityFvPatchVectorField.C.

◆ freestreamVelocityFvPatchVectorField() [5/5]

Definition at line 86 of file freestreamVelocityFvPatchVectorField.C.

Member Function Documentation

◆ TypeName()

TypeName ( "freestreamVelocity"  )

◆ clone() [1/2]

virtual tmp<fvPatchVectorField> clone ( ) const
inlinevirtual

Definition at line 131 of file freestreamVelocityFvPatchVectorField.H.

References freestreamVelocityFvPatchVectorField::freestreamVelocityFvPatchVectorField().

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 148 of file freestreamVelocityFvPatchVectorField.H.

References freestreamVelocityFvPatchVectorField::freestreamVelocityFvPatchVectorField().

Here is the call graph for this function:

◆ freestreamValue() [1/2]

const vectorField& freestreamValue ( ) const
inline

Definition at line 161 of file freestreamVelocityFvPatchVectorField.H.

◆ freestreamValue() [2/2]

vectorField& freestreamValue ( )
inline

Definition at line 166 of file freestreamVelocityFvPatchVectorField.H.

◆ updateCoeffs()

void updateCoeffs ( )
virtual

Definition at line 97 of file freestreamVelocityFvPatchVectorField.C.

References Foam::mag(), Foam::foamVersion::patch, and fvPatchField< Type >::updateCoeffs().

Here is the call graph for this function:

◆ write()

void write ( Ostream os) const
virtual

Definition at line 112 of file freestreamVelocityFvPatchVectorField.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: