rockphypy

所属分类:物理/力学计算
开发工具:Python
文件大小:0KB
下载次数:1
上传日期:2023-08-07 09:50:18
上 传 者sh-1993
说明:  用于岩石物理建模的广泛Python库,
(extensive Python library for rock physics modelling,)

文件列表:
.readthedocs.yml (724, 2023-10-31)
LICENSE (35149, 2023-10-31)
data/ (0, 2023-10-31)
data/wang_K.csv (838, 2023-10-31)
data/wang_den.csv (2535, 2023-10-31)
data/well/ (0, 2023-10-31)
data/well/example_well.csv (31180, 2023-10-31)
data/well/sandstone.csv (37299, 2023-10-31)
docs/ (0, 2023-10-31)
docs/Makefile (638, 2023-10-31)
docs/make.bat (769, 2023-10-31)
docs/source/ (0, 2023-10-31)
docs/source/API.rst (609, 2023-10-31)
docs/source/_autosummary/ (0, 2023-10-31)
docs/source/_autosummary/rockphypy.Anisotropy.rst (140, 2023-10-31)
docs/source/_static/ (0, 2023-10-31)
docs/source/_static/custom.css (192, 2023-10-31)
docs/source/_static/favicon.ico (29565, 2023-10-31)
docs/source/_static/logo.png (56588, 2023-10-31)
docs/source/_templates/ (0, 2023-10-31)
docs/source/_templates/class.rst (699, 2023-10-31)
docs/source/_templates/module.rst (1376, 2023-10-31)
docs/source/advanced_examples/ (0, 2023-10-31)
docs/source/advanced_examples/CO2_modelling.ipynb (9276, 2023-10-31)
docs/source/advanced_examples/CO2_modelling.py (6555, 2023-10-31)
docs/source/advanced_examples/CO2_modelling.py.md5 (32, 2023-10-31)
docs/source/advanced_examples/CO2_modelling.rst (10032, 2023-10-31)
docs/source/advanced_examples/CO2_modelling_codeobj.pickle (8410, 2023-10-31)
docs/source/advanced_examples/CO2_seismic.ipynb (6615, 2023-10-31)
docs/source/advanced_examples/CO2_seismic.py (4470, 2023-10-31)
docs/source/advanced_examples/CO2_seismic.py.md5 (32, 2023-10-31)
docs/source/advanced_examples/CO2_seismic.rst (7025, 2023-10-31)
docs/source/advanced_examples/CO2_seismic_codeobj.pickle (3471, 2023-10-31)
docs/source/advanced_examples/Rock_physics_template.ipynb (6163, 2023-10-31)
docs/source/advanced_examples/Rock_physics_template.py (3468, 2023-10-31)
... ...

[![Documentation Status](https://readthedocs.org/projects/rockphypy/badge/?version=latest)](http://rockphypy.readthedocs.io/en/latest/?badge=latest)[![PyPI version](https://badge.fury.io/py/rockphypy.svg)](https://badge.fury.io/py/rockphypy)[![Downloads](https://static.pepy.tech/badge/rockphypy)](https://pepy.tech/project/rockphypy) --------- # [rockphypy](https://rockphypy.readthedocs.io/en/latest/) # Release Note BUG Fixed In October. The latest version, rockphypy 0.0.2, has been released. The "cannot import module name" bugs have been fixed. Additionally, new models, such as the varying patchiness cement model (VPCM), have been implemented. Please reinstall the package to fix the bugs and enjoy more useful functionalities. # About This Python 3.8+ package implements most of the rock physics models introduced in the Rock Physics Handbook. The package provides a bunch of usefel classes, i.e. ``Anisotropy``, ``AVO``, ``BW``, ``EM(Effective medium)``, ``Empirical``, ``Fluid``, ``GM(Granular Medium)``, ``Permeability``, ``QI`` and ``utils``. An exhaust list of methods in different classes are given in the [API Documentation](https://rockphypy.readthedocs.io/en/latest/autoapi/index.html). # Citation Want to cite rockphypy in your work? Bibtex: @article{YU2023101567,
title = {rockphypy: An extensive Python library for rock physics modeling},
journal = {SoftwareX},
volume = {24},
pages = {101567},
year = {2023},
issn = {2352-7110},
doi = {https://doi.org/10.1016/j.softx.2023.101567},
url = {https://www.sciencedirect.com/science/article/pii/S2352711023002637},
author = {Jiaxin Yu and Tapan Mukerji and Per Avseth}} ## Installation rockphypy is available through [PyPI] and may be installed using `pip`: ```text pip install rockphypy ``` ## Example code and documentation Below is an simple example showing the comparison between critical porosity model and elastic bounds computed by Hashin-Strikmann bounds. See the [documentation](https://rockphypy.readthedocs.io/en/latest/) for more examples. ```python from rockphypy import EM from rockphypy import Fluid # specify model parameters phi=np.linspace(0,1,100,endpoint=True) # solid volume fraction = 1-phi K0, G0= 37,44 # moduli of grain material Kw, Gw= 2.2,0 # moduli of water # VRH bounds volumes= np.vstack((1-phi,phi)).T M= np.array([K0,Kw]) K_v,K_r,K_h=EM.VRH(volumes,M) # Hashin-Strikmann bound K_UHS,G_UHS= EM.HS(1-phi, K0, Kw,G0,Gw, bound='upper') # Critical porosity model phic=0.4 # Critical porosity phi_=np.linspace(0.001,phic,100,endpoint=True) # solid volume fraction = 1-phi K_dry, G_dry= EM.cripor(K0, G0, phi_, phic)# Compute dry-rock moduli Ksat, Gsat = Fluid.Gassmann(K_dry,G_dry,K0,Kw,phi_)# saturate rock with water # plot plt.figure(figsize=(6,6)) plt.xlabel('Porosity') plt.ylabel('Bulk modulus [GPa]') plt.title('V, R, VRH, HS bounds') plt.plot(phi, K_v,label='K Voigt') plt.plot(phi, K_r,label='K Reuss = K HS-') plt.plot(phi, K_h,label='K VRH') plt.plot(phi, K_UHS,label='K HS+') plt.plot(phi_, Ksat,label='K CriPor') plt.legend(loc='best') plt.grid(ls='--') ``` ## Issues and contributing ### Issues If you are having trouble using the package, please let me know by creating an [Issue on GitHub] and I'll get back to you. ### Contributing Whatever your mathematical and Python background is, you are very welcome to contribute to rockphypy. To contribute, fork the project, create a branch and submit and Pull Request. Please follow these guidelines: - Import as few external dependencies as possible. - Use test driven development, have tests and docs for every method. - Cite literature and implement recent methods. - Unless it's a bottleneck computation, readability trumps speed. - Employ object orientation, but resist the temptation to implement many methods -- stick to the basics. - Follow PEP8. ### Timeline ![2timeline](https://github.com/yujiaxin666/rockphypy/assets/45630390/5689968c-7683-41e4-864a-0dca791a38a0)

近期下载者

相关文件


收藏者