Magnet45.geo 588 B

1234567891011121314151617181920212223242526272829303132333435
  1. // Gmsh project created on Sun Jan 19 20:03:15 2020
  2. C = 0.5;
  3. //+
  4. Point(1) = {1, 1, 0, C};
  5. //+
  6. Point(2) = {9, 1, 0, C};
  7. //+
  8. Point(3) = {1, 9, 0, C};
  9. //+
  10. Point(4) = {6, 6, 0, C};
  11. //+
  12. Line(1) = {1, 3};
  13. //+
  14. Line(2) = {3, 4};
  15. //+
  16. Line(3) = {4, 2};
  17. //+
  18. Line(4) = {2, 1};
  19. //+
  20. Curve Loop(1) = {3, 4, 1, 2};
  21. //+
  22. Plane Surface(1) = {1};
  23. //+
  24. Extrude {0, 0, 1} {
  25. Surface{1};
  26. }
  27. //+
  28. Physical Surface("AxialSides") = {1, 26};
  29. //+
  30. Physical Surface("AngleSides") = {17, 21};
  31. //+
  32. Physical Surface("RadialSides") = {13, 25};
  33. //+
  34. Physical Volume("MagnetVolume") = {1};