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.
Installation
pip install open_petro_elastic
Developers and contributors can download the repository and do uv sync --all-groups 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
Run tests
Tests can be run with:
uv run pytest
Developers should also read the Code of Conduct.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file open_petro_elastic-2.0.0.tar.gz.
File metadata
- Download URL: open_petro_elastic-2.0.0.tar.gz
- Upload date:
- Size: 18.0 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fbb95ba715e03aa65a68dde4f836d417c58ebc68b4e6b5a83e1c79996e17b571
|
|
| MD5 |
fa0de12b674765895f61a0f1688fb031
|
|
| BLAKE2b-256 |
28a597d9e7f49985e1c1b48f532e246a8287ff2030e1fda6fbd457f84e253035
|
Provenance
The following attestation bundles were made for open_petro_elastic-2.0.0.tar.gz:
Publisher:
python-publish.yml on equinor/open_petro_elastic
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
open_petro_elastic-2.0.0.tar.gz -
Subject digest:
fbb95ba715e03aa65a68dde4f836d417c58ebc68b4e6b5a83e1c79996e17b571 - Sigstore transparency entry: 2464850603
- Sigstore integration time:
-
Permalink:
equinor/open_petro_elastic@b79d8019a2b4df373016b98d480143afcee0dd6c -
Branch / Tag:
refs/tags/v2.0.0 - Owner: https://github.com/equinor
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@b79d8019a2b4df373016b98d480143afcee0dd6c -
Trigger Event:
release
-
Statement type:
File details
Details for the file open_petro_elastic-2.0.0-py3-none-any.whl.
File metadata
- Download URL: open_petro_elastic-2.0.0-py3-none-any.whl
- Upload date:
- Size: 17.9 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d9c782e8ab4be0f90caea79d5faee1e6e688c6b82b6f4683c4f33f92a5235a69
|
|
| MD5 |
24ae3a5e17b04c2e3f7180ac8481d8b8
|
|
| BLAKE2b-256 |
b4beaecf6be8e4288e38d116c6a1417fda513f4efba1b50caad779fc5592848e
|
Provenance
The following attestation bundles were made for open_petro_elastic-2.0.0-py3-none-any.whl:
Publisher:
python-publish.yml on equinor/open_petro_elastic
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
open_petro_elastic-2.0.0-py3-none-any.whl -
Subject digest:
d9c782e8ab4be0f90caea79d5faee1e6e688c6b82b6f4683c4f33f92a5235a69 - Sigstore transparency entry: 2464850769
- Sigstore integration time:
-
Permalink:
equinor/open_petro_elastic@b79d8019a2b4df373016b98d480143afcee0dd6c -
Branch / Tag:
refs/tags/v2.0.0 - Owner: https://github.com/equinor
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@b79d8019a2b4df373016b98d480143afcee0dd6c -
Trigger Event:
release
-
Statement type: