CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

keyword SIMPLE is undefined

Register Blogs Community New Posts Updated Threads Search

Like Tree4Likes
  • 1 Post By karoltomek
  • 3 Post By TobM

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 23, 2016, 12:02
Default keyword SIMPLE is undefined
  #1
Senior Member
 
Join Date: Mar 2016
Posts: 133
Rep Power: 10
giammy92 is on a distinguished road
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?
giammy92 is offline   Reply With Quote

Old   March 24, 2016, 01:13
Default
  #2
New Member
 
Join Date: Mar 2014
Posts: 8
Rep Power: 12
karoltomek is on a distinguished road
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.
vs1 likes this.
karoltomek is offline   Reply With Quote

Old   March 28, 2016, 02:58
Default
  #3
Member
 
Gareth
Join Date: Jun 2010
Posts: 56
Rep Power: 15
bullmut is on a distinguished road
SIMPLE is also missing a "}"
karoltomek is spot on. double check your brackets
bullmut is offline   Reply With Quote

Old   March 28, 2016, 19:05
Default
  #4
Senior Member
 
Join Date: Mar 2016
Posts: 133
Rep Power: 10
giammy92 is on a distinguished road
thanks so much i have already corrected this embarassing error
giammy92 is offline   Reply With Quote

Old   March 30, 2016, 11:59
Default keyword wallDist is undefined
  #5
New Member
 
Marcell Szabo-Meszaros
Join Date: Oct 2015
Posts: 9
Rep Power: 10
Samwise is on a distinguished road
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.
Samwise is offline   Reply With Quote

Old   March 31, 2016, 02:17
Default
  #6
Member
 
Join Date: Sep 2014
Location: Germany
Posts: 88
Rep Power: 11
TobM is on a distinguished road
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).
Samwise, vs1 and LThomes like this.
TobM is offline   Reply With Quote

Old   April 1, 2016, 10:38
Default
  #7
New Member
 
Marcell Szabo-Meszaros
Join Date: Oct 2015
Posts: 9
Rep Power: 10
Samwise is on a distinguished road
Hi TobM

Thanks, it really worked, and the command grep -R "..." really helpful!
Samwise is offline   Reply With Quote

Old   October 11, 2017, 23:34
Default
  #8
vs1
New Member
 
vaibhav
Join Date: Sep 2016
Posts: 15
Rep Power: 9
vs1 is on a distinguished road
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
vs1 is offline   Reply With Quote

Old   October 12, 2017, 01:54
Default
  #9
Member
 
Join Date: Sep 2014
Location: Germany
Posts: 88
Rep Power: 11
TobM is on a distinguished road
Hi vs1,

I haven't checked where exactly it is used.
It was introduced a while ago.
TobM is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 12:20.