<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="">Hello Gmsh team, <div class=""><br class=""></div><div class="">I am getting a syntax error when using the boolean difference. This did not happen before, so I don’t know what the problem is. Here is the code:</div><div class=""><br class=""></div><div class=""><pre style="background-color: rgb(255, 255, 255); font-family: Menlo; font-size: 9pt;" class="">Include "gf_cylinder.geo";<br class=""><br class=""><br class="">// Create outer cylinder. first set parameters and then return values.<br class="">x0 = 0; y0 = 0; z0 = 0; lc = 1; R = 200;  L = 400;<br class="">vol = -1; s1 = -1; s2 = -1; s3 = -1; s4 = -1; s5 = -1; s6 = -1;<br class="">Call gf_cylinder;<br class=""><br class="">vol_env = vol;<br class="">Printf("vol_env = %g",vol);<br class=""><br class="">// Create the main structure, the top and bottom of which will be assigned voltages.<br class="">x0 = 0; y0 = 0; z0 = 0; lc = 1; R = 110; L = 300;<br class="">vol = -1; s1 = -1; s2 = -1; s3 = -1; s4 = -1; s5 = -1; s6 = -1;<br class="">Call gf_cylinder;<br class=""><br class="">// Save the surface IDs for the top and bottom of the inner box and volume.<br class="">s_top_plate = s1;<br class="">s_bottom_plate = s2;<br class="">vol_tpc = vol;<br class=""><br class="">vol_tot = newv;<br class="">BooleanDifference(vol_tot) = { Volume{vol_env};Delete;}{vol_tpc};<br class=""></pre><div class="">And this is the output:</div></div><div class=""><br class=""></div><div class=""><div class="">Info    : Done reading '/Users/home/Desktop/gf_cylinder.geo'</div><div class="">vol_env = 1</div><div class="">vol_tpc = 2</div><div class="">Error   : '/Users/home/Desktop/main_cylinder.geo', line 38 : syntax error (vol_tpc)</div><div class="">Info    : Done reading '/Users/home/Desktop/main_cylinder.geo'</div></div><div class=""><br class=""></div><div class=""><div class="">Can somebody please help?</div><div class=""><br class=""></div><div class="">Cheers,</div><div class=""><br class=""></div><div class="">Sabrina</div><div class="">
<div dir="auto" style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;">-- <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=""></div><div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;">64289 Darmstadt<br class=""><br class="">Office: +49 6151 16 23589<br class=""></div></div>
</div>
<br class=""></div></body></html>