CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Paraview & paraFoam

Average fields

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

Reply
 
LinkBack Thread Tools Display Modes
Old   December 15, 2008, 05:55
Default Hello,I want to calculate the
  #1
jml
New Member
 
Jml
Join Date: Mar 2009
Posts: 23
Rep Power: 9
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: 9
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: 9
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: 9
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
Location: Helsinki, Finland
Posts: 60
Rep Power: 9
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
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mean Velocity Fields Stephen Smyth FLUENT 2 May 28, 2008 05:08
Array of fields r2d2 OpenFOAM Running, Solving & CFD 11 January 30, 2008 13:40
RANS from time average -- How about space average? TT Main CFD Forum 1 April 11, 2006 14:38
Mapping fields hsieh OpenFOAM Pre-Processing 3 September 14, 2005 19:56
Temperature fields Fernando Lopez Parra FLUENT 1 September 28, 2003 08:15


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