r = 0.005;
d = 0.002;
z = r + d;

res = 0.2;
Height = 2;
XLeft=-1.5; XRight=1.5; YUpper=1.3; YLower=-2.8;

RCurv = 0.027;
x_center = 0; y_center = 0;
z_center = 0.03 + 2*r + 2*d + RCurv;
UpperTipRadius = 1.15;

Point(25) = {x_center, y_center, z_center, res};
Point(26) = {x_center - RCurv, y_center, z_center, res};
Point(27) = {x_center, y_center - RCurv, z_center, res};
Point(28) = {x_center + RCurv, y_center, z_center, res};
Point(29) = {x_center, y_center, z_center - RCurv, res};
Point(30) = {x_center, y_center + RCurv, z_center, res};

Circle(136) = {27,25,29};
Circle(137) = {26,25,29};
Circle(138) = {30,25,29};
Circle(139) = {28,25,29};
Circle(144) = {27,25,26};
Circle(145) = {26,25,30};
Circle(146) = {30,25,28};
Circle(147) = {28,25,27};

Line Loop(148) = {144,137,-136};
Ruled Surface(149) = {148};
Line Loop(150) = {147,136,-139};
Ruled Surface(151) = {150};
Line Loop(152) = {146,139,-138};
Ruled Surface(153) = {152};
Line Loop(154) = {145,138,-137};
Ruled Surface(155) = {154};

//Cone
Point(32) = {x_center, y_center, Height, res};
Point(33) = {x_center - UpperTipRadius, y_center, Height, res};
Point(34) = {x_center, y_center - UpperTipRadius, Height, res};
Point(35) = {x_center + UpperTipRadius, y_center, Height, res};
Point(36) = {x_center, y_center + UpperTipRadius, Height, res};

Circle(140) = {35,32,34};
Circle(141) = {33,32,34};
Circle(142) = {36,32,33};
Circle(143) = {36,32,35};

Line Loop(156) = {143,140,-141,-142};
Plane Surface(157) = {156};

Line(158) = {26,33};
Line(159) = {27,34};
Line(160) = {28,35};
Line(161) = {30,36};

Line Loop(162) = {144,158,141,-159};
Ruled Surface(163) = {162};
Line Loop(164) = {140,-159,-147,160};
Ruled Surface(165) = {164};
Line Loop(166) = {143,-160,-146,161};
Ruled Surface(167) = {166};
Line Loop(168) = {142,-158,145,161};
Ruled Surface(169) = {168};

Surface Loop(170) = {163,149,155,169,157,167,165,151,153};
Volume(97) = {170};

Physical Volume(100004)={97};

Physical Surface(100006)={169, 163, 165, 167, 149, 151, 153, 155};
