Hi!
I'm relatively new to Fenics and I would like to genrate a strucured rectangular mesh like this:
I figuered out, that there is no easy way to create it (like UnitSquareMesh). For this reason I've created a structured rectangular mesh with GMSH. But after using "dolfin-convert test.msh test.xml", I have a mesh of topological dimension 1 ( plot(mesh) shows only a line ).
Here is my geo-file:
Point(1) = {0, 0, 0, 1.0};
Point(2) = {0, 1, 0, 1.0};
Point(3) = {1, 1, 0, 1.0};
Point(4) = {1, 0, 0, 1.0};
Line(1) = {2, 3};
Line(2) = {3, 4};
Line(3) = {4, 1};
Line(4) = {1, 2};
Line Loop(6) = {1, 2, 3, 4};
Plane Surface(7) = {6};
Transfinite Line1,3} = 10 ;
Transfinite Line{2} = 10 ;
Transfinite Line{4} = 10 ;
Transfinite Surface{7} = {2,3,4,1};
Recombine Surface {7} ;
I guess, the problem is in the last line (Recombine Surface): after removing it, a triangular mesh is created, and I have no problems to plot it with fenics.
Is this the right trial to create a structured rectangular grid in Fenics? Or am I completely wrong? What am I doing wrong?
Thanks very much in advance!