Public Member Functions | List of all members
supersonicFreestreamFvPatchVectorField Class Reference

This boundary condition provides a supersonic free-stream condition. More...

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

Public Member Functions

 TypeName ("supersonicFreestream")
 
 supersonicFreestreamFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &)
 
 supersonicFreestreamFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &, const dictionary &)
 
 supersonicFreestreamFvPatchVectorField (const supersonicFreestreamFvPatchVectorField &, const fvPatch &, const DimensionedField< vector, volMesh > &, const fvPatchFieldMapper &)
 
 supersonicFreestreamFvPatchVectorField (const supersonicFreestreamFvPatchVectorField &)
 
virtual tmp< fvPatchVectorFieldclone () const
 
 supersonicFreestreamFvPatchVectorField (const supersonicFreestreamFvPatchVectorField &, const DimensionedField< vector, volMesh > &)
 
virtual tmp< fvPatchVectorFieldclone (const DimensionedField< vector, volMesh > &iF) const
 
const vectorUInf () const
 
vectorUInf ()
 
scalar pInf () const
 
scalar & pInf ()
 
scalar TInf () const
 
scalar & TInf ()
 
virtual void updateCoeffs ()
 
virtual void write (Ostream &) const
 

Detailed Description

This boundary condition provides a supersonic free-stream condition.

Usage
Property Description Required Default value
T Temperature field name no T
p Pressure field name no p
psi Compressibility field name no thermo:psi
UInf free-stream velocity yes
pInf free-stream pressure yes
TInf free-stream temperature yes
gamma heat capacity ratio (cp/Cv) yes

Example of the boundary condition specification:

    <patchName>
    {
        type            supersonicFreestream;
        UInf            500;
        pInf            1e4;
        TInf            265;
        gamma           1.4;
    }
Note
This boundary condition is ill-posed if the free-stream flow is normal to the boundary.
Source files

Definition at line 124 of file supersonicFreestreamFvPatchVectorField.H.

Constructor & Destructor Documentation

◆ supersonicFreestreamFvPatchVectorField() [1/5]

Definition at line 31 of file supersonicFreestreamFvPatchVectorField.C.

References Foam::Zero.

Referenced by supersonicFreestreamFvPatchVectorField::clone().

Here is the caller graph for this function:

◆ supersonicFreestreamFvPatchVectorField() [2/5]

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

Definition at line 53 of file supersonicFreestreamFvPatchVectorField.C.

References dict, Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, p, Foam::foamVersion::patch, and Foam::Zero.

Here is the call graph for this function:

◆ supersonicFreestreamFvPatchVectorField() [3/5]

Definition at line 100 of file supersonicFreestreamFvPatchVectorField.C.

◆ supersonicFreestreamFvPatchVectorField() [4/5]

Definition at line 120 of file supersonicFreestreamFvPatchVectorField.C.

◆ supersonicFreestreamFvPatchVectorField() [5/5]

Definition at line 137 of file supersonicFreestreamFvPatchVectorField.C.

Member Function Documentation

◆ TypeName()

TypeName ( "supersonicFreestream"  )

◆ clone() [1/2]

virtual tmp<fvPatchVectorField> clone ( ) const
inlinevirtual

Definition at line 192 of file supersonicFreestreamFvPatchVectorField.H.

References supersonicFreestreamFvPatchVectorField::supersonicFreestreamFvPatchVectorField().

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 209 of file supersonicFreestreamFvPatchVectorField.H.

References supersonicFreestreamFvPatchVectorField::supersonicFreestreamFvPatchVectorField().

Here is the call graph for this function:

◆ UInf() [1/2]

const vector& UInf ( ) const
inline

Definition at line 225 of file supersonicFreestreamFvPatchVectorField.H.

◆ UInf() [2/2]

vector& UInf ( )
inline

Definition at line 231 of file supersonicFreestreamFvPatchVectorField.H.

◆ pInf() [1/2]

scalar pInf ( ) const
inline

Definition at line 237 of file supersonicFreestreamFvPatchVectorField.H.

◆ pInf() [2/2]

scalar& pInf ( )
inline

Definition at line 243 of file supersonicFreestreamFvPatchVectorField.H.

◆ TInf() [1/2]

scalar TInf ( ) const
inline

Definition at line 249 of file supersonicFreestreamFvPatchVectorField.H.

◆ TInf() [2/2]

scalar& TInf ( )
inline

Definition at line 256 of file supersonicFreestreamFvPatchVectorField.H.

◆ updateCoeffs()

void updateCoeffs ( )
virtual

◆ write()

void write ( Ostream os) const
virtual

Definition at line 291 of file supersonicFreestreamFvPatchVectorField.C.

References os(), fvPatchField::write(), Ostream::writeEntry(), and Ostream::writeEntryIfDifferent().

Here is the call graph for this function:

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