<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>