Getting .msh lines with python code
In my python code, I use these methods to generate a mesh and create a .msh file. But, can I get the lines written on the file before creating it, and without reading it ?
gmsh.initialize()
gmsh.open(file_name + ".geo")
gmsh.model.geo.synchronize()
gmsh.model.mesh.generate(mesh_dimension)
GET THE LINES HERE ??
gmsh.write(file_name + ".msh")
gmsh.finalize()
My second question concerns the mesh quality. Can we get this mesh quality information as a result of a method ? And, are there other mesh quality information that can we get ?
Thanks !