|
[Sponsors] |
SIMPLE gave this error message: "Illegal master cellID 0. Should be 0..0" |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 10, 2012, 07:33 |
SIMPLE gave this error message: "Illegal master cellID 0. Should be 0..0"
|
#1 |
Member
anonymous
Join Date: Mar 2012
Posts: 45
Rep Power: 14 |
Hi!
I do a cylinder with gambit and then convert to OpenFOAM, but then when I run my case (tutorial buoyantBoussinesSimpleFoam) the program gives me an error: --> FOAM FATAL IO ERROR: Illegal master cellID 0. Should be 0..0 file: /home/xr12/Anna/buoyantBoussinesqSimpleFoam/gambit_rectangle/system/fvSolution::SIMPLE from line 39 to line 50. From function void Foam::setRefCell ( const volScalarField&, const volScalarField&, const dictionary&, label& scalar&, bool ) in file cfdTools/general/findRefCell/findRefCell.C at line 66. FOAM exiting I understand that in file fvSolution, the part of SIMPLE i have to change the 0, but I don't know what i have to put... someone can help me?? my fvSolution: solvers { p_rgh { solver PCG; preconditioner DIC; tolerance 1e-08; relTol 0.01; } "(U|T|k|epsilon|R)" { solver PBiCG; preconditioner DILU; tolerance 1e-05; relTol 0.1; } } SIMPLE { nNonOrthogonalCorrectors 0; pRefCell 0; pRefValue 0; residualControl { p_rgh 1e-2; U 1e-4; T 1e-2; // possibly check turbulence fields "(k|epsilon|omega)" 1e-3; } } relaxationFactors { fields { p_rgh 0.7; } equations { U 0.3; T 0.5; "(k|epsilon|R)" 0.7; } } |
|
May 10, 2012, 08:07 |
|
#2 | |
Senior Member
Roman Thiele
Join Date: Aug 2009
Location: Eindhoven, NL
Posts: 374
Rep Power: 21 |
Quote:
Therefore, questions: 1. what kind of case is it? 2. what kind of boundary conditions are there? and please consider using the code tags in order to insert longer parts of a property or case file, it reads much easier that way.
__________________
~roman |
||
May 10, 2012, 10:25 |
|
#3 |
Senior Member
A_R
Join Date: Jun 2009
Posts: 122
Rep Power: 17 |
Dear libia
look at simple carefully. you omit one } at the end of simple class |
|
May 10, 2012, 11:50 |
|
#4 |
Senior Member
Roman Thiele
Join Date: Aug 2009
Location: Eindhoven, NL
Posts: 374
Rep Power: 21 |
Nope, there is no "}" missing. It comes after residual control. But good point, this is what I meant with setting it into code blocks
__________________
~roman |
|
May 11, 2012, 04:07 |
|
#5 |
Member
anonymous
Join Date: Mar 2012
Posts: 45
Rep Power: 14 |
only what i'm doing is the tutorial "buoyantBoussinesqSimpleFoam" but with different geometry.
First I change this geometry with GMSH and the program runs, but then I make the geometry with gambit and after convert to openfoam. But when I run the case appears this error, and I don't understand why, because changing the geometry with gmsh the program runs... |
|
May 11, 2012, 04:22 |
|
#6 |
Senior Member
Roman Thiele
Join Date: Aug 2009
Location: Eindhoven, NL
Posts: 374
Rep Power: 21 |
Does your geometry have an opening or is it also closed like the two tutorials? Try changing the number 0 for refCell to something different, since it will set a reference cell.
What you should also do is to expect your mesh with paraview (running paraFoam) and run checkMesh. See if there is something wrong. In paraview you can also select single cells and get their ID, which you can use to set for refCell instead of 0.
__________________
~roman |
|
May 11, 2012, 04:41 |
|
#7 |
Member
anonymous
Join Date: Mar 2012
Posts: 45
Rep Power: 14 |
my geometry is closed like the tutorial. I try to change the number to 0.1 for example and gives me this error:
--> FOAM FATAL IO ERROR: wrong token type - expected int, found on line 40 the doubleScalar 0.1 file: /home/xr12/Anna/buoyantBoussinesqSimpleFoam/gambit_rectangle/system/fvSolution::SIMPLE:RefCell at line 40. From function operator>>(Istream&, int&) in file primitives/ints/int/intIO.C at line 68. FOAM exiting Then I try to put 1, and gives me the same error that when I put 0. |
|
May 11, 2012, 04:45 |
|
#8 |
Senior Member
Roman Thiele
Join Date: Aug 2009
Location: Eindhoven, NL
Posts: 374
Rep Power: 21 |
what are the outcomes from checkMesh? does the mesh looks good in paraview?
select a cell from paraview which you think is a good idea to set the reference pressure in? I suspect that something is wrong with your mesh though, since you said that it works with gmsh.
__________________
~roman |
|
May 11, 2012, 04:46 |
|
#9 |
Member
anonymous
Join Date: Mar 2012
Posts: 45
Rep Power: 14 |
when I star parafoam gives me another error:
--> FOAM Warning : From function polyMesh(const IOobject&) in file meshes/polyMesh/polyMesh.C at line 307 no points in mesh --> FOAM Warning : From function polyMesh(const IOobject&) in file meshes/polyMesh/polyMesh.C at line 312 no cells in mesh I'm new with gambit and what I do is to make the geometry with gambit, export as .msh and then copy the file into my case and convert to openfoam (gambitToFoam). What is what I'm doing wrong? |
|
May 11, 2012, 04:48 |
|
#10 |
Senior Member
Roman Thiele
Join Date: Aug 2009
Location: Eindhoven, NL
Posts: 374
Rep Power: 21 |
I would say you don't actually have a mesh. Since it tells you that there are no cells nor any points. what does checkMesh give you?
__________________
~roman |
|
May 11, 2012, 04:52 |
|
#11 |
Member
anonymous
Join Date: Mar 2012
Posts: 45
Rep Power: 14 |
sorry but... how do you do the checkmesh??
sorry if I ask a lot, but I'm new with the programs and it's difficult to find some things. |
|
May 11, 2012, 04:55 |
|
#12 |
Member
anonymous
Join Date: Mar 2012
Posts: 45
Rep Power: 14 |
gives me a longer error...
--> FOAM Serious Error : From function bool zone::checkDefinition(const label maxSize, const bool report) const in file meshes/polyMesh/zones/zone/zone.C at line 211 Zone internal20 contains invalid index label 19 Valid index labels are 0..-1 --> FOAM Serious Error : From function bool zone::checkDefinition(const label maxSize, const bool report) const in file meshes/polyMesh/zones/zone/zone.C at line 211 Zone internal20 contains invalid index label 20 Valid index labels are 0..-1 --> FOAM Serious Error : From function bool zone::checkDefinition(const label maxSize, const bool report) const in file meshes/polyMesh/zones/zone/zone.C at line 211 Zone internal20 contains invalid index label 21 Valid index labels are 0..-1 --> FOAM Serious Error : From function bool zone::checkDefinition(const label maxSize, const bool report) const in file meshes/polyMesh/zones/zone/zone.C at line 211 Zone internal20 contains invalid index label 22 Valid index labels are 0..-1 --> FOAM Serious Error : From function bool zone::checkDefinition(const label maxSize, const bool report) const in file meshes/polyMesh/zones/zone/zone.C at line 211 Zone internal20 contains invalid index label 23 Valid index labels are 0..-1 . . . . --> FOAM FATAL ERROR: Too many errors From function messageStream:perator OSstream&() in file lnInclude/messageStream.C at line 200. |
|
May 11, 2012, 05:00 |
|
#13 |
Senior Member
Roman Thiele
Join Date: Aug 2009
Location: Eindhoven, NL
Posts: 374
Rep Power: 21 |
This just means that your mesh is not properly converted, or has not been properly set up from the beginning. I have never used gambit or gmsh, therefore I won't be able to help you with setting this up. I guess the best thing is to start a thread with a proper title and a detailed description of what you want to do, otherwise ppl might not look at the thread.
One tip, when posting error messages and terminal output, try to use the code block feature in the post (this is the little hash sign at the top of the editor when posting), this will get rid of smilies and will create a frame around long error messages. Good luck with the meshing.
__________________
~roman |
|
May 11, 2012, 05:03 |
|
#14 | |
Member
anonymous
Join Date: Mar 2012
Posts: 45
Rep Power: 14 |
Quote:
|
||
March 31, 2016, 22:58 |
|
#15 |
Member
Saurabh Tandon
Join Date: Nov 2015
Location: Austin
Posts: 43
Rep Power: 11 |
Hi
I am getting the same error for my mesh. please let me know how if you could resolve this error. Thank you. Saurabh |
|
October 11, 2021, 03:40 |
|
#16 |
New Member
Yuanwei Bin
Join Date: Aug 2021
Posts: 1
Rep Power: 0 |
For anyone who may meet this problem, please check you 'constant/polymesh/owner' file or 'porcessorX/constant/polymesh/owner' (X should be every porcessors). This ERROR is caused by the number of cell is 0, due to the method of decomposePar.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
stop when I run in parallel | Nolwenn | OpenFOAM | 36 | March 21, 2021 05:56 |
big difference between clockTime and executionTime | LM4112 | OpenFOAM Running, Solving & CFD | 21 | February 15, 2019 04:05 |
Compilation error with OpenFOAM 2.1.x | Martin_ | OpenFOAM Installation | 28 | January 15, 2013 07:58 |
openfoam 1.6 on debian etch | romant | OpenFOAM Installation | 9 | May 6, 2010 03:26 |
[blockMesh] BlockMeshmergePatchPairs | hjasak | OpenFOAM Meshing & Mesh Conversion | 11 | August 15, 2008 08:36 |