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

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)
  • Vertexes of TDE are order-free, more user-friendly

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.1.tar.gz (133.9 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.1-cp311-cp311-macosx_15_0_arm64.whl (87.9 kB view details)

Uploaded CPython 3.11macOS 15.0+ ARM64

File details

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

File metadata

  • Download URL: dislocs-0.1.1.tar.gz
  • Upload date:
  • Size: 133.9 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.1.tar.gz
Algorithm Hash digest
SHA256 be374b8aa0db8fe7c10744c3dbb56d8b1183189fd4826bd73892f1bdfbfd7f94
MD5 2c5236f3a36b84a31eed1ca5f46b93a6
BLAKE2b-256 1cafcb1e358693809d2aca24a7ac804c123c249d563ebddb42abeed387b4ae9e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dislocs-0.1.1-cp311-cp311-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 18786837a67154fc7c7917772ae8ec2205db2e459a5e2760a63607e6b09c4d13
MD5 c17c61623c353e6cc4e0f4b832c01db9
BLAKE2b-256 15cf4db810bf8f45d77812a34bdc2461af8c0d2f1e019e6f4ca9d935fd1d2771

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