[Gmsh] Recursive extrusion

David Colignon David.Colignon at ulg.ac.be
Tue Jul 28 09:44:56 CEST 2009


Hi Umut,

here it is:

...
Plane Surface(1) = {1};

Transfinite Surface(1) = {1,2,3,4};

Recombine Surface{1};

volFluid[] = Extrude {0,0.15,0} { Surface{1};   Layers{6}; Recombine; };

vol[] = Extrude { 0,0.005,0 }{ Surface{volFluid[0]}; Layers{3}; Recombine; };

Physical Volume(1)  = { volFluid[1] };
Physical Volume(2)  = { vol[1] };
Physical Surface(3) = { volFluid[0] };

Cheers,

Dave

-- 
David Colignon, Ph.D.
Collaborateur Logistique du F.R.S.-FNRS
CÉCI - Consortium des Équipements de Calcul Intensif
ACE - Applied & Computational Electromagnetics
Sart-Tilman B28
Université de Liège
4000 Liège - BELGIQUE
Tél: +32 (0)4 366 37 32
Fax: +32 (0)4 366 29 10
WWW:    http://hpc.montefiore.ulg.ac.be/
Agenda: http://www.google.com/calendar/embed?src=david.colignon%40gmail.com



Umut Tabak wrote:
> Dear all,
> 
> I could not find a better way to explain my problem  in the subject 
> line, let me explain what I tried, I would like to extrude a meshed 
> surface to generate a structured grid of hexas. That is fine.
> 
> On top of that is that possible to use the top surface given with the 
> index '0'(coming from the 1st level extrusion) as a source for another 
> extrusion operation to generate a second layer of structured grid.
> 
> Attached code will explain that better I guess. Uncommented lines will 
> tell the needed.
> 
> Best regards,
> Umut
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> gmsh mailing list
> gmsh at geuz.org
> http://www.geuz.org/mailman/listinfo/gmsh