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

[General] Programmable filter to compute surface average

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By ssa_cfd
  • 1 Post By Flowkersma

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 16, 2018, 18:50
Default Programmable filter to compute surface average
  #1
Member
 
fede32's Avatar
 
Federico Agustín Caccia
Join Date: Jun 2015
Location: Buenos Aires, Argentina
Posts: 55
Rep Power: 11
fede32 is on a distinguished road
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!
fede32 is offline   Reply With Quote

Old   December 17, 2018, 06:06
Default
  #2
Member
 
ssa
Join Date: Sep 2018
Posts: 93
Rep Power: 8
ssa_cfd is on a distinguished road
Load all your available time steps and then use temporal statistics filter. It will automatically calculate field averages.
fede32 likes this.
ssa_cfd is offline   Reply With Quote

Old   December 17, 2018, 08:59
Default
  #3
Member
 
fede32's Avatar
 
Federico Agustín Caccia
Join Date: Jun 2015
Location: Buenos Aires, Argentina
Posts: 55
Rep Power: 11
fede32 is on a distinguished road
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?
fede32 is offline   Reply With Quote

Old   December 17, 2018, 18:38
Default
  #4
Senior Member
 
Mikko
Join Date: Jul 2014
Location: The Hague, The Netherlands
Posts: 243
Rep Power: 13
Flowkersma is on a distinguished road
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
fede32 likes this.
Flowkersma is offline   Reply With Quote

Reply

Tags
average field, openfoam, paraview, programmable filter


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
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


All times are GMT -4. The time now is 18:24.