|
[Sponsors] |
November 18, 2018, 17:57 |
Error compiling kEpsilon model
|
#1 |
Senior Member
Guilherme
Join Date: Apr 2017
Posts: 245
Rep Power: 10 |
Hello,
I'm trying to compile a kEpsilon template (https://github.com/OpenFOAM/OpenFOAM...lon/kEpsilon.C on OpenFOAM 5.x) and am encountering two errors, which are described in the link: https://paste.ubuntu.com/p/DHHHqrgcnz/ It's a bit difficult to explain my goal, but believe me, it's very important to me. When I comment the lines from 144 to 208 (kEpsilon.C), I can compile the solver avoiding ERROR 1. I can compile (avoiding the ERRO2 described in the link) the solver when I comment lines 254 and 256 (kEpsilon.C). I hope you can help me. |
|
November 19, 2018, 09:58 |
|
#2 |
Senior Member
Michael Alletto
Join Date: Jun 2018
Location: Bremen
Posts: 616
Rep Power: 16 |
From you error I assume you took a kEpsilon model from versions prior to 3.0 and tried to compile it with a newer version. In the newer versions (from 3.0 on I guess) you need to write epsEqn.ref().relax();
Have a look at https://www.openfoam.com/documentati...8C_source.html |
|
November 19, 2018, 11:10 |
|
#3 |
Senior Member
Guilherme
Join Date: Apr 2017
Posts: 245
Rep Power: 10 |
Thanks, I was able to compile (... yes, the version is 2.4.x).
Now there is only one ERROR to solve my problem... |
|
November 19, 2018, 11:49 |
|
#4 |
Senior Member
Michael Alletto
Join Date: Jun 2018
Location: Bremen
Posts: 616
Rep Power: 16 |
can you post the error in this thread?
|
|
November 19, 2018, 11:53 |
|
#5 | |
Senior Member
Guilherme
Join Date: Apr 2017
Posts: 245
Rep Power: 10 |
Thank you very much for your attention ... it's very important to me.
Quote:
|
||
November 19, 2018, 14:08 |
|
#6 |
Senior Member
Michael Alletto
Join Date: Jun 2018
Location: Bremen
Posts: 616
Rep Power: 16 |
You have to write probably something like this->U_ instead of U_
|
|
November 19, 2018, 14:43 |
|
#7 | |||
Senior Member
Guilherme
Join Date: Apr 2017
Posts: 245
Rep Power: 10 |
I was able to solve my problem Michael (replaces U.time().timeName(), with runTime_.timeName(),.. I hope this solution is correct.). Thank you very much.
But now I've got a new problem ... I've created a way to read an external library (it's highlighted below): Quote:
Quote:
Quote:
|
||||
November 21, 2018, 07:08 |
|
#8 | ||||
Senior Member
Guilherme
Join Date: Apr 2017
Posts: 245
Rep Power: 10 |
I still get the error below if you can help me...:
Quote:
EDIT1: I discovered some things about the error... ... in the kEpsilon.C: Quote:
Quote:
Quote:
|
|||||
November 21, 2018, 14:06 |
|
#9 |
Senior Member
Michael Alletto
Join Date: Jun 2018
Location: Bremen
Posts: 616
Rep Power: 16 |
probably you tried to follows the steps in tutorials how to add a new turbulence model for OF versions prior to 3.0
In this blog http://hassankassem.me/posts/newturbulencemodel/ it is described how to do it for versions from 3.0 on |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
simplifiedSiwek - error in calculating the position of a coal error | guitar_love_15 | OpenFOAM Running, Solving & CFD | 0 | November 4, 2018 05:06 |
use laminar and kEpsilon model in one case openfoam | super1 | OpenFOAM Programming & Development | 0 | December 28, 2016 08:52 |
Superlinear speedup in OpenFOAM 13 | msrinath80 | OpenFOAM Running, Solving & CFD | 18 | March 3, 2015 06:36 |
An error has occurred in cfx5solve: | volo87 | CFX | 5 | June 14, 2013 18:44 |
add a source term in kEpsilon model | maurice | OpenFOAM Running, Solving & CFD | 0 | May 18, 2009 08:54 |