[Gmsh] quad mesh

Christophe Geuzaine cgeuzaine at ulg.ac.be
Tue Aug 3 23:27:44 CEST 2010

On 20/07/10 22:50, Pierre JUILLARD wrote:
> Hi all,
> I am seeking here some advices about the best approach to mesh surfaces
> with quad elements.
> I enclose a brep file (drawn with Salom 5.1.3).
> It is rather simple.
> Element size should be around 5mm.
> I also enclose a picture of the mesh I obtained with Salome using the
> algorithm "Netgen2D", with 'Quad_preference' option.
> This kind of mesh suits me very well.
> I wanted to try Gmsh and used the algorithm 'Frontal' (I read in the
> documentation that it should give the best mesh quality).
> I also used option 'All Quads', and set the Min element size to 4 and
> Max element size to 5.
> I also enclose the picture of the mesh obtained.
> It rather surprises me.
> I would prefer something similar to the one obtained with Salome.
> Is there some 'simple' way to do it?
> (I am not interested directly in the resulting file of course, it is
> more to learn on GMSH and the best approaches to consider).
> I thank you in advance for your help and advices.

For simple surfaces you can just use a structured grid: create a file 

Merge "beam_n_wall.brep";
Transfinite Line "*" = 10;
Transfinite Surface "*";
Recombine Surface "*";

and you should be all set.

> Bests,
> Pierre
> _______________________________________________
> 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