[Gmsh] How to extract surface number from Extrude

thierry.gilles at tiscali.nl thierry.gilles at tiscali.nl
Tue Mar 14 11:49:29 CET 2006


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.

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 ?



Thank you again


Thierry GILLES, Ir.
PhD Student
Royal Military Academy


-------------- next part --------------
A non-text attachment was scrubbed...
Name: ExtrudePhysical.geo
Type: application/octet-stream
Size: 263 bytes
Desc: not available
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20060314/534c57a2/attachment.geo>