Convert quad element 2D at .msh in .xml

Hello,
I made quadrangles meshes with gmsh 2 D (the .geo file is described below) to have a .msh file.
The conversion to .xml does not work anymore with the dolfin-convert command, do you know, please, another way of conversion ?
Thanks in advance.

//+
Point(1) = {0, 0, 0, 1.0};
//+
Point(2) = {1, 0, 0, 1.0};
//+
Point(3) = {1, 1-0.0015, 0, 1.0};
//+
Point(4) = {1, 1, 0, 1.0};
//+
Point(5) = {0, 1, 0, 1.0};
//+
Point(6) = {0, 1-0.0015, 0, 1.0};
//+
Point(7) = {0, 1-0.0015, 0, 1.0};
//+
Line(1) = {1, 2};
//+
Line(2) = {2, 3};
//+
Line(3) = {3, 4};
//+
Line(4) = {4, 5};
//+
Line(5) = {5, 6};
//+
Line(6) = {6, 1};
//+
Line(7) = {6, 3};
//+
Physical Line("left2") = {6};
//+
Physical Line("bottom") = {1};
//+
Physical Line("right2") = {2};
//+
Physical Line("right1") = {3};
//+
Physical Line("top1") = {4};
//+
Physical Line("top2") = {7};
//+
Physical Line("left1") = {5};
//+
Line Loop(1) = {6, 1, 2, -7};
//+
Plane Surface(1) = {1};
//+
Line Loop(2) = {4, 5, 7, 3};
//+
Plane Surface(2) = {2};
//+
Transfinite Surface {1} = {1, 2, 3, 6};
//+
Transfinite Surface {2} = {6, 5, 3, 4};
//+
Transfinite Line {6} = 1998 Using Progression 1;
//+
Transfinite Line {1} = 2001 Using Progression 1;
//+
Transfinite Line {2} = 1998 Using Progression 1;
//+
Transfinite Line {5} = 7 Using Progression 1;
//+
Transfinite Line {4, 4} = 2001 Using Progression 1;
//+
Transfinite Line {7} = 2001 Using Progression 1;
//+
Transfinite Line {3} = 7 Using Progression 1;
//+
Recombine Surface {1, 2};

There are a lot of questions regarding that problem in this platform. See, for example, here Transitioning from mesh.xml to mesh.xdmf, from dolfin-convert to meshio - #79 by dokken

1 Like