# [Gmsh] Question about structured grid

Stephen Guzik sguzik at utias.utoronto.ca
Mon Sep 25 23:01:36 CEST 2006

```Heh, this confused me at first too.  Here's a really simple example
doing what you want ...

Point(1) = {0,0,0,0.1};
Point(2) = {1,0,0,0.1};
Point(3) = {1,1,0,0.1};
Point(4) = {0,1,0,0.1};

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

Line Loop(5) = {1,2,3,4};

Ruled Surface(6) = {5};

Transfinite Line{1,2,3,4} = 10 Using Progression 1.05;

Transfinite Surface{6} = {1,2,3,4};

Recombine Surface{6};

Xuanhang Zhang wrote:
> Hi,
>
> I am a grad student from Syracuse University. I am very excited to
> (95/98/NT/2000/XP) and tried to model a simple 2D rectangle with
> structured grid. But I failed to get it work no matter what I tried in
> the program. It always showing a triangle grid or a unstructured one.
> Since I am new to Gmsh, please don't blame me if I asked something
> stupid like this. Appreciated for your help!
>
> Best,
> Simon
> _______________________________________________
> gmsh mailing list
> gmsh at geuz.org
> http://www.geuz.org/mailman/listinfo/gmsh
>

```