Hello,

I've tried without success to use the gmsh QGIS plugin and I'm somewhat upset about the way geometries are constructed.

Using the gmsh-qgis plugin, a simple square would be constructed the following way :

IP = newp;
IL = newl;
IS = news;
ILL = newll;
Point(IP+0) = {0.0, 0.0, 0.0, 10.0};
Point(IP+1) = {100.0, 0.0, 0.0, 10.0};
Point(IP+2) = {100.0, 100.0, 0.0, 10.0};
Point(IP+3) = {0.0, 100.0, 0.0, 10.0};
Line(IL+0) = {IP+0, IP+1, IP+2, IP+3, IP+0};
Line Loop(ILL+0) = {IL+0};
Plane Surface(IS) = {ILL:ILL+0};
Physical Surface("Domain") = {IS};

but this leads to the following warning messages from GMSH, and no mesh is obtained :

Info    : Reading 'carre_simple.geo'...
Info    : Model Edge 1 is degenerate
Info    : Done reading 'carre_simple.geo'
Info    : Meshing 1D...
Info    : Meshing curve 1 (Line)
Warning : Curve 1 has a zero length
Info    : Done meshing 1D (0 s)
Info    : Meshing 2D...
Info    : Meshing surface 1 (Plane, Delaunay)
Info    : Degenerated mesh on edge 1
Warning : Mesh Generation of Model Face 1 Skipped: Only 0 mesh vertices on the contours
Info    : Done meshing 2D (0.000125885 s)
Info    : 4 vertices 5 elements
Warning : ------------------------------
Warning : Mesh generation error summary
Warning :     2 warnings
Warning :     0 errors
Warning : Check the full log for details



Instead, using the following syntax, the mesh is obtained :

IP = newp;
IL = newl;
IS = news;
ILL = newll;
Point(IP+0) = {0.0, 0.0, 0.0, 10.0};
Point(IP+1) = {100.0, 0.0, 0.0, 10.0};
Point(IP+2) = {100.0, 100.0, 0.0, 10.0};
Point(IP+3) = {0.0, 100.0, 0.0, 10.0};
Line(IL+0) = {IP+0, IP+1};
Line(IL+1) = {IP+1, IP+2};
Line(IL+2) = {IP+2, IP+3};
Line(IL+3) = {IP+3, IP+0};
Line Loop(ILL+0) = {IL+0, IL+1, IL+2, IL+3};
Plane Surface(IS) = {ILL:ILL+0};
Physical Surface("Domain") = {IS};

I'd be interested having some explanations why the gmsh-qgis plugin doesn't work on a such simple case. And also knowing about any experience from gmsh-qgis users (but I didn't find lot of users from Google !).

Thank you,
François



_______________________________________________
gmsh mailing list
[email protected]
http://onelab.info/mailman/listinfo/gmsh

Reply via email to