freestreamPressureFvPatchScalarField Class Reference

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

Inheritance diagram for freestreamPressureFvPatchScalarField:
Collaboration diagram for freestreamPressureFvPatchScalarField:

Public Member Functions

 TypeName ("freestreamPressure")
 Runtime type information. More...
 
 freestreamPressureFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &)
 Construct from patch, internal field and dictionary. More...
 
 freestreamPressureFvPatchScalarField (const freestreamPressureFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fieldMapper &)
 Construct by mapping given freestreamPressureFvPatchScalarField onto. More...
 
 freestreamPressureFvPatchScalarField (const freestreamPressureFvPatchScalarField &)=delete
 Disallow copy without setting internal field reference. More...
 
 freestreamPressureFvPatchScalarField (const freestreamPressureFvPatchScalarField &, const DimensionedField< scalar, volMesh > &)
 Copy constructor setting internal field reference. More...
 
virtual tmp< fvPatchScalarFieldclone (const DimensionedField< scalar, volMesh > &iF) const
 Construct and return a clone setting internal field reference. More...
 
const scalarFieldfreestreamValue () const
 
scalarFieldfreestreamValue ()
 
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 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
supersonic Switch for supersonic flow no false

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 98 of file freestreamPressureFvPatchScalarField.H.

Constructor & Destructor Documentation

◆ freestreamPressureFvPatchScalarField() [1/4]

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

Construct from patch, internal field and dictionary.

Definition at line 32 of file freestreamPressureFvPatchScalarField.C.

References dict, DimensionedField< Type, GeoMesh >::dimensions(), Foam::dimPressure, freestreamPressureFvPatchScalarField::freestreamValue(), fvPatchField< Type >::operator, fvPatchField< Type >::operator=(), p, and Foam::Zero.

Referenced by freestreamPressureFvPatchScalarField::clone().

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

◆ freestreamPressureFvPatchScalarField() [2/4]

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

Construct by mapping given freestreamPressureFvPatchScalarField onto.

a new patch

Definition at line 67 of file freestreamPressureFvPatchScalarField.C.

◆ freestreamPressureFvPatchScalarField() [3/4]

Disallow copy without setting internal field reference.

◆ freestreamPressureFvPatchScalarField() [4/4]

Copy constructor setting internal field reference.

Definition at line 82 of file freestreamPressureFvPatchScalarField.C.

Member Function Documentation

◆ TypeName()

TypeName ( "freestreamPressure"  )

Runtime type information.

◆ clone()

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

Construct and return a clone setting internal field reference.

Definition at line 151 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 165 of file freestreamPressureFvPatchScalarField.H.

Referenced by freestreamPressureFvPatchScalarField::freestreamPressureFvPatchScalarField().

Here is the caller graph for this function:

◆ freestreamValue() [2/2]

scalarField& freestreamValue ( )
inline

Definition at line 170 of file freestreamPressureFvPatchScalarField.H.

◆ updateCoeffs()

void updateCoeffs ( )
virtual

Update the coefficients associated with the patch field.

Definition at line 97 of file freestreamPressureFvPatchScalarField.C.

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

Here is the call graph for this function:

◆ write()

void write ( Ostream os) const
virtual

Write.

Definition at line 149 of file freestreamPressureFvPatchScalarField.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: