Query on blockMesh creation
I get a message 'Fatal error: inconsistent number of faces between block pair 2 and 3'
BUT block 2 is supposed to be 20 m (long) x 1.35 m, block 3 20 m x 0.15 m, and the blocks are supposed to be split into 200 x 27 cells and 200 x 3 cells ( so each cell 0.1 x 0.05 m). Any suggestions for what I am doing wrong? The dictionary contents follow. convertToMeters 1; vertices ( ( 0 0 0) // 0 ( 0.3 0 0) // 1 (30 0 0) // 2 (30 1.5 0) // 3 (30 2.85 0) // 4 (30 3 0) // 5 (10 3 0) // 6 (10 1.5 0) // 7 ( 9.5 1.5 0) // 8 ( 9.5 2 0) // 9 ( 9.5 2.3 0) // 10 ( 9.5 3 0) // 11 ( 0 3 0) // 12 ( 0 2.3 0) // 13 ( 0 2 0) // 14 ( 0 1.5 0) // 15 (0.3 1.5 0) // 16 (10 2.85 0) // 17 ( 0 0 3) // 18 ( 0.3 0 3) // 19 (30 0 3) // 20 (30 1.5 3) // 21 (30 2.85 3) // 22 (30 3 3) // 23 (10 3 3) // 24 (10 1.5 3) // 25 ( 9.5 1.5 3) // 26 ( 9.5 2 3) // 27 ( 9.5 2.3 3) // 28 ( 9.5 3 3) // 29 ( 0 3 3) // 30 ( 0 2.3 3) // 31 ( 0 2 3) // 32 ( 0 1.5 3) // 33 (0.3 1.5 3) // 34 (10 2.85 3) // 35 ); // Allow for a 10 cm x 5 cm block blocks ( hex ( 0 1 16 15 18 19 34 33) ( 3 30 1) simpleGrading (1 1 1) // B0; 0.3 x 1.5 hex ( 1 2 3 16 19 20 21 34) (297 30 1) simpleGrading (1 1 1) // B1; 29.7 x 1.5 hex ( 3 4 17 7 21 22 35 25) (200 27 1) simpleGrading (1 1 1) // B2; 20 x 1.35 hex ( 4 5 6 17 22 23 24 35) (200 3 1) simpleGrading (1 1 1) // B3; 20 x 0.15 hex (11 12 13 10 29 30 31 28) ( 95 14 1) simpleGrading (1 1 1) // B4; 9.5 x 0.7 hex (13 14 9 10 31 32 27 28) ( 95 6 1) simpleGrading (1 1 1) // B5; 9.5 x 0.3 hex (14 15 8 9 32 33 26 27) ( 3 6 1) simpleGrading (1 1 1) // B6; 0.3 x 0.5 ); edges ( ); boundary ( inlet // Patch 0 { type patch; faces ( (14 13 31 32) ); } outlet // Patch 1 { type patch; faces ( (5 4 22 23) ); } bottom // Patch 2 { type wall; faces ( (1 0 18 19) (2 1 19 20) ); } endWall // Patch 3 { type wall; faces ( (3 2 20 21) (4 3 21 22) ); } nearWall // Patch 4 { type wall; faces ( (13 12 30 31) (15 14 32 33) ( 0 15 33 18) ); } surface // Patch 5 { type wall; faces ( ( 6 5 23 24) (12 11 29 30) ); } otherSurface // Patch 6 { type empty; faces ( ( 0 1 16 15) ( 1 2 3 16) ( 3 4 17 7) ( 4 5 6 17) (11 12 13 10) (13 14 9 10) (14 15 8 9) (18 19 34 33) (19 20 21 34) (21 22 35 25) (22 23 24 35) (29 30 31 28) (31 32 27 28) (32 33 26 27) ); } ); mergePatchPairs ( ); |
Take a look at: http://www.openfoam.org/docs/user/bl...#x25-1420005.3
The xyz direction depends on the sequence of vertices in your blocks. For example, in block 2, what you think as "x" is in reality "y" and what you think as "y" is in reality "x". Just comment all blocks except block 2, visualize and use the "show orientation axes" button to see what I mean. The solution is to properly rearrange the vertices in your blocks. |
Thank you. That resolved the problem.
|
All times are GMT -4. The time now is 10:40. |