Static pressure boundary condition. More...
Public Member Functions | |
TypeName ("pressure") | |
Runtime type information. More... | |
pressureFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &) | |
Construct from patch and internal field. More... | |
pressureFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &) | |
Construct from patch, internal field and dictionary. More... | |
pressureFvPatchScalarField (const pressureFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &) | |
Construct by mapping given. More... | |
pressureFvPatchScalarField (const pressureFvPatchScalarField &)=delete | |
Disallow copy without setting internal field reference. More... | |
pressureFvPatchScalarField (const pressureFvPatchScalarField &, 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 & | p () const |
Return the static pressure. More... | |
scalarField & | p () |
Return reference to the static pressure to allow adjustment. More... | |
virtual void | autoMap (const fvPatchFieldMapper &) |
Map (and resize as needed) from self given a mapping object. More... | |
virtual void | rmap (const fvPatchScalarField &, const labelList &) |
Reverse map the given fvPatchField onto this fvPatchField. More... | |
virtual void | updateCoeffs () |
Update the coefficients associated with the patch field. More... | |
virtual void | write (Ostream &) const |
Write. More... | |
Protected Attributes | |
scalarField | p_ |
Static pressure. More... | |
Static pressure boundary condition.
Used as the base-class for static pressure boundary conditions force alternative pressure variables, e.g. p_rgh.
Property | Description | Required | Default value |
---|---|---|---|
p | static pressure | yes |
Example of the boundary condition specification:
<patchName> { type pressure; p uniform 0; value uniform 0; // optional initial value }
Definition at line 81 of file pressureFvPatchScalarField.H.
pressureFvPatchScalarField | ( | const fvPatch & | p, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Construct from patch and internal field.
Definition at line 35 of file pressureFvPatchScalarField.C.
Referenced by pressureFvPatchScalarField::clone(), and pressureFvPatchScalarField::pressureFvPatchScalarField().
pressureFvPatchScalarField | ( | const fvPatch & | p, |
const DimensionedField< scalar, volMesh > & | iF, | ||
const dictionary & | dict | ||
) |
Construct from patch, internal field and dictionary.
Definition at line 46 of file pressureFvPatchScalarField.C.
References dictionary::found(), pressureFvPatchScalarField::pressureFvPatchScalarField(), scalarField(), and fvPatch::size().
pressureFvPatchScalarField | ( | const pressureFvPatchScalarField & | ptf, |
const fvPatch & | p, | ||
const DimensionedField< scalar, volMesh > & | iF, | ||
const fvPatchFieldMapper & | mapper | ||
) |
Construct by mapping given.
pressureFvPatchScalarField onto a new patch
Definition at line 70 of file pressureFvPatchScalarField.C.
References pressureFvPatchScalarField::pressureFvPatchScalarField().
|
delete |
Disallow copy without setting internal field reference.
pressureFvPatchScalarField | ( | const pressureFvPatchScalarField & | ptf, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Copy constructor setting internal field reference.
Definition at line 83 of file pressureFvPatchScalarField.C.
References pressureFvPatchScalarField::autoMap().
TypeName | ( | "pressure" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone setting internal field reference.
Definition at line 139 of file pressureFvPatchScalarField.H.
References pressureFvPatchScalarField::pressureFvPatchScalarField().
|
inline |
Return the static pressure.
Definition at line 155 of file pressureFvPatchScalarField.H.
References pressureFvPatchScalarField::p_.
|
inline |
Return reference to the static pressure to allow adjustment.
Definition at line 161 of file pressureFvPatchScalarField.H.
References pressureFvPatchScalarField::autoMap(), pressureFvPatchScalarField::p_, pressureFvPatchScalarField::rmap(), pressureFvPatchScalarField::updateCoeffs(), and pressureFvPatchScalarField::write().
|
virtual |
Map (and resize as needed) from self given a mapping object.
Used to update fields following mesh topology change
Definition at line 96 of file pressureFvPatchScalarField.C.
References pressureFvPatchScalarField::rmap().
Referenced by pressureFvPatchScalarField::p(), and pressureFvPatchScalarField::pressureFvPatchScalarField().
|
virtual |
Reverse map the given fvPatchField onto this fvPatchField.
Used to reconstruct fields
Definition at line 106 of file pressureFvPatchScalarField.C.
References pressureFvPatchScalarField::p_, and pressureFvPatchScalarField::rmap().
Referenced by pressureFvPatchScalarField::autoMap(), pressureFvPatchScalarField::p(), and pressureFvPatchScalarField::rmap().
|
virtual |
Update the coefficients associated with the patch field.
Definition at line 120 of file pressureFvPatchScalarField.C.
References Foam::operator==(), and pressureFvPatchScalarField::p_.
Referenced by pressureFvPatchScalarField::p().
|
virtual |
Write.
Definition at line 133 of file pressureFvPatchScalarField.C.
References Foam::makePatchTypeField(), pressureFvPatchScalarField::p_, fvPatchField< Type >::write(), and Foam::writeEntry().
Referenced by pressureFvPatchScalarField::p().
|
protected |
Static pressure.
Definition at line 91 of file pressureFvPatchScalarField.H.
Referenced by pressureFvPatchScalarField::p(), pressureFvPatchScalarField::rmap(), pressureFvPatchScalarField::updateCoeffs(), and pressureFvPatchScalarField::write().