|
[Sponsors] |
November 26, 2020, 12:24 |
conditionalAverage Function Object
|
#1 |
Senior Member
Join Date: Jul 2019
Posts: 148
Rep Power: 6 |
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 |
|
December 2, 2020, 09:23 |
|
#2 | |
New Member
Shijie Xu
Join Date: Feb 2019
Posts: 1
Rep Power: 0 |
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, [minmax-min)/nBins:max]. maxF 1; minF 0; averagedFields ( U C7H16 OH meanChemistryHRR ); } } Quote:
|
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to create a function object in OpenFoam that runs properly ? | mkhm | OpenFOAM Programming & Development | 1 | October 20, 2018 16:16 |
[snappyHexMesh] How to define to right point for locationInMesh | Mirage12 | OpenFOAM Meshing & Mesh Conversion | 7 | March 13, 2016 14:07 |
ParaView for OF-1.6-ext | Chrisi1984 | OpenFOAM Installation | 0 | December 31, 2010 06:42 |
Error with Wmake | skabilan | OpenFOAM Installation | 3 | July 28, 2009 00:35 |
Compilation errors in ThirdPartymallochoard | feng_w | OpenFOAM Installation | 1 | January 25, 2009 06:59 |