|
[Sponsors] |
[blockMesh] Ill Defined Primitive Entry Issue |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 26, 2017, 10:53 |
Ill Defined Primitive Entry Issue
|
#1 |
New Member
Tom
Join Date: May 2017
Posts: 9
Rep Power: 8 |
I'm attempting to create a set of 2 square ducts connected by a small gap, and have been following the tutorials word for word, however I still get an 'ill defined primitive entry' error and I cannot for the life of me figure out why:
"ill defined primitiveEntry starting at keyword 'boundary' on line 101 and ending at line 166" Code:
/*--------------------------------*- 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 0.001; vertices ( //first the verticies of the leftmost channel (0 0 0)//0 (260 0 0)//1 (260 80 0)//2 (160 80 0)//3 (160 180 0)//4 (260 180 0)//5 (260 260 0)//6 (0 260 0)//7 //then the verticies of the gap (260 125.5 0)//8 (280 125.5 0)//9 (280 145.5 0)//10 (260 145.5 0)//11 //then the verticies of the rightmost channel (280 0 0)//12 (540 0 0)//13 (514 260 0)//14 (280 260 0)//15 (280 180 0)//16 (370 180 0)//17 (370 80 0)//18 (280 80 0)//19 //now a few misc points needed because blockMesh can't handle 'c' chapped channels (160 0 0)//20 (160 260 0)//21 (370 0 0)//22 (370 260 0)//23 //Now the back walls of the experimental setup //first the verticies of the leftmost channel, labeled x-yy, so that it's easier to match verticies for block building (0 0 1200)//24(0) (260 0 1200)//25(1) (260 80 1200)//26(2) (160 80 1200)//27(3) (160 180 1200)//28(4) (260 180 1200)//29(5) (260 260 1200)//30(6) (0 260 1200)//31(7) //then the verticies of the gap (260 125.5 1200)//32(8) (280 125.5 1200)//33(9) (280 145.5 1200)//34(10) (260 145.5 1200)//35(11) //then the verticies of the rightmost channel (280 0 1200)//36(12) (540 0 1200)//37(13) (514 260 1200)//38(14) (280 260 1200)//39(15) (280 180 1200)//40(16) (370 180 1200)//41(17) (370 80 1200)//42(18) (280 80 1200)//43(19) //now a few misc points needed because blockMesh can't handle 'c' chapped channels (160 0 1200)//44(20) (160 260 1200)//45(21) (370 0 1200)//46(22) (370 260 1200)//47(23) ); blocks ( hex (0 20 21 7 24 44 45 31) (20 20 50) simpleGrading (2 2 1)//left most rough channel hex (4 5 6 21 28 29 30 45) (20 20 50) simpleGrading (2 2 1)//left most top rough channel hex (20 1 2 3 44 25 26 27) (20 20 50) simpleGrading (2 2 1)//left most bottom rough channel hex (3 2 5 4 27 26 29 28) (20 20 50) simpleGrading (2 2 1)//left most fine channel hex (8 9 10 11 32 33 34 35) (20 20 50) simpleGrading (2 2 1)//gap hex (19 18 17 16 43 42 41 40) (20 20 50) simpleGrading (2 2 1)//right most fine channel hex (12 22 18 19 36 46 42 43) (20 20 50) simpleGrading (2 2 1)//right most bottom rough channel hex (16 17 23 15 40 41 47 39) (20 20 50) simpleGrading (2 2 1)//right most top rough channel hex (22 13 14 23 46 37 38 47) (20 20 50) simpleGrading (2 2 1)//right most rough channel ); edges ( ); boundary ( inlet { type patch; faces ( (0 20 21 7)//first half of block definitions (4 5 6 21) (20 1 2 3) (3 2 5 4) (8 9 10 11) (19 18 17 16) (12 22 18 19) (16 17 23 15) (22 13 14 23) ); } outlet { type patch; faces ( //second half of block definitions (24 44 45 31) (28 29 30 45) (44 25 26 27) (27 26 29 28) (32 33 34 35) (43 42 41 40) (36 46 42 43) (40 41 47 39) (46 37 38 47) ); } fixedWalls { type wall; faces ( //left channel (0 1 24 25)//bottom wall (1 8 25 32)//bottom right wall (11 6 35 30)//top right wall (6 7 30 31)//top wall (7 0 31 24)//left wall //gap (8 9 32 33)//bottom wall (10 11 34 35)//top wall //right channel (12 13 36 37)//bottom wall (12 9 36 33)//bottom left wall (10 15 34 39)//top left wall (14 15 38 39)//top wall (13 14 37 38//right wall) ); } ); mergePatchPairs ( ); // ************************************************************************* // Can anyone spot the issue? |
|
May 26, 2017, 16:39 |
|
#2 |
Senior Member
|
Hi,
The last line in fixedWalls. Comment is a little bit messed up. Yet after you fix comment, you will encounter Code:
face 0 in patch 2 does not have neighbour cell face: 4(0 1 24 25) |
|
May 26, 2017, 19:21 |
Its giving correct error...ur doing ridiculous things
|
#3 |
Senior Member
sandy
Join Date: Feb 2016
Location: .
Posts: 117
Rep Power: 10 |
your error is:
1.stop using curly braces in your patches section for gods sake that will resolve the error if not reply with additional errors i am happy to shoot down errors. i know solution to all blockmesh errors |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Not defined orientation change while running SU2_CFD | mdawson25 | SU2 | 4 | May 11, 2017 09:52 |
Convergence issue in natural convection problem | chrisf90 | FLUENT | 5 | March 5, 2016 08:30 |
Transient User Defined Function in CFX | Niru | CFX | 0 | November 12, 2013 17:07 |
What type is defined as the interfaces between stator and stator on OF-2.1.1? | renyun0511 | OpenFOAM Running, Solving & CFD | 3 | May 18, 2013 08:11 |
UDF link fortran source | yorelchr | Fluent UDF and Scheme Programming | 0 | February 7, 2013 03:44 |