[Gmsh] Variable separation of the layers in a extrusion (Transfinite mesh)

Christophe Geuzaine cgeuzaine at ulg.ac.be
Mon Jul 8 23:01:35 CEST 2013


On 30 May 2013, at 23:03, Felix Salazar <felix.a.salazar at gmail.com> wrote:

> I know I can add an smooth variation of the node distribution over an edge using
> Transfinite Line {linenumber} = numberofnodes Using Progression ratio;
> 
> Is there any way to have a similar behavior using an extrusion?
> The closest thing so far has been (lc is a constant "characteristic" length)
> extrusion[]=Extrude{0,0,Lz}{
>   Surface{79}; Layers{
>   { Ceil(0.15*Lz/lc),
>     Ceil(0.40*Lz/lc),
>     Ceil(0.50*Lz/lc),
>     Ceil(0.25*Lz/lc)},
>   {0.05,0.25,0.65,1.00}
>   }; Recombine;
> };
> 
> This gives me a volume with 4 regions of different length and different constant grading within each region. Is there any way to have an smoother variation? 
> 

Sure: here's an example.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: progression.geo
Type: application/octet-stream
Size: 611 bytes
Desc: not available
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20130708/94c01cce/attachment.geo>
-------------- next part --------------



> -------------------------
> Félix Salazar
> felix.a.salazar at gmail.com
> -------------------------
> _______________________________________________
> 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