mirror of
https://github.com/OpenFOAM/OpenFOAM-6.git
synced 2025-12-08 06:57:46 +00:00
prghPressureFvPatchScalarField: Updated documentation
Corrected rho name specification. Resolves bug-report http://openfoam.org/mantisbt/view.php?id=1956
This commit is contained in:
@ -58,7 +58,7 @@ prghTotalPressureFvPatchScalarField
|
|||||||
fixedValueFvPatchScalarField(p, iF),
|
fixedValueFvPatchScalarField(p, iF),
|
||||||
UName_(dict.lookupOrDefault<word>("U", "U")),
|
UName_(dict.lookupOrDefault<word>("U", "U")),
|
||||||
phiName_(dict.lookupOrDefault<word>("phi", "phi")),
|
phiName_(dict.lookupOrDefault<word>("phi", "phi")),
|
||||||
rhoName_(dict.lookupOrDefault<word>("rhoName", "rho")),
|
rhoName_(dict.lookupOrDefault<word>("rho", "rho")),
|
||||||
p0_("p0", dict, p.size())
|
p0_("p0", dict, p.size())
|
||||||
{
|
{
|
||||||
if (dict.found("value"))
|
if (dict.found("value"))
|
||||||
|
|||||||
@ -33,12 +33,14 @@ Description
|
|||||||
|
|
||||||
\f[
|
\f[
|
||||||
p_rgh = p - \rho g (h - hRef)
|
p_rgh = p - \rho g (h - hRef)
|
||||||
|
p = p0 - 0.5 \rho |U|^2
|
||||||
\f]
|
\f]
|
||||||
|
|
||||||
where
|
where
|
||||||
\vartable
|
\vartable
|
||||||
p_rgh | Pseudo hydrostatic pressure [Pa]
|
p_rgh | Pseudo hydrostatic pressure [Pa]
|
||||||
p | Static pressure [Pa]
|
p | Static pressure [Pa]
|
||||||
|
p0 | Total pressure [Pa]
|
||||||
h | Height in the opposite direction to gravity
|
h | Height in the opposite direction to gravity
|
||||||
hRef | Reference height in the opposite direction to gravity
|
hRef | Reference height in the opposite direction to gravity
|
||||||
\rho | density
|
\rho | density
|
||||||
@ -49,8 +51,10 @@ Description
|
|||||||
|
|
||||||
\table
|
\table
|
||||||
Property | Description | Required | Default value
|
Property | Description | Required | Default value
|
||||||
rhoName | rho field name | no | rho
|
U | velocity field name | no | U
|
||||||
p | static pressure | yes |
|
phi | flux field name | no | phi
|
||||||
|
rho | density field name | no | rho
|
||||||
|
p0 | total pressure | yes |
|
||||||
\endtable
|
\endtable
|
||||||
|
|
||||||
Example of the boundary condition specification:
|
Example of the boundary condition specification:
|
||||||
@ -58,8 +62,10 @@ Description
|
|||||||
myPatch
|
myPatch
|
||||||
{
|
{
|
||||||
type prghTotalPressure;
|
type prghTotalPressure;
|
||||||
rhoName rho;
|
U U;
|
||||||
p uniform 0;
|
phi phi;
|
||||||
|
rho rho;
|
||||||
|
p0 uniform 0;
|
||||||
value uniform 0; // optional initial value
|
value uniform 0; // optional initial value
|
||||||
}
|
}
|
||||||
\endverbatim
|
\endverbatim
|
||||||
@ -180,18 +186,6 @@ public:
|
|||||||
|
|
||||||
// Access
|
// Access
|
||||||
|
|
||||||
//- Return the rhoName
|
|
||||||
const word& rhoName() const
|
|
||||||
{
|
|
||||||
return rhoName_;
|
|
||||||
}
|
|
||||||
|
|
||||||
//- Return reference to the rhoName to allow adjustment
|
|
||||||
word& rhoName()
|
|
||||||
{
|
|
||||||
return rhoName_;
|
|
||||||
}
|
|
||||||
|
|
||||||
//- Return the total pressure
|
//- Return the total pressure
|
||||||
const scalarField& p0() const
|
const scalarField& p0() const
|
||||||
{
|
{
|
||||||
|
|||||||
@ -31,7 +31,7 @@ boundaryField
|
|||||||
p0 $internalField;
|
p0 $internalField;
|
||||||
U U.air;
|
U U.air;
|
||||||
phi phi.air;
|
phi phi.air;
|
||||||
rho rho.air;
|
rho thermo:rho.air;
|
||||||
value $internalField;
|
value $internalField;
|
||||||
}
|
}
|
||||||
walls
|
walls
|
||||||
|
|||||||
Reference in New Issue
Block a user