Skip to main content

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.

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

  • Calculate suite of brine properties

  • Lorenz factor from Beta value
  • Lorenz factor from flow fraction
  • Lorenz factor to flow fraction
  • Lorenz factor to permeability array

  • Summarize IX convergence errors from PRT file
  • Create Aquifer Influence Functions

  • Create sets of rel perm tables

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

pyrestoolbox-1.0.tar.gz (47.1 kB view details)

Uploaded Source

Built Distribution

pyrestoolbox-1.0-py3-none-any.whl (43.2 kB view details)

Uploaded Python 3

File details

Details for the file pyrestoolbox-1.0.tar.gz.

File metadata

  • Download URL: pyrestoolbox-1.0.tar.gz
  • Upload date:
  • Size: 47.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8

File hashes

Hashes for pyrestoolbox-1.0.tar.gz
Algorithm Hash digest
SHA256 f9a6911c1b9e237aefc9135350c6f091d6a524c69fbbee6c2d53de7bfb775f09
MD5 9b9c61100ad0dfc824269fb3d66179dc
BLAKE2b-256 134522e9e085c6691184ffbd8f500738dd1a1233ce8b5b7953610c9938410554

See more details on using hashes here.

File details

Details for the file pyrestoolbox-1.0-py3-none-any.whl.

File metadata

  • Download URL: pyrestoolbox-1.0-py3-none-any.whl
  • Upload date:
  • Size: 43.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8

File hashes

Hashes for pyrestoolbox-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 53ac0fa6adc681f8dcff49b872d56887fa54a71b00ae97800379151d1cf90ed7
MD5 596ed6e3dac604160e8b0c1e3b9b28d8
BLAKE2b-256 15d584089ebbba50cf9700b488dd4ef2273e54fc146bbc00e71df019bb04b6e7

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page