Ogs dataexplorer cannot load gmsh file

Hello everyone,

I am a beginner of ogs. I have a problem importing gmsh file into data explorer to convert the file into readable format for ogs software. I am using ogs 6.5 with the latest version of data explorer. Is there something I’m not doing? Thanks for your help.

Regards,
Prince

Loading a gmsh mesh is a bit different from loading a vtk mesh. A gmsh mesh has to be ‘imported’. In the DataExplorer GUI you have to click ‘File’ → ‘Import Files’ → ‘GMSH Files…’.

Hello,
Thanks for the reply. I tried this, and data explorer closed without any error.

Is it possible to provide the gmsh file that let the DataExplorer crash?

yes it is from an ogs tutorial, computational hydrology 2

// set element size and points
lc=0.1;
Point(1) = {0,0,0,lc};
Point(2) = {0.3, 0, 0, lc};
Point(3) = {10.3,0,0,lc};
Point(4) = {10.3,0,0.6,lc};
Point(5) = {0.3,0,0.6,lc};
Point(6) = {0,0 ,0.6,lc};
// set lines
Line(7) = {1,2};
Line(8) = {2,5};
Line(9) = {5,6};
Line(10) = {6,1};
Line(11) = {2,3};
Line(12) = {3,4};
Line(13) = {4,5};
// combine lines to loops for subsequent surfaces
Line Loop(14)={7,8,9,10};
Line Loop(15)={11,12,13,-8};
// set surfaces
Plane Surface (16)={14};
Plane Surface (17)={15};
Physical Surface(“mixing”)={16};
Physical Surface(" main")={17}

This is a geometric description of a domain (file ending ‘geo’). You can use this data / file in gmsh to create a mesh in gmsh format (file ending ‘msh’). This can then be imported into the DataExplorer as described earlier.

Yes, I saved this file as .msh but then unable to load it in data explorer. let me paste the msh file contents here

Please provide the file itself, not the screenshot.

It does not allow me to upload the text file here

I found this too, maybe it can help explain

The issue of loading the gmsh mesh using DataExplorer can be reproduced. What you can do to continue your work is to use the tool GMSH2OGS to convert the gmsh mesh to a vtu mesh:

GMSH2OGS -i your_gmsh_mesh.msh -o output_vtu_mesh.vtu

At least I could visualize the mesh in paraview.

However, I couldn’t load other simple vtu meshes in DataExplorer, too. So I guess there is a bug discovered by you. Maybe a previous version of DataExplorer works for your purposes?

Thank you very much for the information. Yes I will proceed to use an older version. Hopefully the bug can be fixed soon.

Dear Prince,

you can try this download link (for Windows) with a hopefully fixed version:

https://gitlab.opengeosys.org/ogs/ogs/-/jobs/621521/artifacts/raw/build/release-gui-build-gui-win-621521/ogs-6.5.6-36-gadf5fd8c0a-Windows-10.0.19045-python-3.13.5-de-utils.zip

Please let us know if it works!
Lars

Hello,

Thank you very much :smiley:

Hello. it crashed again. This is what I did: I exported the mesh file as .msh from Gmsh. Then I went to ogs data explorer > file > import > import gmsh files > then it loads few seconds and closes automatically