[Gmsh] Problem with Reading the mesh generated into freefem.

Jacob Abdelfatah Ndioubnane jacoban90 at outlook.es
Mon May 20 12:03:17 CEST 2019


According to your first reply, I extracted the points of the boundaries and I noted that, as you said, the points are ordered in a clockwise sens(Freefem only reads in a counterclockwise sens). So I created a Matlab script that reads the points in .xyz format and creates a .geo file with the points and lines:

When I imported the points into a matrix, I reversed the order using the comand “flip”. Then I defined the points and lines according to the gmsh nomenclature, and when I created the mesh and exported in a .mesh format, FreeFem reads it without problems.

Thanks for your reply, it helped me to find another way to solve the problem.

I attach the .m script, the .xyz points and the generated .geo file.

Best Regards,
Jacob

________________________________
De: G. D. McBain <gdmcbain at protonmail.com>
Enviado: Monday, May 20, 2019 3:31:21 AM
Para: Jacob Abdelfatah Ndioubnane
Cc: gmsh
Asunto: RE: Problem with Reading the mesh generated into freefem.



I checked also that when the program generates the mesh it displays a warning error due to It can’t orient the normal of the Surface.

Yes, on running 'gmsh -2 Dominio.geo', I see this too:

    Warning : Could not orient normal of surface 1

I'm not immediately sure why though...  I continue to suspect that this warning is associated with the error from FreeFEM about triangular elements having negative areas, but I haven't been able to work out what the problem with Dominio.brep is, i.e. why Gmsh can't orient the Plane Surface.

I even get the same warning from Gmsh when trying to make a simple Plane Surface from either of the two Curve Loops separately.  That does seem odd to me since the second, which looks like an island (or is it a lake) is simple enough to be inspected manually in the Gmsh GUI and it looks fine.

Sorry, I'm not sure what to suggest from here...

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://onelab.info/pipermail/gmsh/attachments/20190520/85a5583a/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Costa1.xyz
Type: application/octet-stream
Size: 31196 bytes
Desc: Costa1.xyz
URL: <http://onelab.info/pipermail/gmsh/attachments/20190520/85a5583a/attachment-0002.xyz>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: datatogeosea.m
Type: application/octet-stream
Size: 2742 bytes
Desc: datatogeosea.m
URL: <http://onelab.info/pipermail/gmsh/attachments/20190520/85a5583a/attachment-0001.m>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dominio.geo
Type: application/octet-stream
Size: 58904 bytes
Desc: dominio.geo
URL: <http://onelab.info/pipermail/gmsh/attachments/20190520/85a5583a/attachment-0001.geo>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Roca.xyz
Type: application/octet-stream
Size: 705 bytes
Desc: Roca.xyz
URL: <http://onelab.info/pipermail/gmsh/attachments/20190520/85a5583a/attachment-0003.xyz>


More information about the gmsh mailing list