You can run your first OGS simulation in 5 minutes if you start with one of the many existing test cases.
But OGS is a large tool and has much more to offer! It may take some time to master it, but we promise it is worth it.
As a simple example we take the disc with a hole benchmark test case from our benchmark gallery. This benchmark analyzes the stress distribution emerging in a large two-dimensional disc that is stretched in the $y$ direction. The stress distributions (in polar coordinates) obtained in that test case are visualized in the figure below, the instructions to run OGS follow below the figure…
If you are familiar with Python and have a working Python installation at hand, the recommended way to use a pre-built OGS is via Python. Otherwise, maybe Option 2 might work for you.
pip install ogstools
.
It installs the OpenGeoSys package
for you and comes with our collection of Python pre- and post-processing
tools and some selected packages that are commonly used together with OGS:
PyVista for 3D visualization,
Matplotlib,
Pandas,
and NumPy, among others.
After installing OGSTools, you will have a Python environment ready for the
whole simulation workflow, from setting up simulation and mesh files to data
analysis and creating publication-ready plots.Tests/Data/Mechanics/Linear/DiscWithHole
)
the project file,
the simulation mesh,
and a file defining the geometries on which boundary conditions are applied.
Its contents can be viewed online here.disc_with_hole.gml
disc_with_hole.prj
disc_with_hole.vtu
Linear_Disc_with_hole.ipynb
Linear_Disc_with_hole.py
pip install jupyterlab
.
That only works on Windows, because we offer prebuilt binaries of OGS for Windows only. Users of Linux or Mac can use Singularity/Apptainer/Docker images of OGS.
Tests/Data/Mechanics/Linear/DiscWithHole
)
the project file,
the simulation mesh,
and a file defining the geometries on which boundary conditions are applied.
Its contents can be viewed online here.*.pvd
, *.vtu
), e.g., with ParaView.Now that you’ve succeeded with your first OGS run you can dive deeper into OGS and, e.g., adapt the simulation model using our user guide and tutorials.
This article was written by Christoph Lehmann. If you are missing something or you find an error please let us know.
Generated with Hugo 0.122.0
in CI job 509895
|
Last revision: January 14, 2025
Commit: [web] changes upon review comments 2a4cad97
| Edit this page on