gammaReThetatSST Turbulence Model Segmentation Fault 11 (simpleFoam)
Hello,
I am attempting to run a new turbulence model that can be found here https://github.com/langfeldt/gammaReThetatSST and a test case directory for this setup should be found on the in one of the authors posts in this thread: http://www.cfd-online.com/Forums/ope...l-flows-3.html Scroll down and find the link to: T3A.tar.gz Once I have compiled the library in my OpenFoam-2.3.x directory, I move to the case folder and run Code:
blockMesh Code:
simpleFoam Code:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // I am running OF on my Mac 10.10 |
Hi,
Unfortunately I was not able to reproduce the error. 1. Since I do not know state of your sources gammaReThetatSST, I have forked (https://github.com/mrklein/gammaReThetatSST) original repo and pushed changes so model can be built on OS X without error. Maybe these changes will be accepted in original repo later. 2. In T3A example case name of the library is misspelled in contolDict, so it is not loaded upon simulation start. Hence the error about unknown model. 3. Except omega and gamma oscillations case runs OK: Code:
... |
Thanks for your efforts @ alexeym. Could the fact that I get the error be due my changing the source file gammaReThetatSST.C in terms of changing class assignments to class constructors? Should I experiment with changing the source file and then remaking the library? Also in terms of compilers, Im sure I have g++ compiler on my system. Is there a way to use this compiler instead of clang which might circumvent the error?
I updated my source to the one you have uploaded on github, and when I compile the library I still get 23 warnings. Since I'm not confident understanding exactly what is going on under the surface, I am tempted to think that perhaps the reason I later get a segmentation fault is that the compiler does not like the way the source is written? |
Well, if you execute g++ --version command, you get
Code:
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/c++/4.2.1 Post your warnings, since when I build the library I only get single warning about unused corrID_ variable. |
All times are GMT -4. The time now is 05:11. |