[Gmsh] bug (?) in gmsh-1.65

Cristian Tibirna ctibirna at giref.ulaval.ca
Fri Jun 16 22:58:25 CEST 2006


Hello

I wanted to upgrade our lab to gmsh-1.65 today (from 1.60) and we fell on a 
possible bug in the UNV exporting functionality.

The attached geo/unv pairs should demonstrate the bug:

exporting a 2D mesh in UNV format includes now elements of type 21 (beam) for 
the border of geometry (see carre.geo/carre.unv)

The same happens in 3d. When exporting the tetra mesh generated from the 
cube.geo (from the demos directory of gmsh-1.65) in UNV format both the tetra 
elements and triangles for the geometric faces of the grid are included in 
the exported file.

I must acknowledge that all this doesn't have the feel of a bug, but I have 
fallen into it because trying to import with our in-house code the UNV meshes 
generated by gmsh-1.65 doesn't give us the same result as with the same 
meshes exported by gmsh-1.60.

Thanks.

-- 
Cristian Tibirna				(1-418-) 656-2131 / 4340
  Université Laval - Québec, CAN ... http://www.giref.ulaval.ca/~ctibirna
  Professionnel de recherche GIREF ... ctibirna at giref.ulaval.ca
-------------- next part --------------
lc=0.2;
Point(1) = {0,0,0,lc};
Point(2) = {1,0,0,lc};
Point(3) = {1,1,0,lc};
Point(4) = {0,1,0,lc};
Line(1) = {1,2};
Line(2) = {2,3};
Line(3) = {3,4};
Line(4) = {4,1};
Line Loop(5) = {2,3,4,1};
Plane Surface(6) = {5};
-------------- next part --------------
    -1
  2411
         1         1         1        11
   0.0000000000000000D+00   0.0000000000000000D+00   0.0000000000000000D+00
         2         1         1        11
   1.0000000000000000D+00   0.0000000000000000D+00   0.0000000000000000D+00
         3         1         1        11
   1.0000000000000000D+00   1.0000000000000000D+00   0.0000000000000000D+00
         4         1         1        11
   0.0000000000000000D+00   1.0000000000000000D+00   0.0000000000000000D+00
         5         1         1        11
   2.4999999999999661D-01   0.0000000000000000D+00   0.0000000000000000D+00
         6         1         1        11
   4.9999999999999306D-01   0.0000000000000000D+00   0.0000000000000000D+00
         7         1         1        11
   7.4999999999998956D-01   0.0000000000000000D+00   0.0000000000000000D+00
         8         1         1        11
   1.0000000000000000D+00   2.4999999999999661D-01   0.0000000000000000D+00
         9         1         1        11
   1.0000000000000000D+00   4.9999999999999306D-01   0.0000000000000000D+00
        10         1         1        11
   1.0000000000000000D+00   7.4999999999998956D-01   0.0000000000000000D+00
        11         1         1        11
   7.5000000000000344D-01   1.0000000000000000D+00   0.0000000000000000D+00
        12         1         1        11
   5.0000000000000688D-01   1.0000000000000000D+00   0.0000000000000000D+00
        13         1         1        11
   2.5000000000001044D-01   1.0000000000000000D+00   0.0000000000000000D+00
        14         1         1        11
   0.0000000000000000D+00   7.5000000000000344D-01   0.0000000000000000D+00
        15         1         1        11
   0.0000000000000000D+00   5.0000000000000688D-01   0.0000000000000000D+00
        16         1         1        11
   0.0000000000000000D+00   2.5000000000001044D-01   0.0000000000000000D+00
        17         1         1        11
   5.0009207551075385D-01   5.0004917558058759D-01   0.0000000000000000D+00
        18         1         1        11
   3.0169858684536405D-01   3.0168415473208049D-01   0.0000000000000000D+00
        19         1         1        11
   3.0173335591884159D-01   6.9841540170723593D-01   0.0000000000000000D+00
        20         1         1        11
   6.9842591412177391D-01   6.9842684500557062D-01   0.0000000000000000D+00
        21         1         1        11
   6.9845936886525750D-01   3.0173309842914875D-01   0.0000000000000000D+00
        22         1         1        11
   5.0007842578284212D-01   2.2443989985790530D-01   0.0000000000000000D+00
        23         1         1        11
   2.2445652745425965D-01   5.0005077450842084D-01   0.0000000000000000D+00
        24         1         1        11
   7.7570840417855380D-01   5.0007881916185482D-01   0.0000000000000000D+00
        25         1         1        11
   5.0007143785922215D-01   7.7568014124185702D-01   0.0000000000000000D+00
        26         1         1        11
   1.6740425989179536D-01   1.6738885539866022D-01   0.0000000000000000D+00
        27         1         1        11
   1.6744034760317600D-01   8.3267355921623554D-01   0.0000000000000000D+00
        28         1         1        11
   8.3270089071396924D-01   1.6743967841269522D-01   0.0000000000000000D+00
        29         1         1        11
   8.3266446881286682D-01   8.3267935350747702D-01   0.0000000000000000D+00
        30         1         1        11
   1.3634495488024992D-01   3.4894365759494617D-01   0.0000000000000000D+00
        31         1         1        11
   3.4895706930385750D-01   1.3634417070429314D-01   0.0000000000000000D+00
        32         1         1        11
   1.3638402057246402D-01   6.5114480942021258D-01   0.0000000000000000D+00
        33         1         1        11
   3.4896071154203867D-01   8.6372878493038863D-01   0.0000000000000000D+00
        34         1         1        11
   6.5115317954686669D-01   8.6373009174148985D-01   0.0000000000000000D+00
        35         1         1        11
   8.6373372205776633D-01   6.5117102343912903D-01   0.0000000000000000D+00
        36         1         1        11
   8.6374800970974053D-01   3.4897493471134733D-01   0.0000000000000000D+00
        37         1         1        11
   6.5117080218530554D-01   1.3640980242991407D-01   0.0000000000000000D+00
    -1
    -1
  2412
        17        91         6         6         7         3
        17        25        19
        18        91         6         6         7         3
        17        23        18
        19        91         6         6         7         3
        18        22        17
        20        91         6         6         7         3
        19        23        17
        21        91         6         6         7         3
        20        25        17
        22        91         6         6         7         3
        17        24        20
        23        91         6         6         7         3
        21        24        17
        24        91         6         6         7         3
        17        22        21
        25        91         6         6         7         3
         2        28         7
        26        91         6         6         7         3
        14        27         4
        27        91         6         6         7         3
         8        28         2
        28        91         6         6         7         3
        11        29         3
        29        91         6         6         7         3
         4        27        13
        30        91         6         6         7         3
         1        26        16
        31        91         6         6         7         3
         3        29        10
        32        91         6         6         7         3
         5        26         1
        33        91         6         6         7         3
        15        32        14
        34        91         6         6         7         3
         7        37         6
        35        91         6         6         7         3
        10        35         9
        36        91         6         6         7         3
        13        33        12
        37        91         6         6         7         3
        16        30        15
        38        91         6         6         7         3
         9        36         8
        39        91         6         6         7         3
        12        34        11
        40        91         6         6         7         3
         6        31         5
        41        91         6         6         7         3
         6        37        22
        42        91         6         6         7         3
        23        32        15
        43        91         6         6         7         3
        22        31         6
        44        91         6         6         7         3
         9        35        24
        45        91         6         6         7         3
        24        36         9
        46        91         6         6         7         3
        12        33        25
        47        91         6         6         7         3
        25        34        12
        48        91         6         6         7         3
        15        30        23
        49        91         6         6         7         3
        18        31        22
        50        91         6         6         7         3
        22        37        21
        51        91         6         6         7         3
        23        30        18
        52        91         6         6         7         3
        19        32        23
        53        91         6         6         7         3
        24        35        20
        54        91         6         6         7         3
        25        33        19
        55        91         6         6         7         3
        20        34        25
        56        91         6         6         7         3
        21        36        24
        57        91         6         6         7         3
        18        30        26
        58        91         6         6         7         3
        26        30        16
        59        91         6         6         7         3
         5        31        26
        60        91         6         6         7         3
        26        31        18
        61        91         6         6         7         3
        14        32        27
        62        91         6         6         7         3
        27        32        19
        63        91         6         6         7         3
        28        36        21
        64        91         6         6         7         3
         8        36        28
        65        91         6         6         7         3
        27        33        13
        66        91         6         6         7         3
        19        33        27
        67        91         6         6         7         3
        21        37        28
        68        91         6         6         7         3
        28        37         7
        69        91         6         6         7         3
        11        34        29
        70        91         6         6         7         3
        29        34        20
        71        91         6         6         7         3
        29        35        10
        72        91         6         6         7         3
        20        35        29
         1        21         1         1         7         2
         0         0         0
         1         5
         2        21         1         1         7         2
         0         0         0
         5         6
         3        21         1         1         7         2
         0         0         0
         6         7
         4        21         1         1         7         2
         0         0         0
         7         2
         5        21         2         2         7         2
         0         0         0
         2         8
         6        21         2         2         7         2
         0         0         0
         8         9
         7        21         2         2         7         2
         0         0         0
         9        10
         8        21         2         2         7         2
         0         0         0
        10         3
         9        21         3         3         7         2
         0         0         0
         3        11
        10        21         3         3         7         2
         0         0         0
        11        12
        11        21         3         3         7         2
         0         0         0
        12        13
        12        21         3         3         7         2
         0         0         0
        13         4
        13        21         4         4         7         2
         0         0         0
         4        14
        14        21         4         4         7         2
         0         0         0
        14        15
        15        21         4         4         7         2
         0         0         0
        15        16
        16        21         4         4         7         2
         0         0         0
        16         1
    -1
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20060616/44815b8f/attachment.sig>