Loading...
Searching...
No Matches
freestreamVelocityFvPatchVectorField Class Reference

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

#include <freestreamVelocityFvPatchVectorField.H>

Inheritance diagram for freestreamVelocityFvPatchVectorField:
Collaboration diagram for freestreamVelocityFvPatchVectorField:

Public Member Functions

 TypeName ("freestreamVelocity")
 Runtime type information.
 freestreamVelocityFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &)
 Construct from patch and internal field.
 freestreamVelocityFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &, const dictionary &)
 Construct from patch, internal field and dictionary.
 freestreamVelocityFvPatchVectorField (const freestreamVelocityFvPatchVectorField &, const fvPatch &, const DimensionedField< vector, volMesh > &, const fvPatchFieldMapper &)
 Construct by mapping given freestreamVelocityFvPatchVectorField onto.
 freestreamVelocityFvPatchVectorField (const freestreamVelocityFvPatchVectorField &)
 Construct as copy.
 freestreamVelocityFvPatchVectorField (const freestreamVelocityFvPatchVectorField &, const DimensionedField< vector, volMesh > &)
 Construct as copy setting internal field reference.
virtual tmp< fvPatchField< vector > > clone () const
 Return a clone.
virtual tmp< fvPatchField< vector > > clone (const DimensionedField< vector, volMesh > &iF) const
 Clone with an internal field reference.
const vectorFieldfreestreamValue () const
 Same as refValue().
vectorFieldfreestreamValue ()
 Same as refValue().
virtual void updateCoeffs ()
 Update the coefficients associated with the patch field.
virtual void write (Ostream &) const
 Write.

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]

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

Construct from patch and internal field.

Definition at line 26 of file freestreamVelocityFvPatchVectorField.C.

References p.

Referenced by freestreamVelocityFvPatchVectorField(), freestreamVelocityFvPatchVectorField(), freestreamVelocityFvPatchVectorField(), and TypeName().

Here is the caller graph for this function:

◆ freestreamVelocityFvPatchVectorField() [2/5]

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

Construct from patch, internal field and dictionary.

Definition at line 36 of file freestreamVelocityFvPatchVectorField.C.

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

Here is the call graph for this function:

◆ freestreamVelocityFvPatchVectorField() [3/5]

freestreamVelocityFvPatchVectorField ( const freestreamVelocityFvPatchVectorField & ptf,
const fvPatch & p,
const DimensionedField< vector, volMesh > & iF,
const fvPatchFieldMapper & mapper )

Construct by mapping given freestreamVelocityFvPatchVectorField onto.

a new patch

Definition at line 57 of file freestreamVelocityFvPatchVectorField.C.

References freestreamVelocityFvPatchVectorField(), and p.

Here is the call graph for this function:

◆ freestreamVelocityFvPatchVectorField() [4/5]

freestreamVelocityFvPatchVectorField ( const freestreamVelocityFvPatchVectorField & wbppsf)

Construct as copy.

Definition at line 69 of file freestreamVelocityFvPatchVectorField.C.

References freestreamVelocityFvPatchVectorField().

Here is the call graph for this function:

◆ freestreamVelocityFvPatchVectorField() [5/5]

freestreamVelocityFvPatchVectorField ( const freestreamVelocityFvPatchVectorField & wbppsf,
const DimensionedField< vector, volMesh > & iF )

Construct as copy setting internal field reference.

Definition at line 78 of file freestreamVelocityFvPatchVectorField.C.

References freestreamVelocityFvPatchVectorField().

Here is the call graph for this function:

Member Function Documentation

◆ TypeName()

TypeName ( "freestreamVelocity" )

Runtime type information.

References freestreamVelocityFvPatchVectorField().

Here is the call graph for this function:

◆ clone() [1/2]

virtual tmp< fvPatchField< vector > > clone ( ) const
inlinevirtual

Return a clone.

Definition at line 153 of file freestreamVelocityFvPatchVectorField.H.

References fvPatchField< Type >::Clone().

Here is the call graph for this function:

◆ clone() [2/2]

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

Clone with an internal field reference.

Definition at line 161 of file freestreamVelocityFvPatchVectorField.H.

References fvPatchField< Type >::Clone().

Here is the call graph for this function:

◆ freestreamValue() [1/2]

const vectorField & freestreamValue ( ) const
inline

Same as refValue().

Definition at line 175 of file freestreamVelocityFvPatchVectorField.H.

Referenced by freestreamVelocityFvPatchVectorField(), and write().

Here is the caller graph for this function:

◆ freestreamValue() [2/2]

vectorField & freestreamValue ( )
inline

Same as refValue().

Definition at line 180 of file freestreamVelocityFvPatchVectorField.H.

◆ updateCoeffs()

void updateCoeffs ( )
virtual

Update the coefficients associated with the patch field.

Definition at line 90 of file freestreamVelocityFvPatchVectorField.C.

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

Here is the call graph for this function:

◆ write()

void write ( Ostream & os) const
virtual

Write.

Definition at line 105 of file freestreamVelocityFvPatchVectorField.C.

References freestreamValue(), os(), fvPatchField< Type >::write(), and fvPatchField< Type >::writeValueEntry().

Here is the call graph for this function:

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