[Gmsh] How to create Surface from Discrete surface ?
Kenneth Assogba
kennethassogba at gmail.com
Thu May 7 01:01:01 CEST 2020
Dear GMSH developer,
I'm using Gmsh Python API in version 4.5.6. I have some .msh file (with
just points and line who define a surface) and I a want to create a 2D mesh
on it. As it is not directly possible, i'm triying the
*gmsh.model.mesh.createGeometry()* method and after that, doing
*gmsh.model.geo.synchronize()*
*gmsh.model.mesh.generate(2)*
The result in the console is :
Info : Creating geometry of discrete curves...
Info : Done creating geometry of discrete curves (8e-06 s)
Info : Creating geometry of discrete surfaces...
Info : Done creating geometry of discrete surfaces (1e-06 s)
But the 2D mesh isn't create. Do you have any idea of how I can do ?
I see here (t13)
<https://gitlab.onelab.info/gmsh/gmsh/-/blob/master/tutorial/python/t13.py>
that you recreate surface loop and volume before mesh, but in my case it is
not possible since Gmsh return the error : Error : GEO surface with tag 1
already exists.
By reading information about the file (explore)
<https://gitlab.onelab.info/gmsh/gmsh/-/blob/master/demos/api/explore.py>,
I can see:
Entity (2, 1) of type Discrete surface
- Mesh has 0 nodes and 0 elements
- Boundary entities: [(1, 1), (1, 2), (1, 3), (1, 4)]
Please see attached the original .geo and the exported .msh.
Thank you in advance,
Best regards,
Kenneth Assogba
Master 2 Ingénierie Mathématique Pour l'Entreprise
Sorbonne Université - Faculté de Sciences et Ingénierie
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://onelab.info/pipermail/gmsh/attachments/20200507/b130f9d9/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: model1.geo
Type: application/octet-stream
Size: 702 bytes
Desc: not available
URL: <http://onelab.info/pipermail/gmsh/attachments/20200507/b130f9d9/attachment.geo>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: model1.msh
Type: application/octet-stream
Size: 2613 bytes
Desc: not available
URL: <http://onelab.info/pipermail/gmsh/attachments/20200507/b130f9d9/attachment.msh>
More information about the gmsh
mailing list