<div dir="ltr">Hey Martin,<div><br></div><div>Thanks for the thorough explanation! If I manage to get a good mesh with Gmsh, I won't really need the .stl anyway as I would use them to use snappyHexMesh for the meshing.</div>

<div><br></div><div style>I also get the warnings though I don't know what they mean... I attached the .geo I used for the structured mesh, I managed to improve a bit the quality of the cells near the corner by creating a region with co-planar faces, though I believe I just moved/changed the place where I will run into issues... I also tried having unstructured elements near the problematic region but it didn't really help...</div>

<div style><br></div><div style>Cheers,</div><div style>Felipe</div></div><div class="gmail_extra"><br clear="all"><div><div dir="ltr"><div><br>--</div>Felipe Alves Portela<div>MSc student in Aerospace Eng. at TU Delft</div>

<div><a href="http://www.linkedin.com/in/felipealvesportela" target="_blank">http://www.linkedin.com/in/felipealvesportela</a> </div></div></div>
<br><br><div class="gmail_quote">On 21 March 2013 16:41, Martin Vymazal <span dir="ltr"><<a href="mailto:martin.vymazal@vki.ac.be" target="_blank">martin.vymazal@vki.ac.be</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<u></u>
<div style="font-family:'Roboto';font-size:9pt;font-weight:400;font-style:normal">
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">Hi Felipe, </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> I didn't manage to mesh your geometry. I'm getting this (after 2 hours of running gmsh):</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> Volume do not match  1.588845063218419E-04  1.600196016669183E-04  7.093476881907630E-03</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">Volume do not match  1.588932327064256E-04  1.600300053984631E-04  7.103497179838322E-03</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">Volume do not match  1.589864934028117E-04  1.601523686854313E-04  7.279787943128194E-03</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">Volume do not match  1.589450067262323E-04  1.601000560689481E-04  7.214546772040652E-03</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">Volume do not match  1.590410579932190E-04  1.601855161516023E-04  7.144579521784781E-03</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">Volume do not match  1.590582035727257E-04  1.602001491852048E-04  7.128243127657754E-03</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">Volume do not match  1.588969703174746E-04  1.600347350034682E-04  7.109485862359648E-03</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">Volume do not match  1.590485099915781E-04  1.601891519519827E-04  7.120594288097972E-03</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">Volume do not match  1.590046382981625E-04  1.601481475152607E-04  7.140321226564688E-03</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">Volume do not match  1.589345926016806E-04  1.601045520535501E-04  7.307471504484324E-03</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">Volume do not match  1.589321060424286E-04  1.600865990877137E-04  7.211678253297149E-03</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">Volume do not match  1.590316228003549E-04  1.601823800873328E-04  7.184044127390844E-03</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">Maybe you don't have the same error, though. I have svn revision 14842.</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> About stl and physicals: if you need to save only a part of your geometry, make only that part physical. If you want to save all surfaces, but in different files, repeating the above with setting different surfaces as 'physical' will probably not work because the mesh algorithm is not deterministic - if you run gmsh twice, the output mesh is not necessarily exactly identical. So if you mark one surface in your geo as physical, save the stl, then mark another surface as physical and re-run gmsh to save another stl, you might end up with nonconforming output surfaces.</p>


<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> Maybe you could write the whole mesh as *.msh, and then see if in the gui you cannot remove all physical groups but one. By that I mean that you would just remove the physical tag, not the surface itself. Then you could export to stl. After that, you reopen your msh and repeat with another surface. Not very automatic but I don't have a better idea for the moment.</p>


<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">Best regards,</p><span class="HOEnZb"><font color="#888888">
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">    Martin</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> </p></font></span></div><br>_______________________________________________<br>
gmsh mailing list<br>
<a href="mailto:gmsh@geuz.org">gmsh@geuz.org</a><br>
<a href="http://www.geuz.org/mailman/listinfo/gmsh" target="_blank">http://www.geuz.org/mailman/listinfo/gmsh</a><br>
<br></blockquote></div><br></div>