From 5c6d420ca08b66726f4c01a4f6fa2976df525b56 Mon Sep 17 00:00:00 2001 From: Henry Weller <http://cfd.direct> Date: Thu, 17 Dec 2015 12:20:10 +0000 Subject: [PATCH] prghPressureFvPatchScalarField: Updated documentation Corrected rho name specification. Resolves bug-report http://openfoam.org/mantisbt/view.php?id=1956 --- .../prghTotalPressureFvPatchScalarField.C | 2 +- .../prghTotalPressureFvPatchScalarField.H | 26 +++++++------------ .../laminar/bubbleColumn/0/p_rgh | 2 +- 3 files changed, 12 insertions(+), 18 deletions(-) diff --git a/src/finiteVolume/fields/fvPatchFields/derived/prghTotalPressure/prghTotalPressureFvPatchScalarField.C b/src/finiteVolume/fields/fvPatchFields/derived/prghTotalPressure/prghTotalPressureFvPatchScalarField.C index 7b8789df448..21229f7d82f 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/prghTotalPressure/prghTotalPressureFvPatchScalarField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/prghTotalPressure/prghTotalPressureFvPatchScalarField.C @@ -58,7 +58,7 @@ prghTotalPressureFvPatchScalarField fixedValueFvPatchScalarField(p, iF), UName_(dict.lookupOrDefault<word>("U", "U")), phiName_(dict.lookupOrDefault<word>("phi", "phi")), - rhoName_(dict.lookupOrDefault<word>("rhoName", "rho")), + rhoName_(dict.lookupOrDefault<word>("rho", "rho")), p0_("p0", dict, p.size()) { if (dict.found("value")) diff --git a/src/finiteVolume/fields/fvPatchFields/derived/prghTotalPressure/prghTotalPressureFvPatchScalarField.H b/src/finiteVolume/fields/fvPatchFields/derived/prghTotalPressure/prghTotalPressureFvPatchScalarField.H index f809029261b..1723e20919a 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/prghTotalPressure/prghTotalPressureFvPatchScalarField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/prghTotalPressure/prghTotalPressureFvPatchScalarField.H @@ -33,12 +33,14 @@ Description \f[ p_rgh = p - \rho g (h - hRef) + p = p0 - 0.5 \rho |U|^2 \f] where \vartable p_rgh | Pseudo hydrostatic pressure [Pa] p | Static pressure [Pa] + p0 | Total pressure [Pa] h | Height in the opposite direction to gravity hRef | Reference height in the opposite direction to gravity \rho | density @@ -49,8 +51,10 @@ Description \table Property | Description | Required | Default value - rhoName | rho field name | no | rho - p | static pressure | yes | + U | velocity field name | no | U + phi | flux field name | no | phi + rho | density field name | no | rho + p0 | total pressure | yes | \endtable Example of the boundary condition specification: @@ -58,8 +62,10 @@ Description myPatch { type prghTotalPressure; - rhoName rho; - p uniform 0; + U U; + phi phi; + rho rho; + p0 uniform 0; value uniform 0; // optional initial value } \endverbatim @@ -180,18 +186,6 @@ public: // 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 const scalarField& p0() const { diff --git a/tutorials/multiphase/reactingMultiphaseEulerFoam/laminar/bubbleColumn/0/p_rgh b/tutorials/multiphase/reactingMultiphaseEulerFoam/laminar/bubbleColumn/0/p_rgh index d78578a4408..e675fc646ad 100644 --- a/tutorials/multiphase/reactingMultiphaseEulerFoam/laminar/bubbleColumn/0/p_rgh +++ b/tutorials/multiphase/reactingMultiphaseEulerFoam/laminar/bubbleColumn/0/p_rgh @@ -31,7 +31,7 @@ boundaryField p0 $internalField; U U.air; phi phi.air; - rho rho.air; + rho thermo:rho.air; value $internalField; } walls -- GitLab