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

fieldAverage giving negative variances in OpenFOAM9

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 28, 2022, 08:22
Default fieldAverage giving negative variances in OpenFOAM9
  #1
New Member
 
Join Date: Jan 2022
Posts: 1
Rep Power: 0
gferrante is on a distinguished road
Hi everyone!


I was doing some comparison between results from OF2.4.0 and OF9 and I noticed that in OF9 the function fieldAverage gives negative values of the variances, e.g. TPrime2Mean.



Have someone noticed the same issue?



I attach an example with the tutorial smallPoolFire3D.


Thank you very much!
Attached Images
File Type: jpg TPrime2MeanCompare.jpg (43.5 KB, 10 views)
File Type: jpg TMeanCompare.jpg (42.5 KB, 9 views)
gferrante is offline   Reply With Quote

Old   October 16, 2024, 08:36
Default
  #2
Member
 
Shravan
Join Date: Mar 2017
Posts: 75
Rep Power: 9
Severus is on a distinguished road
Hello,
I know the reply is late, but it may help someone in future.

I also faced this issue recently. The reason is that there was a bug and this was resolved already on Git.
Check the report: https://bugs.openfoam.org/view.php?id=3776
Resolved on Git: https://github.com/OpenFOAM/OpenFOAM...10f36e0e08a996


However, for people who simply download the compiled OpenFOAM (pack) from the website this bug fix is not incorporated. This is because it is still not updated there.

The solution is to clone the latest version from Git(https://github.com/OpenFOAM/OpenFOAM-9) and you have to compile the code from source (https://openfoam.org/download/source/)

Thanks
Severus is offline   Reply With Quote

Reply


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
[Other] mesh airfoil NACA0012 anand_30 OpenFOAM Meshing & Mesh Conversion 13 March 7, 2022 18:22
[blockMesh] non-orthogonal faces and incorrect orientation? nennbs OpenFOAM Meshing & Mesh Conversion 7 April 17, 2013 06:42
[blockMesh] error message with modeling a cube with a hold at the center hsingtzu OpenFOAM Meshing & Mesh Conversion 2 March 14, 2012 10:56
[blockMesh] BlockMesh FOAM warning gaottino OpenFOAM Meshing & Mesh Conversion 7 July 19, 2010 15:11
[blockMesh] Axisymmetrical mesh Rasmus Gjesing (Gjesing) OpenFOAM Meshing & Mesh Conversion 10 April 2, 2007 15:00


All times are GMT -4. The time now is 08:01.