A comprehensive pipe thickness analysis tool for mechanical integrity engineering
Project description
TMIN - Pipe Thickness Analysis Tool
TMIN (an abbreviation for "minimum thickness") is an open source python package designed to help engineers determine if corroded process piping in refineries and pertrochemical plants are safe and API-compliant — in seconds.
Many oil and gas companies are faced with maintaining thousands of miles of 100+ year old piping networks supporting multi-million dollar/year processing operations. There is rarely a simple solution to immediately shutdown a process pipe - as these shutdowns more often than not impact other units and cost companies millions in time and resources.
TMIN can be used as a conservative and rapid engineering support tool for assessing piping inspection data and determine how close the pipe is to its end of service life.
How to install and get started
Installation:
pip install tmin
Basic Usage
from tmin import PIPE
# Create pipe instance
pipe = PIPE(
pressure=50, # Design pressure (psi)
nps=2, # Nominal pipe size (inches)
schedule=40, # Pipe schedule
pressure_class=150, # Pressure class
metallurgy="Intermediate/Low CS",
yield_stress=23333 # Yield stress (psi)
)
# Analyze measured thickness
results = pipe.analyze(
measured_thickness=0.060, # Measured thickness (inches)
year_inspected=2023 # Optional: inspection year
)
print(f"Flag: {results['flag']}")
print(f"Status: {results['status']}")
print(f"Governing thickness: {results['governing_thickness']:.4f} inches")
Docker Usage
Run TMIN in a container:
# Build and run
./docker.sh build
./docker.sh run
# Or test functionality
./docker.sh test
License
MIT License
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tmin-1.0.1.tar.gz.
File metadata
- Download URL: tmin-1.0.1.tar.gz
- Upload date:
- Size: 25.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
40416812721d2cd4f5577580e5bd7ea8863edef1378e3ce64ee4c82b75b5306a
|
|
| MD5 |
8fc62783dcad0e5f3319a3bf110513fe
|
|
| BLAKE2b-256 |
08657c970c1344aab2bda76d470561e3f33263a73a80551baafab34ea35b1371
|
File details
Details for the file tmin-1.0.1-py3-none-any.whl.
File metadata
- Download URL: tmin-1.0.1-py3-none-any.whl
- Upload date:
- Size: 22.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
47a595f06a1375210683967ec7d38ff30723cb5df7f9a03910ead6c0ca60aa69
|
|
| MD5 |
0d3e575b9dbf6e491d283de72e618e2f
|
|
| BLAKE2b-256 |
d170d7b2fc54cc8fd45cbbc54fd966571c1aa73316cc06610307ff02a28a0a22
|