bilayer.geo 636 B

123456789101112131415161718192021222324252627282930
  1. // PZT thickness [um]:
  2. pztthickness = 10;
  3. // Silicon thickness [um]:
  4. siliconthickness = 20;
  5. // Bilayer length [um]:
  6. length = 200;
  7. // Bilayer width [um]:
  8. width = 100;
  9. SetFactory("OpenCASCADE");
  10. Box(1) = {0, 0, siliconthickness, length, width, pztthickness};
  11. Box(2) = {0, 0, 0, length, width, siliconthickness};
  12. Physical Volume(1) = 1;
  13. Physical Volume(2) = 2;
  14. Physical Surface(3) = 6;
  15. Physical Surface(4) = 12;
  16. Physical Surface(5) = 11;
  17. Physical Surface(6) = {7,1};
  18. Physical Surface(7) = {8,2};
  19. Physical Surface(8) = {1,2,3,4,5,6};
  20. Physical Surface(9) = {7,8,9,10,11,1,2,3,4,6};
  21. // Mesh scaling factor:
  22. Mesh.ScalingFactor = 1e-6;