Skip to content
Snippets Groups Projects
Commit 5dd91c2a authored by andy's avatar andy Committed by Andrew Heather
Browse files

BUG: [cell|face]Source - updated CoV calculation

parent 63c16c6a
Branches
Tags
No related merge requests found
......@@ -132,7 +132,7 @@ Type Foam::fieldValues::cellSource::processValues
scalar mean = component(meanValue, d);
scalar& res = setComponent(result, d);
res = sqrt(sum(V*sqr(vals - mean))/(V.size()*sum(V)))/mean;
res = sqrt(sum(V*sqr(vals - mean))/sum(V))/mean;
}
break;
......
......@@ -236,9 +236,7 @@ Type Foam::fieldValues::faceSource::processSameTypeValues
scalar mean = component(meanValue, d);
scalar& res = setComponent(result, d);
res =
sqrt(sum(magSf*sqr(vals - mean))/(magSf.size()*sum(magSf)))
/mean;
res = sqrt(sum(magSf*sqr(vals - mean))/sum(magSf))/mean;
}
break;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment