<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Dear experts,<div class=""><br class=""></div><div class="">I am doing a very simple test to see the mesh of a surface, but the output is not right (see attachment). I would be grateful if someone can point out what I’m missing. This is the code:</div><div class=""><br class=""></div><div class=""><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> //Electrode</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #c1651c" class=""> 16 </span><span style="font-variant-ligatures: no-common-ligatures" class=""> lc_el=1;</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #c1651c" class=""> 17 </span><span style="font-variant-ligatures: no-common-ligatures" class=""> x0=0;</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #c1651c" class=""> 18 </span><span style="font-variant-ligatures: no-common-ligatures" class=""> y0=0;</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #c1651c" class=""> 19 </span><span style="font-variant-ligatures: no-common-ligatures" class=""> z0=0;</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span class=""> 20  w=50;</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(193, 101, 28);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> 21 </span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #c1651c" class=""> 22 </span><span style="font-variant-ligatures: no-common-ligatures" class=""> //inner radius</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(193, 101, 28);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> 23 </span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #c1651c" class=""> 24 </span><span style="font-variant-ligatures: no-common-ligatures" class=""> pel_1_1 = newp; Point(pel_1_1) =  {x0,y0,z0,lc_el}; //center</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #c1651c" class=""> 25 </span><span style="font-variant-ligatures: no-common-ligatures" class=""> pel_2_1 = newp; Point(pel_2_1) =  {Rel_in,y0,z0,lc_el};</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #c1651c" class=""> 26 </span><span style="font-variant-ligatures: no-common-ligatures" class=""> pel_3_1 = newp; Point(pel_3_1) =  {x0,Rel_in,z0,lc_el};</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(193, 101, 28);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> 27 </span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #c1651c" class=""> 28 </span><span style="font-variant-ligatures: no-common-ligatures" class=""> //circular boundary 1</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(193, 101, 28);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> 29 </span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #c1651c" class=""> 30 </span><span style="font-variant-ligatures: no-common-ligatures" class="">cel_1_i = newc; Circle(cel_1_i) = {pel_2_1,pel_1_1,pel_3_1};</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #c1651c" class=""> 31 </span><span style="font-variant-ligatures: no-common-ligatures" class="">//same +width</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #c1651c" class=""> 32 </span><span style="font-variant-ligatures: no-common-ligatures" class="">pel_1_2 = newp; Point(pel_1_2) =  {x0,y0,z0+w,lc_el}; //center</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #c1651c" class=""> 33 </span><span style="font-variant-ligatures: no-common-ligatures" class="">pel_2_2 = newp; Point(pel_2_2) =  {Rel_in,y0,z0+w,lc_el};</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #c1651c" class=""> 34 </span><span style="font-variant-ligatures: no-common-ligatures" class="">pel_3_2 = newp; Point(pel_3_2) =  {x0,Rel_in,z0+w,lc_el};</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(193, 101, 28);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> 35 </span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #c1651c" class=""> 36 </span><span style="font-variant-ligatures: no-common-ligatures" class="">//circular boundary 2</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(193, 101, 28);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> 37 </span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #c1651c" class=""> 38 </span><span style="font-variant-ligatures: no-common-ligatures" class="">cel_2_i = newc; Circle(cel_2_i) = {pel_3_2,pel_1_2,pel_2_2};</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(193, 101, 28);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> 39 </span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #c1651c" class=""> 40 </span><span style="font-variant-ligatures: no-common-ligatures" class="">//lines connecting circles 1 & 2 (translated in z===width)</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(193, 101, 28);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> 41 </span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #c1651c" class=""> 42 </span><span style="font-variant-ligatures: no-common-ligatures" class="">l_low_i = newl; Line(l_low_i) = {pel_2_2,pel_2_1};</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #c1651c" class=""> 43 </span><span style="font-variant-ligatures: no-common-ligatures" class="">l_low_ii = newl; Line(l_low_ii) = {pel_3_1,pel_3_2};</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(193, 101, 28);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> 44 </span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #c1651c" class=""> 45 </span><span style="font-variant-ligatures: no-common-ligatures" class="">//surface loop </span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(193, 101, 28);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> 46 </span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #c1651c" class=""> 47 </span><span style="font-variant-ligatures: no-common-ligatures" class="">ll_low_i = newreg; Line Loop(ll_low_i) = {cel_1_i,l_low_ii,cel_2_i,l_low_i};</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #c1651c" class=""> 48 </span><span style="font-variant-ligatures: no-common-ligatures" class="">s_low_i = news; Plane Surface(s_low_i) = {ll_low_i};</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(193, 101, 28);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> 49 </span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(193, 101, 28);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div><span class="">Thank you very much in advance.<br class=""></span><span class=""><br class=""></span><span class="">Best regards,<br class=""></span><span class=""><br class=""></span><span class="">Sabrina<br class=""></span><span class=""><img apple-inline="yes" id="AB518410-DD91-45DF-9000-4EFA560070EE" width="788" height="442" src="cid:55F05EED-4018-4B18-A75C-50567EEAE99B@ikp.physik.tu-darmstadt.de" class=""><img apple-inline="yes" id="1E564F30-ECF7-4CB3-9FD7-03E01FC1F65B" width="774" height="729" src="cid:35B74664-0328-4C88-BD8E-644DAFBC11B8@ikp.physik.tu-darmstadt.de" class=""></span><span class=""><br class=""><div class="">-- <br class="">Sabrina Zacarias<br class="">Institut für Kernphysik<br class="">Technische Universität Darmstadt<br class="">S2|14 / office 319<br class="">Schlossgartenstr. 9<br class=""><br class="">64289 Darmstadt<br class=""><br class="">Office: +49 6151 16 23589<br class=""></div></span>
<br class=""></div></body></html>