|
From: Vijay S. M. <vi...@gm...> - 2008-04-11 19:26:28
|
Hi, I have been using Gmsh to generate my multi-dimensional mesh files and was delighted to find that libMesh supports the format. I eventually realized though that the material numbers were not accounted for or stored anywhere even though specified in the input msh file. And I had to dig into the code and eventually modified the GmshIO class to include these data and store it in a MeshData object based on the same concepts from UNVIO class. I have attached the patch and a sample test code along with the mail. I would appreciate it if you can include this code in the current developer version so that I do not have to maintain this separately and worry about losing changes every time I update my codebase. Please do verify that there are no bugs in the modifications also. Also, I hope that other people will find this functionality useful since the .unv file generation from Gmsh has its own issues and this IMO is a little cleaner way of passing physical and elementary data to the end user along with arbitrary number of attributes/element. I am also interested in knowing how others have been passing the material data from the mesh to the code for multi-region problems. Do let me know if you have any comments. Cheers, Vijay |