<div dir="ltr">Hello dear Gmsh users,<br> I would like to mesh a BSpline using non constant element sizes. Here is a MWE:<div><br></div><div><div><font face="times new roman, serif">Point(1) = {0 , 0 , 0, 0.2};</font></div><div><font face="times new roman, serif">Point(2) = {-0.1, 0.5, 0, 0.2};</font></div><div><font face="times new roman, serif">Point(3) = {-0.1, 0.8, 0, 0.1};</font></div><div><font face="times new roman, serif">Point(4) = {0 , 1 , 0, 0.1};</font></div><div><font face="times new roman, serif">Point(5) = {1 , 1 , 0, 0.2};</font></div><div><font face="times new roman, serif">Point(6) = {1 , 0 , 0, 0.2};</font></div><div><font face="times new roman, serif">BSpline(1) = {1, 2, 3, 4, 5, 6};</font></div><div><font face="times new roman, serif"><br></font></div><div><font face="times new roman, serif">Line(2) = {6, 1};</font></div><div><font face="times new roman, serif">Line Loop(1) = {1, 2};</font></div><div><font face="times new roman, serif">Plane Surface(1) = {1};</font></div><div><font face="times new roman, serif">Mesh 2;</font></div></div><div><br></div><div><font face="arial, helvetica, sans-serif">With the aforementioned code, Gmsh just linearly interpolates from 0.2 to 0.2 between Point 1 and Point 6, resulting in constant size along the BSpline. Yet, I would like to get an element size of 0.1 near points 2 and 3.</font></div><div><font face="arial, helvetica, sans-serif"><br></font></div><div>
<pre style="color:rgb(0,0,0);font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial"><font face="arial, helvetica, sans-serif">Any help would be highly appreciated!</font></pre><pre style="text-align:start;text-indent:0px;text-decoration-style:initial;text-decoration-color:initial"><font face="arial, helvetica, sans-serif" style="color:rgb(0,0,0);font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-transform:none;word-spacing:0px">
Note: actually, I would like to control the mesh size depending on the local curvature (</font><font color="#000000" face="times new roman, serif">Mesh.CharacteristicLengthFromCurvature</font><font color="#000000" face="arial, helvetica, sans-serif">)</font><span style="color:rgb(0,0,0);font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-transform:none;word-spacing:0px">. <font face="arial, helvetica, sans-serif">Alas, it appears this option does not work (yet?) on BSplines (Gmsh crashes when I try to mesh using this option).
Thus, I have computed the local curvature by my own (using Matlab), but I am stuck on the above issue.</font></span></pre><pre style="text-align:start;text-indent:0px;text-decoration-style:initial;text-decoration-color:initial"><span style="color:rgb(0,0,0);font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-transform:none;word-spacing:0px"><font face="arial, helvetica, sans-serif"><br></font></span></pre><pre style="text-align:start;text-indent:0px;text-decoration-style:initial;text-decoration-color:initial"><span style="color:rgb(0,0,0);font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-transform:none;word-spacing:0px"><font face="arial, helvetica, sans-serif">Best regards.</font></span></pre></div></div>