[Gmsh] Subdivide extruded surfaces?
julien hoessler
julien.hoessler06 at imperial.ac.uk
Tue Jun 14 22:17:11 CEST 2011
Hi Rui,
The way I use it is the following
Extrude {
Surface{6}; Layers{{1,1,1},{0.5*h,0.75*h,h}}; Recombine;
}
Giving 3 layers of thickness 0.5h,0.75h and h in that example. The
extrusion direction is the surface normal
Regards
Julien
On 14 Jun 2011, at 14:51, Rui Maciel wrote:
> I've defined a volume by extruding a rectangular transfinite
> surface (example provided below) and now I'm looking for a way to
> control how that volume is refined. Until now I was able to set the
> number of subdivisions in the extrusion's direction by specifying
> the number of layers, but I haven't found a way to refine surfaces
> or even how to subdivide individual line segments used to define a
> surface.
>
> So, my questions are: is there a better way to set how a extruded
> volume is subdivided in the extrusion's direction? And does Gmsh
> provide a way to subdivide surfaces or even individual lines used to
> define surfaces? If so, can anyone provide an example?
>
>
> Thanks in advance,
> Rui Maciel
>
>
> x = 1.00;
> y = 1.00;
> h = 0.10;
>
> div = 1;
>
> Point(1) = { -x/2, -y/2, -h/2, 1e+22};
> Point(2) = { x/2, -y/2, -h/2, 1e+22};
> Point(3) = { x/2, y/2, -h/2, 1e+22};
> Point(4) = { -x/2, y/2, -h/2, 1e+22};
>
> Line(1) = {1, 2};
> Line(2) = {2, 3};
> Line(3) = {3, 4};
> Line(4) = {4, 1};
>
> Line Loop(6) = {1, 2, 3, 4};
> Plane Surface(6) = {6};
>
> Transfinite Line{1:4} = div;
> Transfinite Surface{6} = {1, 2, 3, 4};
>
> Recombine Surface{6};
>
> Extrude {0, 0, h} {
> Surface{6}; Layers{ 2*div}; Recombine;
> }
>
>
> _______________________________________________
> gmsh mailing list
> gmsh at geuz.org
> http://www.geuz.org/mailman/listinfo/gmsh
Julien Hoessler
PhD Student
Department of Aeronautics
Imperial College London
Phone: +44 (0) 20759 45042
Mobile: +44 (0) 78343 80977
Email: julien.hoessler06 at imperial.ac.uk