From ba50e560aaa287c465ef77afc38d6f5f98b257f3 Mon Sep 17 00:00:00 2001 From: Henry Weller Date: Sun, 16 Jul 2017 22:59:30 +0100 Subject: [PATCH] flowRateInletVelocity, flowRateOutletVelocity BCs: Updated docs --- .../flowRateInletVelocityFvPatchVectorField.H | 3 ++- .../flowRateOutletVelocityFvPatchVectorField.C | 2 +- .../flowRateOutletVelocityFvPatchVectorField.H | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/finiteVolume/fields/fvPatchFields/derived/flowRateInletVelocity/flowRateInletVelocityFvPatchVectorField.H b/src/finiteVolume/fields/fvPatchFields/derived/flowRateInletVelocity/flowRateInletVelocityFvPatchVectorField.H index 71e15694fb..62c08dd7ca 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/flowRateInletVelocity/flowRateInletVelocityFvPatchVectorField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/flowRateInletVelocity/flowRateInletVelocityFvPatchVectorField.H @@ -47,6 +47,7 @@ Usage Property | Description | Required | Default value massFlowRate | mass flow rate [kg/s] | no | volumetricFlowRate | volumetric flow rate [m3/s]| no | + rho | density field name | no | rho rhoInlet | inlet density | no | extrapolateProfile | Extrapolate velocity profile | no | false \endtable @@ -63,7 +64,7 @@ Usage \endverbatim Example of the boundary condition specification for a mass flow rate: - \verbatim + \verbatim { type flowRateInletVelocity; diff --git a/src/finiteVolume/fields/fvPatchFields/derived/flowRateOutletVelocity/flowRateOutletVelocityFvPatchVectorField.C b/src/finiteVolume/fields/fvPatchFields/derived/flowRateOutletVelocity/flowRateOutletVelocityFvPatchVectorField.C index df9dbaad81..ffc0c63e46 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/flowRateOutletVelocity/flowRateOutletVelocityFvPatchVectorField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/flowRateOutletVelocity/flowRateOutletVelocityFvPatchVectorField.C @@ -148,7 +148,7 @@ void Foam::flowRateOutletVelocityFvPatchVectorField::updateValues { const scalar t = db().time().timeOutputValue(); - const vectorField n = patch().nf(); + const vectorField n(patch().nf()); // Extrapolate patch velocity vectorField Up(this->patchInternalField()); diff --git a/src/finiteVolume/fields/fvPatchFields/derived/flowRateOutletVelocity/flowRateOutletVelocityFvPatchVectorField.H b/src/finiteVolume/fields/fvPatchFields/derived/flowRateOutletVelocity/flowRateOutletVelocityFvPatchVectorField.H index be2f730d9b..9810326b6f 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/flowRateOutletVelocity/flowRateOutletVelocityFvPatchVectorField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/flowRateOutletVelocity/flowRateOutletVelocityFvPatchVectorField.H @@ -46,7 +46,8 @@ Usage Property | Description | Required | Default value massFlowRate | mass flow rate [kg/s] | no | volumetricFlowRate | volumetric flow rate [m^3/s]| no | - rhoOutlet | outlet density | no | + rho | density field name | no | rho + rhoOutlet | outlet density | no | \endtable Example of the boundary condition specification for a volumetric flow rate: