<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:'Times New Roman',Times,serif;" dir="ltr">
<p>If I put </p>
<div>SetFactory("OpenCASCADE");</div>
<div><br>
</div>
<div>in the first line, then it gives me different error saying "<span style="color: rgb(255, 0, 0);">unknown line loop with tag1"</span></div>
<div><span style="color: rgb(255, 0, 0);"><br>
</span></div>
<p></p>
<p></p>
<div>// mesh size description</div>
<div>SetFactory("OpenCASCADE");</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>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>
<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>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Christophe Geuzaine <cgeuzaine@uliege.be><br>
<b>Sent:</b> 22 February 2018 16:36:35<br>
<b>To:</b> Sathyanarayan Rao<br>
<b>Cc:</b> gmsh@onelab.info<br>
<b>Subject:</b> Re: [Gmsh] Line loop and Open cascade</font>
<div> </div>
</div>
<div><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="">
</div>
</body>
</html>