|
[Sponsors] |
[General] Programmable filter to compute surface average |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
December 16, 2018, 18:50 |
Programmable filter to compute surface average
|
#1 |
Member
Federico Agustín Caccia
Join Date: Jun 2015
Location: Buenos Aires, Argentina
Posts: 55
Rep Power: 11 |
Hi, I have a surface with field values, which is an output of an openfoam postprocessing (I have made it using a cutting plane on my geometry). I need to calculate the average field value on the surface and I don't know how to do it.
I was trying to do it using the programmable filter, but I couldn't. I have found some examples on how to use the tool here https://www.paraview.org/Wiki/Python...ammable_Filter, but I still don't know how to get the cell areas, and how to promediate the integral. Can somebody provide me a useful script to compute an average field? Thanks! |
|
December 17, 2018, 06:06 |
|
#2 |
Member
ssa
Join Date: Sep 2018
Posts: 93
Rep Power: 8 |
Load all your available time steps and then use temporal statistics filter. It will automatically calculate field averages.
|
|
December 17, 2018, 08:59 |
|
#3 |
Member
Federico Agustín Caccia
Join Date: Jun 2015
Location: Buenos Aires, Argentina
Posts: 55
Rep Power: 11 |
Hi, thanks for your answer. I applied a temporal statisctics filter, and now I have the new fields: u_average, p_average, etc. But when I select each of them, the render only display a new field, Perhaps is it calculating average inside each cell?
|
|
December 17, 2018, 18:38 |
|
#4 |
Senior Member
Mikko
Join Date: Jul 2014
Location: The Hague, The Netherlands
Posts: 243
Rep Power: 13 |
Hi,
You should look at the integrate variables filter to calculate an average value of a cutting plane. To script this, have a look at this thread. Best, Mikko |
|
Tags |
average field, openfoam, paraview, programmable filter |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Calculating average total pressure over a surface | Vinayak- | FLUENT | 2 | May 16, 2018 02:02 |
Near wall treatment in k-omega SST | Arnoldinho | OpenFOAM Running, Solving & CFD | 38 | March 8, 2017 14:48 |
How evaluate average value on a cicle surface | gigionaytor | FLUENT | 0 | September 20, 2016 16:43 |
[General] Surface Flow Filter | MCCourant | ParaView | 0 | August 3, 2012 05:31 |
How does FLUENT compute the average surface integral ? | Andre | FLUENT | 3 | December 21, 1999 11:40 |