disk.geo 651 B

123456789101112131415161718192021222324252627282930313233
  1. // Choose the mesh size:
  2. c = 0.5e-4;
  3. // Number of extrude layers:
  4. n = 2;
  5. // Radius:
  6. R = 800e-6 / 2;
  7. // Thickness:
  8. th = 10e-6;
  9. Point(1) = {0, 0, 0, c};
  10. Point(2) = {R, 0, 0, c};
  11. Point(3) = {0, -R, 0, c};
  12. Point(4) = {0, R, 0, c};
  13. Point(5) = {-R, 0, 0, c};
  14. Circle(1) = {5, 1, 4};
  15. Circle(2) = {4, 1, 2};
  16. Circle(3) = {2, 1, 3};
  17. Circle(4) = {3, 1, 5};
  18. Line Loop(5) = {1, 2, 3, 4};
  19. Plane Surface(6) = {5};
  20. Recombine Surface{6};
  21. Extrude{0,0,th/2}{Surface{6}; Layers{n}; Recombine;}
  22. Extrude{0,0,th/2}{Surface{28}; Layers{n}; Recombine;}
  23. Physical Volume(1) = {1};
  24. Physical Volume(2) = {2};
  25. Physical Surface(3) = {15,19,23,27};
  26. Physical Surface(4) = {50};