[Gmsh] meshing of a rotated volume

Melzig, Thomas thomas.melzig at ist.fraunhofer.de
Fri Feb 10 13:41:00 CET 2012


Hi all,

I have a problem meshing a rotated volume. Before the rotation the mesh
is correct, but not afterwards. There might be a problem only with the
side surfaces, because  the top and bottom surface are rotated
correctly.

Am I misssing something in the rotation command or whats wrong with my
code?

 

Hope you can help me

Thomas

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

 

Point(1) = { 0,  0, 0, 2};

Point(2) = {20,  0, 0, 2};

Point(3) = {20, 10, 0, 2};

Point(4) = { 0, 10, 0, 2};

 

Line(5) = {1, 2};

Line(6) = {2, 3};

Line(7) = {3, 4};

Line(8) = {4, 1};

 

Line Loop(9) = {5:8};

 

Plane Surface(10) = {9};

 

v1[] = Extrude {0, 0, 10} {

  Surface{10};

};

 

Rotate {{ 1, 0, 0}, { 0, 0, 0}, Pi/2} {

  Volume{v1[1]};

}

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20120210/75762087/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Test.geo
Type: application/octet-stream
Size: 361 bytes
Desc: Test.geo
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20120210/75762087/attachment.geo>