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

Problem with patchAverage

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

Like Tree2Likes
  • 1 Post By akidess
  • 1 Post By akidess

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 24, 2019, 09:42
Exclamation Problem with patchAverage
  #1
New Member
 
Join Date: Mar 2018
Posts: 10
Rep Power: 5
Mcesar is on a distinguished road
Hello everyone. I'm having some troubles with the patchAverage postProcess utility (postProcess -func 'patchAverage(name= patch,field)' -latestTime). I post process the same case in two different computers with different versions of OpenFOAM (v6 and v5.0) and get different results. Does anybody know if they change something? I attach the picture with the values.




Thanks all
Attached Images
File Type: jpg Screenshot from 2019-01-24 12-36-03.jpg (39.2 KB, 22 views)
Mcesar is offline   Reply With Quote

Old   January 24, 2019, 12:43
Default
  #2
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,379
Rep Power: 26
akidess will become famous soon enough
You are using two different functions - left is area weighted average, right is regular average.
Mcesar likes this.
__________________
*On twitter @akidTwit
*Spend as much time formulating your questions as you expect people to spend on their answer.
akidess is offline   Reply With Quote

Old   January 24, 2019, 13:18
Default
  #3
New Member
 
Join Date: Mar 2018
Posts: 10
Rep Power: 5
Mcesar is on a distinguished road
Quote:
Originally Posted by akidess View Post
You are using two different functions - left is area weighted average, right is regular average.


Hello Anton, thank you for your reply.

Even i using the same function in both situations? I used the same code line (postProcess -func 'patchAverage(name=placa,grad(T))' -latestTime) . OpenFOAM does not have a function for each kind of average ?


Thank you !
Mcesar is offline   Reply With Quote

Old   January 24, 2019, 17:01
Default
  #4
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,379
Rep Power: 26
akidess will become famous soon enough
You are not using the same function in both situations. The default behavior was deliberately changed in OF6. See https://bugs.openfoam.org/view.php?id=2936
Mcesar likes this.
__________________
*On twitter @akidTwit
*Spend as much time formulating your questions as you expect people to spend on their answer.
akidess is offline   Reply With Quote

Old   January 24, 2019, 21:23
Default
  #5
New Member
 
Join Date: Mar 2018
Posts: 10
Rep Power: 5
Mcesar is on a distinguished road
Quote:
Originally Posted by akidess View Post
You are not using the same function in both situations. The default behavior was deliberately changed in OF6. See https://bugs.openfoam.org/view.php?id=2936
Thanks Anton, did you know how to perform areaAverage in OF6 ? The command line.

Thank you again !
Mcesar is offline   Reply With Quote

Old   January 25, 2019, 06:39
Default
  #6
New Member
 
Join Date: Mar 2018
Posts: 10
Rep Power: 5
Mcesar is on a distinguished road
Quote:
Originally Posted by Mcesar View Post
Thanks Anton, did you know how to perform areaAverage in OF6 ? The command line.

Thank you again !

I figured out! Just change the operation in the patchAverage file in ../caseDict/postProcessing/surfaceFieldValue/. This was in the bug report that you send me!



Thank you again Anton!
Mcesar is offline   Reply With Quote

Reply

Tags
opeanfoam, patchaverage, postprocess, problem

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
UDF compiling problem Wouter Fluent UDF and Scheme Programming 6 June 6, 2012 04:43
Gambit - meshing over airfoil wrapping (?) problem JFDC FLUENT 1 July 11, 2011 05:59
natural convection problem for a CHT problem Se-Hee CFX 2 June 10, 2007 06:29
Adiabatic and Rotating wall (Convection problem) ParodDav CFX 5 April 29, 2007 19:13
Is this problem well posed? Thomas P. Abraham Main CFD Forum 5 September 8, 1999 14:52


All times are GMT -4. The time now is 15:56.