functionObjects:surfaceFieldValue, volFieldValue: Added weightedSum and weighted[Area|Vol]Integrate

Patch contributed by Timo Niemi, VTT.
Resolves patch request https://bugs.openfoam.org/view.php?id=2452
This commit is contained in:
Henry Weller
2017-02-06 15:48:11 +00:00
parent 23809f7ae7
commit ddf1268e73
6 changed files with 72 additions and 24 deletions

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2017 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -116,6 +116,7 @@ Usage
\plaintable
none | no operation
sum | sum
weightedSum | weighted sum
sumMag | sum of component magnitudes
sumDirection | sum values which are positive in given direction
sumDirectionBalance | sum of balance of values in given direction
@ -124,6 +125,7 @@ Usage
areaAverage | area weighted average
weightedAreaAverage | weighted area average
areaIntegrate | area integral
weightedAreaIntegrate | weighted area integral
min | minimum
max | maximum
CoV | coefficient of variation: standard deviation/mean
@ -209,6 +211,7 @@ public:
{
opNone,
opSum,
opWeightedSum,
opSumMag,
opSumDirection,
opSumDirectionBalance,
@ -217,6 +220,7 @@ public:
opAreaAverage,
opWeightedAreaAverage,
opAreaIntegrate,
opWeightedAreaIntegrate,
opMin,
opMax,
opCoV,
@ -225,7 +229,7 @@ public:
};
//- Operation type names
static const NamedEnum<operationType, 15> operationTypeNames_;
static const NamedEnum<operationType, 17> operationTypeNames_;
private: