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

Average value over entire domain

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

Reply
 
LinkBack Thread Tools Display Modes
Old   December 18, 2012, 11:52
Default Average value over entire domain
  #1
ris
Member
 
ri
Join Date: Oct 2012
Posts: 35
Rep Power: 5
ris is on a distinguished road
Hello,
I am currently processing a sprayFoam case and would like to plot the average values of some parameters over time.For example is there a way to plot the average heat release rate,dQ of the entire domain over time? I have been playing around with the temporal filters but can't seem to get anything going.

Many thanks,

ris

Last edited by ris; December 18, 2012 at 16:07.
ris is offline   Reply With Quote

Old   December 19, 2012, 07:49
Default
  #2
Senior Member
 
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 14
Bernhard is on a distinguished road
Can you be more specific? Are there variables you want to average over a patch, or over the domain? For specific timestep? Do you want to integrate in time as well? It is not completely clear to me at the moment.
Bernhard is offline   Reply With Quote

Old   December 19, 2012, 09:36
Default
  #3
ris
Member
 
ri
Join Date: Oct 2012
Posts: 35
Rep Power: 5
ris is on a distinguished road
Hello Bernhard,

I would like to plot for example the average domain temperature against time. The temperature value will be the average domain temperature at that time-step.
I have sort of found a way to do this by saving the cell data as .csv for each time step. I then have a script to read the values, sum them and divide them by the number of cells, which gives me an average domain temperature for each time step. Is there a way to do this in paraview?

Many thanks,

ris.
ris is offline   Reply With Quote

Old   December 19, 2012, 09:41
Default
  #4
Senior Member
 
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 14
Bernhard is on a distinguished road
I would highly encourage you to use functionObjects, such that you can computere it during runtime, and get the data-file right from the simulation. See for example: http://openfoamwiki.net/index.php/Co...unctionObjects
Bernhard is offline   Reply With Quote

Old   December 19, 2012, 10:14
Default
  #5
ris
Member
 
ri
Join Date: Oct 2012
Posts: 35
Rep Power: 5
ris is on a distinguished road
Yes, I came across that on one of the forums, thank you for the direct link. This will definitely save me time.

Many thanks,

ris.
ris is offline   Reply With Quote

Old   December 19, 2012, 11:26
Default
  #6
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,931
Rep Power: 41
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by ris View Post
Yes, I came across that on one of the forums, thank you for the direct link. This will definitely save me time.
I think there is also a fieldAverage in OpenFOAM but I think that is "only" time-Averaging. Anyway. If you're considering the simpleFunctionObjects you might go for swak4Foam (which the simpleFunctionObjects are now a part of) ("Come to the dark side, Luke")
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   December 19, 2012, 11:40
Default
  #7
ris
Member
 
ri
Join Date: Oct 2012
Posts: 35
Rep Power: 5
ris is on a distinguished road
Hello,
Yes, I installed swak4foam and implemented the simpleFunctionObjects, it is working very well.
Is there any way of implementing this/something similar after the simulation is completed? I have a number of cases which are complete and would like to process, without the need for rerunning them.

ris.
ris is offline   Reply With Quote

Old   December 19, 2012, 11:53
Default
  #8
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,931
Rep Power: 41
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by ris View Post
Hello,
Yes, I installed swak4foam and implemented the simpleFunctionObjects, it is working very well.
Is there any way of implementing this/something similar after the simulation is completed? I have a number of cases which are complete and would like to process, without the need for rerunning them.
There is a utility execFlowFunctionObjects in the standard-distro that executes functionObjects "after the fact".

swak4Foam has a separate utility funkyDoCalc that executes swak-expressions from a dictionary and prints the results

Both have their advantages, but both fail if the fields you need have not been written to disc
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider 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
calculation of additional variable in multiple domain cosine CFX 12 April 24, 2016 12:51
Vertical Axis Wind Turbine Rotating Domain Problems TWaung CFX 4 May 1, 2012 03:14
Average Temperature in Domain haka FLUENT 1 August 17, 2011 06:25
CFX domain comparison Kiat110616 CFX 4 April 3, 2011 22:43
Concentric tube heat exchanger (Air-Water) Young CFX 5 October 6, 2008 23:17


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