/* Transmission line setup, first test version
In order to test and train the gmsh and getDP utilities forline impedance calculations, first amicrostrip line will be tested.
The geometry is 2D
 */

/* Definition of some line parameters for free programming:
  Line Width LW
  Line thickness LT
  metal conductivity cond
  Substrate height SH
  dielectric constant epsr
*/

mum = 1e-6;

LW = 150 * mum;
LT = 10 * mum;
cond = 4.1e7;
SH = 254 * mum;
epsr = 8.6;

// defining points of the geometry

// Conductor
Point(1) =  {-LW , SH, 0, 1 * mum};
Point(2) =  { LW , SH, 0, 1 * mum};
Point(3) =  {LW , SH+LT, 0, 1 * mum};
Point(4) =  {-LW , SH+LT, 0, 1 * mum};

// Plane calc
Point(5) = {-10*LW, 0, 0, 1 * mum};
Point(6) = {-10*LW, 10*SH, 0, 1 * mum};
Point(7) = { 10*LW, 10*SH, 0, 1 * mum};
Point(8) = { 10*LW, 0, 0, 1 * mum};

// Substrate Calc
Point(9) = {-10*LW, SH,0,1 * mum};
Point(10) = {10*LW, SH,0,1 * mum};

// Connecting the points to lines

// Conductor
Line(1) = {1,2};
Line(2) = {2,3};
Line(3) = {3,4};
Line(4) = {4,1};
Line Loop(5) = {1,2,3,4};

// Substrate
Line(6) = {5,8};
Line(7) = {8,10};
Line(8) = {10,9};
Line(9) = {9,5};
Line Loop(10) = {6,7,8,9};

//Boundary

Line(11) = {9,5};
Line(12) = {8,10};
Line(13) = {5,8};
Line(14) = {10,7};
Line(15) = {7,6};
Line(16) = {6,9};
Line Loop(17) = {14,15,16};

// Defining Surfaces
Plane Surface (1) = {5};
Plane Surface (2) = {10};
Physical Surface (1) = {1};
Physical Surface (2) = {2};

