<div dir="auto">I am not sure because I seldom use the GUI. But what I am pretty sure of is that Gmsh works the way it should.<div dir="auto"><br><div dir="auto">It would help to know what the actual errors you get are.</div><div dir="auto"><br><div data-smartmail="gmail_signature" dir="auto">--<br>jeremy theler<br><a href="http://www.seamplex.com">www.seamplex.com</a></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Aug 15, 2020, 07:25 Bart Deschoolmeester <<a href="mailto:bart.deschoolmeester@bbri.be">bart.deschoolmeester@bbri.be</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="NL-BE" link="#0563C1" vlink="#954F72">
<div class="m_4222000258007625161WordSection1">
<p class="MsoNormal">Thanks again, Jeremy.<u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-GB">You seem to have nailed the origin of the problem.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">It still feels as a bug to me that reloading a script one just created, gives a different result.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">Or am I missing something on how GMSH works?<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">Stranger still: <u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">Action 1: <u></u><u></u></span></p>
<p class="MsoNormal" style="text-indent:35.4pt"><span lang="EN-GB">Load the file below (without Coherence in the script).
<u></u><u></u></span></p>
<p class="MsoNormal" style="text-indent:35.4pt"><span lang="EN-GB">Click: 3D then Coherence then again 3D. This gives an error.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">Action 2: <u></u><u></u></span></p>
<p class="MsoNormal" style="text-indent:35.4pt"><span lang="EN-GB">Load the file below (without Coherence in the script).
<u></u><u></u></span></p>
<p class="MsoNormal" style="text-indent:35.4pt"><span lang="EN-GB">Click: 3D then Coherence then 1D then again 3D. This gives the wanted results.<u></u><u></u></span></p>
<div style="border:none;border-bottom:solid windowtext 1.0pt;padding:0cm 0cm 1.0pt 0cm">
<p class="MsoNormal" style="border:none;padding:0cm"><span lang="EN-GB"><u></u> <u></u></span></p>
<p class="MsoNormal" style="border:none;padding:0cm"><span lang="EN-GB">This seems all unintuitive to me. Am I missing something of the GMSH logic?<u></u><u></u></span></p>
<p class="MsoNormal" style="border:none;padding:0cm"><span lang="EN-GB">e.g. doesn’t clicking on the coherence command, execute that coherence command?<u></u><u></u></span></p>
<p class="MsoNormal" style="border:none;padding:0cm"><span lang="EN-GB"><u></u> <u></u></span></p>
<p class="MsoNormal" style="border:none;padding:0cm"><span lang="EN-GB">Bart<u></u><u></u></span></p>
<p class="MsoNormal" style="border:none;padding:0cm"><span lang="EN-GB"><u></u> <u></u></span></p>
<p class="MsoNormal" style="border:none;padding:0cm"><span lang="EN-GB"><u></u> <u></u></span></p>
</div>
<p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">KanR = DefineNumber[ 0.1, Name "Parameters/KanR" ];<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">WanD = DefineNumber[ 0.2, Name "Parameters/WanD" ];<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">KanMeshsize = DefineNumber[ 0.01, Name "Parameters/KanMeshsize" ];<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">SetFactory("OpenCASCADE");<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">Rectangle(1) = {-2.5, -2.5, 0, 5, 5, 0};<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">Circle(5) = {0, 0, 0, KanR, 0, 2*Pi};<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">Curve Loop(2) = {5};<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">Plane Surface(2) = {2};<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">BooleanDifference{ Surface{1}; Delete; }{ Surface{2}; Delete; }<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">Extrude {0, 0, WanD } {<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB"> Surface{1}; <u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">}<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">Point(15) = {0, KanR, 0};<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">Point(16) = {0, KanR-0.05, 0};<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">Point(17) = {0, KanR-0.05, WanD};<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">Point(18) = {0, KanR, WanD};<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">Line(20) = {15, 16};<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">Line(21) = {16, 17};<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">Line(22) = {17, 18};<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">Line(23) = {18, 15};<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">Curve Loop(24) = {20, 21, 22, 23};<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">Plane Surface(8) = {24};<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">Extrude {{0, 0, 1}, {0, 0, 0}, Pi} {<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB"> Surface{8}; Layers {10}; <u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">}<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">Field[1] = Distance;<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">Field[1].EdgesList = {5};<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">Field[1].NNodesByEdge = 50;<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">Field[2] = Threshold;<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">Field[2].DistMax = 2.5;<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">Field[2].DistMin = 0;<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">Field[2].IField = 1;<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">Field[2].LcMax = 0.25;<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">Field[2].LcMin = KanMeshsize ;<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">Background Field = 2;<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">Mesh.CharacteristicLengthExtendFromBoundary = 0;<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">Mesh.CharacteristicLengthFromPoints = 0;<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">Mesh.CharacteristicLengthFromCurvature = 0;<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></p>
<blockquote style="border:none;border-left:solid #729fcf 1.5pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm">
<p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></p>
</blockquote>
</div>
</div>
</blockquote></div>