[Gmsh] Mesh with quadrilaterals exclusively

Fernando Cosso ferdemza at gmail.com
Wed Dec 1 15:07:19 CET 2010


Hi all,

I want Gmsh to use quadrilaterals to mesh, is that possible?

I am calling Gmsh from my fortran program like this:

r = system('gmsh\gmsh out\Geometria.geo -2 -option Isoparametric.opt
-clscale '//trim(Escala)//' -o out\MeshI_'//trim(Escala)//'.msh')

*Where*

Escala is a character variable that I use to change the refinement of the
mesh, typical value: Escala = '.1'

*Geometria.geo*

Point(1)         = {   0.0000000000000000E+00,    0.0000000000000000E+00,
0.0000000000000000E+00, 0};
Point(2)         = {   2.0000000000000000E+01,    0.0000000000000000E+00,
0.0000000000000000E+00, 0};
Point(3)         = {   2.0000000000000000E+01,    1.0000000000000000E+01,
0.0000000000000000E+00, 0};
Point(4)         = {   0.0000000000000000E+00,    1.0000000000000000E+01,
0.0000000000000000E+00, 0};
Point(5)         = {   2.0000000000000000E+01,    1.0000000000000000E+00,
0.0000000000000000E+00, 0};
Point(6)         = {   1.9000000000000000E+01,    0.0000000000000000E+00,
0.0000000000000000E+00, 0};
Line(1)          = {1, 4};
Line(2)          = {4, 3};
Line(3)          = {3, 5};
Line(4)          = {6, 1};
Circle(5)        = {5, 2, 6};
Line Loop(7)     = {2, 3, 5, 4, 1};
Plane Surface(7) = {7};

*Isoparametric.opt*

Mesh.Algorithm = 5;
Mesh.CharacteristicLengthExtendFromBoundary = 0;
Mesh.CharacteristicLengthFromPoints = 0;
Mesh.RecombineAll = 1;

The resultant mesh has triangles and quadrangles mixed, I want quadrangles
exclusively.

Any help is greatly appreciated

Best Regards

Fer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20101201/a35b2365/attachment.html>