diff --git a/etc/caseDicts/postProcessing/flowRate/flowRateFaceZone b/etc/caseDicts/postProcessing/flowRate/flowRateFaceZone new file mode 100644 index 000000000..ed81df016 --- /dev/null +++ b/etc/caseDicts/postProcessing/flowRate/flowRateFaceZone @@ -0,0 +1,19 @@ +/*--------------------------------*- C++ -*----------------------------------*\ + ========= | + \\ / F ield | OpenFOAM: The Open Source CFD Toolbox + \\ / O peration | + \\ / A nd | Web: www.OpenFOAM.org + \\/ M anipulation | +------------------------------------------------------------------------------- +Description + Calculates the flow rate through a specified patch by summing the flux on + patch faces. For solvers where the flux is volumetric, the flow rate is + volumetric; where flux is mass flux, the flow rate is mass flow rate. + +\*---------------------------------------------------------------------------*/ + +name ; + +#includeEtc "caseDicts/postProcessing/flowRate/flowRateFaceZone.cfg" + +// ************************************************************************* // diff --git a/etc/caseDicts/postProcessing/flowRate/flowRateFaceZone.cfg b/etc/caseDicts/postProcessing/flowRate/flowRateFaceZone.cfg new file mode 100644 index 000000000..b68815887 --- /dev/null +++ b/etc/caseDicts/postProcessing/flowRate/flowRateFaceZone.cfg @@ -0,0 +1,15 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: dev | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ + +#includeEtc "caseDicts/postProcessing/surfaceFieldValue/faceZone.cfg" + +fields (); +orientedFields (phi); +operation sum; + +// ************************************************************************* // diff --git a/src/OpenFOAM/db/dictionary/functionEntries/includeFuncEntry/includeFuncEntry.H b/src/OpenFOAM/db/dictionary/functionEntries/includeFuncEntry/includeFuncEntry.H index b27175a56..8fbec509b 100644 --- a/src/OpenFOAM/db/dictionary/functionEntries/includeFuncEntry/includeFuncEntry.H +++ b/src/OpenFOAM/db/dictionary/functionEntries/includeFuncEntry/includeFuncEntry.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2016 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2016-2017 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -55,6 +55,16 @@ Description #includeFunc mag(p) \endverbatim + Other dictionary entries may also be specified using named arguments, for + example the \c name of the \c faceZone in the \c flowRateFaceZone \c + functionObject configuration set and the \c orientedFields entry which + defaults to \c phi may also be overridden as required, e.g. + + \verbatim + #includeFunc flowRateFaceZone(name=fZone1) + #includeFunc flowRateFaceZone(orientedFields=(phiAlpha),name=fZone1) + \endverbatim + See also Foam::functionObjectList