PD8010壁厚计算。
wallthick的Python项目详细描述
墙厚
该库根据许用应力设计规范PD 8010-2计算单壁海底管线所需壁厚和推荐试验压力。
计算考虑以下标准:
- 内压(环向应力)
- 静水压溃灭
- 局部屈曲传播
以及以下水压试验的压力:
- 强度试验
- 泄漏测试
教程和用法
输入json文件:
{"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}
使用clickcli运行计算,即:
$ wallthick path/to/input/file
例如:
$ wallthick inputs/inputs.json
在终端中提供以下输出:
Running PD 8010-2 wall thickness calculation...
Nominal Wall Thicknesses
------------------------
Pressure Containment: 5.480 mm
Hydrostatic Collapse: 3.260 mm
Propagation Buckling: 4.704 mm
Test Pressures
--------------
Strength Test Pressure: 195.0 bar
Leak Test Pressure: 143.0 bar
安装
$ pip install wallthick