Open-source software for working mines, from pit to plant to closure.
A curated list of open-source software for mining (the physical kind): mine planning, drill and blast, haulage, ventilation, geotechnics, mine water, processing, tailings and closure. For finding the deposit in the first place, see the sister list, Awesome Mineral Exploration, under Related lists; tools used in both, such as QGIS, CloudCompare, OpenDroneMap and the geostatistics libraries, are listed there.
Every tool here is open source, has a licence and has been updated in the last 18 months, except those under No longer maintained, at the end. Icons show the main language; the licence follows each description. Curated by XploraHub, open ground for exploration & mining technology. To search the list from Claude or ChatGPT, connect XploraHub.
- Mine planning and design
- Block models and data formats
- Drill and blast
- Haulage, fleet and operations
- Underground and ventilation
- Geotechnics and rock mechanics
- Mine water and hydrogeology
- Geochemistry of mine water
- Mineral processing and metallurgy
- Tailings
- Environment, closure and rehabilitation
- Related lists
- No longer maintained
- MineFlow -
Library and command-line tool for ultimate pit limits using a pseudoflow solver adapted for mining, with variable slope precedence and support for sub-blocked models. MIT.
- PitOpt -
Local application that turns a block model into nested pit shells, pushbacks, a mining sequence and preliminary bench and ramp geometry, with Excel, PDF and DXF exports. MIT.
- Incline Design -
Cross-platform mine design CAD with pit and stockpile shell generation, triangulations and OMF 2 import, for Windows, Linux, macOS and the browser. MIT.
- py-lerchs-grossmann -
Python package that applies the Lerchs-Grossmann algorithm to a block graph to find the optimal open pit. BSD-3-Clause.
- Quaro -
Browser-based open pit planning tool that builds an economic block model, runs ultimate pit and nested shell optimisation, and reports bench tonnages and grade-tonnage curves. Apache-2.0.
- MMS 2.0 -
Web tool for selecting underground mining methods using the UBC, Nicholas and related scoring methods on geotechnical, geometric and economic criteria. MIT.
- parq-blockmodel -
Python package for storing, indexing, reblocking and analysing large mining block models as Parquet files. MIT.
- omfpandas -
Converts Open Mining Format elements to DataFrames and Parquet files. MIT.
- blast-physics-js -
JavaScript library of blast engineering models for vibration prediction, damage, detonation timing, flyrock and muckpile movement. MIT.
- EXPLOCAL -
Calculates the theoretical properties of commercial explosives, such as detonation velocity, energy and gas volume, from their composition. MIT.
- NavDrill Quality -
Desktop tool that converts underground drill navigation logs into mine coordinates and reports as-drilled hole accuracy for drill and blast QA/QC. MIT.
- SlopeForge -
Desktop application for tracking production and contour blasts, final-wall assessment and blast quality in open pits. GPL-3.0.
- OpenMines -
Discrete-event simulator of open pit truck haulage for developing and benchmarking truck dispatch algorithms. MIT.
- Mining-Gym -
Configurable Gymnasium environment and discrete-event simulator for training and comparing reinforcement learning truck dispatch policies in open pits. MIT.
- Mining-DRS -
Discrete rate simulation framework for mine material flow, from extraction faces and haulage fleets to stockpiles and plant. MIT.
- VentPy -
Python library with a C++ core for underground ventilation demand, Hardy Cross network solving and fan selection, with Peruvian and Chilean regulatory checks. MIT.
- Mine Ventilation Network Simulator -
Web-based ventilation network editor and steady-state solver using Atkinson resistance and Hardy Cross, with fans, regulators and contaminant transport. MIT.
- StopeForge -
Desktop application for empirical open stope design with the Mathews-Potvin stability graph and a database of case histories. GPL-3.0.
- OGR Slip2D -
Two-dimensional slope stability by seven limit-equilibrium methods, with finite-element seepage and probabilistic analysis. AGPL-3.0.
- xslope -
Limit-equilibrium and finite-element slope stability, including jointed rock slopes, with finite-element seepage for embankments and dams. Apache-2.0.
- PySlope -
Slope stability by Bishop's method of slices, with plotting and search for the critical slip surface. MIT.
- DSEPy -
Python successor to the MATLAB tool DSE, for extracting, viewing and classifying rock mass discontinuities from point clouds. GPL-3.0.
- MPM-Geomechanics -
Material point method code for large-deformation failure of soil and rock, with a mine slope failure example. MIT.
- Yade -
Discrete element framework used for rock fracture, jointed rock masses and granular flow, scripted in Python. GPL-2.0.
- geoeq -
Geotechnical functions for SPT and CPT interpretation, liquefaction, bearing capacity and slope stability, useful for tailings and foundation checks. Apache-2.0.
- GeoModel3D -
Browser application that builds layered 3D ground models from borehole logs and cone penetration tests, with sections along an alignment and effective stress profiles. Apache-2.0.
- MODFLOW 6 -
USGS groundwater flow and transport model, the standard for pit dewatering and mine water inflow studies. CC0-1.0.
- FloPy -
Python package to build, run and post-process MODFLOW models. CC0-1.0.
- PEST++ -
Parameter estimation and uncertainty analysis for groundwater models, used to calibrate dewatering and closure predictions. CC0-1.0.
- pyEMU -
Python tools for PEST and PEST++ set-up, data-worth and uncertainty analysis. BSD-3-Clause.
- GLM -
General Lake Model, a one-dimensional lake model coupled to AED water quality and used to forecast pit lake stratification and chemistry. GPL-3.0.
- PHREEQC -
USGS aqueous geochemistry code for speciation, saturation indices, mixing and 1D reactive transport, the standard for acid mine drainage work. USGS user rights notice.
- PhreeqPython -
Object-oriented Python wrapper for PHREEQC for scripting speciation and treatment calculations. Apache-2.0.
- MIN3P -
Reactive transport in variably saturated media, long used for sulfide oxidation in waste rock and tailings. MIT.
- mf6rtm -
Couples MODFLOW 6 and PhreeqcRM for multicomponent reactive transport in groundwater. BSD-3-Clause.
- Reaktoro -
Chemical equilibrium and kinetics library with Python bindings, used for mine water and leach solution chemistry. LGPL-2.1.
- CrunchFlow -
Multicomponent reactive transport code from Lawrence Berkeley National Laboratory, applied to mineral weathering and acid drainage. BSD-3-Clause-LBNL.
- PrOMMiS -
US DOE process models and optimisation for critical mineral recovery, including leaching, solvent extraction and precipitation. BSD-3-Clause-LBNL.
- geometallurgy -
Mass and composition data handling, mass-balanced flowsheet simulation and plots for geometallurgy. MIT.
- MUSEN -
GPU discrete element system for particle breakage and bonded agglomerates, used to study crushing and grinding. BSD-3-Clause.
- MercuryDPM -
Discrete particle simulation code for granular flows in chutes, hoppers and drums. BSD-3-Clause.
- LIGGGHTS-INL -
Maintained fork of the LIGGGHTS discrete element code, the open DEM engine behind much mill liner, chute and conveyor transfer modelling. GPL-2.0.
- OpenFOAM -
Finite-volume CFD toolbox used for hydrocyclone, flotation cell, slurry pipeline and ventilation flow models. GPL-3.0.
- Anura3D -
Material point method code for large deformation and soil-water interaction, used for embankment failure and runout. LGPL-3.0.
Also relevant here: xslope and OGR Slip2D (seepage and slope stability of embankments), geoeq (CPT liquefaction screening), MIN3P (tailings geochemistry), and the InSAR tools below.
- CAESAR-Lisflood -
Landscape evolution and erosion model used to test rehabilitated mine landforms over centuries to millennia; HAIL-CAESAR is its C++ port for Linux clusters. GPL-3.0.
- MintPy -
InSAR time-series analysis for ground deformation, applied to mine subsidence, pit walls and tailings dams. GPL-3.0.
- LiCSBAS2 -
InSAR time-series analysis from COMET LiCSAR products, a low-effort route to deformation over mine sites. GPL-3.0.
- Awesome Mineral Exploration - Open-source software for mineral exploration, including GIS, drones, point clouds and geostatistics.
- Geoscience data portals - Government geoscience data portals, with what each holds and its licence.
- Awesome Mining Data - Open datasets for the mining industry.
- Python Libraries for Engineers - Python libraries for civil, structural and geotechnical engineering.
Good tools that have had no updates for 18 months or more. They may not run on current versions of their dependencies, but the code and methods are still worth reading. Each is filed under the section it came from, and moves back there when it is updated again.
Block models and data formats (2)
To add a tool, open a pull request with one line in the right section. See CONTRIBUTING.md for the rules. Everyone taking part agrees to the code of conduct.
The list is CC0. The icons, the code of conduct and the XploraHub name and banner have their own terms, set out in NOTICE.md.
