rc.geo 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. // This defines the geometry for a rectangular conductor trace connected to a circular
  2. // shaped capacitor made of a dielectric layer sandwiched between two conducting traces.
  3. // Dimensions in um:
  4. thicknessdielectric = 30;
  5. thicknesstraces = 1;
  6. diskradius = 300;
  7. lengthtrace = diskradius+200;
  8. widthtrace = 50;
  9. // Set the characteristic mesh size required (a finer mesh gives more accurate results but takes longer to simulate):
  10. Mesh.CharacteristicLengthFactor = 0.2;
  11. SetFactory("OpenCASCADE");
  12. // The bottom trace of the disk:
  13. Cylinder(1) = {0, 0, 0, 0, 0, thicknesstraces, diskradius, 2*Pi};
  14. // The dielectric of the disk:
  15. Cylinder(2) = {0, 0, thicknesstraces, 0, 0, thicknessdielectric, diskradius, 2*Pi};
  16. // The top trace of the disk:
  17. Cylinder(3) = {0, 0, thicknesstraces+thicknessdielectric, 0, 0, thicknesstraces, diskradius, 2*Pi};
  18. // The bottom trace leading to the disk:
  19. Box(4) = {-lengthtrace, -widthtrace/2, 0, lengthtrace-diskradius/2, widthtrace, thicknesstraces};
  20. // The top trace leading to the disk:
  21. Box(5) = {-lengthtrace, -widthtrace/2, thicknesstraces+thicknessdielectric, lengthtrace-diskradius/2, widthtrace, thicknesstraces};
  22. Coherence;
  23. // All dimensions above are in um:
  24. Mesh.ScalingFactor = 1e-6;
  25. // Define the regions of interest for the simulation:
  26. electrode = 1; ground = 2; conductor = 3; dielectric = 4;
  27. Physical Surface(electrode) = {26};
  28. Physical Surface(ground) = {21};
  29. Physical Volume(conductor) = {3,4,5,6,7,8};
  30. Physical Volume(dielectric) = {2};