// Gmsh project created on Fri Nov 14 09:50:53 2014
Include "heat.dat";

coll_dia = c_d_r * block_ht;

Point(1) = {		0, 0, 0, mesh_sz};
Point(2) = {   block_wt/2, 0, 0, mesh_sz};
Point(3) = {   block_wt/2, block_ht, 0, mesh_sz};
Point(4) = {		0, block_ht, 0, mesh_sz};

Point(5) = {0, block_ht/2, 0, 1.0};
Point(6) = {0, block_ht/2 - coll_dia/2, 0, mesh_sz};
Point(7) = {0, block_ht/2 + coll_dia/2, 0, mesh_sz};

C1 = newl ; Circle(C1) = {6, 5, 7};

Point(8) = {	0, -plate_ht, 0, mesh_sz};
Point(9) = { plate_wt/2, -plate_ht, 0, mesh_sz};
Point(10) = { plate_wt/2, 0, 0, mesh_sz};
Point(11) = {	0, 0, 0, mesh_sz};

Line(2) = {6, 1};
Line(3) = {1, 2};
Line(4) = {2, 3};
Line(5) = {3, 4};
Line(6) = {4, 7};
Line(7) = {1, 8};
Line(8) = {8, 9};
Line(9) = {9, 10};
Line(10) = {10, 2};
Line Loop(11) = {5, 6, -1, 2, 3, 4};
Plane Surface(12) = {11};
Line Loop(13) = {7, 8, 9, 10, -3};
Plane Surface(14) = {13};

Extrude {0, 0, block_lt/2} {
  Surface{12};
}
Extrude {0, 0, block_lt/2} {
  Surface{14};
}
Extrude {0, 0, plate_lt/2 - block_lt/2} {
  Surface{73};
}

Physical Surface(101) = {33};		// heat source
Physical Surface(102) = {60, 87};	// constant temp
Physical Volume(103) = {1};		// block
Physical Volume(104) = {2, 3};		// baseplate
