<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 16:47, 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="">If I put </div><div class="">SetFactory("OpenCASCADE");</div><div class=""><br class=""></div><div class="">in the first line, then it gives me different error saying "<span style="color: rgb(255, 0, 0);" class="">unknown line loop with tag1"</span></div></div></div></blockquote><div><br class=""></div><div>Yes, there is no line loop 1 in your geometry... Only a surface 1 ("Rectangle" creates a surface...)</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 class=""><span style="color: rgb(255, 0, 0);" class=""><br class=""></span></div><p style="margin-top: 0px; margin-bottom: 0px;" class=""></p><p style="margin-top: 0px; margin-bottom: 0px;" class=""></p><div class="">// mesh size description</div><div class="">SetFactory("OpenCASCADE");</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="">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 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><hr tabindex="-1" 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; display: inline-block; width: 1041.734375px;" 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=""></span><div id="divRplyFwdMsg" dir="ltr" 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=""><font face="Calibri, sans-serif" style="font-size: 11pt;" class=""><b class="">From:</b><span class="Apple-converted-space"> </span>Christophe Geuzaine <<a href="mailto:cgeuzaine@uliege.be" class="">cgeuzaine@uliege.be</a>><br class=""><b class="">Sent:</b><span class="Apple-converted-space"> </span>22 February 2018 16:36:35<br class=""><b class="">To:</b><span class="Apple-converted-space"> </span>Sathyanarayan Rao<br class=""><b class="">Cc:</b><span class="Apple-converted-space"> </span><a href="mailto:gmsh@onelab.info" class="">gmsh@onelab.info</a><br class=""><b class="">Subject:</b><span class="Apple-converted-space"> </span>Re: [Gmsh] Line loop and Open cascade</font><div class=""> </div></div><div 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=""><br class=""><div class=""><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" class="" 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;"><div class="" style="margin-top: 0px; margin-bottom: 0px;">Dear gmsh team,</div><div class="" style="margin-top: 0px; margin-bottom: 0px;"><br class=""></div><div class="" style="margin-top: 0px; margin-bottom: 0px;">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 class=""><br class=""></div><div class="">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 class=""><br class=""></div><br class=""><blockquote type="cite" class=""><div class=""><div id="divtagdefaultwrapper" dir="ltr" class="" 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;"><div class="" style="margin-top: 0px; margin-bottom: 0px;"> </div><div class="" style="margin-top: 0px; margin-bottom: 0px;">For example in the below code, surface 105 is unrecognized ! </div><div class="" style="margin-top: 0px; margin-bottom: 0px;"><br class=""></div><p class="" style="margin-top: 0px; margin-bottom: 0px;"></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 class="" style="margin-top: 0px; margin-bottom: 0px;"></p><div class="" style="margin-top: 0px; margin-bottom: 0px;"><br class=""></div><div id="Signature" class=""><div name="divtagdefaultwrapper" class="" style="font-family: Calibri, Arial, Helvetica, sans-serif; margin: 0px;"><div name="divtagdefaultwrapper" class="" style="margin: 0px;"><font face="Times New Roman, Times, serif" color="#0000ff" class=""><br class=""></font></div><div name="divtagdefaultwrapper" class="" style="margin: 0px;"><hr class=""></div><blockquote class="" style="margin: 0px 0px 0px 40px; border: none; padding: 0px;"><div name="divtagdefaultwrapper" class="" style="margin: 0px;"><font face="Times New Roman, Times, serif" class="">Best Regards,</font></div><div name="divtagdefaultwrapper" class="" style="margin: 0px;"><font face="Times New Roman, Times, serif" class=""><br class=""></font></div><div name="divtagdefaultwrapper" class="" style="margin: 0px;"><span class="" style="font-family: "Times New Roman", Times, serif;">Sathyanarayan Rao, PhD student</span></div><div name="divtagdefaultwrapper" class="" style="margin: 0px;"><span class="" 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" class="" style="margin: 0px;"><span class="" 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" class="" style="margin: 0px;"><span class="" 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" class="" style="margin: 0px;"><span class="" style="background-color: rgb(255, 255, 255); white-space: pre-wrap;">Phone: 010473827 ( intercom 73827)</span></div></blockquote><div name="divtagdefaultwrapper" class="" style="margin: 0px;"><div class=""><pre cols="72" class="" style="white-space: pre-wrap; background-color: rgb(255, 255, 255);"><hr class=""></pre></div></div></div></div></div><span class="" 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;">_______________________________________________</span><br class="" 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;"><span class="" 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;">gmsh mailing list</span><br class="" 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;"><a href="mailto:gmsh@onelab.info" class="" 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;">gmsh@onelab.info</a><br class="" 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;"><a href="http://onelab.info/mailman/listinfo/gmsh" class="" 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;">http://onelab.info/mailman/listinfo/gmsh</a></div></blockquote></div><br class=""><div class=""><div dir="auto" class="" style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><div 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="">— </div><div 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="">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: <a href="http://gmsh.info" class="">http://gmsh.info</a> | <a href="http://getdp.info" class="">http://getdp.info</a> | <a href="http://onelab.info" class="">http://onelab.info</a></div></div></div></div></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>