Well Temperature Distribution
Pwptemp is a small LGPL licensed library for easy calculation of the temperature distribution along the well. Features are added as they are needed; suggestions and contributions of all kinds are very welcome.
To catch up on the latest development and features, see the changelog.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
- Users: Wheels for Python from PyPI
pip install pwptemp
- Developers: Source code from github
git clone https://github.com/pro-well-plan/pwptemp
You can use the package by creating a new file and by following the instructions provided below.
Installing the package:
Option 1: Go to project interpreter settings and search pwptemp.
Option 2: Go to the terminal and type
pip install pwptemp
- Import the dictionary with default values:
tdata = pwptemp.input.tdict(deltaz)
- Define wellpath (create a vertical well):
depths = pwptemp.wellpath.get(target_depth, deltaz)
- Create a new well instance:
well = pwptemp.input.set_well(tdata, depths)
- Calculating temperature distribution:
temp_distribution = pwptemp.main.temp_time(circulation_time, well)
*circulation_time in hours
- Plotting Temperature profile:
Around 43 data inputs (such as depths, diameters, temperatures, densities and operation parameters) are involved in pwptemp. However default values are provided in order to only change the parameters that the user wants to load.
Pwptemp allows users to count with heat data for different sections of a well and also to calculate the temperature values at certain circulation times (drilling operation).
Temperature of the fluid inside the Drill String (Tdsi) Temperature of the Drill String Wall (Tds) Temperature of the fluid inside the Annular (Ta) Temperature of the Casing (Tcsg) Temperature of the Riser (Tr) Temperature of the Surrounding Space (Tsr) Temperature of the Formation (Tfm)
Note 1: Above seabed, casing section is replaced with the riser and surrounding space would be sea water.
Note 2: Beyond the 'undisturbed formation zone' the temperature keeps constant (Tfm).
Please read CONTRIBUTING for details on our code of conduct, and the process for submitting pull requests to us.
- Eirik Lyngvi - Initial work - elyngvi
- Juan Camilo Gonzalez Angarita - Initial work - jcamiloangarita
- Muhammad Suleman - Initial work - msfazal
See also the list of contributors involved in this project.
Pwptemp was initially written and is maintained by Pro Well Plan AS as a free, simple, easy-to-use way of getting temperature data that can be tailored to our needs, and as contribution to the free software community.
This project is licensed under the GNU Lesser General Public License v3.0 - see the LICENSE file for details
for further information contact email@example.com
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size pwptemp-0.0.7-py3-none-any.whl (16.2 kB)||File type Wheel||Python version py3||Upload date||Hashes View|
|Filename, size pwptemp-0.0.7.tar.gz (13.7 kB)||File type Source||Python version None||Upload date||Hashes View|