Skip to main content

FastSlipPy: Induced Seismic Fault Slip Modeling

Release License Contributing

FastSlipPy is a scientific software package for modeling dynamic fault slip in induced seismicity. It is designed to simulate the behavior of faults under various stress conditions, providing insights into the mechanisms driving induced earthquakes. The software is based on the Finite Difference Method (FDM).

The initial version of this software is based on the open-source code IndNuc, which is a Matlab-based code specifically developed for modeling induced seismicity in Groningen area. FastSlipPy has been rewritten in Python to enhance its accessibility and usability, allowing for easier integration with other scientific tools and libraries.

The ambitious goal of FastSlipPy is to provide an easy-to-use, efficient, and flexible platform for the multi-scale and multi-physics modeling of induced seismicity, which may include the following features in the future:

  • Multiscale modeling: coupling with Discrete Element Method (DEM) for the simulation of fault gouge.
  • Multiphysics modeling: supporting the coupling of fluid, thermal, and mechanical processes.

Table of Contents

Main Features

This program can be used for modeling induced seismicity in a fault system. The main features of this program include:

  • Easy-to-install and run on different platforms (Windows or Linux).
  • Adaptive time stepping for efficient simulation of dynamic fault slip.
  • Support different friction models, such as rate-and-state friction and others (under development).
  • Support different fault angles.
  • Post-processing in the format of both Paraview and Matplotlib for visualization of results.
  • Modular design for easy integration with other scientific tools and libraries.

Dependencies

FastSlipPy is fully written in the Python programming language and adopts the Object Oriented Programming (OOP) paradigm to offer modularity and extensibility.

Please make sure you have installed Python3.X.X on your PC. Currently, Python3.10.X is recommended, as other versions haven't been tested.

All the required Python libraries will be added automatically. Some of them are:

  • numpy
  • matplotlib
  • meshio

Instructions

Install

Install for users

pip install fastslippy

Install for developers

Step 1: Download this software or use Git:

git clone https://github.com/ChengshunShang1996/FastSlipPy.git

Step 2: Installation.

(Windows users can jump this step) For Linux users, the virtual environment is suggested to be used:

python3 -m venv ~/my_env

source ~/my_env/bin/activate

In the project folder, run cmd command:

pip install -e .

Successful installation?

Test it:

from fastslippy import FastSlipPy

For Linux or HPC users:

python3 -c "from fastslippy import FastSlipPy; print('Success')"

If you see the logo of FastSlipPy, you have successfully installed it. To run an example, please check the examples section.

Input and Output Files

  • Input Parameters:

All the default parameters are defined in the file model_parameters.py. You can modify the parameters in the running script.

  • Output files:

The output files are generated in the specified output directory [output] and can be visualized using Paraview or Matplotlib. The Matplotlib visualization is used by default, and the Paraview visualization can be enabled by setting the parameter output_vtk_option to True.

Running Simulations

To run a simulation, you can use the provided example scripts in the examples folder. As running other Python scripts, you can run the example script in the command line:

python run_case_groningen.py

or with your preferred way to run Python scripts. The simulation will start, and the output files will be generated in the specified output directory.

Examples

There are two examples in the examples folder. Here are the example results:

  • Groningen case

  • Lab-scale shear case

A high Young's modulus is used in the lab-scale shear case to generate the above figure.

Documentation

Please read this README.md for information.

How to Contribute

Please check the contribution guidelines.

How to Cite

To cite this repository, you can use the metadata from this file.

Authorship

1 Utrecht University (UU)

Acknowledgement

The program was initially developed under the context of the FastSlip project. The author would like to thank the project team (Dr. André Niemeijer et al.) for their support and guidance. The author also acknowledges the contributions of the open-source community, particularly the developer of IndNuc, Dr. Meng Li, whose work served as a foundation for this software.

License

FastSlipPy is licensed under the MIT license, which allows the program to be freely used by anyone for modification, private use, commercial use, and distribution, only requiring the preservation of copyright and license notices. No liability and warranty are provided.

Metadata

Release files for fastslippy 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fastslippy 0.1.1
File Size Uploaded Provenance Actions
fastslippy-0.1.1.tar.gz 69.3 kB Without provenance Details for fastslippy-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for fastslippy 0.1.1
File Interpreter ABI Platform Actions
fastslippy-0.1.1-py3-none-any.whl Python 3 none any Details for fastslippy-0.1.1-py3-none-any.whl

Total release size: 143.3 kB

Release files / fastslippy-0.1.1.tar.gz

Download URL fastslippy-0.1.1.tar.gz
Size 69.3 kB
Tags Source
SHA-256 checksum
How to use checksums
0e8f24d88d5fbe3934a5a435847a4bc07f9caa1a577414731895918472d3f064
BLAKE2b-256 checksum
How to use checksums
31931d39c1dab65a91d167936a6853847e3b06f403e9a70a883307e864ec94a1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.11

Release files / fastslippy-0.1.1-py3-none-any.whl

Download URL fastslippy-0.1.1-py3-none-any.whl
Size 74.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e57cfe3b2b1368e88d9f3a69ff2e6a5174c13cba96511b539b5a91b856a7a98a
BLAKE2b-256 checksum
How to use checksums
2d6f3232aa17a86cacb014bf57251cb59cea48bc39e04521bc3e5efa194f8e30
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.11

Security for fastslippy 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page