Open-source geotechnical software, starting with slope stability
OpenGeoRock is a suite of programs for slope stability, groundwater and rock mechanics. The first of them, OGR Slip2D, combines nine limit-equilibrium methods with finite-element seepage and probabilistic analysis. It also includes an official MCP server, so an AI agent can work with the program, from building the model to reading the results.
Five programs on a shared Python core
For now only OGR Slip2D is available, as public source code. The other four will be built on the same core: a property database, finite elements in 2D and 3D, and three-dimensional limit equilibrium.
OGR Slip2D
2D slope stability by limit equilibrium, finite-element groundwater, probabilistic and sensitivity analysis, supports, seismic loading and Eurocode 7.
OGR Data
Soil and rock-mass property database, correlations and charts.
OGR FEM2D
2D elastoplastic finite elements and strength reduction.
OGR Slip3D
3D limit-equilibrium surfaces for pits, landslides and complex terrain.
OGR FEM3D
3D finite elements for rock and soil with coupled groundwater flow.
What OGR Slip2D does
It is a desktop program with a modeller, a results interpreter and an embedded Python terminal. The computation core can be read line by line, and we check it against published reference cases.
Nine limit-equilibrium methods
Ordinary, Bishop, Janbu simplified and corrected, Spencer, Morgenstern–Price/GLE, Lowe–Karafiath and both Corps of Engineers methods.
Seven search algorithms
Grid, slope, auto-refine, block, path, simulated annealing and particle swarm, for circular and non-circular surfaces, with focus objects and optimisation.
Twenty-two strength models
Mohr–Coulomb, undrained profiles, Hoek–Brown, Barton–Bandis, power curve, SHANSEP, anisotropic models and user-defined functions.
Finite-element groundwater
Saturated, unsaturated and transient seepage on a conforming triangular mesh, with seepage faces and a factor of safety per stage.
Probabilistic and sensitivity analysis
Monte Carlo and Latin hypercube sampling over seven distributions, probability of failure, reliability index and sensitivity sweeps.
Loads, supports and design codes
Nine support types, distributed and line loads, pseudo-static seismic and Newmark displacement, tension cracks and Eurocode 7 partial factors.
Working with an AI agent
OGR Slip2D comes with an official Model Context Protocol server, which we develop in the same repository as the solver. It works with any MCP client, such as Claude, ChatGPT, the OpenAI Agents SDK or a local model in LM Studio or Ollama. The agent can open the program, build the geometry, run the analysis and read the results slice by slice, and you can follow each step in the program window.
- One of the first geotechnical programs with an official MCP server and, to our knowledge (October 2026), the first open-source slope-stability program to include one.
- 74 tools, which cover all the modelling and analysis actions in the program's menus.
- The agent works on the window you have open, so it shares the model and the undo history with you.
- The server runs on your own computer: over stdio for desktop clients, over HTTP with a token, or with OAuth 2.1 for remote clients.
How we verify the program
Each method comes with the published case it was validated against. The test suite compares results only with external references and closed-form solutions.
| Case | Method | Reference | OGR Slip2D |
|---|---|---|---|
| ACADS 1(a) · Giam & Donald 1989 | Bishop | 0.991 | 0.9885 |
| ACADS 1(c) · three layers | Bishop | 1.406 | 1.4083 |
| Yamagami & Ueta 1988 | Bishop | 1.348 | 1.3502 |
| ACADS 2(b) · Talbingo dam | Spencer | 2.29 | 2.2918 |
| Confined seepage · Darcy | FE seepage | exact | 0.000 % |
| Transient step · erfc | FE transient | exact | 0.11 % |
Five models you can download
All five were solved with OGR Slip2D and are published with their input data and their .ogr files, so you can check them. The numbers on the cards are the program's output.
A two-layer slope
The slope of the quick start, with a grid search and three methods.
Embankment on a weak seam
Block and path searches find the same non-circular surface, and a berm at the toe raises the factor of safety.
Earth dam with a toe drain
A finite-element seepage analysis gives the free surface and the pore pressure on each slice.
Uncertain strengths
Probability of failure and reliability index from 1 000 Monte Carlo samples.
Rapid drawdown
Transient seepage in seven stages, and how the factor of safety changes with time.
Open them yourself
The program computed all the figures, and you can download each model and open it in OGR Slip2D.
Developed as part of a doctoral thesis
Samuel Sáez López develops OpenGeoRock at the Universidad Politécnica de Cartagena, under the academic supervision of Prof. Emilio Trigueros Tornero and with IMGA S.L.P. as professional collaborator.
Who builds it
A mining engineer working on his PhD, a professor of rock mechanics and the people who send in validation cases.
AGPL-3.0-or-later
Free to use, including for professional engineering work. If you offer a modified version over a network, you must publish its source code.
Send a validation case
A slope whose factor of safety you know from a publication, another program or a hand calculation. It is the contribution that helps us most.