[Gmsh] 2D triangle structure meshes

Michel Dupront michel.dupront at hotmail.fr
Fri Aug 31 11:07:35 CEST 2012


Hello,

 I make a mesh with the following geo file:

 l = 1.0;
 h = 1.0;
 n = 40;
 m = 40;
 Point(1) = { 0, 0, 0 };
 Point(2) = { l, 0, 0 };
 Line(1) = {1,2};
 Transfinite Line{1} = n+1;
 Surf[] = Extrude{0,h,0} { Line(1); Layers{m}; };


 The resulting mesh is a 2D mesh made of triangles
obtained by dividing a square by a diagonal, all diagonals
having the same direction.
 I would like to know if there is a method I can use
in the geo file to split the square by the other diagonal
and a method to split the square in 4 triangles
still with the diagonals.

Thank you. 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20120831/3f14c8fd/attachment.html>