<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">Hi Lisa,<div class=""><br class=""></div><div class="">Your script seems quite complicated. Here's a simple one that produces a decent mesh:</div><div class=""><br class=""></div><div class="">Merge "File_1.vtk";<br class="">Merge "File_2.vtk";<br class="">Merge "File_3.vtk";<br class="">Merge "File_4.vtk";<br class="">Merge "File_5.vtk";<br class="">Merge "File_6.vtk";<br class="">Merge "File_7.vtk";<br class=""><br class="">Coherence Mesh; // remove duplicate mesh nodes<br class=""><br class="">ClassifySurfaces{21 * Pi/180, 1, 0 /* or 1 */, 40 * Pi / 180};<br class="">CreateGeometry;<br class=""><br class="">Mesh.CharacteristicLengthMax = 10;<br class="">Mesh.CharacteristicLengthMin = 0.1;<br class="">Mesh.CharacteristicLengthFromCurvature = 1;<br class="">Mesh.MinimumElementsPerTwoPi = 20;<br class=""><br class="">s() = Surface{:};<br class="">Surface Loop(1) = s();<br class="">Volume(1) = 1;<br class=""><br class="">We still need to add some tools to automate the identification of curves/surfaces created by ClassifySurfaces. For now you'll need to tag them manually (or use some geometrical tests, e.g. using the Gmsh API).</div><div class=""><br class=""></div><div class="">Christophe</div><div class=""><br class=""></div><div class=""><img apple-inline="yes" id="AFFB0D48-BA63-4BE5-9650-87E09867987C" src="cid:760C4374-1718-46F9-A18A-1D91997BEB36@home" class=""></div><div class=""><br class=""></div><div class=""><br class=""><br class=""><blockquote type="cite" class="">On 22 Jun 2020, at 17:25, Lisa Pankewitz <<a href="mailto:lisa@simula.no" class="">lisa@simula.no</a>> wrote:<br class=""><br class="">To whom it may concern,<br class=""><br class="">I am trying to remesh a geometry based on .vtk files.<br class="">I merge 7 .vtk files. 4 vtk files are used to create a surface that consists of 4 compounds. All 7 surfaces together define the volume. I assign tags (names) to the physical surfaces, which I need in later steps. Unfortunately, I realized the surface does not remesh. I checked several tutorials and parameters but could not yet find a possibility to keep the tags and remesh the surface and the volume in the assigned characteristic length in gmsh version 4.<br class="">I tried<br class="">''' <br class="">RefineMesh<br class="">'''<br class="">but this only splits the elements instead of performing an optimal refinement.<br class=""><br class="">Do you by chance know what I could assign in order to remesh the surface AND the volume and not only the volume?<br class=""><br class="">Thanks so much for your time and have a wonderful day!<br class="">Kind regards,<br class=""><br class="">Lisa <br class=""><br class="">----------------------------------------------------------------------------------------------------------------------<br class="">Lisa Pankewitz<br class="">PhD student<br class="">Simula Research Laboratory<br class="">Martin Linges vei 25<br class="">1364 Fornebu<br class="">Office 327<br class=""><a href="mailto:lisa@simula.no" class="">lisa@simula.no</a><br class=""><br class=""><span id="cid:f_kbqnia7r4"><File_4.vtk></span><span id="cid:f_kbqnia7n3"><File_3.vtk></span><span id="cid:f_kbqnia7i2"><File_2.vtk></span><span id="cid:f_kbqnia740"><complex.geo></span><span id="cid:f_kbqnia7d1"><File_1.vtk></span><span id="cid:f_kbqnia7v5"><File_5.vtk></span><span id="cid:f_kbqnia7y6"><File_6.vtk></span><span id="cid:f_kbqnia827"><File_7.vtk></span>_______________________________________________<br class="">gmsh mailing list<br class="">gmsh@onelab.info<br class="">http://onelab.info/mailman/listinfo/gmsh<br class=""></blockquote><br class=""><div class="">— <br class="">Prof. Christophe Geuzaine<br class="">University of Liege, Electrical Engineering and Computer Science <br class=""><a href="http://www.montefiore.ulg.ac.be/~geuzaine" class="">http://www.montefiore.ulg.ac.be/~geuzaine</a><br class=""><br class=""><br class=""></div><br class=""></div></body></html>