Skip to main content

Utility for calculating elastic properties of rocks and fluids.

Project description

open_petro_elastic

A Python library for petro-elastic modelling. It contains a Material class for representing rocks and fluids, as well as various rock physics models and algorithms such as Hashin-Shtrikman bounds and Gassmann fluid substitution.

Build and test Build documentation PyPI version PyPI versions PyPI license

Installation

pip install open_petro_elastic

Developers and contributors can download the repository and do pip install ".[dev,test,docs]" to install the package with all its dependencies for development, testing, and building the docs.

Usage

The tool can be used as a library, or from the command line using YAML configuration files. For example, see the tutorial config file.

Generally, the open_petro_elastic.material module is used for interfacing with open_petro_elastic as a Python library:

>>> from open_petro_elastic.material import Material
>>> from open_petro_elastic.material.sandstone import hertz_mindlin
>>> mineral = Material(bulk_modulus=1e9, shear_modulus=1e9, density=1000)
>>> sand = hertz_mindlin(mineral, porosity=0.4, pressure=1e6)
>>> print(sand.density)
600.0

To get help on the command line interface:

open_petro_elastic --help

See the docs for more usage instructions.

Run tests

Developers and contributors should install everything test_requirements.txt. Then tests can be run with:

pytest

Developers should also intall everything in doc_requirements.txt and read the Code of Conduct.

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

open_petro_elastic-1.4.5.tar.gz (17.9 MB view details)

Uploaded Source

Built Distribution

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

open_petro_elastic-1.4.5-py3-none-any.whl (17.9 MB view details)

Uploaded Python 3

File details

Details for the file open_petro_elastic-1.4.5.tar.gz.

File metadata

  • Download URL: open_petro_elastic-1.4.5.tar.gz
  • Upload date:
  • Size: 17.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for open_petro_elastic-1.4.5.tar.gz
Algorithm Hash digest
SHA256 ead2d7b06bd0509b6ec8d25c4c9adf339a6a072e5bf05d9335d51d7d51e930cd
MD5 f235ce1ae7a6a4b29197ea6d2751d54c
BLAKE2b-256 7819c595ea8eadfba75ec3f04f3d51311284232e93f334843fed10f760bdcf79

See more details on using hashes here.

Provenance

The following attestation bundles were made for open_petro_elastic-1.4.5.tar.gz:

Publisher: python-publish.yml on equinor/open_petro_elastic

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file open_petro_elastic-1.4.5-py3-none-any.whl.

File metadata

File hashes

Hashes for open_petro_elastic-1.4.5-py3-none-any.whl
Algorithm Hash digest
SHA256 757741b3b3a4b33b594624dd67e7dda2abc03f1e5f4f3a838fbfb76f87cc7820
MD5 b69d3e69dd3f3a433f13e3a5ef546b13
BLAKE2b-256 a9fe21f13da19bb3b6c4aac450089f7012c1f97f18ef2889f55be778ef7507e3

See more details on using hashes here.

Provenance

The following attestation bundles were made for open_petro_elastic-1.4.5-py3-none-any.whl:

Publisher: python-publish.yml on equinor/open_petro_elastic

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