Skip to main content

A Python C extension for calculating displacement, stress and strian based on rectangular and triangular dislocation elements (RDE and TDE) in elastic half space.

Project description

PyPI - Python Version PyPI Version pypi downloads License Last Commit

Disloc(ation)s

Calculating deformation, stress and strain from rectangular dislocation elements (RDE) and triangular dislocation elements (TDE) sources in elastic half space.
The implementations of this package is based on references (see References).

Mehdi's algorithm is recommended because of numerical instabilities and no artefact singularities, even though I also included Meade's implementation in the package.
Mind the unit: recommend the International System of Units. Though strain is a dimensionless quantity, specifying dislocation unit same with fault parameters would help avoid further transformation.

Requirments:

  • Numpy

Features:

  • Unified the strike-slip, dip-slip, and tensile coordinate systems for special faults (vertical faults, horizontal faults)
  • Integration of TDE and RDE implementations, vertexes of TDE are order-free, more user-friendly

An example of RDE and TDEs output

Installation

By Pypi

The easiest way of building and installing the package is by PYPI (Installation under a python virtual env is recommended):

pip install dislocs
import dislocs as dl

Build and install from the source codes

Or using CMake to make the installation from the source codes directly. In the projrct directory, and also strongly recommend executing under a python virtual env, the package (the shared library dislocs.so file ) is supposed to be installed in your current Python env automatically:

mkdir -p build
cd build
cmake -DBUILD_LOCAL=ON ..
make install

References:

  • Okada, Y., 1992, Internal deformation due to shear and tensile faults in a half-space, Bull. Seism. Soc. Am., 82, 1018-1040.

  • Brendan J. Meade, 2007, Algorithms for the calculation of exact displacements, strains, and stresses for triangular dislocation elements in a uniform elastic half space, Computer & Geosciences, 33, 1064-1075.

  • Nikkhoo, M., Walter, T. R., 2015, Triangular dislocation: an analytical, artefact-free solution. Geophysical Journal International, 201, 2, 1119-1141.

:copyright: Zelong Guo, Potsdam
zelong.guo@outlook.com

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

dislocs-0.1.2.tar.gz (688.4 kB view details)

Uploaded Source

Built Distribution

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

dislocs-0.1.2-cp311-cp311-macosx_15_0_arm64.whl (75.5 kB view details)

Uploaded CPython 3.11macOS 15.0+ ARM64

File details

Details for the file dislocs-0.1.2.tar.gz.

File metadata

  • Download URL: dislocs-0.1.2.tar.gz
  • Upload date:
  • Size: 688.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.11

File hashes

Hashes for dislocs-0.1.2.tar.gz
Algorithm Hash digest
SHA256 4fc48aa039d19b86b29dc526e2a7b00fd413bf7cf6b9c10535b5c0ef8f96117d
MD5 e4e826ea8742e62b136e325a8a3d10d8
BLAKE2b-256 30bfe27b426cfd232e66d86f275bfd66cb4acb8829568a755a85721a7339408c

See more details on using hashes here.

File details

Details for the file dislocs-0.1.2-cp311-cp311-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for dislocs-0.1.2-cp311-cp311-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 f8e71047d02caf460d75dd4be9e36442ac58fd95705b4ba35dcacc3f1fb62adf
MD5 0ca1818cee9cf63c558b5b49ad2204f1
BLAKE2b-256 39a6294a4d689d6aa827c2f2f66dbb4783b67450fbbbc0f2f1dc3aa1731e14f1

See more details on using hashes here.

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