Skip to main content

Physics-based Modeling to Structural Geology and Seismology

Project description

fem2geo

tests Docs codecov PyPI - Version PyPI - Python Version DOI

Physics-Based Modeling to Structural Geology

A Python library for structural geology analyses on outputs from finite element (FEM) or boundary element (BEM) models. fem2geo bridges numerical simulations and field observations: it loads model outputs, extracts regions of interest, computes geomechanical variables, and produces stereonet figures.

Key capabilities:

  • Extract spatial subsets from large models
  • Compare fracture and fault orientation data with model predictions
  • Slip and dilation tendencies on stereonets
  • Compare model to Kostrov moment tensor derived from fault populations
  • Re-project datasets (catalogs, meshes, rasters) into a model's reference frame
  • Run any analysis from reproducible config files

Table of Contents


Installation

From source

sudo apt install git python3-pip python3-venv
git clone https://github.com/pabloitu/fem2geo
cd fem2geo
python3 -m venv venv
source venv/bin/activate
pip install -e .

From PyPI

python3 -m venv venv
source venv/bin/activate
pip install fem2geo

Tutorials are not bundled in the PyPI package. Download them separately after installing:

fem2geo download-tutorials

This fetches the tutorials bundle from the latest GitHub release and extracts it into ./tutorials.


Run

Jobs are run by pointing fem2geo at a YAML config file:

fem2geo config.yaml

Supported jobs, each shown in tutorials/:

Job Description
principal_directions Average and per-cell principal directions at a site
fracture Fracture pole data overlaid on model principal directions
resolved_shear Observed vs predicted slip directions for each fault plane
kostrov Kostrov summed moment tensor compared with model average strain or stress axes
tendency Slip, dilation, or summarized tendency fields
sites.<inner> Run any of the above over multiple sites in one figure
project Project georeferenced catalogs, meshes, or rasters into a model's reference frame

Roadmap

  • Borehole module: sample model variables along a borehole trajectory
  • Seismic catalog module: import focal mechanisms and compare with model stress orientations
  • Inversion module: find the model configuration that best fits a structural dataset

Contributing

Bug reports and feature requests are welcome at github.com/pabloitu/fem2geo/issues.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fem2geo-0.4.1.tar.gz (1.2 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fem2geo-0.4.1-py3-none-any.whl (66.8 kB view details)

Uploaded Python 3

File details

Details for the file fem2geo-0.4.1.tar.gz.

File metadata

  • Download URL: fem2geo-0.4.1.tar.gz
  • Upload date:
  • Size: 1.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for fem2geo-0.4.1.tar.gz
Algorithm Hash digest
SHA256 7c95406eda864bf8451f0561e37ea655722f96d69db4e3c99f089c1e27db6ebb
MD5 6c4dd10b950f7b1c1365caaf83b7726f
BLAKE2b-256 19d71cc65c22774896b80c775f19e737d932e0d7a7f328500a0f54dbffccc80e

See more details on using hashes here.

Provenance

The following attestation bundles were made for fem2geo-0.4.1.tar.gz:

Publisher: publish-pypi.yml on pabloitu/fem2geo

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file fem2geo-0.4.1-py3-none-any.whl.

File metadata

  • Download URL: fem2geo-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 66.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for fem2geo-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 684e8a4728bf0b6352a13efd80ed66c17362fce183ebcf3e87558be9504f4f08
MD5 07734c01faeb70ef026d20313259d92b
BLAKE2b-256 acc333a477fb1cd3546d998acf0959577bbf688148730b5bc3566b9b644a2f7e

See more details on using hashes here.

Provenance

The following attestation bundles were made for fem2geo-0.4.1-py3-none-any.whl:

Publisher: publish-pypi.yml on pabloitu/fem2geo

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page