<div dir="ltr">Dear Sir/Madam,<div><br></div><div>I have been experiencing difficulties generating a volume mesh (.geo and .msh) from a surface mesh (.stl) generated in matlab. The main issue is that I end up with zero volume tetrahedra (elements with four collinear points) which causes difficulties in subsequent finite element simulations. </div><div><br></div><div>I have attached an example of a surface mesh (.stl) that I start off with. I then use the procedure outlined in the following link to create the volume mesh (.geo and .msh): <a href="http://fengl.org/2012/05/21/converting-stl-surface-mesh-to-volume-mesh-using-gmsh/">http://fengl.org/2012/05/21/converting-stl-surface-mesh-to-volume-mesh-using-gmsh/</a></div><div><br></div><div><u>My questions are:</u></div><div>- Is there a way to avoid zero volume tetrahedra or does the issue originate from the matlab generated stl file? Do you have a suggestion to avoid this issue?</div><div>- Is there a possibility of generating a volume mesh in GMSH by defining the surface boundary in an equation? For instance if I describe my shape in form of a triple sinusoidal (as done in the matlab code) and then tell GMSH to mesh the inner volume. If so could you point me towards some examples?</div><div><br></div><div>Thank you very much for your time.</div><div>I would appreciate any suggestions that you may have.</div><div><br></div><div>Kind regards,</div><div>David</div><div><br clear="all"><div><br></div>-- <br><div class="gmail_signature">David Love<div><br></div><div>PhD Candidate in Physics</div><div>Cavendish Laboratory</div><div>University of Cambridge</div><div><br></div><div>Office: +44 (0)1223 764169</div><div>Email: <a href="mailto:dml42@cam.ac.uk" target="_blank">dml42@cam.ac.uk</a></div></div></div></div>