quad.geo 487 B

123456789101112131415161718192021222324252627
  1. // Increase n to have a finer structured mesh:
  2. n = 10;
  3. Point(1) = {0, 0, 0, 1.0};
  4. Point(2) = {1, 0, 0, 1.0};
  5. Point(3) = {0, 1, 0, 1.0};
  6. Point(4) = {1, 1, 0, 1.0};
  7. Line(1) = {1, 2};
  8. Line(2) = {2, 4};
  9. Line(3) = {4, 3};
  10. Line(4) = {3, 1};
  11. Transfinite Line {1} = n;
  12. Transfinite Line {2} = n;
  13. Transfinite Line {3} = n;
  14. Transfinite Line {4} = n;
  15. Line Loop(5) = {4, 1, 2, 3};
  16. Plane Surface(1) = {5};
  17. Transfinite Surface {1} = {1,2,3,4};
  18. Recombine Surface {1};
  19. Physical Surface(1) = {1};