CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[blockMesh] ill defined primitiveEntry starting at keyword 'boundary'

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 20, 2021, 09:58
Default ill defined primitiveEntry starting at keyword 'boundary'
  #1
New Member
 
Join Date: Jan 2020
Posts: 26
Rep Power: 6
PSander is on a distinguished road
I have a simple blockMesh, but when I run it I get the error message "ill defined primitiveEntry starting at keyword 'boundary'".
I checked already for missing brackets or spaces, and compared it to tutorials, but I dont find a mistake.

Could you please tell me what did I do wrong?
Thanl you very much!


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

convertToMeters 1;



vertices
(
    (0.5 0 0) 			//0	z0
    (1 0 0)			//1
    (2 0 0)			//2
    (2 0.707107 0)		//3
    (0.707107 0.707107 0)	//4
    (0.353553 0.353553 0)	//5
    (2 2 0)			//6
    (0.707107 2 0)		//7
    (0 2 0)			//8
    (0 1 0)			//9
    (0 0.5 0)			//10
    (-0.353553 0.353553 0) 	//11
    (-0.5 0 0)
    (-1 0 0)
    (-2 0 0)			//14
    (-2 0.707107 0)
    (-0.707107 0.707107 0)	//16
    (-2 2 0)
    (-0.707107 2 0)		//18

    ( 0 0 0)			//dummy

    (0.5 0 10) 			//20	z+
    (1 0 10)			//21
    (2 0 10)			//22
    (2 0.707 10)		//23
    (0.707107 0.707107 10)	//24
    (0.353553 0.353553 10)	//25
    (2 2 10)			//26
    (0.707107 2 10)		//27
    (0 2 10)
    (0 1 10)			//29
    (0 0.5 10)
    (-0.353553 0.353553 10) 	//31
    (-0.5 0 10)
    (-1 0 10)
    (-2 0 10)			//34
    (-2 0.707107 10)
    (-0.707107 0.707107 10)	//36
    (-2 2 10)
    (-0.707107 2 10)		//38
);

blocks
(
hex (5 4 9 10 25 24 29 30) soil (1 1 1) simpleGrading (1 1 1)
hex (0 1 4 5 20 21 24 25) soil (1 1 1) simpleGrading (1 1 1)
hex (1 2 3 4 21 22 23 24) soil (1 1 1) simpleGrading (1 1 1)
hex (4 3 6 7 24 23 26 27) soil (1 1 1) simpleGrading (1 1 1)
hex (9 4 7 8 29 24 27 28) soil (1 1 1) simpleGrading (1 1 1)
hex (16 11 10 9 36 31 30 29) soil (1 1 1) simpleGrading (1 1 1)
hex (13 12 11 16 33 32 31 36) soil (1 1 1) simpleGrading (1 1 1)
hex (14 13 16 15 34 33 36 35) soil (1 1 1) simpleGrading (1 1 1)
hex (15 16 18 17 35 36 38 37) soil (1 1 1) simpleGrading (1 1 1)
hex (16 9 8 18 36 29 28 38) soil (1 1 1) simpleGrading (1 1 1)
);




edges
(
arc 0 5 (0.469846 0.171010 0)
arc 5 10 (0.171010 0.469846 0)
arc 1 4 (0.939693 0.342020 0)
arc 4 9 (0.342020 0.939693 0)
arc 20 25 (0.469846 0.171010 10)
arc 25 30 (0.171010 0.469846 10)
arc 21 24 (0.939693 0.342020 10)
arc 24 29 (0.342020 0.939693 10)
arc 12 11 (‐0.46984 0.171010 0)
arc 11 10 (‐0.17101 0.469846 0)
arc 13 16 (‐0.93969 0.342020 0)
arc 16 9 (‐0.34202 0.939693 0)
arc 32 31 (‐0.46985 0.171010 10)
arc 31 30 (‐0.17101 0.469846 10)
arc 33 36 (‐0.939693 0.34202 10)
arc 36 29 (‐0.34202 0.939693 10)
);



boundary
(

    up
    {
        type patch;
        faces
        (
	 (8 7 28 27)
	 (7 6 27 26)
	 (18 8 38 28)
	 (17 18 37 38)
        );
    }

    down
    {
        type patch;
        faces
        (
	 (0 1 20 21)
	 (1 2 21 22)
	 (5 0 25 20)
	 (10 5 30 25)
	 (11 10 31 30)
	 (12 11 32 31)
	 (13 12 33 32)
	 (14 13 34 33)
	);
    }

    left
    {
        type patch;
        faces
        (
         (17 15 37 35)
         (15 14 35 34)
        );
    }

    right
    {
        type patch;
        faces
        (
         (6 3 26 23)
         (3 2 33 32)
        );
    }

mergePatchPairs
(
);

// ************************************************************************* //
PSander is offline   Reply With Quote

Old   January 20, 2021, 10:31
Default
  #2
Member
 
Petros Ampatzidis
Join Date: Oct 2018
Location: Bath, UK
Posts: 64
Rep Power: 7
petros is on a distinguished road
Hello,

You missed a parenthesis.

Quote:
Originally Posted by PSander View Post

Code:
boundary
(

    up
    {
        type patch;
        faces
        (
	 (8 7 28 27)
	 (7 6 27 26)
	 (18 8 38 28)
	 (17 18 37 38)
        );
    }

    down
    {
        type patch;
        faces
        (
	 (0 1 20 21)
	 (1 2 21 22)
	 (5 0 25 20)
	 (10 5 30 25)
	 (11 10 31 30)
	 (12 11 32 31)
	 (13 12 33 32)
	 (14 13 34 33)
	);
    }

    left
    {
        type patch;
        faces
        (
         (17 15 37 35)
         (15 14 35 34)
        );
    }

    right
    {
        type patch;
        faces
        (
         (6 3 26 23)
         (3 2 33 32)
        );
    }
);
petros is offline   Reply With Quote

Old   January 20, 2021, 10:55
Default
  #3
New Member
 
Join Date: Jan 2020
Posts: 26
Rep Power: 6
PSander is on a distinguished road
Quote:
Originally Posted by petros View Post
Hello,

You missed a parenthesis.


Thank you very much.
PSander is offline   Reply With Quote

Reply

Tags
block mesh, blockmeshdict, blocks


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
ill defined primitive entry 'boundary' francisco.angel OpenFOAM Pre-Processing 16 September 8, 2022 06:11
big difference between clockTime and executionTime LM4112 OpenFOAM Running, Solving & CFD 21 February 15, 2019 03:05
[blockMesh] "ill defined primitiveEntry starting at keyword Boundary ..... Punt3r OpenFOAM Meshing & Mesh Conversion 3 June 12, 2016 09:16
[Other] How to create an MRF zone ? aminem OpenFOAM Meshing & Mesh Conversion 2 December 8, 2014 10:45
[OpenFOAM] paraview/paraFoam crash "ill defined primitiveEntry" psosnows ParaView 4 June 22, 2012 03:20


All times are GMT -4. The time now is 02:00.