hoeheleiter = 170e-6;
hoehesubstrat = 200e-6;
breitesubstrat = 200e-6;
breiteleiter = 40e-6;
breitehufeisen = 140e-6;
zleiter = -10e-6;
zsubstrat = -40e-6;
lcar = 8e-6;
hoeheground = 5e-6;


Point(2) = {0,0,zleiter,lcar};
Point(3) = {breiteleiter,0,zleiter,lcar};
Point(6) = {breiteleiter,-hoeheground,zleiter,lcar};
Point(7) = {0,-hoeheground,zleiter,lcar};
Point(10) = {0,hoeheleiter,zleiter,lcar};
Point(12) = {breiteleiter,hoeheleiter-breiteleiter,zleiter,0.5*lcar};
Point(13) = {breitehufeisen-breiteleiter,hoeheleiter-breiteleiter,zleiter,0.5*lcar};
Point(16) = {breitehufeisen,hoeheleiter,zleiter,lcar};
Point(17) = {breitehufeisen,0,zleiter,lcar};
Point(20) = {breitehufeisen-breiteleiter,0,zleiter,lcar};
Line(4) = {6,3};
Line(7) = {7,2};
Line(10) = {6,7};
Line(11) = {2,3};
Line(13) = {2,10};
Line(16) = {3,12};
Line(19) = {12,13};
Line(22) = {10,16};
Line(25) = {16,17};
Line(28) = {13,20};
Line(30) = {20,17};
Line Loop(39) = {11,-4,10,7};
Plane Surface(40) = {39};
Line Loop(41) = {16,19,28,30,-25,-22,-13,11};
Plane Surface(42) = {41};
Point(21) = {breitehufeisen/2-breitesubstrat/2,0,zleiter,3*lcar};
Point(22) = {breitehufeisen/2-breitesubstrat/2,0,zleiter+zsubstrat,3*lcar};
Point(23) = {breitehufeisen/2-breitesubstrat/2,hoehesubstrat,zleiter+zsubstrat,3*lcar};
Point(24) = {breitehufeisen/2-breitesubstrat/2,hoehesubstrat,zleiter,3*lcar};
Point(25) = {breitehufeisen/2+breitesubstrat/2,hoehesubstrat,zleiter,3*lcar};
Point(26) = {breitehufeisen/2+breitesubstrat/2,hoehesubstrat,zleiter+zsubstrat,3*lcar};
Point(27) = {breitehufeisen/2+breitesubstrat/2,0,zleiter+zsubstrat,3*lcar};
Point(28) = {breitehufeisen/2+breitesubstrat/2,0,zleiter,3*lcar};
Line(67) = {21,2};
Line(68) = {21,22};
Line(69) = {22,23};
Line(70) = {23,24};
Line(71) = {24,21};
Line(72) = {23,26};
Line(73) = {24,25};
Line(74) = {26,25};
Line(75) = {26,27};
Line(76) = {28,27};
Line(77) = {28,25};
Line(78) = {22,27};
Line(79) = {17,28};
Line(80) = {3,20};
Line Loop(81) = {-78,69,72,75};
Plane Surface(82) = {81};
Line Loop(83) = {67,13,22,25,79,77,-73,71};
Plane Surface(84) = {83};
Line Loop(85) = {-78,-68,67,11,80,30,79,76};
Plane Surface(86) = {85};
Line Loop(87) = {70,71,68,69};
Plane Surface(88) = {87};
Line Loop(89) = {-74,-72,70,73};
Plane Surface(90) = {89};
Line Loop(91) = {-75,74,-77,76};
Plane Surface(92) = {91};
Line Loop(93) = {-28,-19,-16,80};
Plane Surface(94) = {93};
Surface Loop(95) = {42,94,86,82,88,90,92,84};
Volume(96) = {95};//Substrat

Physical Line(1000) = {10}; // Potential V
Physical Line(2000) = {30}; // Potential 0 

Physical Surface(3000) = {42};// Leiter
Physical Surface(4000) = {40}; //Ground
Physical Volume(5000) = {96}; //Substrat
Physical Surface(6000) = {88,86,92,90,84,94,82};



