PD8010 wall thickness calculations
Project description
Wallthick
This library calculates the required wall thickness and recommended test pressures for a single walled subsea flowline in accordance with allowable stress design code PD 8010-2.
The calculations consider the following criterion:
- Internal pressure (hoop stress)
- Hydrostatic collapse
- Local buckle propagation
Along with pressures for the following hydrostatic tests:
- Strength test
- Leak test
Tutorial and Usage
Input file in json, e.g.:
{
"name": "Test Pipe",
"t_sel": 0.01097,
"f_tol": 0.125,
"B": 0,
"t_corr": 0.001,
"D_o": 0.1683,
"sig_y": 450000000,
"sig_y_d": 370000000,
"v": 0.3,
"E": 207000000000,
"f_0": 0.025,
"rho_w": 1027,
"h": 111,
"H_t": 1.47,
"H": 26.1,
"P_d": 13000000,
"P_h": 0,
"g": 9.81,
"f_s": 2
}
Uses click cli to run calculations, i.e.:
$ wallthick [input-file-path]
For example:
$ wallthick inputs/inputs.json
Installation
Clone repository:
$ git clone https://github.com/benranderson/wallthick.git
Navigate in to package directory:
$ cd wallthick
Install dependencies (using pipenv):
$ pipenv install
Activiate virtualenv:
$ pipenv shell
Install wallthick package in environment (macOS):
$ make install
Install wallthick package in environment (Windows):
$ python setup.py install
Development Setup
Install dev dependencies:
$ pipenv install --dev
Run tests (macOS):
$ make test
Run tests (Windows):
$ py.test tests/
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
Hashes for wallthick-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c0c3c942c0c01da9d73a54ea8ac407085154dfa2ca038b79db895fc634917188 |
|
MD5 | 5236b8c5b26f5a9f6ab9e40e290b969d |
|
BLAKE2b-256 | 567b44c6fbed9d8fe6aa1d00414b8cd60498a814215b1ee435f3b0a5994ee589 |