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

SIMPLE gave this error message: "Illegal master cellID 0. Should be 0..0"

Register Blogs Community New Posts Updated Threads Search

Like Tree4Likes
  • 2 Post By romant
  • 2 Post By Yuanwei

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 10, 2012, 06:33
Default 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
libia87 is on a distinguished road
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;
}
}
libia87 is offline   Reply With Quote

Old   May 10, 2012, 07:07
Default
  #2
Senior Member
 
romant's Avatar
 
Roman Thiele
Join Date: Aug 2009
Location: Eindhoven, NL
Posts: 374
Rep Power: 20
romant is on a distinguished road
Quote:
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:
Is not really a description of the flow case. It is a closed case. It is an open case? what kind of boundary conditions are you using. In order to get help in this forum you should go by the rules http://openfoamwiki.net/index.php/Ho..._Message_Board

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
romant is offline   Reply With Quote

Old   May 10, 2012, 09:25
Default
  #3
Senior Member
 
niaz's Avatar
 
A_R
Join Date: Jun 2009
Posts: 122
Rep Power: 16
niaz is on a distinguished road
Dear libia
look at simple carefully.
you omit one } at the end of simple class
niaz is offline   Reply With Quote

Old   May 10, 2012, 10:50
Default
  #4
Senior Member
 
romant's Avatar
 
Roman Thiele
Join Date: Aug 2009
Location: Eindhoven, NL
Posts: 374
Rep Power: 20
romant is on a distinguished road
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
romant is offline   Reply With Quote

Old   May 11, 2012, 03:07
Default
  #5
Member
 
anonymous
Join Date: Mar 2012
Posts: 45
Rep Power: 14
libia87 is on a distinguished road
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...
libia87 is offline   Reply With Quote

Old   May 11, 2012, 03:22
Default
  #6
Senior Member
 
romant's Avatar
 
Roman Thiele
Join Date: Aug 2009
Location: Eindhoven, NL
Posts: 374
Rep Power: 20
romant is on a distinguished road
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
romant is offline   Reply With Quote

Old   May 11, 2012, 03:41
Default
  #7
Member
 
anonymous
Join Date: Mar 2012
Posts: 45
Rep Power: 14
libia87 is on a distinguished road
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.
libia87 is offline   Reply With Quote

Old   May 11, 2012, 03:45
Default
  #8
Senior Member
 
romant's Avatar
 
Roman Thiele
Join Date: Aug 2009
Location: Eindhoven, NL
Posts: 374
Rep Power: 20
romant is on a distinguished road
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
romant is offline   Reply With Quote

Old   May 11, 2012, 03:46
Default
  #9
Member
 
anonymous
Join Date: Mar 2012
Posts: 45
Rep Power: 14
libia87 is on a distinguished road
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?
libia87 is offline   Reply With Quote

Old   May 11, 2012, 03:48
Default
  #10
Senior Member
 
romant's Avatar
 
Roman Thiele
Join Date: Aug 2009
Location: Eindhoven, NL
Posts: 374
Rep Power: 20
romant is on a distinguished road
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
romant is offline   Reply With Quote

Old   May 11, 2012, 03:52
Default
  #11
Member
 
anonymous
Join Date: Mar 2012
Posts: 45
Rep Power: 14
libia87 is on a distinguished road
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.
libia87 is offline   Reply With Quote

Old   May 11, 2012, 03:55
Default
  #12
Member
 
anonymous
Join Date: Mar 2012
Posts: 45
Rep Power: 14
libia87 is on a distinguished road
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.
libia87 is offline   Reply With Quote

Old   May 11, 2012, 04:00
Default
  #13
Senior Member
 
romant's Avatar
 
Roman Thiele
Join Date: Aug 2009
Location: Eindhoven, NL
Posts: 374
Rep Power: 20
romant is on a distinguished road
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.
libia87 and tonnykz like this.
__________________
~roman
romant is offline   Reply With Quote

Old   May 11, 2012, 04:03
Default
  #14
Member
 
anonymous
Join Date: Mar 2012
Posts: 45
Rep Power: 14
libia87 is on a distinguished road
Quote:
Originally Posted by romant View Post
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.
ok thanks for your help!
libia87 is offline   Reply With Quote

Old   March 31, 2016, 21:58
Default
  #15
Member
 
Saurabh Tandon
Join Date: Nov 2015
Location: Austin
Posts: 43
Rep Power: 10
STutexas is on a distinguished road
Hi

I am getting the same error for my mesh. please let me know how if you could resolve this error.

Thank you.

Saurabh
STutexas is offline   Reply With Quote

Old   October 11, 2021, 02:40
Default
  #16
New Member
 
Yuanwei Bin
Join Date: Aug 2021
Posts: 1
Rep Power: 0
Yuanwei is on a distinguished road
Quote:
Originally Posted by STutexas View Post
Hi

I am getting the same error for my mesh. please let me know how if you could resolve this error.

Thank you.

Saurabh
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.
Haitham Osman CFD and wht like this.
Yuanwei 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
stop when I run in parallel Nolwenn OpenFOAM 36 March 21, 2021 04:56
big difference between clockTime and executionTime LM4112 OpenFOAM Running, Solving & CFD 21 February 15, 2019 03:05
Compilation error with OpenFOAM 2.1.x Martin_ OpenFOAM Installation 28 January 15, 2013 06:58
openfoam 1.6 on debian etch romant OpenFOAM Installation 9 May 6, 2010 02:26
[blockMesh] BlockMeshmergePatchPairs hjasak OpenFOAM Meshing & Mesh Conversion 11 August 15, 2008 07:36


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