|
[Sponsors] |
![]() |
![]() |
#1 |
New Member
Jml
Join Date: Mar 2009
Posts: 23
Rep Power: 17 ![]() |
Hello,I want to calculate the average of a field when I have finished my simulation. Does someone knows how it's possible to calculate it?
|
|
![]() |
![]() |
![]() |
![]() |
#2 |
New Member
Luiz Fernando L. R. Silva
Join Date: Mar 2009
Location: Rio de Janeiro, RJ, Brazil
Posts: 10
Rep Power: 17 ![]() |
Hi Jml,
Yup. You can use : yourField_.weightedAverage( mesh.V() ); You can find more info about this in the Doxygen documentation, as in: http://foam.sourceforge.net/doc/Doxy...8C-source.html Regards, Luiz F. |
|
![]() |
![]() |
![]() |
![]() |
#3 |
New Member
Luiz Fernando L. R. Silva
Join Date: Mar 2009
Location: Rio de Janeiro, RJ, Brazil
Posts: 10
Rep Power: 17 ![]() |
Jml,
I meant that you can also write an OpenFOAM code that reads your field and provides the average you want (and then see the results in Paraview). Still, I don't know if the newest version of Paraview can calculate the average of the field. But it is an option to use the OpenFOAM capabilities to do so. Best regards, Luiz F. |
|
![]() |
![]() |
![]() |
![]() |
#4 |
New Member
Jml
Join Date: Mar 2009
Posts: 23
Rep Power: 17 ![]() |
Can I choose the beginning and the end of the average with weightedAverage if I have finished the simulation? is there any way to do the same with paraview?
|
|
![]() |
![]() |
![]() |
![]() |
#5 |
Member
Ville Tossavainen
Join Date: Mar 2009
Posts: 60
Rep Power: 17 ![]() |
Hi Jml, you can use almost any postprocessing utility (=source code) as an example. With your own utility you can postprocess all time directories or just selected ones. I presume you mean a field average. Then your can just print out average values for selected variables.
The second option is to use "Integrate variables" in Paraview. Then divide the integrated values with volume which you can find on the information tab. |
|
![]() |
![]() |
![]() |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Utilities: post average turbulence fields and create turbulence fields for LES | Hanzo | OpenFOAM Running, Solving & CFD | 10 | August 18, 2017 19:33 |
Near wall treatment in k-omega SST | Arnoldinho | OpenFOAM Running, Solving & CFD | 38 | March 8, 2017 14:48 |
a reconstructPar issue | immortality | OpenFOAM Post-Processing | 8 | June 16, 2013 12:25 |
an odd(at least for me!) reconstructPar error on a field | immortality | OpenFOAM Running, Solving & CFD | 3 | June 3, 2013 23:36 |
Plot average of some fields | gizmo | OpenFOAM Post-Processing | 0 | June 2, 2009 05:14 |