October 25, 2010, 10:13
|
weird error during blockMesh
|
#1
|
New Member
Sebastian P
Join Date: Jun 2010
Posts: 15
Rep Power: 16
|
Hey,
I am trying to create a mesh around a cylinder (2D) and I'm always getting an error for my patches-definition. The first one is accepted and for the second one I get the message:
--> FOAM FATAL ERROR:
face 1 in patch 0 does not have neighbour cell face: 4(5 37 43 11)
although it's generated exactly in the same way.
Could anyone tell me what I'm doing wrong please?
I know that this face really doesn't have a neighbour as it is an outside face. But the one before did work.
The mesh has got 32 vertices and on the left side they are numbered 0/32 5/37 11/43 18/50 23/55.
The error occurs in the lines:
patches
(
patch inlet
(
(0 32 37 5)
(5 37 43 11)
(11 43 50 18)
(18 50 55 23)
)
...
My complete blockMeshDict:
PHP Code:
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 1.7.1 | | \\ / A nd | Web: www.OpenFOAM.com | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; object blockMeshDict; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // //convertToMeters 0.001;
vertices ( (0 0 0) (1.43934 0 0) (2.5 0 0) (3.56066 0 0) (10 0 0) // rechts (0 1.43934 0) (1.43934 1.43934 0) (2.5 1 0) (3.56066 1.43934 0) (10 1.43934 0) // rechts (2.5 2 0) (0 2.5 0) (1 2.5 0) (2 2.5 0) (3 2.5 0) (4 2.5 0) (10 2.5 0) // rechts (2.5 3 0) (0 3.56066 0) (1.43934 3.56066 0) (2.5 4 0) (3.56066 3.56066 0) (10 3.56066 0) // rechts (0 5 0) (1.43934 5 0) (2.5 5 0) (3.56066 5 0) (10 5 0) // rechts (1.79289 1.79289 0) (3.20711 1.79289 0) (1.79289 3.20711 0) (3.20711 3.20711 0)
(0 0 0.1) (1.43934 0 0.1) (2.5 0 0.1) (3.56066 0 0.1) (10 0 0.1) // rechts (0 1.43934 0.1) (1.43934 1.43934 0.1) (2.5 1 0.1) (3.56066 1.43934 0.1) (10 1.43934 0.1) // rechts (2.5 2 0.1) (0 2.5 0.1) (1 2.5 0.1) (2 2.5 0.1) (3 2.5 0.1) (4 2.5 0.1) (10 2.5 0.1) // rechts (2.5 3 0.1) (0 3.56066 0.1) (1.43934 3.56066 0.1) (2.5 4 0.1) (3.56066 3.56066 0.1) (10 3.56066 0.1) // rechts (0 5 0.1) (1.43934 5 0.1) (2.5 5 0.1) (3.56066 5 0.1) (10 5 0.1) // rechts (1.79289 1.79289 0.1) (3.20711 1.79289 0.1) (1.79289 3.20711 0.1) (3.20711 3.20711 0.1)
);
blocks ( hex (0 1 6 5 32 33 38 37) (10 10 1) simpleGrading (1 1 1) hex (1 2 7 6 33 34 39 38) (10 10 1) simpleGrading (1 1 1) hex (2 3 8 7 34 35 40 39) (10 10 1) simpleGrading (1 1 1) hex (3 4 9 8 35 36 41 40) (30 10 1) simpleGrading (1 1 1) hex (5 6 12 11 37 38 40 39) (10 10 1) simpleGrading (1 1 1) hex (6 28 13 12 38 60 45 44) (10 5 1) simpleGrading (0.25 1 1) hex (7 10 28 6 39 42 60 38) (10 5 1) simpleGrading (0.25 1 1) hex (8 29 10 7 40 61 42 39) (10 5 1) simpleGrading (0.25 1 1) hex (15 14 29 8 47 46 61 40) (10 5 1) simpleGrading (0.25 1 1) hex (16 15 8 9 48 47 40 41) (30 10 1) simpleGrading (1 1 1) hex (11 12 19 18 43 44 51 50) (10 10 1) simpleGrading (1 1 1) hex (12 13 30 19 44 45 62 51) (10 5 1) simpleGrading (0.25 1 1) hex (19 30 17 20 51 62 49 52) (10 5 1) simpleGrading (0.25 1 1) hex (50 17 31 21 52 49 63 53) (10 5 1) simpleGrading (0.25 1 1) hex (21 31 14 15 53 63 46 47) (10 5 1) simpleGrading (0.25 1 1) hex (22 21 15 16 54 53 47 48) (30 10 1) simpleGrading (1 1 1) hex (18 19 24 23 50 51 56 55) (10 10 1) simpleGrading (1 1 1) hex (19 20 25 24 51 52 57 56) (10 10 1) simpleGrading (1 1 1) hex (20 21 26 25 52 53 58 57) (10 10 1) simpleGrading (1 1 1) hex (21 22 27 26 53 54 59 58) (30 10 1) simpleGrading (1 1 1)
);
edges ( // Außen arc 12 6 (1.11418 1.92597 0) arc 6 7 (1.92597 1.11418 0) arc 7 8 (3.07403 1.11418 0) arc 8 15 (3.88582 1.92597 0) arc 15 21 (3.88582 3.07403 0) arc 21 20 (3.07403 3.88582 0) arc 20 19 (1.92597 3.88582 0) arc 19 12 (1.11418 3.07403 0)
arc 44 38 (1.11418 1.92597 0.1) arc 38 39 (1.92597 1.11418 0.1) arc 39 40 (3.07403 1.11418 0.1) arc 40 47 (3.88582 1.92597 0.1) arc 47 53 (3.88582 3.07403 0.1) arc 53 52 (3.07403 3.88582 0.1) arc 52 51 (1.92597 3.88582 0.1) arc 51 44 (1.11418 3.07403 0.1)
// Innen
arc 13 28 (2.03806 2.30856 0) arc 28 10 (2.30856 2.03806 0) arc 10 29 (2.69134 2.03806 0) arc 29 14 (2.96194 2.30856 0) arc 14 31 (2.96194 2.69134 0) arc 31 17 (2.69134 2.96194 0) arc 17 30 (2.30856 2.96194 0) arc 30 13 (2.03806 2.96194 0)
arc 45 60 (2.03806 2.30856 0.1) arc 60 42 (2.30856 2.03806 0.1) arc 42 61 (2.69134 2.03806 0.1) arc 61 46 (2.96194 2.30856 0.1) arc 46 63 (2.96194 2.69134 0.1) arc 63 49 (2.69134 2.96194 0.1) arc 49 62 (2.30856 2.96194 0.1) arc 62 45 (2.03806 2.96194 0.1) );
patches ( patch inlet ( (0 32 37 5) (5 37 43 11) (11 43 50 18) (18 50 55 23) ) patch outlet ( // Unten (0 1 33 32) (1 2 34 33) (2 3 35 34) (3 4 36 35)
// Oben (23 55 56 24) (24 56 57 25) (25 57 58 26) (26 58 59 27) // Rechts (22 27 59 52) (16 22 52 48) (9 16 48 41) (4 9 41 36) ) wall cylinder ( (13 45 60 28) (28 60 42 10) (10 42 61 29) (29 61 46 14) (14 46 63 31) (31 63 49 17) (17 49 62 30) (30 62 45 13) ) );
mergePatchPairs ( );
// ************************************************************************* //
Sebastian
Last edited by SePe; October 25, 2010 at 11:03.
|
|
|