When the momentum equations are solved, the solver crashed. When I comment the calculation of the lamianr and turbulent diffusion terms, the code works, although in this case the diffusivity is missing.
Is this the same as yours? Quote:
|
Yes I get the same problem...
|
I think I solved the problem:
Please change to: cd $WM_PROJECT_DIR, and then run: ./Allwmake. it will work. have a try and tell me if it works. Thank you. Quote:
|
You have found the solution ! Basically what we have to do is to recompile all OpenFoam source code and not only the thermo model.
So after all this, here is the final procedure (tested and approved !): 1) open a text editor in admin by writing in the terminal: "sudo gedit" 2) with this text editor, open: "basicThermo.C" located in /opt/openfoam220/src/thermophysicalModels/basic/basicThermo 3) Add the following line in the Member Functions (I put it at line 396 after the "basicThermo::T()" ): Code:
// Add this 5) Add the following line after the comment "Fields derived from thermodynamic state variables" (I put it at line 316 after the other Temperature member ): Code:
// Add this 7) Go to /opt/openfoam220/ and open a terminal 8) With the terminal located in this folder, we now want to get the full root access. To do so, write: "sudo -s". After typing your password, you will see that the command line will start with "root". 9) We need to recompile all OpenFoam. To do so, simply write "./Allwmake". This step might take few minutes depending of your system (for me it took about 45 minutes). |
So happy that we solved this problem finally~~
Quote:
|
Haha yeah, actually solving this problem ends my thesis ^^ My simulation runs smoothly and the results are promising.
|
Congratulations !
Quote:
|
In case someone tries to implement this, it has also been implemented by the developers into Version 2.2.x commit a9d0f048e1a387af342531d50c79a2d111e2536b.
|
It's a great news ! Thanks for the information ;)
|
All times are GMT -4. The time now is 04:41. |