# [Gmsh] Help

Christophe Geuzaine cgeuzaine at ulg.ac.be
Thu Jun 16 08:42:02 CEST 2016

```> On 15 Jun 2016, at 22:58, Anusha Vs <anu.venkapally at gmail.com> wrote:
>
> Hello
>
>     My name is Anusha, and I am masters student studying in Germany. I have been using gmsh for quite a few months now for my academic work. I need some help regarding meshing where i have to mesh a surface using quadratic elements.,i.e. triangles having 6 nodes(3 vertices and 3 midpoints). It would be very helpful if you could guide me how I can generate such mesh.
>

Here we go:

Point(1) = {0, 0, 0};
Point(2) = {1, 0, 0} ;
Point(3) = {1, 1, 0} ;
Point(4) = {0, 1, 0} ;
Line(1) = {1,2} ;
Line(2) = {3,2} ;
Line(3) = {3,4} ;
Line(4) = {4,1} ;
Line Loop(5) = {4,1,-2,3} ;
Plane Surface(6) = {5} ;
Transfinite Line{1:4} = 10;
Transfinite Surface{6} Alternate;
Mesh.ElementOrder = 2;

Christophe

> NOTE::Please find attached, the picture of the mesh i wanted to generate using                  GMSH.
>
> --
> Thanks and Regards
> ANUSHA
> Department of Computer Science & Electrical
> Fachhochschule,
> Kiel,Germany.
>
> <att.docx>_______________________________________________
> gmsh mailing list
> gmsh at onelab.info
> http://onelab.info/mailman/listinfo/gmsh

--
Prof. Christophe Geuzaine
University of Liege, Electrical Engineering and Computer Science
http://www.montefiore.ulg.ac.be/~geuzaine

Tetrahedron V, July 4-5 2016: http://tetrahedron.montefiore.ulg.ac.be
Free software: http://gmsh.info | http://getdp.info | http://onelab.info

```