<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>Dear gmsh team,</p>
<p><br>
</p>
<p>Is it not possible to use both line loop type surface definition and open cascade rectangle. I always have problem with using both. </p>
<p>For example in the below code, surface 105 is unrecognized ! </p>
<p><br>
</p>
<p></p>
<div>// mesh size description</div>
<div><br>
</div>
<div>cl_1   =  0.3;</div>
<div>cl_2   =  0.02;</div>
<div>cl3    =  0.02;</div>
<div>Mesh.CharacteristicLengthMax = 40;</div>
<div>extend = 15;</div>
<div><br>
</div>
<div>// define inversion region</div>
<div><br>
</div>
<div>Point(1) = {-0.05, 0.005, 0, cl_2};</div>
<div>Point(2) = {7.25, 0.005, 0, cl_2};</div>
<div>Point(3) = {7.25, -1.45, 0, cl_2};</div>
<div>Point(4) = {-0.05, -1.45, 0, cl_2};</div>
<div><br>
</div>
<div>// define bounding box</div>
<div><br>
</div>
<div>Point(5) = {-0.05-extend, 0.005, 0, cl_1};</div>
<div>Point(6) = {7.25+extend, 0.005, 0, cl_1};</div>
<div>Point(7) = {7.25+extend, -1.45-extend, 0, cl_1};</div>
<div>Point(8) = {-0.05-extend, -1.45-extend, 0, cl_1};</div>
<div><br>
</div>
<div>Line(1) = {1, 2};</div>
<div>Line(2) = {2, 6};</div>
<div>Line(3) = {6, 7};</div>
<div>Line(4) = {7, 8};</div>
<div>Line(5) = {8, 5};</div>
<div>Line(6) = {5, 1};</div>
<div>Line(7) = {1, 4};</div>
<div>Line(8) = {4, 3};</div>
<div>Line(9) = {3, 2};</div>
<div><br>
</div>
<div>// Definition of regions</div>
<div>Line Loop(101) = {2, 3, 4, 5, 6, 7, 8, 9};</div>
<div>Plane Surface(102) = {101}; // Outer box</div>
<div>Line Loop(105) = {1, -9, -8, -7};</div>
<div><br>
</div>
<div><br>
</div>
<div>// geological body</div>
<div><br>
</div>
<div>SetFactory("OpenCASCADE");</div>
<div>Rectangle(1) = {0.1, -0.2, 0, 0.5, 0.1, 0};</div>
<div>Rectangle(2) = {0.1, -1.0, 0, 0.3, 0.7, 0};</div>
<div>Rectangle(3) = {3.1, -0.6, 0, 1, 0.5, 0};</div>
<div>Rectangle(4) = {4.2, -1.2, 0, 1, 0.5, 0};</div>
<div>Rectangle(5) = {5.6, -0.9, 0, 1, 0.5, 0};</div>
<div>Plane Surface(110) = {105,1,2,3,4,5}; // Inner box without geological body</div>
<div><br>
</div>
<div><br>
</div>
<div>// Definition of boundaries</div>
<div>Physical Line(1) = {6, 2, 1}; // Free surface</div>
<div>Physical Line(2) = {3,4, 5}; // Mixed boundary conditions</div>
<div><br>
</div>
<div>// Definition of physical regions</div>
<div>Physical Surface(1)  = {102}; // No-inversion region</div>
<div>Physical Surface(2)  = {110}; // Inversion region</div>
<div>Physical Surface(3)  = {1}; // Geological body 1</div>
<div>Physical Surface(4)  = {2}; // Geological body 2</div>
<div>Physical Surface(5)  = {3}; // Geological body 3</div>
<div>Physical Surface(6)  = {4}; // Geological body 4</div>
<div>Physical Surface(7)  = {5}; // Geological body 5</div>
<br>
<p></p>
<p><br>
</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>