Quad meshing by using gmsh
2021-07-29
Mesh.Algorithm = 9; // Packing for Parallelograms lc = 0.1; // vertices. Point(1) = {0, 0, 0, lc}; Point(2) = {0.5, 0, 0, lc}; Point(3) = {1.0, 0, 0, lc}; Point(4) = {1.0, 0.5, 0.5, lc}; Point(5) = {1.0, 1.0, 1.0, lc}; Point(6) = {1.0, 1.5, 0.5, lc}; Point(7) = {1.0, 2.0, 0.0, lc}; Point(8) = {0.5, 2.0, 0.0, lc}; Point(9) = {0.0, 2.0, 0.0, lc}; Point(10) = {0.0, 1.5, 0.5, lc}; Point(11) = {0.0, 1.0, 1.0, lc}; Point(12) = {0.0, 0.5, 0.5, lc}; // curves. Spline(1) = {1,2,3}; Spline(2) = {3,4,5,6,7}; Spline(3) = {7,8,9}; Spline(4) = {9,10,11,12,1}; Physical Line("bottom") = {1}; Physical Line("top") = {3}; Curve Loop(1) = {2, 3, 4, 1}; Surface(1) = {1}; Recombine Surface{1}; Physical Surface("mysurface") = {1};
Categorized as: Application | Programming
답글 남기기