[Gmsh] How to extract surface number from Extrude
Christophe Geuzaine
cag32 at case.edu
Tue Mar 14 13:58:03 CET 2006
thierry.gilles at tiscali.nl wrote:
> Christophe
>
> 1) How to extract automatically generated surface numbers to use them
> in a Physical Surface ?
>
> Last year you showed me how to extract the surface numbers
> automatically generated by the functions Symmetry and Rotate by using a
> vector, for example :
> l1[] = Symmetry {0, 1, 0, 0} { Duplicata{ Surface
> {1,2,9,13,16,19,22,25}; } };
> Physical Surface(2) = - {l1[]};
>
> The big advantage of this method is that I don't need to have these
> surfaces generated first, then track them visually one by one and
> finally copy them manually also one by one in the Phys Surf..
>
> Now I try the same with the fuction Extrude, but it won't work !?
> Can you show me again the best way out ? I send you an extremely
> simple example that you can modify.
>
lc=10;
Point(1) = {-4,0,0,lc};
Point(2) = {0,-4,0,lc};
Point(5) = {0,0,0,lc};
Circle(1) = {1,5,2};
l1[] = Extrude {{1,0,0}, {0,0,0}, Pi/2} {
Line{1};
};
Physical Surface(100) = {-l1[1]};
> 2) Consistent numbering
>
> Is it possible to ask GMSH to renumber all nodes from a mesh
> consistently (1,2,3,...) after or before its generation ?
>
Currently you have to use an external program: for example
gmsh/utils/misc/mshsort.cpp
>
>
> Thank you again
>
>
> Thierry GILLES, Ir.
> PhD Student
> Royal Military Academy
>
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> gmsh mailing list
> gmsh at geuz.org
> http://www.geuz.org/mailman/listinfo/gmsh
--
Christophe Geuzaine
Assistant Professor, Case Western Reserve University, Mathematics
http://www.case.edu/artsci/math/geuzaine