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/)
-   -   WeightedAverage for a specific cellZone region (https://www.cfd-online.com/Forums/openfoam-post-processing/61324-weightedaverage-specific-cellzone-region.html)

guido_adriaensen September 20, 2007 03:41

Hello, I would like to calc
 
Hello,

I would like to calculate the average of a certain parameter in a specific cellZone/region of the mesh. Using parameter.weightedAverage(mesh.V()).value() returns the average for the entire mesh, I would like to calculate it for a specified region or cellZone. I think it should be quite easy, but I don't get it to work...

thanks,
Guido

jiang_l February 22, 2009 04:04

Hi,everyone I have a simila
 
Hi,everyone

I have a similar problem: How to create an average over some region of space(an CV and its neighborhood)e.g. for smoothing or for numerical stability?

L.J.

marico August 18, 2009 08:59

Hello,

I've got the same problem: How can I calculate weighted average of variables p & T in a given cellSet (with or without ParaView)??? Help really needed!!

Thanks
Marco

roth August 19, 2009 09:48

calcMassFlow
 
Bernhard Gschaider wrote a handy routine that calculates mass flows through a given faceSet:

http://openfoamwiki.net/index.php/Contrib_calcMassFlow

Perhaps you could adapt the methodology to operate on cellSets?

Mike

henrik August 19, 2009 13:23

Dear all,

@sub-averages: Mike is right and there are also a few function objects in the vanilla 1.6 which do something similar. However, all of this needs coding.

@smoothing by averaging: You can use the cellCells addressing, but this will not paralelise easily. Better solve a relaxation equation (laplacian).

Henrik

marico August 21, 2009 04:05

Hi,

thanks for your replys! But the mentioned things seem to write out during run. My run needs 2 weeks so I'd like to post process the already written results... Is that possible?

Marco

roth August 21, 2009 09:19

Quote:

Originally Posted by marico (Post 227043)
Hi,

thanks for your replys! But the mentioned things seem to write out during run. My run needs 2 weeks so I'd like to post process the already written results... Is that possible?

Marco

calcMassFlow is a stand-alone utility that operates on your saved time directories.

Mike


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