ENH: Exposed weightField to all face/cell source function object operations

This commit is contained in:
andy
2012-02-01 17:32:08 +00:00
parent c603f1602b
commit 7135a403cd
6 changed files with 49 additions and 47 deletions

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -39,6 +39,7 @@ Description
source cellZone; // Type of cell source
sourceName c0;
operation volAverage;
weightField alpha1; // optional weight field
fields
(
p
@ -49,9 +50,9 @@ Description
where operation is one of:
- none
- sum
- average
- volAverage
- volIntegrate
- weightedAverage
- CoV (Coefficient of variation: standard deviation/mean)
SourceFiles
@ -103,9 +104,9 @@ public:
{
opNone,
opSum,
opAverage,
opVolAverage,
opVolIntegrate,
opWeightedAverage,
opMin,
opMax,
opCoV
@ -168,8 +169,7 @@ protected:
Type processValues
(
const Field<Type>& values,
const scalarField& V,
const scalarField& weightField
const scalarField& V
) const;
//- Output file header information