CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Visualization & Post-Processing Software > ParaView

[OpenFOAM] Average fields

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 15, 2008, 05:55
Default Average fields
  #1
jml
New Member
 
Jml
Join Date: Mar 2009
Posts: 23
Rep Power: 17
jml is on a distinguished road
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?
jml is offline   Reply With Quote

Old   December 15, 2008, 08:04
Default Hi Jml, Yup. You can use :
  #2
New Member
 
Luiz Fernando L. R. Silva
Join Date: Mar 2009
Location: Rio de Janeiro, RJ, Brazil
Posts: 10
Rep Power: 17
silva is on a distinguished road
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.
silva is offline   Reply With Quote

Old   December 15, 2008, 08:19
Default Jml, I meant that you can a
  #3
New Member
 
Luiz Fernando L. R. Silva
Join Date: Mar 2009
Location: Rio de Janeiro, RJ, Brazil
Posts: 10
Rep Power: 17
silva is on a distinguished road
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.
silva is offline   Reply With Quote

Old   December 15, 2008, 11:28
Default Can I choose the beginning and
  #4
jml
New Member
 
Jml
Join Date: Mar 2009
Posts: 23
Rep Power: 17
jml is on a distinguished road
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?
jml is offline   Reply With Quote

Old   December 15, 2008, 12:55
Default Hi Jml, you can use almost any
  #5
Member
 
Ville Tossavainen
Join Date: Mar 2009
Posts: 60
Rep Power: 17
villet is on a distinguished road
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.
villet 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
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


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