This boundary condition provides a free-stream condition for pressure. More...
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... | |
freestreamPressureFvPatchScalarField (const freestreamPressureFvPatchScalarField &, const DimensionedField< scalar, volMesh > &) | |
Construct as copy setting internal field reference. More... | |
virtual tmp< fvPatchField< scalar > > | clone () const |
Return a clone. More... | |
virtual tmp< fvPatchField< scalar > > | clone (const DimensionedField< scalar, volMesh > &iF) const |
Clone with an internal field reference. More... | |
const scalarField & | freestreamValue () const |
Same as refValue() More... | |
scalarField & | freestreamValue () |
Same as refValue() More... | |
virtual void | updateCoeffs () |
Update the coefficients associated with the patch field. More... | |
virtual void | write (Ostream &) const |
Write. More... | |
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.
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; }
Definition at line 92 of file freestreamPressureFvPatchScalarField.H.
freestreamPressureFvPatchScalarField | ( | const fvPatch & | p, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Construct from patch and internal field.
Definition at line 30 of file freestreamPressureFvPatchScalarField.C.
freestreamPressureFvPatchScalarField | ( | const fvPatch & | p, |
const DimensionedField< scalar, volMesh > & | iF, | ||
const dictionary & | dict | ||
) |
Construct from patch, internal field and dictionary.
Definition at line 42 of file freestreamPressureFvPatchScalarField.C.
References dict, p, and Foam::Zero.
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 65 of file freestreamPressureFvPatchScalarField.C.
freestreamPressureFvPatchScalarField | ( | const freestreamPressureFvPatchScalarField & | wbppsf | ) |
Construct as copy.
Definition at line 79 of file freestreamPressureFvPatchScalarField.C.
freestreamPressureFvPatchScalarField | ( | const freestreamPressureFvPatchScalarField & | wbppsf, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Construct as copy setting internal field reference.
Definition at line 90 of file freestreamPressureFvPatchScalarField.C.
TypeName | ( | "freestreamPressure" | ) |
Runtime type information.
|
inlinevirtual |
Return a clone.
Definition at line 166 of file freestreamPressureFvPatchScalarField.H.
References fvPatchField< Type >::Clone().
|
inlinevirtual |
Clone with an internal field reference.
Definition at line 175 of file freestreamPressureFvPatchScalarField.H.
References fvPatchField< Type >::Clone().
|
inline |
Same as refValue()
Definition at line 188 of file freestreamPressureFvPatchScalarField.H.
|
inline |
Same as refValue()
Definition at line 193 of file freestreamPressureFvPatchScalarField.H.
|
virtual |
Update the coefficients associated with the patch field.
Definition at line 102 of file freestreamPressureFvPatchScalarField.C.
References Foam::mag(), Foam::foamVersion::patch, and fvPatchField< Type >::updateCoeffs().
|
virtual |
Write.
Definition at line 118 of file freestreamPressureFvPatchScalarField.C.
References os(), fvPatchField< Type >::write(), Ostream::writeEntryIfDifferent(), and fvPatchField< Type >::writeValueEntry().