CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Post-Processing (https://www.cfd-online.com/Forums/openfoam-post-processing/)
-   -   conditionalAverage Function Object (https://www.cfd-online.com/Forums/openfoam-post-processing/232014-conditionalaverage-function-object.html)

Bodo1993 November 26, 2020 13:24

conditionalAverage Function Object
 
Hi,
I am wondering if “conditionalAverage” function object does the weighted average along a line for a specified region of the computational domain?

The link of the function object is found here:
https://github.com/ZmengXu/conditionalAverage

Zmeng December 2, 2020 10:23

Hi Bodo,

you can specify the conditionalFields as 'x','y','z' or 'direction' to get a weighted average along a axis or a line.

functions
{
conditionalAverageTest
{
type conditionalAverage;
libs ("libconditionalAverage.so");
writeFormat raw;//ensight,gnuplot,jplot,raw,vtk,xmgr
conditionalFields (Z);// Must be volScalarField, can also be 'x','y','z','direction'.
weightedAveragedField rhoMeshV;//rhoMeshV;none;meshV
//directionVector (1 1 1);//If conditionalFields contains 'direction', a directionVector will be needed
nBins 20;//The number of sampled data, the conditionalFields are averaged devided into nBins, [min:(max-min)/nBins:max].
maxF 1;
minF 0;
averagedFields ( U C7H16 OH meanChemistryHRR );
}
}



Quote:

Originally Posted by Bodo1993 (Post 788977)
Hi,
I am wondering if “conditionalAverage” function object does the weighted average along a line for a specified region of the computational domain?

The link of the function object is found here:
https://github.com/ZmengXu/conditionalAverage



All times are GMT -4. The time now is 06:25.