cmut2d.geo 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. // Membrane length is 50 microns:
  2. l = 50e-6;
  3. // Electrode length is 10 microns:
  4. lelectrode = 10e-6;
  5. // Pillar length is 10 microns:
  6. lp = 10e-6;
  7. // Fluid half-circle radius:
  8. rfluid = 6*l;
  9. // Insulator thickness is 600 nanometers:
  10. hinsulator = 6e-7;
  11. // Vacuum gap height is 800 nanometers:
  12. hvacuumgap = 8e-7;
  13. // Total height is 2 microns:
  14. h = 2e-6;
  15. // 'lc' sets the mesh finesse:
  16. lc = 1e-6;
  17. // 'lcfluid' sets the mesh finesse in the fluid:
  18. lcfluid = 30e-6;
  19. Point(1) = {0, 0, 0, lc};
  20. Point(2) = {l, 0, 0, lc};
  21. Point(3) = {l, h, 0, lc};
  22. Point(4) = {0, h, 0, lc};
  23. Point(5) = {lp, hinsulator, 0, lc};
  24. Point(6) = {l-lp, hinsulator, 0, lc};
  25. Point(7) = {l-lp, hinsulator+hvacuumgap, 0, lc};
  26. Point(8) = {lp, hinsulator+hvacuumgap, 0, lc};
  27. Point(9) = {0, hinsulator, 0, lc};
  28. Point(10) = {0, hinsulator+hvacuumgap, 0, lc};
  29. Point(11) = {l, hinsulator, 0, lc};
  30. Point(12) = {l, hinsulator+hvacuumgap, 0, lc};
  31. Point(13) = {l/2-lelectrode/2, h, 0, lc};
  32. Point(14) = {l/2+lelectrode/2, h, 0, lc};
  33. Point(15) = {-rfluid+l/2, h, 0, lcfluid};
  34. Point(16) = {rfluid+l/2, h, 0, lcfluid};
  35. Point(17) = {l/2, h, 0, lcfluid};
  36. Line(1) = {1, 2};
  37. Line(2) = {2, 11};
  38. Line(3) = {11, 12};
  39. Line(4) = {12, 3};
  40. Line(5) = {3, 14};
  41. Line(6) = {14, 13};
  42. Line(7) = {13, 4};
  43. Line(8) = {4, 10};
  44. Line(9) = {10, 9};
  45. Line(10) = {9, 1};
  46. Line(11) = {9, 5};
  47. Line(12) = {5, 6};
  48. Line(13) = {6, 11};
  49. Line(14) = {12, 7};
  50. Line(15) = {7, 8};
  51. Line(16) = {8, 10};
  52. Line(17) = {5, 8};
  53. Line(18) = {6, 7};
  54. Circle(19) = {16, 17, 15};
  55. Line(20) = {15, 4};
  56. Line(21) = {3, 16};
  57. Line Loop(19) = {1, 2, -13, -12, -11, 10};
  58. Plane Surface(1) = {19};
  59. Line Loop(21) = {9, 11, 17, 16};
  60. Plane Surface(2) = {21};
  61. Line Loop(23) = {15, -17, 12, 18};
  62. Plane Surface(3) = {23};
  63. Line Loop(25) = {14, -18, 13, 3};
  64. Plane Surface(4) = {25};
  65. Line Loop(27) = {5, 6, 7, 8, -16, -15, -14, 4};
  66. Plane Surface(5) = {27};
  67. Line Loop(29) = {7, -20, -19, -21, 5, 6};
  68. Plane Surface(6) = {29};
  69. // Recombine as much as possible the triangles into quadrangles:
  70. Recombine Surface(1);
  71. Recombine Surface(2);
  72. Recombine Surface(3);
  73. Recombine Surface(4);
  74. Recombine Surface(5);
  75. Recombine Surface(6);
  76. // The insulator:
  77. Physical Surface(1) = {1};
  78. // The membrane support pillars:
  79. Physical Surface(2) = {2, 4};
  80. // The vacuum gap:
  81. Physical Surface(3) = {3};
  82. // The membrane:
  83. Physical Surface(4) = {5};
  84. // The fluid:
  85. Physical Surface(5) = {6};
  86. // The ground and clamp line:
  87. Physical Line(6) = {1};
  88. // The membrane electrode:
  89. Physical Line(7) = {6};
  90. // The fluid boundary:
  91. Physical Line(8) = {19,20,21};