CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   Problem with patchAverage (https://www.cfd-online.com/Forums/openfoam/214238-problem-patchaverage.html)

Mcesar January 24, 2019 09:42

Problem with patchAverage
 
1 Attachment(s)
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

akidess January 24, 2019 12:43

You are using two different functions - left is area weighted average, right is regular average.

Mcesar January 24, 2019 13:18

Quote:

Originally Posted by akidess (Post 722852)
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 ? :D


Thank you !

akidess January 24, 2019 17:01

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 January 24, 2019 21:23

Quote:

Originally Posted by akidess (Post 722874)
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 January 25, 2019 06:39

Quote:

Originally Posted by Mcesar (Post 722882)
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! :D



Thank you again Anton!


All times are GMT -4. The time now is 07:25.