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, feature requests, and pull requests are welcome at github.com/pabloitu/fem2geo.


License

See LICENSE.

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.0.tar.gz (994.0 kB 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.0-py3-none-any.whl (65.7 kB view details)

Uploaded Python 3

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

Hashes for fem2geo-0.4.0.tar.gz
Algorithm Hash digest
SHA256 5abfd2a07251217d4b6ceec5b81cfbfe83ecc4c281c94d7d0cb49f1a6e7a83bf
MD5 260f2aa1d18828d3b26ffd0f27df0f6e
BLAKE2b-256 8019d2ffb07d651f3c93e3bf2f9579e1ad816a23da79fcf767549875e8f8ded0

See more details on using hashes here.

Provenance

The following attestation bundles were made for fem2geo-0.4.0.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.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

Hashes for fem2geo-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1123afdfe91fa5c9befcfda587d1c1ebd6743ea4ec3d2788201ca74305b85b1c
MD5 8d2fbb249fe2421b47330888c4be2c2d
BLAKE2b-256 dcb0eaceb9d02bed8059275b1a99b122c080d6e2d26d870b2381d7a480b901ce

See more details on using hashes here.

Provenance

The following attestation bundles were made for fem2geo-0.4.0-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