This boundary condition provides a total pressure condition. Four variants are possible: More...


Public Member Functions | |
| TypeName ("totalPressure") | |
| Runtime type information. More... | |
| totalPressureFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &) | |
| Construct from patch and internal field. More... | |
| totalPressureFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &) | |
| Construct from patch, internal field and dictionary. More... | |
| totalPressureFvPatchScalarField (const this_bctype &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &) | |
| Construct by mapping onto a new patch. More... | |
| totalPressureFvPatchScalarField (const this_bctype &, const DimensionedField< scalar, volMesh > &) | |
| Construct as copy setting internal field reference. More... | |
| totalPressureFvPatchScalarField (const this_bctype &)=delete | |
| No copy without an internal field. More... | |
| virtual tmp< fvPatchField< scalar > > | clone (const DimensionedField< scalar, volMesh > &iF) const |
| Clone with an internal field reference. More... | |
| const word & | UName () const |
| Return the name of the velocity field. More... | |
| word & | UName () |
| Return reference to the name of the velocity field. More... | |
| const word & | phiName () const |
| Return the name of the flux field. More... | |
| word & | phiName () |
| Return reference to the name of the flux field. More... | |
| const word & | rhoName () const |
| Return the name of the density field. More... | |
| word & | rhoName () |
| Return reference to the name of the density field. More... | |
| const word & | psiName () const |
| Return the name of the compressibility field. More... | |
| word & | psiName () |
| Return reference to the name of the compressibility field. More... | |
| scalar | gamma () const |
| Return the heat capacity ratio. More... | |
| scalar & | gamma () |
| Return reference to the heat capacity ratio to allow adjustment. More... | |
| const scalarField & | p0 () const |
| Return the total pressure. More... | |
| scalarField & | p0 () |
| Return reference to the total 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 (const scalarField &p0p, const vectorField &Up) |
| Update the coefficients associated with the patch field using the given patch total pressure and velocity fields. 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 total pressure condition. Four variants are possible:
where
| = | incompressible pressure at patch [m2/s2] |
| = | incompressible total pressure [m2/s2] |
| = | velocity |
2. compressible subsonic:
where
| = | pressure at patch [Pa] |
| = | total pressure [Pa] |
| = | density [kg/m3] |
| = | velocity |
3. compressible transonic (
):
where
| = | pressure at patch [Pa] |
| = | total pressure [Pa] |
| = | coefficient given by |
4. compressible supersonic (
):
where
| = | pressure at patch [Pa] |
| = | total pressure [Pa] |
| = | ratio of specific heats (Cp/Cv) |
| = | compressibility [m2/s2] |
| = | coefficient given by |
The modes of operation are set by the dimensions of the pressure field to which this boundary condition is applied, the psi entry and the value of gamma:
| Mode | dimensions | psi | gamma |
|---|---|---|---|
incompressible subsonic | p/rho | ||
compressible subsonic | p | none | |
compressible transonic | p | psi | 1 |
compressible supersonic | p | psi | > 1 |
| Property | Description | Required | Default value |
|---|---|---|---|
U | Velocity field name | no | U |
phi | Flux field name | no | phi |
rho | Density field name | no | rho |
psi | Compressibility field name | no | none |
gamma | (Cp/Cv) | no | 1 |
p0 | Total pressure | yes |
Example of the boundary condition specification:
<patchName>
{
type totalPressure;
p0 uniform 1e5;
}Definition at line 252 of file totalPressureFvPatchScalarField.H.
| totalPressureFvPatchScalarField | ( | const fvPatch & | , |
| const DimensionedField< scalar, volMesh > & | |||
| ) |
Construct from patch and internal field.
| totalPressureFvPatchScalarField | ( | const fvPatch & | , |
| const DimensionedField< scalar, volMesh > & | , | ||
| const dictionary & | |||
| ) |
Construct from patch, internal field and dictionary.
| totalPressureFvPatchScalarField | ( | const this_bctype & | , |
| const fvPatch & | , | ||
| const DimensionedField< scalar, volMesh > & | , | ||
| const fvPatchFieldMapper & | |||
| ) |
Construct by mapping onto a new patch.
| totalPressureFvPatchScalarField | ( | const this_bctype & | , |
| const DimensionedField< scalar, volMesh > & | |||
| ) |
Construct as copy setting internal field reference.
|
delete |
No copy without an internal field.
| TypeName | ( | "totalPressure" | ) |
Runtime type information.
|
inlinevirtual |
Clone with an internal field reference.
Reimplemented in fanPressureFvPatchScalarField, and rotatingTotalPressureFvPatchScalarField.
Definition at line 351 of file totalPressureFvPatchScalarField.H.
References fvPatchField< Type >::Clone().

|
inline |
Return the name of the velocity field.
Definition at line 366 of file totalPressureFvPatchScalarField.H.
|
inline |
Return reference to the name of the velocity field.
to allow adjustment
Definition at line 376 of file totalPressureFvPatchScalarField.H.
|
inline |
Return the name of the flux field.
Definition at line 384 of file totalPressureFvPatchScalarField.H.
|
inline |
Return reference to the name of the flux field.
to allow adjustment
Definition at line 394 of file totalPressureFvPatchScalarField.H.
|
inline |
Return the name of the density field.
Definition at line 402 of file totalPressureFvPatchScalarField.H.
|
inline |
Return reference to the name of the density field.
to allow adjustment
Definition at line 412 of file totalPressureFvPatchScalarField.H.
|
inline |
Return the name of the compressibility field.
Definition at line 420 of file totalPressureFvPatchScalarField.H.
|
inline |
Return reference to the name of the compressibility field.
to allow adjustment
Definition at line 430 of file totalPressureFvPatchScalarField.H.
|
inline |
Return the heat capacity ratio.
Definition at line 438 of file totalPressureFvPatchScalarField.H.
|
inline |
Return reference to the heat capacity ratio to allow adjustment.
Definition at line 446 of file totalPressureFvPatchScalarField.H.
|
inline |
Return the total pressure.
Definition at line 454 of file totalPressureFvPatchScalarField.H.
|
inline |
Return reference to the total pressure to allow adjustment.
Definition at line 462 of file totalPressureFvPatchScalarField.H.
|
virtual |
Map (and resize as needed) from self given a mapping object.
|
virtual |
Reverse map the given fvPatchField onto this fvPatchField.
|
virtual |
Update the coefficients associated with the patch field using the given patch total pressure and velocity fields.
|
virtual |
Update the coefficients associated with the patch field.
Reimplemented in fanPressureFvPatchScalarField, and rotatingTotalPressureFvPatchScalarField.
|
virtual |
Write.
Reimplemented in fanPressureFvPatchScalarField, and rotatingTotalPressureFvPatchScalarField.