<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 22 Feb 2018, at 12:56, Sathyanarayan Rao <<a href="mailto:sathyanarayan.rao@uclouvain.be" class="">sathyanarayan.rao@uclouvain.be</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div id="divtagdefaultwrapper" dir="ltr" style="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; font-size: 12pt; font-family: "Times New Roman", Times, serif;" class=""><div style="margin-top: 0px; margin-bottom: 0px;" class="">Dear gmsh team,</div><div style="margin-top: 0px; margin-bottom: 0px;" class=""><br class=""></div><div style="margin-top: 0px; margin-bottom: 0px;" class="">Is it not possible to use both line loop type surface definition and open cascade rectangle. I always have problem with using both.</div></div></div></blockquote><div><br class=""></div><div>Sure you can: but you need to put SetFactory("OpenCASCADE") at the begining of your file: otherwise you create the first entities with the built-in CAD kernel ; and the rest (after SetFactory) with open cascade.</div><div><br class=""></div><br class=""><blockquote type="cite" class=""><div class=""><div id="divtagdefaultwrapper" dir="ltr" style="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; font-size: 12pt; font-family: "Times New Roman", Times, serif;" class=""><div style="margin-top: 0px; margin-bottom: 0px;" class=""> </div><div style="margin-top: 0px; margin-bottom: 0px;" class="">For example in the below code, surface 105 is unrecognized ! </div><div style="margin-top: 0px; margin-bottom: 0px;" class=""><br class=""></div><p style="margin-top: 0px; margin-bottom: 0px;" class=""></p><div class="">// mesh size description</div><div class=""><br class=""></div><div class="">cl_1   =  0.3;</div><div class="">cl_2   =  0.02;</div><div class="">cl3    =  0.02;</div><div class="">Mesh.CharacteristicLengthMax = 40;</div><div class="">extend = 15;</div><div class=""><br class=""></div><div class="">// define inversion region</div><div class=""><br class=""></div><div class="">Point(1) = {-0.05, 0.005, 0, cl_2};</div><div class="">Point(2) = {7.25, 0.005, 0, cl_2};</div><div class="">Point(3) = {7.25, -1.45, 0, cl_2};</div><div class="">Point(4) = {-0.05, -1.45, 0, cl_2};</div><div class=""><br class=""></div><div class="">// define bounding box</div><div class=""><br class=""></div><div class="">Point(5) = {-0.05-extend, 0.005, 0, cl_1};</div><div class="">Point(6) = {7.25+extend, 0.005, 0, cl_1};</div><div class="">Point(7) = {7.25+extend, -1.45-extend, 0, cl_1};</div><div class="">Point(8) = {-0.05-extend, -1.45-extend, 0, cl_1};</div><div class=""><br class=""></div><div class="">Line(1) = {1, 2};</div><div class="">Line(2) = {2, 6};</div><div class="">Line(3) = {6, 7};</div><div class="">Line(4) = {7, 8};</div><div class="">Line(5) = {8, 5};</div><div class="">Line(6) = {5, 1};</div><div class="">Line(7) = {1, 4};</div><div class="">Line(8) = {4, 3};</div><div class="">Line(9) = {3, 2};</div><div class=""><br class=""></div><div class="">// Definition of regions</div><div class="">Line Loop(101) = {2, 3, 4, 5, 6, 7, 8, 9};</div><div class="">Plane Surface(102) = {101}; // Outer box</div><div class="">Line Loop(105) = {1, -9, -8, -7};</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">// geological body</div><div class=""><br class=""></div><div class="">SetFactory("OpenCASCADE");</div><div class="">Rectangle(1) = {0.1, -0.2, 0, 0.5, 0.1, 0};</div><div class="">Rectangle(2) = {0.1, -1.0, 0, 0.3, 0.7, 0};</div><div class="">Rectangle(3) = {3.1, -0.6, 0, 1, 0.5, 0};</div><div class="">Rectangle(4) = {4.2, -1.2, 0, 1, 0.5, 0};</div><div class="">Rectangle(5) = {5.6, -0.9, 0, 1, 0.5, 0};</div><div class="">Plane Surface(110) = {105,1,2,3,4,5}; // Inner box without geological body</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">// Definition of boundaries</div><div class="">Physical Line(1) = {6, 2, 1}; // Free surface</div><div class="">Physical Line(2) = {3,4, 5}; // Mixed boundary conditions</div><div class=""><br class=""></div><div class="">// Definition of physical regions</div><div class="">Physical Surface(1)  = {102}; // No-inversion region</div><div class="">Physical Surface(2)  = {110}; // Inversion region</div><div class="">Physical Surface(3)  = {1}; // Geological body 1</div><div class="">Physical Surface(4)  = {2}; // Geological body 2</div><div class="">Physical Surface(5)  = {3}; // Geological body 3</div><div class="">Physical Surface(6)  = {4}; // Geological body 4</div><div class="">Physical Surface(7)  = {5}; // Geological body 5</div><br class=""><p style="margin-top: 0px; margin-bottom: 0px;" class=""></p><div style="margin-top: 0px; margin-bottom: 0px;" class=""><br class=""></div><div id="Signature" class=""><div name="divtagdefaultwrapper" style="font-family: Calibri, Arial, Helvetica, sans-serif; margin: 0px;" class=""><div name="divtagdefaultwrapper" style="margin: 0px;" class=""><font face="Times New Roman, Times, serif" color="#0000ff" class=""><br class=""></font></div><div name="divtagdefaultwrapper" style="margin: 0px;" class=""><hr class=""></div><blockquote style="margin: 0px 0px 0px 40px; border: none; padding: 0px;" class=""><div name="divtagdefaultwrapper" style="margin: 0px;" class=""><font face="Times New Roman, Times, serif" class="">Best Regards,</font></div><div name="divtagdefaultwrapper" style="margin: 0px;" class=""><font face="Times New Roman, Times, serif" class=""><br class=""></font></div><div name="divtagdefaultwrapper" style="margin: 0px;" class=""><span style="font-family: "Times New Roman", Times, serif;" class="">Sathyanarayan Rao, PhD student</span></div><div name="divtagdefaultwrapper" style="margin: 0px;" class=""><span style="font-family: "Times New Roman", Times, serif; background-color: rgb(255, 255, 255); white-space: pre-wrap;" class="">Earth and Life Institute/Environmental Sciences (ELI-e)</span></div><div name="divtagdefaultwrapper" style="margin: 0px;" class=""><span style="background-color: rgb(255, 255, 255); font-family: "Times New Roman", Times, serif; white-space: pre-wrap;" class="">Université catholique de Louvain</span></div><div name="divtagdefaultwrapper" style="margin: 0px;" class=""><span style="font-family: "Times New Roman", Times, serif; white-space: pre-wrap; background-color: rgb(255, 255, 255);" class="">c.037, Croix du Sud 2, Louvain-la-Neuve, Belgium
</span></div><div name="divtagdefaultwrapper" style="margin: 0px;" class=""><span style="background-color: rgb(255, 255, 255); white-space: pre-wrap;" class="">Phone: 010473827 ( intercom 73827)</span></div></blockquote><div name="divtagdefaultwrapper" style="margin: 0px;" class=""><div class=""><pre cols="72" style="white-space: pre-wrap; background-color: rgb(255, 255, 255);" class=""><hr class=""></pre></div></div></div></div></div><span style="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; float: none; display: inline !important;" class="">_______________________________________________</span><br style="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;" class=""><span style="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; float: none; display: inline !important;" class="">gmsh mailing list</span><br style="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;" class=""><a href="mailto:gmsh@onelab.info" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">gmsh@onelab.info</a><br style="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;" class=""><a href="http://onelab.info/mailman/listinfo/gmsh" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">http://onelab.info/mailman/listinfo/gmsh</a></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>