This boundary condition provides a total pressure condition. Four variants are possible: 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 & | p, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Definition at line 32 of file totalPressureFvPatchScalarField.C.
Referenced by totalPressureFvPatchScalarField::clone().
totalPressureFvPatchScalarField | ( | const fvPatch & | p, |
const DimensionedField< scalar, volMesh > & | iF, | ||
const dictionary & | dict | ||
) |
Definition at line 48 of file totalPressureFvPatchScalarField.C.
totalPressureFvPatchScalarField | ( | const totalPressureFvPatchScalarField & | ptf, |
const fvPatch & | p, | ||
const DimensionedField< scalar, volMesh > & | iF, | ||
const fvPatchFieldMapper & | mapper | ||
) |
Definition at line 77 of file totalPressureFvPatchScalarField.C.
totalPressureFvPatchScalarField | ( | const totalPressureFvPatchScalarField & | tppsf | ) |
Definition at line 95 of file totalPressureFvPatchScalarField.C.
totalPressureFvPatchScalarField | ( | const totalPressureFvPatchScalarField & | tppsf, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Definition at line 110 of file totalPressureFvPatchScalarField.C.
TypeName | ( | "totalPressure" | ) |
|
inlinevirtual |
Reimplemented in fanPressureFvPatchScalarField, and rotatingTotalPressureFvPatchScalarField.
Definition at line 318 of file totalPressureFvPatchScalarField.H.
References totalPressureFvPatchScalarField::totalPressureFvPatchScalarField().
|
inlinevirtual |
Reimplemented in fanPressureFvPatchScalarField, and rotatingTotalPressureFvPatchScalarField.
Definition at line 335 of file totalPressureFvPatchScalarField.H.
References totalPressureFvPatchScalarField::totalPressureFvPatchScalarField().
|
inline |
Definition at line 351 of file totalPressureFvPatchScalarField.H.
Referenced by rotatingTotalPressureFvPatchScalarField::updateCoeffs(), fanPressureFvPatchScalarField::updateCoeffs(), and totalPressureFvPatchScalarField::updateCoeffs().
|
inline |
Definition at line 358 of file totalPressureFvPatchScalarField.H.
|
inline |
Definition at line 364 of file totalPressureFvPatchScalarField.H.
Referenced by fanPressureFvPatchScalarField::updateCoeffs().
|
inline |
Definition at line 371 of file totalPressureFvPatchScalarField.H.
|
inline |
Definition at line 377 of file totalPressureFvPatchScalarField.H.
Referenced by fanPressureFvPatchScalarField::updateCoeffs().
|
inline |
Definition at line 384 of file totalPressureFvPatchScalarField.H.
|
inline |
Definition at line 390 of file totalPressureFvPatchScalarField.H.
|
inline |
Definition at line 397 of file totalPressureFvPatchScalarField.H.
|
inline |
Definition at line 403 of file totalPressureFvPatchScalarField.H.
|
inline |
Definition at line 409 of file totalPressureFvPatchScalarField.H.
|
inline |
Definition at line 415 of file totalPressureFvPatchScalarField.H.
Referenced by rotatingTotalPressureFvPatchScalarField::updateCoeffs(), fanPressureFvPatchScalarField::updateCoeffs(), and totalPressureFvPatchScalarField::updateCoeffs().
|
inline |
Definition at line 421 of file totalPressureFvPatchScalarField.H.
|
virtual |
Definition at line 128 of file totalPressureFvPatchScalarField.C.
|
virtual |
Definition at line 138 of file totalPressureFvPatchScalarField.C.
|
virtual |
Definition at line 153 of file totalPressureFvPatchScalarField.C.
References Foam::dimDensity, Foam::dimPressure, Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::magSqr(), Foam::nl, Foam::operator==(), Foam::foamVersion::patch, Foam::pos0(), Foam::pow(), and rho.
|
virtual |
Reimplemented in fanPressureFvPatchScalarField, and rotatingTotalPressureFvPatchScalarField.
Definition at line 229 of file totalPressureFvPatchScalarField.C.
References totalPressureFvPatchScalarField::p0(), Foam::foamVersion::patch, and totalPressureFvPatchScalarField::UName().
Referenced by rotatingTotalPressureFvPatchScalarField::updateCoeffs(), and fanPressureFvPatchScalarField::updateCoeffs().
|
virtual |
Reimplemented in fanPressureFvPatchScalarField, and rotatingTotalPressureFvPatchScalarField.
Definition at line 239 of file totalPressureFvPatchScalarField.C.
References os(), fvPatchField::write(), Ostream::writeEntry(), and Ostream::writeEntryIfDifferent().
Referenced by rotatingTotalPressureFvPatchScalarField::write(), and fanPressureFvPatchScalarField::write().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.