[Gmsh] Deleting elements

Christophe Geuzaine cgeuzaine at ulg.ac.be
Tue Jul 9 06:45:29 CEST 2013


On 08 Jul 2013, at 08:06, Kiran Chandra <kiranchandra687 at gmail.com> wrote:

> Dear Dr. Rene Schneider, 
> 
> Thanks for the reply. I tried the physical volume but could you please tell me if it is possible to start the node numbering and the element numbering in the exported mesh from 1. If I created the 3D mesh from extrusion, the physical volume exports only the volume elements but the numbering does not start from 1. 

recent versions of Gmsh with the MSH2 format should do what you want (i.e. renumber elements starting at 1)

> I use my own code for the analysis and I dont want to do much preprocessing myself if it is possible from within gmsh. 
> 
> thanks
> regards
> Kiran
> 
> 
> 
> On Sun, Jul 7, 2013 at 11:55 PM, Rene Schneider <rene.schneider at mathematik.tu-chemnitz.de> wrote:
> Hello Kiran
> 
> 
> On 07/06/2013 08:41 PM, Kiran Chandra wrote:
> Hello,
> I would like to generate a 3D mesh. To this end, I generate a 2D mesh
> and then extrude it.
> However, while exporting, I want to delete all the 2D elements, renumber
> the remaining 3D mesh and export it. Can this be done?
> (I use my own code for the analysis and I do not know how to automate
> the renumbering in my code.)
> thanks in advance
> 
> I suggest you define your volume to be a "physical volume". Once any physical items are present in the geometry, only those physical items are exported in the mesh. I.e. if you don't mark the boundary as physical as well, the triangles of the boundary will not be exported separately.
> 
> Hope this helps.
> 
> Rene
> 
> 
> -- 
> ----------------------------------------------------
> 
>       Dr. Rene Schneider
> 
>       TU Chemnitz, Fakultaet fuer Mathematik,
>       09107 Chemnitz, Germany
> 
>       Besucheradresse / Visitor address:
>       Reichenhainer Str. 41 / Raum 625
>       09126 Chemnitz, Germany
> 
>       Tel.: +49-371-531-33953
>       Fax:  +49-371-531-8-33953
>       rene.schneider at mathematik.tu-chemnitz.de
> 
>       http://www.tu-chemnitz.de/~rens
> 
> ----------------------------------------------------
> 
> _______________________________________________
> gmsh mailing list
> gmsh at geuz.org
> http://www.geuz.org/mailman/listinfo/gmsh
> 
> _______________________________________________
> gmsh mailing list
> gmsh at geuz.org
> http://www.geuz.org/mailman/listinfo/gmsh

-- 
Prof. Christophe Geuzaine
University of Liege, Electrical Engineering and Computer Science 
http://www.montefiore.ulg.ac.be/~geuzaine