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

Query on blockMesh creation

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 24, 2014, 11:05
Default Query on blockMesh creation
  #1
Member
 
Jeremy Dudley
Join Date: Jul 2010
Posts: 45
Rep Power: 15
bendel_boy is on a distinguished road
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
(
);
bendel_boy is offline   Reply With Quote

Old   January 24, 2014, 11:51
Default
  #2
Member
 
Join Date: Nov 2012
Posts: 58
Rep Power: 13
startingWithCFD is on a distinguished road
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.
startingWithCFD is offline   Reply With Quote

Old   January 24, 2014, 17:24
Default
  #3
Member
 
Jeremy Dudley
Join Date: Jul 2010
Posts: 45
Rep Power: 15
bendel_boy is on a distinguished road
Thank you. That resolved the problem.
bendel_boy 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
[blockMesh] blockMesh | MergePatchPairs | snappyHexMesh |Different number of cells in divisions pythag0ra5 OpenFOAM Meshing & Mesh Conversion 1 September 19, 2020 14:38
Is Playstation 3 cluster suitable for CFD work hsieh OpenFOAM 9 August 16, 2015 14:53
[blockMesh] set of xyz data in blockMesh psk OpenFOAM Meshing & Mesh Conversion 12 August 27, 2013 08:37
[blockMesh] tutorial 2.2 Stress(...) trouble with blockMesh colinB OpenFOAM Meshing & Mesh Conversion 8 January 22, 2012 10:32
Blockmesh cavity error message tonitoney OpenFOAM Installation 2 March 17, 2008 11:59


All times are GMT -4. The time now is 04:31.