CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Meshing & Mesh Conversion (https://www.cfd-online.com/Forums/openfoam-meshing/)
-   -   [blockMesh] strange errror, when using OF2.2.2 and switching to OF1.6ext checking the mesh (https://www.cfd-online.com/Forums/openfoam-meshing/131899-strange-errror-when-using-of2-2-2-switching-of1-6ext-checking-mesh.html)

knoedl1 March 22, 2014 06:15

strange errror, when using OF2.2.2 and switching to OF1.6ext checking the mesh
 
Hi everybody!

I had a working blockMeshDict file running on OF 2.2.2, but now i have to work it out on OF1.6ext. I know that the syntax is a little bit different, like instead of boundary( );
you have to write patches ( );
But everytime i write checkMesh in the terminal, the following error is coming up:

Code:

Create time

Create polyMesh for time = 0

Time = 0

Mesh stats
    all points:          12
    live points:          12
    all faces:            14
    live faces:            14
    internal faces:  2
    cells:            3
    boundary patches: 9
    point zones:      0
    face zones:      0
    cell zones:      0

Overall number of cells of each type:
    hexahedra:    1
    prisms:        2
    wedges:        0
    pyramids:      0
    tet wedges:    0
    tetrahedra:    0
    polyhedra:    0

Checking topology...
    Boundary definition OK.
    Point usage OK.
    Upper triangular ordering OK.
    Face vertices OK.
    Number of regions: 1 (OK).

Checking patch topology for multiply connected surfaces ...
    Patch              Faces    Points  Surface topology                 
    front              3        8        ok (non-closed singly connected) 
    back                3        8        ok (non-closed singly connected) 
    Netzoberflaeche_1  1        3        ok (non-closed singly connected) 
    Netzoberflaeche_2  1        4        ok (non-closed singly connected) 
    Netzoberflaeche_3  1        3        ok (non-closed singly connected) 
    Gasturbine          1        4        ok (non-closed singly connected) 
    Einlass_Gasturbinenauslass1        3        ok (non-closed singly connected) 
    Auslass_Gasturbineneinlass1        3        ok (non-closed singly connected) 
    defaultFaces        0        0        ok (empty)                       

Checking geometry...
    This is a 3-D mesh
    Overall domain bounding box (0 -0.3 -0.0115774) (0.265165 0.45 0.0115774)
    Mesh (non-empty, non-wedge) directions (1 1 0)
    Mesh (non-empty) directions (1 1 1)
    Mesh (non-empty, non-wedge) dimensions 2
 ***Number of edges not aligned with or perpendicular to non-empty directions: 12
  Writing 12 points on non-aligned edges to set nonAlignedEdges
    Boundary openness (3.1462e-19 0 4.02714e-17) Threshold = 1e-06 OK.
    Max cell openness = 1.4789e-16 OK.
    Max aspect ratio = 24.7206 OK.
    Minumum face area = 0.000109152. Maximum face area = 0.0732614.  Face area magnitudes OK.
    Min volume = 0.000350603. Max volume = 0.00113527.  Total volume = 0.00183648.  Cell volumes OK.
    Mesh non-orthogonality Max: 26.2222 average: 26.2222 Threshold = 70
    Non-orthogonality check OK.
    Face pyramids OK.
    Max skewness = 1.56028 OK.

Failed 1 mesh checks.

End

I dont know, i changed the direction of the patches, i copyed the vertices and everything in a running tutoriol of OF1.6ext, that was also not working.
I have to say i that in my case i have an axisymetric wedge with one cell in z direction and in my case 2 patches are empty!

Maybe its just a simple syntax problem but i tried everything out. Perhabs there is somebod how was having the same problem :confused:???

knoedl1 March 22, 2014 06:30

here is i would say is the same error described

http://www.cfd-online.com/Forums/ope...irections.html

knoedl1 March 22, 2014 06:38

thats the blockMeshDict file:

Code:

FoamFile
{
    version    2.0;
    format      ascii;
    class      dictionary;
    object      blockMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

convertToMeters 0.001;

vertices
(
 
 
  ( 0          -300                0          )//0
  ( 0          0                  0          )//1
  ( 0          150                0          )//2
  ( 0          450                0          )//3 
 
 
  ( 265.165043 -190.1650429      -11.5773558  )//4
  ( 50          0                -2.18304715  )//5
  ( 50          150              -2.18304715  )//6
  ( 265.165043  340.1650429      -11.5773558  )//7
 
 
  ( 265.165043 -190.1650429        11.5773558  )//8
  ( 50          0                  2.18304715 )//9
  ( 50          150                2.18304715 )//10
  ( 265.165043  340.1650429        11.5773558  )//11 
         
 
);

blocks
(   
  hex (0 4 5 1 0 8  9  1)  (1 1 1)  simpleGrading (1  1  1)  //Block1
  hex (5 4 7 6 9 8 11 10)  (1 1 1)  simpleGrading (1  1  1)  //Block2 
  hex (2 6 7 3 2 10 11 3)  (1 1 1)  simpleGrading (1  1  1)  //Block3 
 
);

edges
(
   
 
  arc 0 4  (143.506287 -271.454827 -6.26561981)  //H11
  arc 0 8  (143.506287 -271.454827  6.26561981)  //H12
 
  arc 4  7 (375 75 -16.3728536)    //H21
  arc 8 11 (375 75  16.3728536)    //H22
 
  arc 3 7  (143.506287 421.4548247 -6.26561981)  //H31
  arc 3 11 (143.506287 421.4548247  6.26561981)  //H32
   
 
);

patches

    wedge front
     
        (
          (0 1 5 4)  //zu Block1
      (4 5 6 7)  //zu Block2
       
      (2 3 7 6)  //zu Block3 
     
      )
   
    wedge back
    (
      (0 8 9 1)          //zu Block1
      (9 8 11 10)        //zu Block2
      (2 10 11 3)      //zu Block3 
        )
                     
    empty unten
    (
      (1 0 0 1)
      (3 2 2 3)             
    )
   
    patch oberflaeche_1 
     
   
        (     
      ( 4 8 0 4)  //Block1     
        )
   
  patch oberflaeche_2 
   
    (   
        (4 8 11 7)  //Block2   
    ) 
   
    patch oberflaeche_3 
   
    (         
        (3 11 7 3)  //Block3     
    ) 
                   
    wall Gasturbine   
         
        (
      (5 9 10 6) //Block2
        )
           
  patch Einlass
         
        (       
    (2 6 10 2)  // Block3     
        )
   
     
    patch Auslass
   
       
        (   
        (1 5 9 1) //Block1
                 
        )

);

mergePatchPairs
(
);

// ************************************************************************* //


wyldckat March 22, 2014 07:11

Greetings knoedl1 and welcome to the forum!

Are you sure that the mesh was working correctly in OpenFOAM 2.2.2?
I ask this because a quit inspection to the "blockMeshDict" shows me that this:
Code:

    empty unten
    (
      (1 0 0 1)
      (3 2 2 3)             
    )

is probably very wrong. In addition, that patch does not appear in the checkMesh output.

Regarding the changes between 2.2.2 and 1.6-ext, here is the command I've used:
Code:

diff -Nur OpenFOAM-2.2.2/tutorials/incompressible/icoFoam/cavity/constant/polyMesh/blockMeshDict OpenFOAM-1.6-ext/tutorials/incompressible/icoFoam/cavity/constant/polyMesh/blockMeshDict
to get this:
Code:

--- OpenFOAM-2.2.2/tutorials/incompressible/icoFoam/cavity/constant/polyMesh/blockMeshDict    2013-10-17 20:40:53.361975774 +0100
+++ OpenFOAM-1.6-ext/tutorials/incompressible/icoFoam/cavity/constant/polyMesh/blockMeshDict    2013-12-25 13:10:06.947440667 +0000
@@ -1,8 +1,8 @@
 /*--------------------------------*- C++ -*----------------------------------*\
 | =========                |                                                |
-| \\      /  F ield        | OpenFOAM: The Open Source CFD Toolbox          |
-|  \\    /  O peration    | Version:  2.2.2                                |
-|  \\  /    A nd          | Web:      www.OpenFOAM.org                      |
+| \\      /  F ield        | OpenFOAM Extend Project: Open Source CFD        |
+|  \\    /  O peration    | Version:  1.6-ext                              |
+|  \\  /    A nd          | Web:      www.extend-project.de                |
 |    \\/    M anipulation  |                                                |
 \*---------------------------------------------------------------------------*/
 FoamFile
@@ -37,35 +37,23 @@
 (
 );
 
-boundary
+patches
 (
-    movingWall
-    {
-        type wall;
-        faces
-        (
-            (3 7 6 2)
-        );
-    }
-    fixedWalls
-    {
-        type wall;
-        faces
-        (
-            (0 4 7 3)
-            (2 6 5 1)
-            (1 5 4 0)
-        );
-    }
-    frontAndBack
-    {
-        type empty;
-        faces
-        (
-            (0 3 2 1)
-            (4 5 6 7)
-        );
-    }
+    wall movingWall
+    (
+        (3 7 6 2)
+    )
+    wall fixedWalls
+    (
+        (0 4 7 3)
+        (2 6 5 1)
+        (1 5 4 0)
+    )
+    empty frontAndBack
+    (
+        (0 3 2 1)
+        (4 5 6 7)
+    )
 );
 
 mergePatchPairs

Best regards,
Bruno

knoedl1 March 22, 2014 07:42

Hi Bruno thank you very much for your quick answer!

IN OF2.2.2 i had no empty patch inside, i delete it there,
but i thought maybe in OF1.6ext he also wants to have the empty patch?

knoedl1 March 22, 2014 07:45

ok this is the new error message, here in this case i put the "empty unten" into the
patches( );

Create time

Create polyMesh for time = 0

Time = 0

Mesh stats
all points: 12
live points: 12
all faces: 14
live faces: 14
internal faces: 2
cells: 3
boundary patches: 9
point zones: 0
face zones: 0
cell zones: 1

Overall number of cells of each type:
hexahedra: 1
prisms: 2
wedges: 0
pyramids: 0
tet wedges: 0
tetrahedra: 0
polyhedra: 0

Checking topology...
Boundary definition OK.
Point usage OK.
Upper triangular ordering OK.
Face vertices OK.
Number of regions: 1 (OK).

Checking patch topology for multiply connected surfaces ...
Patch Faces Points Surface topology
front 3 8 ok (non-closed singly connected)
back 3 8 ok (non-closed singly connected)
unten 0 0 ok (empty)
oberflaeche_1 1 3 ok (non-closed singly connected)
oberflaeche_2 1 4 ok (non-closed singly connected)
oberflaeche_3 1 3 ok (non-closed singly connected)
Gasturbine 1 4 ok (non-closed singly connected)
Einlass 1 3 ok (non-closed singly connected)
Auslass 1 3 ok (non-closed singly connected)

Checking geometry...
This is a 3-D mesh
Overall domain bounding box (0 -0.3 -0.0115774) (0.265165 0.45 0.0115774)
Mesh (non-empty, non-wedge) directions (1 1 0)
Mesh (non-empty) directions (1 1 1)
Mesh (non-empty, non-wedge) dimensions 2
***Number of edges not aligned with or perpendicular to non-empty directions: 12
Writing 12 points on non-aligned edges to set nonAlignedEdges
Boundary openness (3.1462e-19 0 4.02714e-17) Threshold = 1e-06 OK.
Max cell openness = 1.4789e-16 OK.
Max aspect ratio = 24.7206 OK.
Minumum face area = 0.000109152. Maximum face area = 0.0732614. Face area magnitudes OK.
Min volume = 0.000350603. Max volume = 0.00113527. Total volume = 0.00183648. Cell volumes OK.
Mesh non-orthogonality Max: 26.2222 average: 26.2222 Threshold = 70
Non-orthogonality check OK.
Face pyramids OK.
Max skewness = 1.56028 OK.

Failed 1 mesh checks.

End

wyldckat March 22, 2014 09:27

I think you can safely ignore that message, since there is no clear indication on whether there is anything wrong with it.

And please use the "[CODE]" markers when posting code, output and file contents here on the forum, as explained in one of my signature links: Posting code and output with [CODE]


All times are GMT -4. The time now is 14:45.