Include "BF_Int_Params.pro";

SetFactory("OpenCASCADE"); 




Point(1) = {-1.e-3,		0.,		0};
Point(2) = { 1.e-3,			0.,		0};
Point(3) = { 1.e-3,		    1.e-3,		0};
Point(4) = {-1.e-3,			1.e-3,		0};

Point(5) = { 0.,		    0.5e-3,		0};
Point(6) = { 0.,			0.5e-3,		1.e-3};


Line(1) = {1,	2};
Line(2) = {2,	3};
Line(3) = {3,	4};
Line(4) = {4,	1};

Line(5) = {5,	6};



Line Loop(1) = {1, 2, 3, 4};
Plane Surface(1) = {1};
Point{5} In Surface{1};
box1[] = Extrude{0.,		0.,		 1.e-3}{Surface{1}; };
Point{6} In Surface{box1[0]};
Line{5} In Volume{box1[1]};
box2[] = Extrude{0.,		0.,		-2.e-3}{Surface{1}; };

Physical Volume(BOX1) = {box1[1]};
Physical Volume(BOX2) = {box2[1]};

Physical Surface(TOP) = {box1[0]};
Physical Surface(BOT) = {box2[0]};
Physical Surface(MID) = {1};

bnd[]=Boundary{Surface{box1[2]};};
Physical Surface(SIDE1) = {box1[2]};
Physical Line(C1) = {5};
