rheoTool
rheoTool copied to clipboard
Tutorial Solution Error
I have installed OpenFoam9 on my Ubuntu 22.04. The installation path is "home/professional/OpenFOAM".
Then I installed the Eigen and Petsc library successfully in this path: "home/professional/OpenFOAM/professional-9/Thirdparty". Finally, I have compiled rheoTool and I think it is compiled on this path: "home/professional/OpenFOAM/professional-9/platforms". The installation finished with just one warning and no error.

Unfortunately, when I try to run any of tutorials like rheoFoam/Channel or Cavity, I get this kind of error

I have installed only v9 of the OpenFoam and this is the end of my ".bashrc" file:
source $HOME/OpenFOAM/OpenFOAM-9/etc/bashrc export PATH=$PATH:/opt/Paraview-5.10/bin/ export EIGEN_RHEO=/home/professional/OpenFOAM/professional-9/ThirdParty/Eigen3.2.9 export PETSC_DIR=/home/professional/OpenFOAM/professional-9/ThirdParty/petsc-3.16.5 export PETSC_ARCH=arch-linux-c-opt export LD_LIBRARY_PATH=$PETSC_DIR/$PETSC_ARCH/lib:$LD_LIBRARY_PATH
I would appreciate if you can help me.
I have tested several tutorials and found that only tutorials which use log constitutive models are problematic on my system. However, I still don't know what's the reason for this situation?
Yes, I was able to reproduce the above mentioned error. I never tried ubuntu 22.04 before, nor the most recent of90 patch release (20220602), so that error never appear before. I did the following tests:
o ub22.04 + patch 20220602 = error o ub22.04 + patch 20211122 = error
o ub20.04 + patch 20220602 = ok o ub20.04 + patch 20211122 = ok
So the issue is not in the openfoam patch, but in the os itself. More specifically, I believe it is in the gcc version, which changed from 9.4.0 to 11.2.0. However, I will need some time to figure out what is really going on.
Meanwhile, I don't recommend using rheotool in ub 22.04 (independently of using the log versions or not), as other kind of similar errors may exist. I would rather recommend to keep using ub 20.04 (fully-tested) or older. If the issue is on the gcc version, then compiling with gcc 9.4.0 in ub 22.04 might solve the issue, though I did not try this.
Thank you for the detailed tests and instructions. With our help, I downgraded gcc to version 9 and it solved the problem on ub22.04.
I still didn't figure out the root of the problem, but I added a hotfix that seems to alleviate it: https://github.com/fppimenta/rheoTool/commit/79b7d362392a68c9c93ae82dfb5ba4f661db6c2d . This should be temporary until the issue is completely identified. For now, it seems to be associated to tmps and consecutive inner products, so perhaps with memory or some compiler optimization. Though, I would suggest to keep using gcc <= v9.4.0, as I don't know which other problems could still exist for recent compiler versions.
感谢您的详细测试和说明。在我们的帮助下,我将 gcc 降级到版本 9,它解决了 ub22.04 上的问题。
How to set the stl file to apply multiphase?
Stale.