<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:'Times New Roman',Times,serif;" dir="ltr">
<p>Hello gmsh team,</p>
<p><br>
</p>
<p>I am using attractor field to create finer elements around a line. However at end points of the curve (point 5 and 47) , there is no refinement around the line:</p>
<p><br>
</p>
<p>How to include these points to have a refinement around the line even at end points ? Please suggest me to achieve this ! There is no option of Nodeslist in </p>
<p><br>
</p>
<p>AnisoCurve attractor.</p>
<p><br>
</p>
<p><br>
</p>
<p></p>
<div>// mesh size description</div>
<div><br>
</div>
<div>cl_1   =  0.5;</div>
<div>cl_2   =  0.5;</div>
<div><br>
</div>
<div>// boundary points that forms Rhizotron</div>
<div>Point(1) = {-15, -40, 0, cl_1};</div>
<div>Point(2) = {15, -40, 0, cl_1};</div>
<div>Point(3) = {15, 5.000000e-01, 0, cl_1};</div>
<div>Point(4) = {-15, 5.000000e-01, 0, cl_1};</div>
<div><br>
</div>
<div><br>
</div>
<div>// lines that connect boundary</div>
<div>Line(1) = {1, 2};</div>
<div>Line(2) = {3, 2};</div>
<div>Line(3) = {4, 3};</div>
<div>Line(4) = {1, 4};</div>
<div>Line Loop(4) = {1, -2, -3, -4};</div>
<div>Plane Surface(1) = {4};</div>
<div><br>
</div>
<div><br>
</div>
<div>// no. of spline surfaces = 59</div>
<div><br>
</div>
<div>X1 ={0.0083964,-0.093494,-0.17967,-0.32248,-0.41083,-0.49924,-0.58584,-0.90283,-1.0525,-1.1341,-0.89573,-0.7397,-0.56147,-0.51866,-0.50047,-0.44851,-0.40311,-0.37085,-0.35881,-0.17094,-0.09302,-0.089766,-0.15064,-0.1671,-0.17991,-0.51334,-0.79397,-0.99539,-1.0278,-1.0591,-1.0959,-0.87662,-0.66386,-0.41572,-0.15319,0.064832,0.40769,0.73987,1.0809,1.3972,1.6833,2.0053,2.1812,2.1812};</div>
<div>Y1 ={0.0083964,-3.985,-4.9787,-5.7556,-6.5471,-7.3393,-8.1315,-8.866,-9.6516,-10.4436,-11.2023,-11.9829,-12.7599,-13.5586,-14.358,-15.1562,-15.9547,-16.7522,-17.5515,-18.3217,-19.0864,-19.8853,-20.6824,-21.4818,-22.2814,-22.9989,-23.7322,-24.5061,-25.3042,-26.1024,-26.897,-27.6281,-28.3989,-29.1507,-29.8971,-30.6644,-31.3839,-32.1038,-32.8173,-33.5493,-34.2945,-35.0217,-35.8015,-35.8015};</div>
<div><br>
</div>
<div><br>
</div>
<div>// Define spline surfaces</div>
<div><br>
</div>
<div>LN = 91;</div>
<div>nR = #X1[ ];</div>
<div>p0 = newp; Point(p0) =  {X1[0],Y1[0],0,cl_2};</div>
<div>Point{p0} In Surface {1};</div>
<div>For i In {1:nR-2}</div>
<div>p0 = newp; Point(p0)= {X1[i], Y1[i], 0, cl_2};</div>
<div>l0 = newl; Line(l0)  =    {newp-2,newp-1};</div>
<div>Line{l0} In Surface {1};</div>
<div>Point{p0} In Surface {1};</div>
<div>EndFor</div>
<div><br>
</div>
<div><br>
</div>
<div>NL = newl-1; NP = newp-1;</div>
<div>Line{5:NL} In Surface {1};</div>
<div>Point{5:NP} In Surface {1};</div>
<div>Physical Curve(90) = {5:NL};</div>
<div>Physical Line(10000) = {1}; Physical Line(10001) = {3}; Physical Line(10002) = {2}; Physical Line(10003) = {4}; Physical Surface(100) = {1};</div>
<div><br>
</div>
<div>Mesh.CharacteristicLengthExtendFromBoundary = 0;</div>
<div>Field[1] = AttractorAnisoCurve;</div>
<div>Field[1].EdgesList = {5:NL};</div>
<div>Field[1].NNodesByEdge = 20;</div>
<div>Field[1].dMax = 15*cl_2;</div>
<div>Field[1].dMin = cl_2;</div>
<div>Field[1].lMaxNormal = cl_2;</div>
<div>Field[1].lMaxTangent = cl_2;</div>
<div>Field[1].lMinNormal = cl_2;</div>
<div>Field[1].lMinTangent = cl_2;</div>
<div>Background Field = 1;</div>
<div>Mesh.CharacteristicLengthMax = cl_1;</div>
<div><br>
</div>
<br>
<p></p>
<div id="Signature">
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
<div name="divtagdefaultwrapper" style="margin:0px"><font face="Times New Roman, Times, serif" color="#0000ff"><br>
</font></div>
<div name="divtagdefaultwrapper" style="margin:0px">
<hr>
</div>
<blockquote style="margin:0 0 0 40px; border:none; padding:0px">
<div name="divtagdefaultwrapper" style="margin:0px"><font face="Times New Roman, Times, serif">Best Regards,</font></div>
<div name="divtagdefaultwrapper" style="margin:0px"><font face="Times New Roman, Times, serif"><br>
</font></div>
<div name="divtagdefaultwrapper" style="margin:0px"><span style="font-family:"Times New Roman",Times,serif">Sathyanarayan Rao, PhD student</span></div>
<div name="divtagdefaultwrapper" style="margin:0px"><span style="font-family:"Times New Roman",Times,serif; background-color:rgb(255,255,255); white-space:pre-wrap">Earth and Life Institute/Environmental Sciences (ELI-e)</span></div>
<div name="divtagdefaultwrapper" style="margin:0px"><span style="background-color:rgb(255,255,255); font-family:"Times New Roman",Times,serif; white-space:pre-wrap">Université catholique de Louvain</span></div>
<div name="divtagdefaultwrapper" style="margin:0px"><span style="font-family:"Times New Roman",Times,serif; white-space:pre-wrap; background-color:rgb(255,255,255)">c.037, Croix du Sud 2, Louvain-la-Neuve, Belgium
</span></div>
<div name="divtagdefaultwrapper" style="margin:0px"><span style="background-color:rgb(255,255,255); white-space:pre-wrap">Phone: 010473827 ( intercom 73827)</span></div>
</blockquote>
<div name="divtagdefaultwrapper" style="margin:0px">
<div>
<pre cols="72" style="white-space:pre-wrap; background-color:rgb(255,255,255)"><hr></pre>
</div>
</div>
</div>
</div>
</div>
</body>
</html>