New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
not able to import gmsh file in pygimli #197
Comments
Hi @nishantra4, in my mail, I was not aware that your Gmsh model is 3D (cube). Than you have to mesh it in 3d of course. And make sure to save it in the old "msh2" format. This can be chosen when saving the .msh file. A pull request for making the newer msh formats compatible is on the way. Best wishes |
Hello Sir, With repeated tries, i am not able to import the model. I have tried your suggestion as well as the methods given in gmsh 4.4.1 tutuorials page no. 305-6 point no. 17. Regards, |
Are you still trying to import the mesh as |
More importantly, do you have a valid Mesh in Gmsh? Please post a screenshot of the 3D mesh. The last one I saw had two overlapping regions with overlapping cells (i.e. not connected). You keep saying it does not work, but I am sure that the error is already in Gmsh and not pygimli related. Please clarify or we can close this. |
Closing this due to inactivity. |
Problem description
I am new in Pygimli environment, need help. Created .geo file with a cube inside cube meshed it up to 2D. saved it as .msh file. but not able to import in the code. used .geo, .msh and .dat format file. also tried with a rectangle inside the rectangle.
Your environment
Operating system: Linux
Python version: 3.6.7
pyGIMLi version: 1.0.11+0.g9e41a4a3.dirty
Way of installation: e.g. Conda package and a manual compilation from source
Steps to reproduce
File name with geometry only : "cube_frac_elec.geo" RuntimeError: /home/wagner/miniconda3/condabld/pygimli_1554216594442/work/gimli/gimli/src/datacontainer.cpp: 205virtual int GIMLI::DataContainer::load(const string&, bool, bool) cannot determine data format. 10
File name with geometry and mesh: "cube_frac_elec.msh" RuntimeError: cannot determine sensor count $MeshFormat
File name with geometry in dat format: "cube_frac_elec_g.dat" RuntimeError:/home/wagner/miniconda3/condabld/pygimli_1554216594442/work/gimli/gimli/src/datacontainer.cpp: 205virtual int GIMLI::DataContainer::load(const string&, bool, bool) cannot determine data format. 10
File name with geometry and meshing in dat format:"cube_frac_elec_m.dat" RuntimeError: cannot determine sensor count $MeshFormat
Expected behavior
there is no output only runtime error i think there is an issue of meshing as with importing meshed files with the extension .msh its showing error as RuntimeError: cannot determine sensor count $MeshFormat
Actual behavior
Tell us what happens instead and/or provide the output of your script.
The text was updated successfully, but these errors were encountered: