disk.geo 545 B

123456789101112131415161718192021222324252627
  1. // Choose the mesh size:
  2. c = 0.1;
  3. // Number of extrude layers:
  4. n = 3;
  5. Point(1) = {0, 0, 0, c};
  6. Point(2) = {1, 0, 0, c};
  7. Point(3) = {0, -1, 0, c};
  8. Point(4) = {0, 1, 0, c};
  9. Point(5) = {-1, 0, 0, c};
  10. Circle(1) = {5, 1, 4};
  11. Circle(2) = {4, 1, 2};
  12. Circle(3) = {2, 1, 3};
  13. Circle(4) = {3, 1, 5};
  14. Line Loop(5) = {1, 2, 3, 4};
  15. Plane Surface(6) = {5};
  16. Recombine Surface{6};
  17. Extrude{0,0,0.1}{Surface{6}; Layers{n}; Recombine;}
  18. Physical Volume(1) = {1};
  19. Physical Surface(2) = {15,19,23,27};
  20. Physical Surface(3) = {28};
  21. Physical Line(4) = {8,9,10,11};