[Gmsh] 1D elements with 2D mesh

Geordie McBain gdmcbain at freeshell.org
Tue Jun 14 02:58:30 CEST 2011


2011/6/14 Bill Greene <w.h.greene at gmail.com>:
> This seems like it might be a newbie question but I can't find an
> answer in the docs or previous postings.
>
> If I create a simple square surface and push the 2D Mesh
> button, I get a nice triangular mesh. But when I save this
> mesh, as an abaqus file for example, I get both 1D and 2D
> elements included.
>
> How do I tell gmsh not to include these 1D elements in my
> 2D mesh?

Define the two-dimensional domain as a Physical Surface; see

  http://geuz.org/gmsh/doc/texinfo/gmsh.html#Elementary-vs-physical-entities

If you define any physical entities, then Gmsh will only save their
elements in the mesh; define none and Gmsh saves all elements.