Skip to main content

OSP

Index

Introduction

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.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Get pwptemp

  • Users: Wheels for Python from PyPI
    • pip install pwptemp
  • Developers: Source code from github
    • git clone https://github.com/pro-well-plan/pwptemp

Tutorial

You can use the package by creating a new file and by following the instructions provided below.

Basics

  1. Installing the package:

    Option 1: Go to project interpreter settings and search pwptemp.

    Option 2: Go to the terminal and type pip install pwptemp

  2. Importing the dictionary and creating a new instance WellTemperature:

from pwptemp.Input import WellTemperature, temp_dict

tdata=temp_dict 
mw=WellTemperature(tdata)  
  1. Defining wellpath:
md,tvd,deltaz,zstep=wellpath(mw.mdt)  # Getting depth values
  1. Calculating temperature distribution:
#For circulation time = 5 hours
Tdsi,Ta,Tr,Tcsg,Tsr,Tfm=temp_time(5,mw,tvd,deltaz,zstep)
  1. Plotting Temperature profile:
plot_temp_profile(Tdsi,Ta,Tr,Tcsg,Tfm,Tsr,mw.riser,md)

Code Distribution

The code is compound different files as follows:

Wellpath.py â–· contains a function to define the MD, and TVD values from the wellpath.

Input.py â–· creates a class (WellTemperature) to have access to the parameters of the case.

InitCond.py â–· defines the initial and boundary conditions.

HeatCoefficients.py â–· contains a function to calculate the coefficients for the heat tranfer equations that will be used.

LinearSystem.py â–· contains a function to generate the entire temperature profile.

Graph.py â–· contains a function to plot Tfm, Ta(bottom), Ta(outlet) vs time. And another function to plot the temperature profile.

Main.py â–· contains a function to determine the temperature profile at any time and another function to calculate for the stabilization time.

Inputs

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.

Outputs

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)

Diapositiva1

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).

Distribution Scheme

Contributing

Please read CONTRIBUTING for details on our code of conduct, and the process for submitting pull requests to us.

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

See also the list of contributors who participated in this project.

History

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.

License

This project is licensed under the GNU Lesser General Public License v3.0 - see the LICENSE file for details

Metadata

Release files for pwptemp 0.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pwptemp 0.0.6
File Size Uploaded
pwptemp-0.0.6.tar.gz 14.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pwptemp 0.0.6
File Interpreter ABI Platform
pwptemp-0.0.6-py3-none-any.whl Python 3 none any Details

Total release size: 30.0 kB

Release files / pwptemp-0.0.6.tar.gz

Download URL pwptemp-0.0.6.tar.gz
Size 14.0 kB
Tags Source
SHA-256 checksum
How to use checksums
afdd9f69a9b8980e38fc6ba3ab45b661c51ae5cd287d5ac367f6ab84878b1ee7
BLAKE2b-256 checksum
How to use checksums
c4fcad2f273e8ff183565b0586c8772d2538a3d797edab5f63441c7bb337203c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.34.0 CPython/3.7.4

Release files / pwptemp-0.0.6-py3-none-any.whl

Download URL pwptemp-0.0.6-py3-none-any.whl
Size 16.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
26c595f50bf69b50675395f9347aedfc63ad6bd7494eb675fc29d38dcf675acc
BLAKE2b-256 checksum
How to use checksums
6e0208f824d898827c73d9a6054c0cb0f3043cacbb85cc61ae01f09b7ee9e684
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.34.0 CPython/3.7.4

Release history Release notifications | RSS feed

0.3.6

2 release files

0.3.5

2 release files

0.3.4

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.9

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

This release

0.0.6 This release

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page