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...
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< fvPatchScalarField > | clone () const |
Construct and return a clone. More... | |
freestreamPressureFvPatchScalarField (const freestreamPressureFvPatchScalarField &, const DimensionedField< scalar, volMesh > &) | |
Construct as copy 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... | |
virtual void | updateCoeffs () |
Update the coefficients associated with the patch field. More... | |
Private Attributes | |
word | UName_ |
Name of the velocity field. More... | |
word | phiName_ |
Name of the flux transporting the field. More... | |
word | rhoName_ |
Name of the density field used to normalise the mass flux. More... | |
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.
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:
myPatch { type freestreamPressure; }
Definition at line 98 of file freestreamPressureFvPatchScalarField.H.
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().
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.
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.
freestreamPressureFvPatchScalarField | ( | const freestreamPressureFvPatchScalarField & | wbppsf | ) |
Construct as copy.
Definition at line 82 of file freestreamPressureFvPatchScalarField.C.
freestreamPressureFvPatchScalarField | ( | const freestreamPressureFvPatchScalarField & | wbppsf, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Construct as copy setting internal field reference.
Definition at line 95 of file freestreamPressureFvPatchScalarField.C.
TypeName | ( | "freestreamPressure" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone.
Definition at line 155 of file freestreamPressureFvPatchScalarField.H.
References freestreamPressureFvPatchScalarField::freestreamPressureFvPatchScalarField().
|
inlinevirtual |
Construct and return a clone setting internal field reference.
Definition at line 172 of file freestreamPressureFvPatchScalarField.H.
References freestreamPressureFvPatchScalarField::freestreamPressureFvPatchScalarField().
|
virtual |
Update the coefficients associated with the patch field.
Definition at line 109 of file freestreamPressureFvPatchScalarField.C.
References Foam::dimArea, Foam::dimDensity, dimensionedInternalField(), Foam::dimVelocity, Foam::exit(), Foam::FatalError, FatalErrorInFunction, phi, freestreamPressureFvPatchScalarField::phiName_, freestreamPressureFvPatchScalarField::rhoName_, and freestreamPressureFvPatchScalarField::UName_.
|
private |
Name of the velocity field.
Definition at line 105 of file freestreamPressureFvPatchScalarField.H.
Referenced by freestreamPressureFvPatchScalarField::updateCoeffs().
|
private |
Name of the flux transporting the field.
Definition at line 108 of file freestreamPressureFvPatchScalarField.H.
Referenced by freestreamPressureFvPatchScalarField::updateCoeffs().
|
private |
Name of the density field used to normalise the mass flux.
if neccessary
Definition at line 112 of file freestreamPressureFvPatchScalarField.H.
Referenced by freestreamPressureFvPatchScalarField::updateCoeffs().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.