CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Native Meshers: blockMesh

ill defined primitiveEntry starting at keyword 'blocks'

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By Antimony

Reply
 
LinkBack Thread Tools Display Modes
Old   February 13, 2017, 23:19
Default ill defined primitiveEntry starting at keyword 'blocks'
  #1
Member
 
Dominic
Join Date: Jan 2017
Posts: 35
Rep Power: 2
DominicTNC is on a distinguished road
Dear Foamers,

I am new to OpenFOAM. This is my first simulation using OpenFOAM. When I did blockMesh, I got the following error message:

--> FOAM FATAL IO ERROR:
"ill defined primitiveEntry starting at keyword 'blocks' on line 75 and ending at line 179"


Would anyone have ideas how to solve it?

Many Thanks!!

My blockMeshDict is as follow:

FoamFile
{
version 2.0;
format ascii;
class dictionary;
object blockMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

convertToMeters 0.1;

vertices
(

( 0 0 0 ) //0
( 2 0 0 ) //1
( 8 0 0 ) //2
(10 0 0 ) //3
( 0 2 0 ) //4
( 2 2 0 ) //5
( 8 2 0 ) //6
(10 2 0 ) //7
( 0 8 0 ) //8
( 2 8 0 ) //9
( 8 8 0 ) //10
(10 8 0 ) //11
( 0 10 0 ) //12
( 2 10 0 ) //13
( 8 10 0 ) //14
(10 10 0 ) //15
/************************************************** ********************/
( 0 0 1 ) //16
( 2 0 1 ) //17
( 8 0 1 ) //18
(10 0 1 ) //19
( 0 2 1 ) //20
( 2 2 1 ) //21
( 8 2 1 ) //22
(10 2 1 ) //23
( 0 8 1 ) //24
( 2 8 1 ) //25
( 8 8 1 ) //26
(10 8 1 ) //27
( 0 10 1 ) //28
( 2 10 1 ) //29
( 8 10 1 ) //30
(10 10 1 ) //31
/************************************************** *************************/
( 0 0 2 ) //32
( 2 0 2 ) //33
( 8 0 2 ) //34
(10 0 2 ) //35
( 0 2 2 ) //36
( 2 2 2 ) //37
( 8 2 2 ) //38
(10 2 2 ) //39
( 0 8 2 ) //40
( 2 8 2 ) //41
( 8 8 2 ) //42
(10 8 2 ) //43
( 0 10 2 ) //44
( 2 10 2 ) //45
( 8 10 2 ) //46
(10 10 2 ) //47
);

blocks
(
hex ( 0 1 5 4 16 17 21 20 ) (20 20 5) simpleGrading ( 0.75 0.75 1 )
hex ( 1 2 6 5 17 18 22 21 ) (60 40 5) simpleGrading ( 1 0.5 1 )
hex ( 2 3 7 6 18 19 23 22 ) (20 20 5) simpleGrading ( 1.25 0.75 1 )
hex ( 4 5 9 8 20 21 25 24 ) (20 60 5) simpleGrading ( 0.75 1 1 )
hex ( 6 7 11 10 22 23 27 26) (20 60 5) simpleGrading ( 1.25 1 1 )
hex ( 8 9 13 12 24 25 29 28) (20 20 5) simpleGrading ( 0.75 1.25 1 )
hex ( 9 10 14 13 25 26 30 29) (60 40 5) simpleGrading ( 1 1.25 1 )
hex ( 10 11 15 14 26 27 31 30) (20 20 5) simpleGrading( 1.25 1.25 1 )

hex ( 16 17 21 20 32 33 37 36) (20 20 5) simpleGrading( 0.75 0.75 1.25 )
hex ( 17 18 22 21 33 34 38 37) (60 40 5) simpleGrading( 1 0.5 1.25 )
hex ( 18 19 23 22 34 35 39 38) (20 20 5) simpleGrading( 1.25 0.75 1.25 )
hex ( 20 21 25 24 36 37 41 40) (20 60 5) simpleGrading( 0.75 1 1.25 )
hex ( 22 23 27 26 38 39 43 42) (20 60 5) simpleGrading( 1.25 1 1.25 )
hex ( 21 22 26 25 37 38 42 41) (60 60 5) simpleGrading( 1 1 1 )
hex ( 24 25 29 28 40 41 45 44) (20 20 5) simpleGrading( 0.75 1.25 1.25 )
hex ( 25 26 30 29 41 42 46 45) (60 40 5) simpleGrading( 1 1.25 1.25 )
hex ( 26 27 31 30 42 43 47 46) (20 20 5) simpleGrading( 1.25 1.25 1.25 )
);

edges
(
);

boundary
(
inlet
{
type patch;
faces
(
(0 16 20 4)
(16 32 36 20)
(4 20 24 8)
(20 36 40 24)
(8 24 28 12)
(24 40 44 28)
);
}
outlet
{
type patch;
faces
(
(19 3 7 23)
(23 7 11 27)
(27 11 15 31)
(35 19 23 39)
(39 23 27 43)
(43 27 31 47)
);
}
upperWall
{
type wall;
faces
(
(32 33 37 36)
(33 34 38 37)
(34 35 39 38)
(36 37 41 40)
(37 38 42 41)
(38 39 43 42)
(40 41 45 44)
(41 42 46 45)
(42 43 47 46)
);
}
lowerWall
{
type wall;
faces
(
(0 4 5 1)
(1 5 6 2)
(2 6 7 3)
(4 8 9 5)
(6 10 11 7)
(8 12 13 9)
(9 13 14 10)
(10 14 15 11)
);
}
obstacle
{
type wall;
faces
(
(5 6 22 21)
(6 10 26 22)
(10 9 25 26)
(9 5 21 25)
(25 21 22 26)
);
}
);

mergePatchPairs
(
);

DominicTNC is offline   Reply With Quote

Old   February 14, 2017, 01:48
Default
  #2
Senior Member
 
Join Date: Aug 2013
Posts: 305
Rep Power: 7
Antimony is on a distinguished road
Hi,

There needs to be a space between simpleGrading and (

Cheers,
Antimony
DominicTNC likes this.
Antimony is offline   Reply With Quote

Old   February 14, 2017, 09:39
Default
  #3
Member
 
Dominic
Join Date: Jan 2017
Posts: 35
Rep Power: 2
DominicTNC is on a distinguished road
Thanks very much for your help!
DominicTNC is offline   Reply With Quote

Old   April 22, 2017, 03:18
Default
  #4
New Member
 
Join Date: Mar 2017
Posts: 22
Rep Power: 2
saatt is on a distinguished road
Quote:
Originally Posted by DominicTNC View Post
Thanks very much for your help!
i copy your blockMeshDict code , but i get an error (Inconsistent number of faces between block pair 0 and 1) . Why?
saatt is offline   Reply With Quote

Old   April 22, 2017, 03:27
Default
  #5
Senior Member
 
Join Date: Aug 2013
Posts: 305
Rep Power: 7
Antimony is on a distinguished road
Hi,

Code:
hex ( 0 1 5 4 16 17 21 20 ) (20 20 5) simpleGrading ( 0.75 0.75 1 )
hex ( 1 2 6 5 17 18 22 21 ) (60 40 5) simpleGrading ( 1 0.5 1 )
Because in block 0 the edge connecting vertices 1 and 5 has 20 divisions, while in block 1, the same edge has been stated to have 40 divisions.

Cheers,
Antimony
Antimony is offline   Reply With Quote

Old   April 22, 2017, 06:57
Default
  #6
New Member
 
Join Date: Mar 2017
Posts: 22
Rep Power: 2
saatt is on a distinguished road
Quote:
Originally Posted by Antimony View Post
Hi,

Code:
hex ( 0 1 5 4 16 17 21 20 ) (20 20 5) simpleGrading ( 0.75 0.75 1 )
hex ( 1 2 6 5 17 18 22 21 ) (60 40 5) simpleGrading ( 1 0.5 1 )
Because in block 0 the edge connecting vertices 1 and 5 has 20 divisions, while in block 1, the same edge has been stated to have 40 divisions.

Cheers,
Antimony
Thanks! i got it
saatt is offline   Reply With Quote

Old   April 26, 2017, 18:32
Default ill defined primitive Entry starting at keyword 'boundary'
  #7
New Member
 
Randal Samstag
Join Date: Jan 2015
Location: Bainbridge Island, WA US
Posts: 7
Rep Power: 4
rsamstag is on a distinguished road
Foam Error:
--> FOAM FATAL IO ERROR:
"ill defined primitiveEntry starting at keyword 'boundary' on line 67 and ending at line 118"

file: /home/randal/OpenFOAM/randal-4.1/run/RecSed/BlockMidSed/system/blockMeshDict at line 118.

From function void Foam:rimitiveEntry::readEntry(const Foam::dictionary&, Foam::Istream&)
in file db/dictionary/primitiveEntry/primitiveEntryIO.C at line 189.

Help. Can't find the bug in blockMesh:

/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 4.1 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object blockMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

convertToMeters 1;

vertices
(
(11.5 0 0) //0
(12.5 0 0) //1
(0 1.0 0) //2
(11.5 1.0 0) //3
(12.5 1.0 0) //4
(24.0 1 0) //5
(0 3.6 0) //6
(11.5 3.6 0) //7
(12.5 3.6 0) //8
(24 3.6 0) //9
(0 4.0 0) //10
(11.5 4.0 0)//11
(12.5 4.0 0)//12
(24.0 4.0 0)//13
(11.5 0 4.0)//14
(12.5 0 4.0)//15
(0 1.0 4.0)//16
(11.5 1.0 4.0)//17
(12.5 1.0 4.0)//18
(24 1 4) //19
(0 3.6 4) //20
(11.5 3.6 4) //21
(12.5 3.6 4)//22
(24 3.6 4)//23
(0 4 4)//24
(11.5 4 4)//25
(12.5 4 4)//26
(24 4 4)//27
);

blocks
(
hex (0 1 4 3 14 15 18 17) (10 10 1 ) simpleGrading (1 1 1)
hex (3 4 8 7 17 18 22 21) (10 26 1) simpleGrading (1 1 1)
hex (7 8 11 12 21 22 26 25) (10 4 1) simpleGrading (1 1 1)
hex (2 3 7 6 16 17 22 21) (115 26 1) simpleGrading (1 1 1)
hex (4 5 9 8 18 19 23 22) (115 4 1) simpleGrading (1 1 1)
hex (6 7 11 10 20 21 25 24) (115 4 1) simpleGrading (1 1 1)
hex (8 9 13 12 22 23 27 26) (115 4 1) simpleGrading (1 1 1)
);

edges
(
);

boundary
(
inlet
{
type patch;
faces //0
(
(6 20 24 10)
);
}
outlet
{
type patch;
faces //1
(
(9 23 27 13)
);
}
bottomOutlet
{
type patch;
faces //2
(
(0 14 15 1)
);
}
bottomWall
{
type wall;
faces //3
(
(2 16 17 3)
(4 18 19 5)
);
}
endWall
{
type wall;
faces //4
(
(1 4 18 15)
(5 9 23 19)
);
}
top
{
type patch;
faces //5
(
(10 24 25 11)
(11 25 26 12)
(12 26 27 13)
. );
}
entryWall
{
type wall;
faces //6
(
(2 16 20 6)
(6 20 24 10)
(0 11 17 3)
);
}
frontAndBack
{
type empty;
faces //7
(
(0 1 4 3)
(2 3 7 6)
(3 4 8 7)
(4 5 9 8)
(6 7 11 10)
(7 8 12 11)
(8 9 13 12)

(14 15 18 17)
(16 17 21 20)
(17 18 22 21)
(18 19 23 22)
(20 21 25 24)
(21 22 26 25)
(22 23 27 26)
);
}
);

mergePatchPairs
(
);

// ************************************************** *********************** //

Last edited by rsamstag; April 26, 2017 at 20:52.
rsamstag is offline   Reply With Quote

Old   April 26, 2017, 18:46
Default Sorry.
  #8
New Member
 
Randal Samstag
Join Date: Jan 2015
Location: Bainbridge Island, WA US
Posts: 7
Rep Power: 4
rsamstag is on a distinguished road
Found it! And several other errors!

Stray period. Plus block errors.

Please ignore comment #7 above. I have been able to mesh this.
rsamstag is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
bscw cgns wing kocjH SU2 3 May 16, 2017 02:56
ill defined primitive entry 'boundary' francisco.angel OpenFOAM Pre-Processing 10 June 14, 2016 03:04
"ill defined primitiveEntry starting at keyword Boundary ..... Punt3r OpenFOAM Native Meshers: blockMesh 3 June 12, 2016 09:16
big difference between clockTime and executionTime LM4112 OpenFOAM Running, Solving & CFD 20 February 19, 2014 08:20
error in blocks? bego OpenFOAM 0 June 9, 2010 06:42


All times are GMT -4. The time now is 07:53.