<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Typically you need to treat conforming geometry before you treat mesh. Try adding Coherence; in the script prior to meshing. If you could send the geo and log file I can check. My email is sahas@cec.sc.edu</div>
<div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div id="Signature">
<div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div id="divtagdefaultwrapper" style="background-color:rgb(255,255,255)">
<p style="color:rgb(0,0,0); font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; margin-top:0px; margin-bottom:0px">
<span dir="ltr"><font face="Calibri,Arial,Helvetica,sans-serif" color="black" size="3"><span style="font-size:12pt; background-color:white"></span></font></span></p>
<div id="Signature" style="">__</div>
<div id="Signature" style=""><br>
</div>
<div id="Signature" style=""><span style="font-size:12pt"><font face="Calibri,Arial,Helvetica,sans-serif" color="black" size="3"></font></span><font color="#000000" style="color:rgb(0,0,0); font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt"><span style="font-family:Arial,Helvetica,sans-serif">Best
 Regards</span></font><br>
<font style=""><span style="font-family:"Times New Roman",Times,serif"></span><span style="font-family:Arial,Helvetica,sans-serif"></span>
<div style=""><font style="">
<div style="color:rgb(0,0,0); font-family:Calibri,Arial,Helvetica,sans-serif; font-size:13px; margin:0px">
<span style="font-family:Arial,Helvetica,sans-serif"></span><span style="font-family:"Times New Roman",Times,serif"></span><font face="Helvetica" color="#333399" size="2"><span style="font-size:12pt; font-family:Arial,Helvetica,sans-serif; color:rgb(134,17,6)"><b>Sudipta
 Saha, MS, EIT</b></span></font></div>
<div style="color:rgb(0,0,0); font-family:Calibri,Arial,Helvetica,sans-serif; font-size:13px; margin:0px">
<span style="font-family:Arial,Helvetica,sans-serif"></span><span style="font-family:Arial,Helvetica,sans-serif"><b style="font-size:11pt; font-style:inherit; font-variant-ligatures:inherit; font-variant-caps:inherit">Spent Fuel Modeling Intern, Idaho National
 Laboratory</b></span><span style="font-family:Arial,Helvetica,sans-serif"><b style="color:inherit; font-size:12pt; font-style:inherit; font-variant-ligatures:inherit; font-variant-caps:inherit"> </b></span></div>
<span style="font-family:"Times New Roman",Times,serif"></span>
<div style="margin:0px"><font color="#333399" face="Helvetica" size="2"><span style="color:rgb(0,0,0); font-family:"Times New Roman",Times,serif"><b><br>
</b></span></font></div>
<div style="margin:0px"><font color="#333399" face="Helvetica" size="2"><span style="color:rgb(0,0,0); font-family:Arial,Helvetica,sans-serif; font-size:10pt"><b>PhD Candidate in Mechanical Engineering</b></span></font></div>
<div style="margin:0px"><span style="color:rgb(0,0,0); font-family:Arial,Helvetica,sans-serif; font-size:10pt">Reacting System and Advanced Energy Research Lab</span></div>
<div style="color:rgb(0,0,0); font-family:Calibri,Arial,Helvetica,sans-serif; font-size:13px; margin:0px">
<font face="Helvetica" color="#333399" size="2" style=""><span style="font-size:10pt; color:rgb(0,0,0); font-family:Arial,Helvetica,sans-serif"><font style="color:rgb(96,94,92); font-size:16px; background-color:rgb(255,255,255)">
<div style="margin:0px"><font color="#570606" face="Times New Roman, Times, serif"><span style="margin:0px; font-size:10pt; font-family:Arial,Helvetica,sans-serif; color:rgb(200,38,19)"><b>Graduate Council Representative, Graduate Student Association</b></span></font></div>
<div style="margin:0px"><font color="#570606" face="Times New Roman, Times, serif"><span style="margin:0px; font-size:10pt; font-family:Arial,Helvetica,sans-serif; color:rgb(200,38,19)"><a href="https://www.linkedin.com/in/sudipta-saha-usc/" title="https://www.linkedin.com/in/sudipta-saha-usc/" style="margin:0px; font-family:Helvetica; background-color:rgb(255,255,255)"><span style="margin:0px; font-family:Arial,Helvetica,sans-serif; color:rgb(12,100,192)">LinkedIn</span></a><span style="margin:0px; font-family:Arial,Helvetica,sans-serif; color:rgb(12,100,192); background-color:rgb(255,255,255)"> | </span><a href="https://www.researchgate.net/profile/Sudipta_Saha13" title="https://www.researchgate.net/profile/Sudipta_Saha13" style="margin:0px; font-family:Helvetica; background-color:rgb(255,255,255)"><span style="margin:0px; font-family:Arial,Helvetica,sans-serif; color:rgb(12,100,192)">ResearchGate</span></a><span style="margin:0px; font-family:Arial,Helvetica,sans-serif; color:rgb(12,100,192); background-color:rgb(255,255,255)"> | </span><span style="margin:0px; font-family:"Times New Roman",Times,serif; color:rgb(81,167,249); background-color:rgb(255,255,255)"><a href="https://scholar.google.com/citations?user=xDVKlBcAAAAJ&hl=en" title="https://scholar.google.com/citations?user=xDVKlBcAAAAJ&hl=en" style="margin:0px"><span style="margin:0px; font-family:Arial,Helvetica,sans-serif; color:rgb(12,100,192)">GoogleScholar</span></a></span><span style="margin:0px; font-family:Arial,Helvetica,sans-serif; color:rgb(12,100,192); background-color:rgb(255,255,255)"> </span><span style="margin:0px; font-family:Arial,Helvetica,sans-serif; color:rgb(12,100,192); background-color:rgb(255,255,255)">|</span><span style="margin:0px; font-family:"Times New Roman",Times,serif; color:rgb(81,167,249); background-color:rgb(255,255,255)"><span style="margin:0px; font-family:Arial,Helvetica,sans-serif; color:rgb(12,100,192)"> </span><span style="margin:0px; font-family:Arial,Helvetica,sans-serif; color:rgb(12,100,192)"><a href="https://sudiptasaha.weebly.com/" title="https://sudiptasaha.weebly.com/" style="margin:0px"><span style="color:rgb(12,100,192)">Website</span></a></span></span><br>
</span></font></div>
</font></span></font></div>
</font><font face="Tahoma" size="1" style="color:rgb(0,0,0); font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt"><span style="font-size:13px">
<div style="margin:0"><font face="Helvetica" color="#333399" size="2"><span style="font-size:10pt"><font color="#bd1398"><span style="font-family:"Times New Roman",Times,serif; color:rgb(0,0,0)"><img class="EmojiInsert" style="width:170px" data-outlook-trace="F:1|T:1" src="cid:500b8551-0821-42f0-8b09-bb908bc10418"><br>
</span></font></span></font></div>
<div style="margin:0"><font face="Helvetica" color="#333399" size="2"><span style="font-size:10pt"><font color="#bd1398"><span style="font-family:"Times New Roman",Times,serif; color:rgb(0,0,0)"><br>
</span></font></span></font></div>
<div style="margin:0"><font face="Helvetica" color="#333399" size="2"><span style="font-size:10pt"><font color="#bd1398"><br>
</font></span></font></div>
</span></font></div>
</font></div>
<p style="color:rgb(0,0,0); font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; margin-top:0px; margin-bottom:0px">
</p>
</div>
</div>
</div>
</div>
<div id="appendonsend"></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> gmsh <gmsh-bounces@ace20.montefiore.ulg.ac.be> on behalf of Patrick Tsui <pcptsui@gmail.com><br>
<b>Sent:</b> Monday, August 3, 2020 12:13 PM<br>
<b>To:</b> gmsh@onelab.info <gmsh@onelab.info><br>
<b>Subject:</b> [Gmsh] Problem of Conformal Meshing at Volume boundaries</font>
<div> </div>
</div>
<div>
<div dir="ltr">
<div>Dear All,</div>
<div><br>
</div>
<div>I am having trouble getting conformal meshing at boundaries of volumes. I tried a good number of suggestions found online but failed. For the simple codes tested (listed below and attached), 104 errors appeared. Gmsh 4.7.0 on Ubuntu 19.10 were used. Any
 help would be highly appreciated.<br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>// Code begins ------------------------------------------------------------------------<br>
</div>
<div>SetFactory("OpenCASCADE");<br>
<br>
mm2m = 0.001;<br>
i2m = 0.0254;<br>
Geometry.AutoCoherence = 1;<br>
Mesh.CharacteristicLengthMin = 0.125*i2m;<br>
Mesh.CharacteristicLengthMax = 0.250*i2m;<br>
Geometry.Tolerance = 0.01*mm2m;<br>
lc  = 0.125*i2m;<br>
<br>
a  = 2.0 * i2m;<br>
p1=newp; Point(p1) = { a, 0.0,  a, lc};<br>
p2=newp; Point(p2) = {-a, 0.0,  a, lc};<br>
p3=newp; Point(p3) = {-a, 0.0, -a, lc};<br>
p4=newp; Point(p4) = { a, 0.0, -a, lc};<br>
l1=newl; Line(l1) = {p1, p2};<br>
l2=newl; Line(l2) = {p2, p3};<br>
l3=newl; Line(l3) = {p3, p4};<br>
l4=newl; Line(l4) = {p4, p1};<br>
ll1=newll; Curve Loop(ll1) = {l1, l2, l3, l4};<br>
s1=news; Plane Surface(s1)={ll1};<br>
hh = 0.5*i2m;<br>
id[] = Extrude {0,hh,0} { Surface{s1}; Layers{ 1 }; Recombine; };<br>
v1 = id[1];<br>
<br>
p5=newp; Point(p5) = { a/2, 0.0,  a/2, lc};<br>
p6=newp; Point(p6) = {-a/2, 0.0,  a/2, lc};<br>
p7=newp; Point(p7) = {-a/2, 0.0, -a/2, lc};<br>
p8=newp; Point(p8) = { a/2, 0.0, -a/2, lc};<br>
l5=newl; Line(l5) = {p5, p6};<br>
l6=newl; Line(l6) = {p6, p7};<br>
l7=newl; Line(l7) = {p7, p8};<br>
l8=newl; Line(l8) = {p8, p5};<br>
Point {p5,p6,p7,p8} In Surface{s1};<br>
Line {l5,l6,l7,l8} In Surface{s1};<br>
<br>
ll2=newll; Curve Loop(ll2) = {l5, l6, l7, l8};<br>
s2=news; Plane Surface(s2)={ll2};<br>
id[] = Extrude {0,-hh,0} { Surface{s2}; Layers{ 1 }; Recombine; };<br>
v2 = id[1];<br>
<br>
Surface {s2} In Volume{v1};<br>
<br>
v() = BooleanFragments{ Volume{v1}; Delete;}{ Volume{v2}; Delete;};<br>
n=#v();<br>
For i In {0:n-1}<br>
Printf("v(%g) = %g",i,v(i));<br>
EndFor<br>
<br>
Mesh 3;<br>
Coherence Mesh;</div>
<div><br>
</div>
<div>// Code ends ------------------------------------------------------------------------</div>
<div><br>
</div>
<div>Sincerely,<br>
</div>
<div><br>
</div>
<div>PT<br>
</div>
</div>
</div>
</body>
</html>