The tool GocadSGridReader reads a GOCAD stratigraphic grid (.sg)
and writes the data in the open VTK unstructured grid file format (.vtu). The tool doesn’t change the geometry, i.e., it doesn’t change the element
quality. Thus, the mesh may not be usable for finite mesh element simulations
The tool is part of the official OpenGeoSys git repository
and is build when the OGS_BUILD_UTILS CMake switch is set ON. The build
executable GocadSGridReader is placed in the bin directory. The tool is a command line tool.
Running GocadSGridReader tool will print the required arguments and a short usage message; for detailed usage add the --help argument.
bin/GocadSGridReader -s <file_name.sg> -o <file_name.vtu>
-s <file_name.sg>, --sg <file_name.sg>
(required) Gocad stratigraphic grid file name
-o <file_name.vtu>, --output-mesh <file_name.vtu>
(required) vtk unstructured grid file name
-f <true/false>, --generate-face-sets <true/false>
generate face sets; default false, i.e. do not generate face sets
This article was written by Thomas Fischer. If you are missing something or you find an error please let us know.
Generated with Hugo 0.117.0
in CI job 387530
Last revision: November 7, 2023
Commit: [PL/HM] clang-format 7e2f7b3
| Edit this page on