CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Post-Processing

conditionalAverage Function Object

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 26, 2020, 13:24
Default conditionalAverage Function Object
  #1
Senior Member
 
Join Date: Jul 2019
Posts: 139
Rep Power: 3
Bodo1993 is on a distinguished road
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
Bodo1993 is offline   Reply With Quote

Old   December 2, 2020, 10:23
Default
  #2
New Member
 
Shijie Xu
Join Date: Feb 2019
Posts: 1
Rep Power: 0
Zmeng is on a distinguished road
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:
Originally Posted by Bodo1993 View Post
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 is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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 17:16
[snappyHexMesh] How to define to right point for locationInMesh Mirage12 OpenFOAM Meshing & Mesh Conversion 7 March 13, 2016 15:07
ParaView for OF-1.6-ext Chrisi1984 OpenFOAM Installation 0 December 31, 2010 07:42
Error with Wmake skabilan OpenFOAM Installation 3 July 28, 2009 01:35
Compilation errors in ThirdPartymallochoard feng_w OpenFOAM Installation 1 January 25, 2009 07:59


All times are GMT -4. The time now is 14:01.