<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=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On 13 Jul 2018, at 16:46, Octavio Castillo Reyes <<a href="mailto:ocastilloreyes@gmail.com" class="">ocastilloreyes@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="">Dear all, <br class=""></div><div class=""><br class=""></div><div class="">I'm writing to you because I need some tips/advices for mesh refinement. <span lang="en" class=""><span class="">Given a simple model like
 the one attached to this mail, If the spacing for material 1 is d1 = 
300 m, and for material 2 it is d2 = 220 m.</span> <span class="">How to define the spacing for points p1, p2, p3, p4, p5, p6?</span> <span class="">How to refine near points p7, p8, ...., p14?</span> <span class="">For these points, I want a refinement equal to d1/20 and that extends up to 80 m from each point.</span><br class=""><br class=""><span class="">I
 have already done experiments but it is not clear to me how to handle 
the attractor option, namely I don't know if following lines are 
correct:</span></span></div><div class=""><span lang="en" class=""><span class=""><br class=""></span></span></div><div class=""><span lang="en" class=""><span class="">d1 = 300;<br class=""></span></span></div><div class=""><span lang="en" class=""><span class="">d2 = 220;<br class=""></span></span></div><div class=""><span lang="en" class=""><span class=""><br class=""></span></span></div><div class=""><span lang="en" class=""><span class="">Field[1] = Attractor;<br class="">Field[1].NodesList = {7:14};<br class="">Field[2] = Threshold;<br class="">Field[2].IField = 1;<br class="">Field[2].LcMin = d1/20;<br class="">Field[2].LcMax = ds;<br class="">Field[2].DistMin = d1/20;<br class="">Field[2].DistMax = 80;<br class="">Field[3] = Min;<br class="">Field[3].FieldsList = {2};<br class="">Background Field = 3;<br class=""></span></span></div></div></div></blockquote><div><br class=""></div><div>Looks ok (the Min field is not necessary) ; it will work both in 2D and 3D.</div><div><br class=""></div><div>Also make sure to add Mesh.CharacteristicLengthExtendFromBoundary = 0 so that this automatic interpolation is not applied.</div><div><br class=""></div><div>CG</div><br class=""><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class=""><span lang="en" class=""><span class=""><br class="">Characteristic Length {1, 2, 3, 6} = d1;<br class=""></span></span><span lang="en" class=""><span class="">Characteristic Length {4, 5} = d2;</span></span></div><div class=""><span lang="en" class=""><span class=""><br class=""></span></span></div><div class=""><span lang="en" class=""><span class="">Finally, I don't know if this options are valid for a 3D case.</span></span></div><div class=""><span lang="en" class=""><span class=""><br class=""></span></span></div><div class=""><span lang="en" class=""><span class="">Thank you for your time and support.</span></span></div><div class=""><span lang="en" class=""><span class=""><br class=""></span></span></div><div class=""><span lang="en" class=""><span class="">Best regards</span></span></div><br class=""></div>
<span id="cid:6D051052-A4F1-4C17-B909-6185BF30D32C@home"><Mesh_example.pdf></span>_______________________________________________<br class="">gmsh mailing list<br class=""><a href="mailto:gmsh@onelab.info" class="">gmsh@onelab.info</a><br class="">http://onelab.info/mailman/listinfo/gmsh<br class=""></div></blockquote></div><br class=""><div class="">
<div dir="auto" style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div style="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;">— </div><div style="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;">Prof. Christophe Geuzaine<br class="">University of Liege, Electrical Engineering and Computer Science <br class=""><a href="http://www.montefiore.ulg.ac.be/~geuzaine" class="">http://www.montefiore.ulg.ac.be/~geuzaine</a><br class=""><br class="">Free software: http://gmsh.info | http://getdp.info | http://onelab.info</div></div>
</div>
<br class=""></body></html>