Public Member Functions | List of all members
freestreamPressureFvPatchScalarField Class Reference

This boundary condition provides a free-stream condition for pressure. It is a zero-gradient condition that constrains the flux across the patch based on the free-stream velocity. More...

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

Public Member Functions

 TypeName ("freestreamPressure")
 Runtime type information. More...
 
 freestreamPressureFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &)
 Construct from patch and internal field. 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 fvPatchFieldMapper &)
 Construct by mapping given freestreamPressureFvPatchScalarField onto. More...
 
 freestreamPressureFvPatchScalarField (const freestreamPressureFvPatchScalarField &)
 Construct as copy. More...
 
virtual tmp< fvPatchScalarFieldclone () const
 Construct and return a clone. More...
 
 freestreamPressureFvPatchScalarField (const freestreamPressureFvPatchScalarField &, const DimensionedField< scalar, volMesh > &)
 Construct as copy setting internal field reference. More...
 
virtual tmp< fvPatchScalarFieldclone (const DimensionedField< scalar, volMesh > &iF) const
 Construct and return a clone setting internal field reference. More...
 
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 a zero-gradient condition that constrains the flux across the patch based on the free-stream velocity.

Usage
Property Description Required Default value
U velocity field name no U
phi flux field name no phi
rho density field name no none

Example of the boundary condition specification:

    <patchName>
    {
        type            freestreamPressure;
    }
Note
This condition is designed to operate with a freestream velocity condition
See also
Foam::zeroGradientFvPatchField Foam::freestreamFvPatchField
Source files

Definition at line 97 of file freestreamPressureFvPatchScalarField.H.

Constructor & Destructor Documentation

◆ freestreamPressureFvPatchScalarField() [1/5]

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

Construct from patch and internal field.

Definition at line 37 of file freestreamPressureFvPatchScalarField.C.

Referenced by freestreamPressureFvPatchScalarField::clone(), and freestreamPressureFvPatchScalarField::freestreamPressureFvPatchScalarField().

Here is the caller graph for this function:

◆ freestreamPressureFvPatchScalarField() [2/5]

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

Construct from patch, internal field and dictionary.

Definition at line 51 of file freestreamPressureFvPatchScalarField.C.

References freestreamPressureFvPatchScalarField::freestreamPressureFvPatchScalarField().

Here is the call graph for this function:

◆ freestreamPressureFvPatchScalarField() [3/5]

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

Construct by mapping given freestreamPressureFvPatchScalarField onto.

a new patch

Definition at line 66 of file freestreamPressureFvPatchScalarField.C.

References freestreamPressureFvPatchScalarField::freestreamPressureFvPatchScalarField().

Here is the call graph for this function:

◆ freestreamPressureFvPatchScalarField() [4/5]

Construct as copy.

Definition at line 82 of file freestreamPressureFvPatchScalarField.C.

References freestreamPressureFvPatchScalarField::freestreamPressureFvPatchScalarField().

Here is the call graph for this function:

◆ freestreamPressureFvPatchScalarField() [5/5]

Construct as copy setting internal field reference.

Definition at line 95 of file freestreamPressureFvPatchScalarField.C.

Member Function Documentation

◆ TypeName()

TypeName ( "freestreamPressure"  )

Runtime type information.

◆ clone() [1/2]

virtual tmp<fvPatchScalarField> clone ( ) const
inlinevirtual

Construct and return a clone.

Definition at line 154 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

Construct and return a clone setting internal field reference.

Definition at line 171 of file freestreamPressureFvPatchScalarField.H.

References freestreamPressureFvPatchScalarField::freestreamPressureFvPatchScalarField(), freestreamPressureFvPatchScalarField::updateCoeffs(), and freestreamPressureFvPatchScalarField::write().

Here is the call graph for this function:

◆ updateCoeffs()

void updateCoeffs ( )
virtual

Update the coefficients associated with the patch field.

Definition at line 109 of file freestreamPressureFvPatchScalarField.C.

References Foam::dimArea, Foam::dimDensity, DimensionedField< Type, GeoMesh >::dimensions(), Foam::dimVelocity, Foam::exit(), Foam::FatalError, FatalErrorInFunction, and phi.

Referenced by freestreamPressureFvPatchScalarField::clone().

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

◆ write()

void write ( Ostream os) const
virtual

Write.

Definition at line 153 of file freestreamPressureFvPatchScalarField.C.

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

Referenced by freestreamPressureFvPatchScalarField::clone().

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

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