Physics-based Modeling to Structural Geology and Seismology
Project description
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, feature requests, and pull requests are welcome at github.com/pabloitu/fem2geo.
License
See LICENSE.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fem2geo-0.4.0.tar.gz.
File metadata
- Download URL: fem2geo-0.4.0.tar.gz
- Upload date:
- Size: 994.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5abfd2a07251217d4b6ceec5b81cfbfe83ecc4c281c94d7d0cb49f1a6e7a83bf
|
|
| MD5 |
260f2aa1d18828d3b26ffd0f27df0f6e
|
|
| BLAKE2b-256 |
8019d2ffb07d651f3c93e3bf2f9579e1ad816a23da79fcf767549875e8f8ded0
|
Provenance
The following attestation bundles were made for fem2geo-0.4.0.tar.gz:
Publisher:
publish-pypi.yml on pabloitu/fem2geo
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
fem2geo-0.4.0.tar.gz -
Subject digest:
5abfd2a07251217d4b6ceec5b81cfbfe83ecc4c281c94d7d0cb49f1a6e7a83bf - Sigstore transparency entry: 1280078767
- Sigstore integration time:
-
Permalink:
pabloitu/fem2geo@42129061ebfd2fa0e88cc9f87d40b5d36bb2ad2a -
Branch / Tag:
refs/tags/v0.4.0 - Owner: https://github.com/pabloitu
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@42129061ebfd2fa0e88cc9f87d40b5d36bb2ad2a -
Trigger Event:
push
-
Statement type:
File details
Details for the file fem2geo-0.4.0-py3-none-any.whl.
File metadata
- Download URL: fem2geo-0.4.0-py3-none-any.whl
- Upload date:
- Size: 65.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1123afdfe91fa5c9befcfda587d1c1ebd6743ea4ec3d2788201ca74305b85b1c
|
|
| MD5 |
8d2fbb249fe2421b47330888c4be2c2d
|
|
| BLAKE2b-256 |
dcb0eaceb9d02bed8059275b1a99b122c080d6e2d26d870b2381d7a480b901ce
|
Provenance
The following attestation bundles were made for fem2geo-0.4.0-py3-none-any.whl:
Publisher:
publish-pypi.yml on pabloitu/fem2geo
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
fem2geo-0.4.0-py3-none-any.whl -
Subject digest:
1123afdfe91fa5c9befcfda587d1c1ebd6743ea4ec3d2788201ca74305b85b1c - Sigstore transparency entry: 1280078770
- Sigstore integration time:
-
Permalink:
pabloitu/fem2geo@42129061ebfd2fa0e88cc9f87d40b5d36bb2ad2a -
Branch / Tag:
refs/tags/v0.4.0 - Owner: https://github.com/pabloitu
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@42129061ebfd2fa0e88cc9f87d40b5d36bb2ad2a -
Trigger Event:
push
-
Statement type: