<div dir="ltr">Hi everyone,<div><br></div><div>As the author of pygmsh [1] I sometimes get user complaints about how slow mesh generation is. <span style="line-height:1.5">The way pygmsh works is that it generates a geo-file in memory, writes that out, has gmsh run over it to generate a msh-file, then read in and parse that file to generate the nodes and cells in memory. </span><span style="line-height:1.5">I'm wondering if this could be improved.</span></div><div><span style="line-height:1.5"><br></span></div><div><span style="line-height:1.5">What comes to mind straight away is passing the geo-file as a string to gmsh, and to retrieve the msh-file as a string from gmsh. This way, the slow I/O on the hard drive is avoided. Is that at all possible with gmsh?</span></div><div><span style="line-height:1.5"><br></span></div><div><span style="line-height:1.5">Even better would be to retrieve the mesh data directly from gmsh, but I guess for this it'd need tighter integration with Python which just isn't there.</span></div><div><span style="line-height:1.5"><br></span></div><div><span style="line-height:1.5">Cheers,</span></div><div><span style="line-height:1.5">Nico</span></div><div><br></div><div><br></div><div>[1] <a href="https://github.com/nschloe/pygmsh">https://github.com/nschloe/pygmsh</a></div></div>