|
[Sponsors] |
December 18, 2012, 10:52 |
Average value over entire domain
|
#1 |
Member
ri
Join Date: Oct 2012
Posts: 34
Rep Power: 13 |
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 15:07. |
|
December 19, 2012, 06:49 |
|
#2 |
Senior Member
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 21 |
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.
|
|
December 19, 2012, 08:36 |
|
#3 |
Member
ri
Join Date: Oct 2012
Posts: 34
Rep Power: 13 |
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. |
|
December 19, 2012, 08:41 |
|
#4 |
Senior Member
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 21 |
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
|
|
December 19, 2012, 09:14 |
|
#5 |
Member
ri
Join Date: Oct 2012
Posts: 34
Rep Power: 13 |
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. |
|
December 19, 2012, 10:26 |
|
#6 |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
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 |
|
December 19, 2012, 10:40 |
|
#7 |
Member
ri
Join Date: Oct 2012
Posts: 34
Rep Power: 13 |
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. |
|
December 19, 2012, 10:53 |
|
#8 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
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 |
||
|
|
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 |