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.
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
Release history Release notifications | RSS feed
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
Hashes for open_petro_elastic-1.3.0rc2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6330dae1492e451782e4eaba11c0f51a6eb0b40df6df2b243cc35d299df2f5c5 |
|
MD5 | e71b584a33a440f58116b90dce21b9cb |
|
BLAKE2b-256 | c556b2d17fea977988adeb9f278e29921f6c2142f95b822e200341a0905353ab |
Hashes for open_petro_elastic-1.3.0rc2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d3251695b1fa1b4d3021f86282d682dcaf585d08772b21a13aec14485a3dce6 |
|
MD5 | f949a0fd61953fb208bf73eec36d959d |
|
BLAKE2b-256 | bef90e5785e4d4c3d1895f7fc23bb44c5f4997df2ef04970f832e8e2b7da6938 |