|
[Sponsors] |
March 23, 2016, 12:02 |
keyword SIMPLE is undefined
|
#1 |
Senior Member
Join Date: Mar 2016
Posts: 133
Rep Power: 10 |
Hi foamers, i can't run my case in simplefoam because I have received the following message:
--> FOAM FATAL IO ERROR: keyword SIMPLE is undefined in dictionary "/home/tesisti/OpenFOAM/tesisti-2.3.1/run/Pignatelli/pitching_airfoil/system/fvSolution" file: /home/tesisti/OpenFOAM/tesisti-2.3.1/run/Pignatelli/pitching_airfoil/system/fvSolution from line 22 to line 97. From function dictionary::subDict(const word& keyword) const in file db/dictionary/dictionary.C at line 643. FOAM exiting And I have this in my fvsolution: solvers { p { solver GAMG; tolerance 1e-06; relTol 0.1; smoother GaussSeidel; nPreSweeps 0; nPostSweeps 2; cacheAgglomeration true; nCellsInCoarsestLevel 10; agglomerator faceAreaPair; mergeLevels 1; } U { solver smoothSolver; smoother GaussSeidel; nSweeps 2; tolerance 1e-08; relTol 0.1; } k { solver smoothSolver; smoother GaussSeidel; tolerance 1e-8; relTol 0.1; nSweeps 1; omega { solver smoothSolver; smoother GaussSeidel; tolerance 1e-8; relTol 0.1; nSweeps 1; } nuTilda { solver smoothSolver; smoother GaussSeidel; nSweeps 2; tolerance 1e-08; relTol 0.1; } } SIMPLE { nNonOrthogonalCorrectors 0; pRefCell 0; pRefValue 101325; residualControl { p 1e-5; U 1e-5; k 1e-5; omega 1e-5; nuTilda 1e-5; } } relaxationFactors { fields { p 0.3; } equations { U 0.7; k 0.7; omega 0.7; nuTilda 0.7; } } Do you have any idea of what i have to modify? |
|
March 24, 2016, 01:13 |
|
#2 |
New Member
Join Date: Mar 2014
Posts: 8
Rep Power: 12 |
You do not have at least one bracket (k is not closed)
k { solver smoothSolver; smoother GaussSeidel; tolerance 1e-8; relTol 0.1; nSweeps 1; } Check carefully your brackets. |
|
March 28, 2016, 02:58 |
|
#3 |
Member
Gareth
Join Date: Jun 2010
Posts: 56
Rep Power: 15 |
SIMPLE is also missing a "}"
karoltomek is spot on. double check your brackets |
|
March 28, 2016, 19:05 |
|
#4 |
Senior Member
Join Date: Mar 2016
Posts: 133
Rep Power: 10 |
thanks so much i have already corrected this embarassing error
|
|
March 30, 2016, 11:59 |
keyword wallDist is undefined
|
#5 |
New Member
Marcell Szabo-Meszaros
Join Date: Oct 2015
Posts: 9
Rep Power: 10 |
Hey, greetings,
I have something similar problem, I guess. So it says the following: keyword wallDist is undefined in dictionary "/.../Ras/damBreak/system/fvSchemes" file: /.../Ras/damBreak/system/fvSchemes from line 20 to line 53. From function dictionary::subDict(const word& keyword) const in file db/dictionary/dictionary.C at line 648. I tried to change from k-epsilon turbulance model to k-omega one at the case of damBreak and then it gave the error message above. Here is the fvSchemes file what it contains: ddtSchemes { default Euler; } gradSchemes { default Gauss linear; } divSchemes { div(rho*phi,U) Gauss linear; div(phi,alpha) Gauss vanLeer; div(phirb,alpha) Gauss interfaceCompression; div(phi,k) Gauss upwind; div(phi,omega) Gauss upwind; div(phi,R) Gauss upwind; div(R) Gauss linear; div(phi,nuTilda) Gauss upwind; div((nuEff*dev(T(grad(U))))) Gauss linear; } laplacianSchemes { default Gauss linear corrected; } interpolationSchemes { default linear; } snGradSchemes { default corrected; } Now I'm using OpenFOAM 3.0.1. on Linux Ubuntu 14.04. Hope you have some idea about it. |
|
March 31, 2016, 02:17 |
|
#6 |
Member
Join Date: Sep 2014
Location: Germany
Posts: 88
Rep Power: 11 |
Hi,
you need this in your fvSchemes: wallDist { method meshWave; } When the message says "keyword is missing" then the solver expects this keyword in the dictionary. One useful step is to search for the missing keyword in OpenFOAM tutorials to see what the solver might expect, like this: in the tutorial folder: grep -R wallDist This has nothing to do with a specific turbulence model (k-e or k-o). |
|
April 1, 2016, 10:38 |
|
#7 |
New Member
Marcell Szabo-Meszaros
Join Date: Oct 2015
Posts: 9
Rep Power: 10 |
Hi TobM
Thanks, it really worked, and the command grep -R "..." really helpful! |
|
October 11, 2017, 23:34 |
|
#8 |
New Member
vaibhav
Join Date: Sep 2016
Posts: 15
Rep Power: 9 |
Hi TobM,
Where does the solver use this wallDist { method meshWave; } Is it new to OF version 3,4,5 ? I mean it was not required in fvSchemes file in OF 2.3. Thanks |
|
October 12, 2017, 01:54 |
|
#9 |
Member
Join Date: Sep 2014
Location: Germany
Posts: 88
Rep Power: 11 |
Hi vs1,
I haven't checked where exactly it is used. It was introduced a while ago. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
can not complie fluentDataToFoam in OF2.1.1 | hewei | OpenFOAM Pre-Processing | 20 | September 8, 2018 09:19 |
It would be wonderful if a tool for FoamToTecplot is available | luckyluke | OpenFOAM Post-Processing | 165 | November 27, 2012 06:54 |
OF211: ThirdParty and /src compiled, but not /applications... | vkrastev | OpenFOAM Installation | 8 | October 18, 2012 15:53 |
LiencubiclowRemodel | nzy102 | OpenFOAM Bugs | 14 | January 10, 2012 08:53 |
Building OF 1.6 - CentOS 4.x | Pytthon | OpenFOAM | 1 | February 2, 2010 11:05 |