<div dir="ltr">Dear users,<div><br></div><div>I'm new to gmsh and am trying to refine a mesh in specific regions. Lets consider my domain to be a unit square and my current aim is to have a finer mesh along the boundaries. I'm using the method of attractor and threshold to refine my mesh locally (like in t10.geo). I can have a successful refinement on any 3 boundaries only. The moment I include the 4th edge in the edge list, I get an almost uniform mesh. </div>
<div><br></div><div>Q1. What is the reason behind this?</div><div><br></div><div><img src="cid:ii_146f23a2722698d6" alt="Inline image 1" width="436" height="212.81540203850508"><br></div><div><br></div><div>Q2. Is there a better way of achieving this type of refinement?</div>
<div><br></div><div>I have attached my .geo file with this email.</div><div><br></div><div>Kind Regards,</div><div>Amar</div></div>