[Gmsh] Transform on Duplicata transforms the original

zaoui abdelhalim zaoui_abdelhalim at yahoo.fr
Thu Oct 27 18:46:05 CEST 2005


hello,
try this it work correctely
just to separate , first translate, and in second make rotation but the center aof rotation became
{ -0.01, 0.01, 0 }
best regards
 
a = 0.004;
b = 0.002;
lc = 0.001;
Point(1) = { 0, 0, 0, lc };
Point(100) = { a, 0, 0, lc };
Point(101) = { 0, b, 0, lc };
Point(102) = {-a, 0, 0, lc };
Point(103) = { 0,-b, 0, lc };
Ellipse(100) = { 100, 1, 100, 101 };
Ellipse(101) = { 101, 1, 102, 102 };
Ellipse(102) = { 102, 1, 102, 103 };
Ellipse(103) = { 103, 1, 100, 100 };
Line Loop(4) = { 100, 101, 102, 103 };
Plane Surface(4) = { 4 };
to_rad = 3.141592654/180;
Translate { -0.01, 0.01, 0 } {
   Duplicata { Surface{4}; }
}
Rotate { {0,0,1},{ -0.01, 0.01, 0 },2*Pi/3 } {
   Surface{104};
}

--------------------------------

Laurent Klinger <laurent.klinger at kannak.ch> a écrit : 
Hello,
I'm new to gmsh. I would like to define two elliptical surfaces. 
The first looks all right and is created with:

a = 0.004;
b = 0.002;
lc = 0.001;
Point(1) = { 0, 0, 0, lc };
Point(100) = { a, 0, 0, lc };
Point(101) = { 0, b, 0, lc };
Point(102) = {-a, 0, 0, lc };
Point(103) = { 0,-b, 0, lc };
Ellipse(100) = { 100, 1, 100, 101 };
Ellipse(101) = { 101, 1, 102, 102 };
Ellipse(102) = { 102, 1, 102, 103 };
Ellipse(103) = { 103, 1, 100, 100 };
Line Loop(4) = { 100, 101, 102, 103 };
Plane Surface(4) = { 4 };

For the second one, I'm trying to rotate and translate the first one:

to_rad = 3.141592654/180;
Translate { -0.01, 0.01, 0 } 
{ 
Rotate { {0, 0, 1}, {0, 0, 0}, 120*to_rad } 
{ 
Duplicata { Surface {4}; } 
} 
}

This results in two ellipses one over the other, while I thought
that using Duplicata would avoid this. Note that the defining
points of the first ellipse (1:103) are however not transformed.
Trying to 2D-mesh this results in complete garbage. I tried to
follow the syntax of paragraph 3.1.6 of the doc scrupulously.
What am I doing wrong?
Thanks for any help,
laurent
 
_______________________________________________
gmsh mailing list
gmsh at geuz.org
http://www.geuz.org/mailman/listinfo/gmsh


		
---------------------------------
 Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger
 Téléchargez le ici !  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20051027/819b8f42/attachment.html>