|
[Sponsors] |
May 14, 2013, 12:43 |
|
#21 | |
Senior Member
Join Date: Nov 2012
Posts: 171
Rep Power: 14 |
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:
|
||
May 15, 2013, 07:16 |
|
#22 |
Senior Member
HECKMANN Frédéric
Join Date: Jul 2010
Posts: 249
Rep Power: 17 |
Yes I get the same problem...
|
|
May 15, 2013, 07:17 |
|
#23 |
Senior Member
Join Date: Nov 2012
Posts: 171
Rep Power: 14 |
||
May 15, 2013, 12:05 |
|
#24 |
Senior Member
HECKMANN Frédéric
Join Date: Jul 2010
Posts: 249
Rep Power: 17 |
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 //- Temperature [K] // Non-const access allowed Foam::volScalarField& Foam::basicThermo::T() { return T_; } 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 //- Temperature [K] // Non-const access allowed for transport equations virtual volScalarField& T(); 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). |
|
May 15, 2013, 12:07 |
|
#25 | |
Senior Member
Join Date: Nov 2012
Posts: 171
Rep Power: 14 |
So happy that we solved this problem finally~~
Quote:
|
||
May 15, 2013, 12:14 |
|
#26 |
Senior Member
HECKMANN Frédéric
Join Date: Jul 2010
Posts: 249
Rep Power: 17 |
Haha yeah, actually solving this problem ends my thesis ^^ My simulation runs smoothly and the results are promising.
|
|
May 15, 2013, 12:22 |
|
#27 |
Senior Member
Join Date: Nov 2012
Posts: 171
Rep Power: 14 |
||
June 17, 2013, 10:52 |
|
#28 |
Member
Join Date: Jun 2012
Posts: 76
Rep Power: 14 |
In case someone tries to implement this, it has also been implemented by the developers into Version 2.2.x commit a9d0f048e1a387af342531d50c79a2d111e2536b.
|
|
June 17, 2013, 11:43 |
|
#29 |
Senior Member
HECKMANN Frédéric
Join Date: Jul 2010
Posts: 249
Rep Power: 17 |
It's a great news ! Thanks for the information
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problem with zeroGradient wall BC for temperature - Total temperature loss | cboss | OpenFOAM | 12 | October 1, 2018 07:36 |
Implementation of maxwell slip velocity and Temperature jump with openfoam | yassepid | OpenFOAM | 2 | June 28, 2016 08:05 |
coldEngineFoam (OpenFoam 2.1.x), constant Temperature during adiabatic compression | novakm | OpenFOAM Verification & Validation | 1 | February 25, 2013 13:25 |
Inlet won't apply UDF and has temperature at 0K! | tccruise | Fluent UDF and Scheme Programming | 2 | September 14, 2012 07:08 |
Cross-compiling OpenFOAM 1.7.0 on Linux for Windows 32 and 64bits with Mingw-w64 | wyldckat | OpenFOAM Announcements from Other Sources | 3 | September 8, 2010 07:25 |