Avoiding EDGES in .mesh file
Hi everyone,
Just a quick question on .mesh file generated with GMSH. I notice that when I generate .mesh file ( for instance with [1]) it contains EDGES section and thus if I use the generated .mesh file in sfepy if gives me error while if I manually remove that section, everything goes well. So, I was curious is there any trick so that I can avoid writing EDGES section in .mesh file or is there a shortcut in sfepy for it ? I need to avoid manually removing it.
Best, Ali
[1] https://gitlab.onelab.info/gmsh/gmsh/blob/gmsh_4_8_4/tutorial/python/t1.py
Hi Ali,
On 06/08/2021 23:03, kshargh.ali@gmail.com wrote:
Hi everyone,
Just a quick question on .mesh file generated with GMSH. I notice that when I generate .mesh file ( for instance with [1]) it contains EDGES section and thus if I use the generated .mesh file in sfepy if gives me error while if I manually remove that section, everything goes well. So, I was curious is there any trick so that I can avoid writing EDGES section in .mesh file or is there a shortcut in sfepy for it ? I need to avoid manually removing it.
Try using "script/convert_mesh.py" with the "-d <dimension>" option, where <dimension> is the topological dimension of cells that you want in your mesh. So e.g. in 2D you can use "-d 2" to have only 2D cells.
r.
Best, Ali
[1] https://gitlab.onelab.info/gmsh/gmsh/blob/gmsh_4_8_4/tutorial/python/t1.py
participants (2)
-
kshargh.ali@gmail.com
-
Robert Cimrman