[Gmsh] Radial Extrude

Christophe Geuzaine cgeuzaine at ulg.ac.be
Mon Oct 6 09:24:52 CEST 2014


On 03 Oct 2014, at 21:00, José M. Sancho <jose.sancho at upm.es> wrote:

> I need to “extrude” the Ruled Surface{1} along the radial direction to obtain a volume and then recombine the top and sides plane surfaces to have prism elements with triangular base in the curved surfaces
> 
> I know that Extrude command does not allow the radial extrude. Any suggestion ?
>  

Why not extrude in the z-direction?

r1 = 2.0;
h =  0.2;

Point(1) = {0.0, 0.0, 0.0};
Point(2) = {r1, 0.0, 0.0};
Point(3) = {0.0, r1, 0.0};

Circle(1) = {2,1,3};

Point(4) = {0, 1, 0, 1.0};
Point(5) = {1, 0, 0, 1.0};
Circle(2) = {5, 1, 4};
Line(3) = {3, 4};
Line(4) = {5, 2};
Line Loop(5) = {3, -2, 4, 1};
Plane Surface(6) = {5};
Transfinite Line{1:4} = 10;
Transfinite Surface{6};
Recombine Surface{6};
Extrude {0, 0, 1} {
  Surface{6}; Layers{2}; Recombine;
}



> 
> r1 = 2.0;
> h =  0.2;
> 
> Point(1) = {0.0, 0.0, 0.0};
> Point(2) = {r1, 0.0, 0.0};
> Point(3) = {0.0, r1, 0.0};
> 
> Circle(1) = {2,1,3};
> 
> Point(4) = {0.0, 0.0, h};
> Point(5) = {r1, 0.0, h};
> Point(6) = {0.0, r1, h};
> 
> Circle(2) = {5,4,6};
> 
> Line(3)   = {2,5};
> Line(4)   = {6,3};
> 
> Line Loop(1) = {-1,3,2,4};
> Ruled Surface(1) = {1};
> 
> Transfinite Line{1,2} = 6;
> Transfinite Line{3,4} = 3;
> 
> Transfinite Surface{1};
> 
> 
> ===========================
> José María Sancho Aznal
> Catedrático de Universidad
> ETS de Arquitectura
> Avda. Juan de Herrera 4
> 28040 Madrid, Spain
> email: jose.sancho at upm.es
> ===========================
> 
> 
> 
> 
> _______________________________________________
> 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