mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: Added header documentation to pressureTools function object
This commit is contained in:
@ -24,29 +24,55 @@ License
|
|||||||
Class
|
Class
|
||||||
Foam::pressureTools
|
Foam::pressureTools
|
||||||
|
|
||||||
|
Group
|
||||||
|
grpUtilitiesFunctionObjects
|
||||||
|
|
||||||
Description
|
Description
|
||||||
This function object includes tools to manipulate the pressure into
|
This function object includes tools to manipulate the pressure into
|
||||||
different forms. These currently include:
|
different forms. These currently include:
|
||||||
|
|
||||||
- static pressure
|
- static pressure
|
||||||
|
\f[
|
||||||
p_s = rho*p_k
|
p_s = \rho p_k
|
||||||
|
\f]
|
||||||
- total pressure
|
- total pressure
|
||||||
|
\f[
|
||||||
p_T = pRef + p_s + 0.5 rho |U|^2
|
p_T = p_{ref} + p_s + 0.5 \rho |U|^2
|
||||||
|
\f]
|
||||||
- static pressure coefficient
|
- static pressure coefficient
|
||||||
|
\f[
|
||||||
Cp_s = p_s / (0.5 rho |U|^2)
|
Cp_s = \frac{p_s}{0.5 \rho |U|^2}
|
||||||
|
\f]
|
||||||
- total pressure coefficient
|
- total pressure coefficient
|
||||||
|
\f[
|
||||||
Cp_T = p_T / (0.5 rho |U|^2)
|
Cp_T = \frac{p_T}{0.5 \rho |U|^2}
|
||||||
|
\f]
|
||||||
|
|
||||||
The function object will operate on both kinematic (p_k) and static
|
The function object will operate on both kinematic (p_k) and static
|
||||||
pressure (p_s) fields, and the result is written as a volScalarField.
|
pressure (p_s) fields, and the result is written as a volScalarField.
|
||||||
|
|
||||||
|
Example of function object specification to calculate pressure coefficient:
|
||||||
|
\verbatim
|
||||||
|
pressureTools1
|
||||||
|
{
|
||||||
|
type pressureTools;
|
||||||
|
functionObjectLibs ("libutilityFunctionObjects.so");
|
||||||
|
...
|
||||||
|
calcTotal no;
|
||||||
|
calcCoeff yes;
|
||||||
|
}
|
||||||
|
\endverbatim
|
||||||
|
|
||||||
|
\heading Function object usage
|
||||||
|
\table
|
||||||
|
Property | Description | Required | Default value
|
||||||
|
type | type name: pressureTools| yes |
|
||||||
|
calcCoeff | Calculate pressure coefficient | yes |
|
||||||
|
calcTotal | Calculate total coefficient | yes |
|
||||||
|
rhoRef | Reference density for incompressible cases | no | 1
|
||||||
|
pRef | Reference pressure for total pressure |no| 0.0
|
||||||
|
\endtable
|
||||||
|
|
||||||
SourceFiles
|
SourceFiles
|
||||||
pressureTools.C
|
pressureTools.C
|
||||||
IOpressureTools.H
|
IOpressureTools.H
|
||||||
|
|||||||
Reference in New Issue
Block a user