Skip to content

Useful tools that can be used to solve different kind of problems faced by the production or petroleum engineer.

License

Notifications You must be signed in to change notification settings

MTrevoux/Petroleum-Engineer-Toolbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 

Repository files navigation

Petroleum-Engineer-Toolbox

Useful tools that can be used to solve different kind of problems faced by the production or petroleum engineer.

Inside the toolbox:

temperature.py

This module define the class temperature. Easy engineer approach about how to deal with a temperature. Instead of always converting the values, you just need to call the unit which is an attribute. Set available:

  • 'c': Celsius
  • 'f': Fahrenheit
  • 'r': Rankine
  • 'k': Kelvin

Example:

t = temperature(15,'c')  # (str) 'c' standing for celsius
t.f()                    # (float) return the value converted into Fahrenheit.

pressure.py

This module define the class pressure. Easy engineer approach about how to deal with a pressure and different scale changes. Instead of always converting the values, you just need to call the unit which is an attribute. Set available: ['psi','bar','pa','atm','hPa','inchW','inchM'] in absolut and gage.

Example:

p = pressure(14.5,'psi') # the builder considers the value in gage 'g' if not specified, you can also write:
p = pressure(14.5,'psi','g')

p.psia()
p.atma()
p.atmg()
p.inchWa()
p.inchWg()

gasProperties.py

Functions avaible:

  • zfactorBeggsBrill / calculation of the z factor using Beggs and Brill correlation. Explicit approach.
  • zfactorDAK / calculation of the z factor using DAK correlation. Implicit approach.
  • SGgas / calculate the specific gravity of a gas at given P and T with air reference at 60°F and 1 atm.
  • rhoGas / calculate the density in lbs/tf of a gas at given P and T.
  • volumeStd / calculate the desired volume in standard conditions: 60°F and 1 atm.
  • fluidPressure / calculate the pressure at the bottom of a fluid column.

abacus.py

Function that produces abacus of a function that has 1 or 2 parameters.

About

Useful tools that can be used to solve different kind of problems faced by the production or petroleum engineer.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages