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 &)=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< fvPatchScalarField > | clone (const DimensionedField< scalar, volMesh > &iF) const |
Construct and return a clone setting internal field reference. More... | |
const scalarField & | freestreamValue () const |
scalarField & | freestreamValue () |
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 | |
supersonic | Switch for supersonic flow | no | false |
Example of the boundary condition specification:
<patchName> { type freestreamPressure; freestreamValue uniform 1e5; }
Definition at line 97 of file freestreamPressureFvPatchScalarField.H.
freestreamPressureFvPatchScalarField | ( | const fvPatch & | p, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Construct from patch and internal field.
Definition at line 34 of file freestreamPressureFvPatchScalarField.C.
Referenced by freestreamPressureFvPatchScalarField::clone(), and freestreamPressureFvPatchScalarField::freestreamPressureFvPatchScalarField().
freestreamPressureFvPatchScalarField | ( | const fvPatch & | p, |
const DimensionedField< scalar, volMesh > & | iF, | ||
const dictionary & | dict | ||
) |
Construct from patch, internal field and dictionary.
Definition at line 47 of file freestreamPressureFvPatchScalarField.C.
References dictionary::found(), freestreamPressureFvPatchScalarField::freestreamPressureFvPatchScalarField(), scalarField(), fvPatch::size(), and Foam::Zero.
freestreamPressureFvPatchScalarField | ( | const freestreamPressureFvPatchScalarField & | psf, |
const fvPatch & | p, | ||
const DimensionedField< scalar, volMesh > & | iF, | ||
const fvPatchFieldMapper & | mapper | ||
) |
Construct by mapping given freestreamPressureFvPatchScalarField onto.
a new patch
Definition at line 81 of file freestreamPressureFvPatchScalarField.C.
References freestreamPressureFvPatchScalarField::freestreamPressureFvPatchScalarField().
|
delete |
Disallow copy without setting internal field reference.
freestreamPressureFvPatchScalarField | ( | const freestreamPressureFvPatchScalarField & | psf, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Copy constructor setting internal field reference.
Definition at line 96 of file freestreamPressureFvPatchScalarField.C.
TypeName | ( | "freestreamPressure" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone setting internal field reference.
Definition at line 158 of file freestreamPressureFvPatchScalarField.H.
References freestreamPressureFvPatchScalarField::freestreamPressureFvPatchScalarField().
|
inline |
Definition at line 171 of file freestreamPressureFvPatchScalarField.H.
Referenced by freestreamPressureFvPatchScalarField::write().
|
inline |
Definition at line 176 of file freestreamPressureFvPatchScalarField.H.
References freestreamPressureFvPatchScalarField::updateCoeffs(), and freestreamPressureFvPatchScalarField::write().
|
virtual |
Update the coefficients associated with the patch field.
Definition at line 109 of file freestreamPressureFvPatchScalarField.C.
References forAll, Foam::mag(), magUp, and fvPatchField< Type >::updateCoeffs().
Referenced by freestreamPressureFvPatchScalarField::freestreamValue().
|
virtual |
Write.
Definition at line 161 of file freestreamPressureFvPatchScalarField.C.
References freestreamPressureFvPatchScalarField::freestreamValue(), Foam::makePatchTypeField(), fvPatchField< Type >::write(), and Foam::writeEntry().
Referenced by freestreamPressureFvPatchScalarField::freestreamValue().