[Gmsh] Structured grid for triangular domains

Murilo Henrique Campana Bento m.bento at usp.br
Wed Mar 25 20:46:34 CET 2020


Hi everyone,

I am trying to create a structured mesh for a simple triangular domain.
However, the generated mesh is not the one I expected.

The input script (geo) I am using is the following.

"
Point(1) = {0.0, 0.0, 0.0, 1.0};
Point(2) = {1.0, 0.0, 0.0, 1.0};
Point(3) = {1.0, 1.0, 0.0, 1.0};

Line(1) = {1, 2};
Line(2) = {2, 3};
Line(3) = {3, 1};

Line Loop(1) = {1, 2, 3};
Plane Surface(1) = {1};

Transfinite Line {1, 2, 3} = 5;
Transfinite Surface {1} Right;
"

The mesh I am obtaining is illustrated in Fig01.
The mesh I would expect to obtain is one similar to that presented in Fig02
(with little right triangles).

Thank you all for your help!
Best regards,

Murilo Bento
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://onelab.info/pipermail/gmsh/attachments/20200325/0bf75bf6/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Fig01.png
Type: image/png
Size: 16911 bytes
Desc: not available
URL: <http://onelab.info/pipermail/gmsh/attachments/20200325/0bf75bf6/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Fig02.png
Type: image/png
Size: 12581 bytes
Desc: not available
URL: <http://onelab.info/pipermail/gmsh/attachments/20200325/0bf75bf6/attachment-0003.png>


More information about the gmsh mailing list