freestreamVelocityFvPatchVectorField Class Reference

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

Inheritance diagram for freestreamVelocityFvPatchVectorField:
Collaboration diagram for freestreamVelocityFvPatchVectorField:

Public Member Functions

 TypeName ("freestreamVelocity")
 Runtime type information. More...
 
 freestreamVelocityFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &, const dictionary &)
 Construct from patch, internal field and dictionary. More...
 
 freestreamVelocityFvPatchVectorField (const freestreamVelocityFvPatchVectorField &, const fvPatch &, const DimensionedField< vector, volMesh > &, const fvPatchFieldMapper &)
 Construct by mapping given freestreamVelocityFvPatchVectorField onto. More...
 
 freestreamVelocityFvPatchVectorField (const freestreamVelocityFvPatchVectorField &)=delete
 Disallow copy without setting internal field reference. More...
 
 freestreamVelocityFvPatchVectorField (const freestreamVelocityFvPatchVectorField &, const DimensionedField< vector, volMesh > &)
 Copy constructor setting internal field reference. More...
 
virtual tmp< fvPatchVectorFieldclone (const DimensionedField< vector, volMesh > &iF) const
 Construct and return a clone setting internal field reference. More...
 
const vectorFieldfreestreamValue () const
 
vectorFieldfreestreamValue ()
 
virtual void updateCoeffs ()
 Update the coefficients associated with the patch field. More...
 
virtual void write (Ostream &) const
 Write. More...
 

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

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

Construct from patch, internal field and dictionary.

Definition at line 31 of file freestreamVelocityFvPatchVectorField.C.

References dict, freestreamVelocityFvPatchVectorField::freestreamValue(), fvPatchField< Type >::operator, fvPatchField< Type >::operator=(), p, and Foam::Zero.

Referenced by freestreamVelocityFvPatchVectorField::clone().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ freestreamVelocityFvPatchVectorField() [2/4]

Construct by mapping given freestreamVelocityFvPatchVectorField onto.

a new patch

Definition at line 59 of file freestreamVelocityFvPatchVectorField.C.

◆ freestreamVelocityFvPatchVectorField() [3/4]

Disallow copy without setting internal field reference.

◆ freestreamVelocityFvPatchVectorField() [4/4]

Copy constructor setting internal field reference.

Definition at line 71 of file freestreamVelocityFvPatchVectorField.C.

Member Function Documentation

◆ TypeName()

TypeName ( "freestreamVelocity"  )

Runtime type information.

◆ clone()

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

Construct and return a clone setting internal field reference.

Reimplemented in MRFFreestreamVelocityFvPatchVectorField.

Definition at line 131 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 145 of file freestreamVelocityFvPatchVectorField.H.

Referenced by freestreamVelocityFvPatchVectorField::freestreamVelocityFvPatchVectorField().

Here is the caller graph for this function:

◆ freestreamValue() [2/2]

vectorField& freestreamValue ( )
inline

Definition at line 150 of file freestreamVelocityFvPatchVectorField.H.

◆ updateCoeffs()

void updateCoeffs ( )
virtual

Update the coefficients associated with the patch field.

Reimplemented in MRFFreestreamVelocityFvPatchVectorField.

Definition at line 83 of file freestreamVelocityFvPatchVectorField.C.

References forAll, Foam::mag(), magUp, and fvPatchField< Type >::updateCoeffs().

Referenced by MRFFreestreamVelocityFvPatchVectorField::updateCoeffs().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ write()

void write ( Ostream os) const
virtual

Write.

Reimplemented in MRFFreestreamVelocityFvPatchVectorField.

Definition at line 113 of file freestreamVelocityFvPatchVectorField.C.

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

Here is the call graph for this function:

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