<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hello,<div class=""><br class=""></div><div class="">I am trying to refine near the boundary of a L-shape domain using field, but without success. Let us take a simpler geometry as a rectangle (same as in the example <a href="https://gitlab.onelab.info/gmsh/gmsh/blob/master/tutorial/t10.geo" class="">https://gitlab.onelab.info/gmsh/gmsh/blob/master/tutorial/t10.geo</a>), I am trying to use Distance and Threshold as follows:</div><div class=""><div class="">// Definition of the geometry</div><div class="">lc = .15;</div><div class="">Point(1) = {0.0,0.0,0,lc}; Point(2) = {1,0.0,0,lc};</div><div class="">Point(3) = {1,1,0,lc};     Point(4) = {0,1,0,lc};</div><div class="">Point(5) = {0.2,.5,0,lc};</div><div class="">Line(1) = {1,2}; Line(2) = {2,3}; Line(3) = {3,4}; Line(4) = {4,1};</div><div class="">Curve Loop(5) = {1,2,3,4}; Plane Surface(6) = {5};</div><div class=""><br class=""></div><div class="">// Definition of the distance function</div><div class="">Field[1] = Distance;</div><div class="">Field[1].NNodesByEdge = 100;</div><div class="">Field[1].EdgesList = {2};</div><div class=""><br class=""></div><div class="">// Threshold</div><div class="">Field[2] = Threshold;</div><div class="">Field[2].IField = 1;</div><div class="">Field[2].LcMin = lc / 30;</div><div class="">Field[2].LcMax = lc;</div><div class="">Field[2].DistMin = 0.15;</div><div class="">Field[2].DistMax = 0.5;</div></div><div class=""><br class=""></div><div class="">If I take only one, two or three curves with Field[1].EdgesList = {1}, Field[1].EdgesList = {1,2} or Field[1].EdgesList = {1,2,3}, it works as expected but if I take instead Field[1].EdgesList = {1,2,3,4}, then the mesh is uniform everywhere, there is no more threshold. What am I doing wrong ? </div><div class=""><br class=""></div><br class="">Thank you in advance,<br class=""><div class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); 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; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); 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; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); 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; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" 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;">Pierre Marchand<br class=""></div></div></div></div></div></div></body></html>