Error in BlockMesh: inconsistent number of faces
1 Attachment(s)
Hi there,
I'm trying to develop a trapezoidal-shaped channel in BlockMesh, consisting of 2 three-sided prism and in between a normal cuboid. In the attached PDF-file you can find a sketch of the geometry. Below the blockMesh is posted. My problem is that when I'm trying to define different number of cells in x and in y direction like for example: blocks ( hex (3 2 2 3 7 6 5 4) (1300 50 10) simpleGrading (1 1 1) hex (3 9 8 2 7 11 10 6) (1300 50 10) simpleGrading (1 1 1) hex (8 9 9 8 10 11 15 14) (1300 50 10) simpleGrading (1 1 1)) ); I get the following error: [...] Inconsistent number of faces between block pair 0 and 1 From function blockMesh::createMergeList() in file createMergeList.C at line 196. FOAM exiting If I define the mesh as follows: blocks ( hex (3 2 2 3 7 6 5 4) (100 100 10) simpleGrading (1 1 1) hex (3 9 8 2 7 11 10 6) (100 100 10) simpleGrading (1 1 1) hex (8 9 9 8 10 11 15 14) (100 100 10) simpleGrading (1 1 1)) ); everything works fine. Can anyone tell me how to solve this problem? I don't know what I have to change to get this working. I'm thankful for any advice. Regards, pc1 my BLOCKMESH: /*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 1.5 | | \\ / A nd | Web: http://www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; object blockMeshDict; } // * * * * * * * * * * * * * * * * * * * * * * * * // convertToMeters 1.; vertices ( (0 0 0) // 0 (0 40 0) // 1 (0.48 40 0) // 2 (0.48 0 0) // 3 (0 0 0.16) // 4 (0 40 0.16) // 5 (0.48 40 0.16) // 6 (0.48 0 0.16) // 7 (1.72 40 0) // 8 (1.72 0 0) // 9 (1.72 40 0.16) // 10 (1.72 0 0.16) // 11 (2.2 40 0) // 12 (2.2 0 0) // 13 (2.2 40 0.16) // 14 (2.2 0 0.16) // 15 ); blocks ( hex (3 2 2 3 7 6 5 4) (1 1 1) simpleGrading (1 1 1) // p hex (3 9 8 2 7 11 10 6) (1 1 1) simpleGrading (1 1 1) //q hex (8 9 9 8 10 11 15 14) (1 1 1) simpleGrading (1 1 1) // r ); edges ( ); patches ( //left: Prism p wall xminp ( (4 5 2 3) ) patch yminp ( (3 7 4 3) ) patch ymaxp ( (2 5 6 2) ) patch zminp ( (3 2 2 3) ) patch zmaxp ( (4 7 6 5) ) // middle: cuboid q patch yminq ( (7 11 9 3) ) patch ymaxq ( (6 2 8 10) ) wall zminq ( (2 3 9 8) ) patch zmaxq ( (11 7 6 10) ) // right: Prism r wall xmaxr ( (15 9 8 14) ) patch yminr ( (15 11 9 15) ) patch ymaxr ( (14 8 10 14) ) patch zmaxr ( (15 14 10 11) ) patch zminr ( (8 9 9 8) ) ); mergePatchPairs ( ); // ************************************************** *********************** // |
Hi pc1,
there are numbering problems in your blockMeshDict. Try this one: Code:
/*--------------------------------*- C++ -*----------------------------------*\ Martin |
Same error occured again
Hello Martin,
thanks for your reply. I just tested to turn the numbers as you proposed and removed the "interior" walls. Unfortunately I still get the same Error: Code:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // The first Warning appears because of the removed walls, which are not really walls but rather edges. In a test with a single three-sided prism I found out that I have to define them. The shifting of the numbers doesn't have any effect on the result. The biggest problem is the inconsistent number of faces between the blocks. Still have no idea how to solve it. Any proposals? Regards, pc1 |
Hi,
after adding Code:
empty dummies Code:
checkMesh -allTopology -allGeometry Does it run anyway? Martin |
And did you really tried my blockMeshDict? I don't have the inconsistent number of faces problem here...
|
tried your BlockMeshDict and checkMesh, both failed
Hi,
I did try your BlockMeshDict, but unfortunately BlockMesh aborted because of the inconsistent number of cells. Don't know why you don't have the same problem with the BlockMesh?:confused: My CheckMesh also failed. Is there an other possibility to define such a geometry in the BlockMeshDict? Or does anyone else have some advice for me? Tomorrow I'll continue searching for the reason of this error...:( pc1 |
What about this idea:
Code:
/*--------------------------------*- C++ -*----------------------------------*\ Martin |
Great!
That one works fine! Thank you for your help!!! Regards, pc1 |
All times are GMT -4. The time now is 01:01. |