[Gmsh] Obtain elements' numbers
David Colignon
David.Colignon at ulg.ac.be
Fri Jul 24 12:51:14 CEST 2009
Hi François,
you should have a look at tutorial 3 , http://www.geuz.org/gmsh/doc/texinfo/gmsh-full.html#SEC66
...
out[] = Extrude { {-2*h,0,0}, {1,0,0} , {0,0.15,0.25} , Pi/2 } {
Surface{news-1}; Layers{10}; Recombine;
};
// In this last extrusion command we retrieved the volume number
// programatically by saving the output of the command into a
// list. This list will contain the "top" of the extruded surface (in
// out[0]) as well as the newly created volume (in out[1]).
...
but I am not sure it also applies to the Rotate/Duplicate case ...
Cheers,
Dave
--
David Colignon, Ph.D.
Collaborateur Logistique du F.R.S.-FNRS
CÉCI - Consortium des Équipements de Calcul Intensif
ACE - Applied & Computational Electromagnetics
Sart-Tilman B28
Université de Liège
4000 Liège - BELGIQUE
Tél: +32 (0)4 366 37 32
Fax: +32 (0)4 366 29 10
WWW: http://hpc.montefiore.ulg.ac.be/
Agenda: http://www.google.com/calendar/embed?src=david.colignon%40gmail.com
François LIROLA wrote:
> Hi !
>
> I've been using gmsh to mesh a tore. However, in order to automate
> diffrerent processes I'd like to be able to access the reference number
> of elements created by function such a rotate with the duplicate option.
> Is there any way to do this?
>
> Thank you for your answer.
>
> Regards,
>
> François LIROLA
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> gmsh mailing list
> gmsh at geuz.org
> http://www.geuz.org/mailman/listinfo/gmsh