<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="">
<div class="">Hi Isabela, </div>
<div class=""><br class="">
</div>
<div class="">You may use BooleanFragments instead of BooleanDifference. That seems to work:</div>
<div class="">Try the following at the end of your file:</div>
<div class="">
<div class=""><br class="">
</div>
<div class="">/*</div>
<div class="">voxcyl() = BooleanDifference{Volume{v};}{Volume{union19()}; Delete;};</div>
<div class="">//Physical Volume(0) = {voxcyl()};</div>
<div class="">*/</div>
<div class=""><br class="">
</div>
<div class="">// ------- Definition of Final Volume --------</div>
<div class="">voxcyl() += BooleanFragments{ Volume{v}; Delete;}{ Volume{union19()}; Delete; };</div>
<div class="">Physical Volume(0) = {voxcyl({#voxcyl()-1})}; // around the vessels</div>
<div class="">Physical Volume(1) = {voxcyl({0:#voxcyl()-2})}; // the vessels</div>
<div class=""><br class="">
</div>
<div class="">Printf("",voxcyl()); // Just for checking</div>
</div>
<div class=""><br class="">
</div>
<div class="">#voxcyl() gives you the number of elements in the array.</div>
<div class=""><br class="">
</div>
<div class="">Best regards,</div>
<div class="">Ruth</div>
<br class="">
<div class="">
<div style="orphans: auto; text-align: start; text-indent: 0px; widows: auto; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; orphans: auto; text-align: start; text-indent: 0px; widows: auto; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
—<br class="">
Prof. Ruth V. Sabariego<br class="">
KU Leuven <br class="">
Dept. Electrical Engineering ESAT/Electa, EnergyVille<br class="">
<a href="http://www.esat.kuleuven.be/electa" class="">http://www.esat.kuleuven.be/electa</a></div>
<div style="orphans: auto; text-align: start; text-indent: 0px; widows: auto; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<a href="http://www.energyville.be" class="">http://www.energyville.be</a></div>
<div style="color: rgb(0, 0, 0); letter-spacing: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; orphans: auto; text-align: start; text-indent: 0px; widows: auto; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<br class="">
</div>
<div style="color: rgb(0, 0, 0); letter-spacing: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; orphans: auto; text-align: start; text-indent: 0px; widows: auto; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" 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><br class="">
<br class="">
<br class="">
<br class="">
<br class="">
<br class="">
<br class="">
</div>
</div>
</div>
<div><br class="">
<blockquote type="cite" class="">
<div class="">On 7 Feb 2018, at 11:50, ISABELA PAREDES CISNEROS <<a href="mailto:iparedes1@uc.cl" class="">iparedes1@uc.cl</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div dir="ltr" class="">
<div class="">
<div class="">Dear all,<br class="">
<br class="">
</div>
I am trying to mesh a cube with cylindrical holes in it. Some of the holes intersect. I am using a BooleanUnion of all the cylinders and then a BooleanDifference of the cube and the cylinders. In the meshing, I get no error but the mesh on the cylinders boundary
is wrong. A lot of surfaces are missing. <br class="">
<br class="">
</div>
<div class="">Do you have any idea of what am I doing wrong?<br class="">
<br class="">
</div>
<div class="">Best regards,<br class="">
<br class="">
</div>
<div class="">Isabela<br class="">
<br class="">
</div>
<div class="">P.D: I have commented some lines (10 and 113) in the GEO file to visualize the mesh over the cylinders.
<br class="">
</div>
<div class=""><br class="">
</div>
</div>
<span id="cid:8557C9E7-C67F-400D-BAA0-C98202548D9A@home"><Vessels_xyz.geo></span><span id="cid:738E6186-23E7-496B-97D0-71CC76ED3746@home"><wrong_mesh.jpg></span>_______________________________________________<br class="">
gmsh mailing list<br class="">
<a href="mailto:gmsh@onelab.info" class="">gmsh@onelab.info</a><br class="">
http://onelab.info/mailman/listinfo/gmsh<br class="">
</div>
</blockquote>
</div>
<br class="">
</body>
</html>