[Gmsh] mesh error after volume rotation

Christophe Geuzaine cgeuzaine at ulg.ac.be
Thu Jan 31 16:45:37 CET 2013


On 11 Dec 2012, at 10:52, "Melzig, Thomas" <thomas.melzig at ist.fraunhofer.de> wrote:

> 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?
>  

Hi Thomas,

It's a "feature-bug"... for backward compatibility with the Extrusion command. Adding 

  Geometry.ExactExtrusion = 0;

in your script should fix it.

Christophe


> 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]};
> }
> _______________________________________________
> gmsh mailing list
> gmsh at geuz.org
> http://www.geuz.org/mailman/listinfo/gmsh

-- 
Prof. Christophe Geuzaine
University of Liege, Electrical Engineering and Computer Science 
http://www.montefiore.ulg.ac.be/~geuzaine