[Gmsh] Maybe a stupid question, but...

David Colignon David.Colignon at ulg.ac.be
Tue Mar 2 22:34:44 CET 2010


On 01/03/10 16:57, Alexis Blasselle wrote:
> I'm sorry but I'm new at gmsh, and I can't understand why this code is
> not correct.
> I want to generate cylinders and make them rotate (to obtain six cylinders).
> I hope it is not a stupid mistake of mine, and thank you in advance for
> your answer,

Hi,

can you try with

Rotate{ {0,1,0}, {0,0,0}, Pi/2 } { Duplicata { Volume { tmp[1] }; } }

?

Regards,

Dave

--
David Colignon, Ph.D.
Collaborateur Logistique du F.R.S.-FNRS
CÉCI - Consortium des Équipements de Calcul Intensif
ACE - Applied & Computational Electromagnetics
Institut Montefiore 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

>
> Best regards,
>
> Miss Blasselle
>
> // the code
>
> lc1 = 0.05 ;
> R = 0.5;
> H = 3 ;
>
> Point(100) = {0., 0., 0., lc1};
> // premier cercle
> Point(1) = {  0. ,  0. , -H/2 , lc1  } ;
> Point(2) = {  R  ,  0. , -H/2 , lc1  } ;
> Point(3) = {  0. ,  R  , -H/2. , lc1  } ;
> Point(4) = { -R  ,  0. , -H/2 , lc1  } ;
> Point(5) = {  0. , -R  , -H/2 , lc1  } ;
>
> Circle(23) = { 2 , 1 , 3 } ;
> Circle(34) = { 3 , 1 , 4 } ;
> Circle(45) = { 4 , 1 , 5 } ;
> Circle(52) = { 5 , 1 , 2 } ;
>
> Line Loop (1) = {23, 34, 45, 52 };
>
> Plane Surface (11) = {-1};
>
> tmp[] = Extrude {0,0,-H} {
>    Surface{11}; };
>
> //out[] = Duplicata{tmp[0];};
>
> Rotate{ {0,1,0}, {0,0,0}, Pi/2 }{ Duplicata{tmp[0];} };
>
>
> --
> http://www.ann.jussieu.fr/~blasselle/
>
>
>
> _______________________________________________
> gmsh mailing list
> gmsh at geuz.org
> http://www.geuz.org/mailman/listinfo/gmsh