Bug for create thermal object
Opened this issue · 6 comments
Hi, I am interested in this LU-SGS solver. But I try to learn your solver and use the case lowMachChannel, there is a error for create thermal object. I use Info to lock the position of bug. It is in createFields.H "autoPtr pThermo(psiThermo::New(mesh));", this order. Cloud you give the reason of this bug? I think it is just the error of create object. The version of openfoam is openfoam-7.
Hi,
can you provide more information? Especially:
- your case
- version of my solver (commit id)
Thank you for replying, furstj. Both of the case and solver are from the master branch. Because I use openfoam-7 but there is no specified branch. And there are some bugs when I try to wmake the src and solver. And I successfully compiled all the code based on the master version. Next, I try to run the case "lowMachChannel" and "transonicChannel". I run blockMesh and then run myLusgsFoam. When the log outputs the "Selecting thermodynamics package" and the thermal type of thermophysicalProperties , the bug occurs and log outputs "Foam::error::printStack(Foam::Ostream&)...Segmentation fault (core dumped)". In addtion, I do not use the script such as Allwmake. I just compile as follows: myFoam in /src; myDbns in /src; fvMotionSolvers in /src; myLusgsFoam in /application.
Oh! I just run through the low MachChannel case when I change a platform. I mean maybe there are some bugs for my first platform such as the changing of source code in of-7. I will check the bug from source code. Thank you furstj.
Fine :). Let me know in the case of any problems. Actually, I'm working more with ESI version of OpenFoam. Therefore, the master branch is kept compatible with v2106 or v2112. If you need, I can create OF7 branch for OpenFOAM-7 (based on commit 1468da6 with back-ports of new features).
It would be fantastic to have a specified solver for of7! Actually, my major research is in combustion. And I do most based on pimpleFoam. While I need to study the transonic combustioin now so pimpleFoam is useless. Later, I will expand the part of solving chemistry based on the solver you developed if the solver is robust.
HI, I just pushed a new branch for OpenFOAM 7 (branch OF7). Please check it out. It is just a back-port of the master branch to older OpenFOAM 7. I didn't have time to run some heavy tests, but at least the "lowMachChannel" and "ercoftacPump_*" seem to work.