pyResToolbox - A collection of Reservoir Engineering Utilities
Project description
pyrestoolbox
-----------------------------A collection of Reservoir Engineering Utilities -----------------------------
This set of functions focuses on those that the author uses often while crafting programming solutions. These are the scripts that are often copy/pasted from previous work - sometimes slightly modified - resulting in a trail of slightly different versions over the years. Some attempt has been made here to make this implementation flexible enough such that it can be relied on as-is going forward.
Includes functions to perform simple calculations including;
- Inflow for oil and gas
- PVT Calculations for oil
- PVT calculation for gas
- Creation of Black Oil Table information
- Creation of layered permeability distribution consistent with a Lorenze heterogeneity factor
- Extract problem cells information from Intesect (IX) print files
- Generation of AQUTAB include file influence functions for use in ECLIPSE
- Creation of Corey and LET relative permeability tables in Eclipse format
Apologies in advance that it is only in oilfield units with no current plans to add multi-unit support.
Changelist in v1.1:
- Fix API to SG calculation (141.4 vs 141.5)
- Added lower limit to first rho_po estimate for Oil Density with McCain method to avoid negative values with high Rs
- Added oil_sg and oil_api functions
- Modified HY Z-Factor solve algorithm to improve robustness
- Modified DAK Z-Factor solve algorithm to improve robustness
- Added Gas Z-Factor correlation from Wang, Ye & Wu (2021)
- Removed 'LIN' Z-Factor method due to significant errors above 12,000 psi. Use WYW method instead if speed needed.
Head to the project site for more information & documentation; https://github.com/mwburgoyne/pyResToolbox
Start by importing the package; from pyrestoolbox import pyrestoolbox as rtb
Function List includes
- Gas Flow Rate Radial
- Gas Flow Rate Linear
- Oil Flow Rate Radial
- Oil Flow Rate Linear
- Gas Tc & Pc Calculation
- Gas Z-Factor
Calculation - Gas Viscosity
- Gas Viscosity * Z
- Gas Compressibility
- Gas Formation Volume Factor
- Gas Density
- Gas Water of Condensation
- Convert P/Z to P
- Convert Gas Gradient to SG
- Delta Pseudopressure
- Gas Condensate FWS SG
- Oil Density from MW
- Oil Critical Properties with Twu
- Incrememtal GOR post Separation
- Oil Bubble Point Pressure
- Oil GOR at Pb
- Oil GOR at P
- Oil Compressibility
- Oil Density
- Oil Formation Volume Factor
- Oil Viscosity
- Generate Black Oil Table data
- Estimate soln gas SG from oil
- Estimate SG of gas post separator
- Calculate weighted average surface gas SG
- Oil API to SG
- Oil SG to API
- Calculate suite of brine properties
- Lorenz coefficient from Beta value
- Lorenz coefficient from flow fraction
- Lorenz coefficient to flow fraction
- Lorenz coefficient to permeability array
- Summarize IX convergence errors from PRT file
- Create Aquifer Influence Functions
- Create sets of rel perm tables
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
File details
Details for the file pyrestoolbox-1.1.tar.gz
.
File metadata
- Download URL: pyrestoolbox-1.1.tar.gz
- Upload date:
- Size: 49.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.8.1 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a004748e0e26e7159287a28b0eec01bd7b26b4db50c6602c67e553b1f2eeaf44 |
|
MD5 | 96aa9b5fa005e6e574fdf61cb5faa9f5 |
|
BLAKE2b-256 | ec0bf3b6657c1c93b9802df896e0a5350984ccdf74f07205fc180cf075880aa2 |
File details
Details for the file pyrestoolbox-1.1-py3-none-any.whl
.
File metadata
- Download URL: pyrestoolbox-1.1-py3-none-any.whl
- Upload date:
- Size: 45.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.8.1 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c6efa40e161c6ab4266f4e0ab9004a6c412bbd21346aed989753180395cbf916 |
|
MD5 | 481d08346577a201c8947ddc9f714906 |
|
BLAKE2b-256 | f6ebe7e0da05741ba458e79c1d1c72875f4f73f7f46390755a2a42f3e6015411 |