Metadata-Version: 2.4
Name: subsurfix
Version: 0.2.0
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Science/Research
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Rust
Classifier: Topic :: Scientific/Engineering
Requires-Dist: numpy>=1.26.4
Requires-Dist: pyarrow>=25.0.0
Requires-Dist: pyproj>=3.8.0
Requires-Dist: shapely>=2.1.2
Requires-Dist: pyshp>=3.1.6
Requires-Dist: openpyxl>=3.1.5
Requires-Dist: python-calamine>=0.4.0
Requires-Dist: flopy>=3.9.1
Requires-Dist: pyvista>=0.44
Requires-Dist: imageio>=2.31
Requires-Dist: omf>=1.0.1,<2
License-File: LICENSE
License-File: NOTICE
Summary: A tool for automation in subsurface geological/petrophysical analysis and geomodeling workflows
Keywords: well logs,petrophysics,stratigraphic correlation,geostatistics,reservoir simulation,geomodeling
Author: Larry Syu-Heng Lai
License-Expression: AGPL-3.0-or-later
Requires-Python: >=3.12
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
Project-URL: Homepage, https://github.com/GeoLarryLai/SubsurfiX
Project-URL: Issues, https://github.com/GeoLarryLai/SubsurfiX/issues
Project-URL: Repository, https://github.com/GeoLarryLai/SubsurfiX

# SubsurfiX

**SubsurfiX** automates workflows for subsurface geological analysis and reservoir modeling: (1) machine-learning (ML) or statistically assisted well-log quality control (QC) and data-gap prediction, (2) core-to-log calibration and 3D property modeling, (3) Dynamic Time Warping (DTW) assisted stratigraphic correlation between wells, and (4) flow and heat simulations for injection–production purposes. The core is written in Rust and wrapped in a Python interface.

## Capabilities

- **Log clean-up and gap filling:** LAS files and well surveys, rule-based and machine-learning (LightGBM) gap filling, with a code on every value saying whether it was measured or filled.
- **Well correlation:** DTW matching of all wells together on a shared relative geologic time axis, honouring formation tops as tie points.
- **Grids and properties:** regular and faulted corner-point grids (GRDECL), filled by kriging, sequential Gaussian or indicator simulation, or machine learning, with P10/P50/P90 cases.
- **Flow and heat, finite-volume method (FVM):** two in-package FVM solvers, an open-DARTS-inspired fully implicit solver with operator-based linearization (FIM-OBL) for water, water–oil, oil–gas and CO₂–brine with heat, and a MODFLOW-inspired control-volume finite-difference Rust translation for single-fluid pressure and heat. An optional external check runs the USGS MODFLOW 6 program.
- **Flow and heat, finite-element method (FEM), experimental:** an OpenGeoSys-style continuous Galerkin solver for coupled water flow and heat on unfaulted grids. Multiphase flow and faulted models remain FVM-only.
- **CO₂ vertical-equilibrium model** (after MRST) and data exchange with Leapfrog (OMF) and OpenGeoSys (`.vtu`).

## Status and documentation

SubsurfiX is under active development, and many functions are still experimental and not fully validated. Please use with caution.

Requires Python 3.12 or newer. Installation details, executed example notebooks, figures and release history are on [GitHub](https://github.com/GeoLarryLai/SubsurfiX).

## Citation

Lai, L.S.-H. (2026) SubsurfiX. *Zenodo*, [https://doi.org/10.5281/zenodo.23832007](https://doi.org/10.5281/zenodo.23832007) (concept DOI).

License: **AGPL-3.0-or-later**. Method and data credits are in NOTICE.

