Public Member Functions | List of all members
freestreamPressureFvPatchScalarField Class Reference

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

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

Public Member Functions

 TypeName ("freestreamPressure")
 
 freestreamPressureFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &)
 
 freestreamPressureFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &)
 
 freestreamPressureFvPatchScalarField (const freestreamPressureFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &)
 
 freestreamPressureFvPatchScalarField (const freestreamPressureFvPatchScalarField &)
 
virtual tmp< fvPatchScalarFieldclone () const
 
 freestreamPressureFvPatchScalarField (const freestreamPressureFvPatchScalarField &, const DimensionedField< scalar, volMesh > &)
 
virtual tmp< fvPatchScalarFieldclone (const DimensionedField< scalar, volMesh > &iF) const
 
const scalarFieldfreestreamValue () const
 
scalarFieldfreestreamValue ()
 
virtual void updateCoeffs ()
 
virtual void write (Ostream &) const
 

Detailed Description

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

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

Usage
Property Description Required Default value
U velocity field name no U
freestreamValue freestream pressure yes

Example of the boundary condition specification:

    <patchName>
    {
        type            freestreamPressure;
        freestreamValue uniform 1e5;
    }
Note
This condition is designed to operate with a freestreamVelocity condition
See also
Foam::mixedFvPatchField Foam::freestreamFvPatchField
Source files

Definition at line 92 of file freestreamPressureFvPatchScalarField.H.

Constructor & Destructor Documentation

◆ freestreamPressureFvPatchScalarField() [1/5]

freestreamPressureFvPatchScalarField ( const fvPatch p,
const DimensionedField< scalar, volMesh > &  iF 
)

Definition at line 30 of file freestreamPressureFvPatchScalarField.C.

Referenced by freestreamPressureFvPatchScalarField::clone().

Here is the caller graph for this function:

◆ freestreamPressureFvPatchScalarField() [2/5]

freestreamPressureFvPatchScalarField ( const fvPatch p,
const DimensionedField< scalar, volMesh > &  iF,
const dictionary dict 
)

Definition at line 42 of file freestreamPressureFvPatchScalarField.C.

References dict, p, and Foam::Zero.

◆ freestreamPressureFvPatchScalarField() [3/5]

freestreamPressureFvPatchScalarField ( const freestreamPressureFvPatchScalarField ptf,
const fvPatch p,
const DimensionedField< scalar, volMesh > &  iF,
const fvPatchFieldMapper mapper 
)

Definition at line 72 of file freestreamPressureFvPatchScalarField.C.

◆ freestreamPressureFvPatchScalarField() [4/5]

Definition at line 86 of file freestreamPressureFvPatchScalarField.C.

◆ freestreamPressureFvPatchScalarField() [5/5]

Definition at line 97 of file freestreamPressureFvPatchScalarField.C.

Member Function Documentation

◆ TypeName()

TypeName ( "freestreamPressure"  )

◆ clone() [1/2]

virtual tmp<fvPatchScalarField> clone ( ) const
inlinevirtual

Definition at line 142 of file freestreamPressureFvPatchScalarField.H.

References freestreamPressureFvPatchScalarField::freestreamPressureFvPatchScalarField().

Here is the call graph for this function:

◆ clone() [2/2]

virtual tmp<fvPatchScalarField> clone ( const DimensionedField< scalar, volMesh > &  iF) const
inlinevirtual

Definition at line 159 of file freestreamPressureFvPatchScalarField.H.

References freestreamPressureFvPatchScalarField::freestreamPressureFvPatchScalarField().

Here is the call graph for this function:

◆ freestreamValue() [1/2]

const scalarField& freestreamValue ( ) const
inline

Definition at line 172 of file freestreamPressureFvPatchScalarField.H.

◆ freestreamValue() [2/2]

scalarField& freestreamValue ( )
inline

Definition at line 177 of file freestreamPressureFvPatchScalarField.H.

◆ updateCoeffs()

void updateCoeffs ( )
virtual

Definition at line 109 of file freestreamPressureFvPatchScalarField.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 128 of file freestreamPressureFvPatchScalarField.C.

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

Here is the call graph for this function:

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