<div dir="ltr"><div dir="ltr"><div>Hello Aaron, <br></div><div><br></div><div>This is kind of a dumb way, but taking your question literally, I made two separate mesh files, refining just one and then merged them with these geo commands:</div><div><br></div><div>Merge "mesh1.msh";</div><div>Merge "mesh2.msh";</div><div><br></div><div>This method however discards the geometry. The weird part is at the boundary between the two; what should happen there for flow simulations, etc? <br></div><div><br></div><div><div><img src="cid:ii_jsxgufko0" alt="image.png" width="268" height="475"><br></div></div><div><br></div><div>Personally, for a real problem I would either increase the transfinite resolution on the lines I wanted to be more refined or add a size field (area with a different mesh refinement). The documentation has more information on these options. Perhaps using mesh partitions could work as well? I'm not really sure what those are to be honest but it sounds like similar idea.</div><div><br></div><div>Sincerely, <br></div><div>Max<br></div><div><br></div><div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Mar 5, 2019 at 4:06 PM Aaron Matthew Baier-Reinio <<a href="mailto:ambaierreinio@edu.uwaterloo.ca">ambaierreinio@edu.uwaterloo.ca</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">




<div dir="ltr">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Hello,</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
In the following toy example I have two adjacent squares, which are meshed using the transfinite algorithm:</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<span>Point(1) = {0, 0, 0, 1.0};<br>
</span>
<div>Point(2) = {1, -0, 0, 1.0};<br>
</div>
<div>Point(3) = {1, 1, 0, 1.0};<br>
</div>
<div>Point(4) = {0, 2, 0, 1.0};<br>
</div>
<div>Point(5) = {0, 1, 0, 1.0};<br>
</div>
<div>Point(6) = {1, 2, 0, 1.0};<br>
</div>
<div><br>
</div>
<div>Line(1) = {4, 5};<br>
</div>
<div>Line(2) = {5, 1};<br>
</div>
<div>Line(3) = {1, 2};<br>
</div>
<div>Line(4) = {3, 2};<br>
</div>
<div>Line(5) = {3, 6};<br>
</div>
<div>Line(6) = {6, 4};<br>
</div>
<div>Line(7) = {5, 3};<br>
</div>
<div><br>
</div>
<div>Curve Loop(1) = {1, 7, 5, 6};<br>
</div>
<div>Plane Surface(1) = {1};<br>
</div>
<div>Curve Loop(2) = {7, 4, -3, -2};<br>
</div>
<div>Plane Surface(2) = {2};<br>
</div>
<div><br>
</div>
<div>Transfinite Curve {6, 5, 7, 1, 4, 3, 2} = 10 Using Progression 1;<br>
</div>
<div>Transfinite Surface {1};<br>
</div>
<div>Transfinite Surface {2};<br>
</div>
<div><br>
</div>
<div>When I press "refine by splitting", the number of elements in each square is doubled. I was wondering if there is a way to apply "refine by splitting" to the top square only, so that the number of elements in the top square is doubled, while the number
 of elements in the bottom square doesn't change. How might I go about doing this?</div>
<div><br>
</div>
<div><br>
</div>
<div>Thanks for the help,</div>
<div>Aaron</div>
<div><br>
</div>
<span></span><br>
</div>
</div>

_______________________________________________<br>
gmsh mailing list<br>
<a href="mailto:gmsh@onelab.info" target="_blank">gmsh@onelab.info</a><br>
<a href="http://onelab.info/mailman/listinfo/gmsh" rel="noreferrer" target="_blank">http://onelab.info/mailman/listinfo/gmsh</a><br>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>Max Orok</div><div>Contractor<br></div></div><div dir="ltr"><a href="http://www.mevex.com" target="_blank">www.mevex.com</a><br><br><img src="https://docs.google.com/uc?export=download&id=1fHTIiW4OMUjQr1iOkspQ7wiEsxunoOs0&revid=0B6x5w-5zVaEjSkpwbm5oY29jbG1XMzJoYldXTmJpNGFtb3dVPQ" width="164" height="42"><br></div></div></div></div></div></div>