pipe-wall-thickness-calc
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "pipe-wall-thickness-calc" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-1563cc12e44d18084ae07f25b8552376bcae5ca0a326cc432b927f7c44cd3229. Verify the upstream source and version against https://skillhub.cn/skills/user_a8c636dd/pipe-wall-thickness-calc before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Pipe wall thickness calculation skill. Based on GB/T 20801.1-2025 Chapter 6 (former Part 3), ASME B31.3 §304, and SH/T 3059-2012 Chapter 4, performs full calculations and rounding/selection for straight pipe wall thickness, elbow thinning, tee reinforcement, blind flange thickness and reducer wall thickness. Supports scenario recognition: user inputs design pressure/temperature/diameter/material, computes theoretical thickness, adds corrosion allowance, rounds to standard thicknesses (Sch series), and checks pressure design of fittings. Example triggers: wall thickness calculation, pipe wall thickness, t=PD/(2SE), Sch40, reinforcement calculation.
Introduction source: third_party · user_a8c636dd · 1.0.0 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Audience
- Not specified in the source documentation.
- Inputs and outputs
- Translation pending; see source documentation.
- Software, accounts and paid services
- Not specified in the source documentation.
- Limits and differences
- Translation pending; see source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: pipe-wall-thickness-calc
description: 管道壁厚计算技能。基于 GB/T 20801.1-2025 第6章(原Part 3)、ASME B31.3 第304节、SH/T 3059-2012 第4章,对直管壁厚、弯头减薄、三通补强、盲板厚度、异径管壁厚进行完整计算和圆整选型。支持场景识别模式——用户输入设计压力/温度/管径/材料,自动计算理论壁厚、加腐蚀裕量、圆整至标准壁厚(Sch系列),并校核管件压力设计。当用户需要管道壁厚计算、管子壁厚、wall thickness、Sch选型、壁厚校核、弯头减薄计算、三通补强计算、盲板厚度、异径管校核时触发此技能。典型触发词:壁厚计算、管道壁厚、wall thickness、t=PD/(2SE)、Sch40、管子壁厚选型、补强计算。
description_zh: 基于GB/T 20801.1-2025和ASME B31.3,一键完成直管壁厚、弯头减薄、三通补强、盲板厚度计算。输出完整计算书并标注规范条款号,自动圆整到公称壁厚。
description_en: One-click pipe wall thickness calculation per GB/T 20801.1-2025 and ASME B31.3, including straight pipe, elbow thinning, tee reinforcement, and blind flange thickness with full calculation reports.
display_name: 管道壁厚计算
agent_created: true管道壁厚计算 (GB/T 20801.1-2025 第6章 / ASME B31.3)
概述
本技能基于 GB/T 20801.1-2025《压力管道规范 第1部分:工业管道》第6章「设计和计算」, 及 ASME B31.3 第304节,提供工业管道壁厚计算的完整能力,包括:
- 直管内压壁厚计算(公式 6-1)
- 腐蚀裕量确定(C₁ + C₂ + C₃)
- 标准壁厚圆整(Sch 10S/20/40/80/160/XXS)
- 弯头壁厚减薄计算
- 三通开孔补强计算(等面积补强法)
- 盲板厚度计算
- 异径管壁厚校核
- 外压稳定性校核(真空/埋地管道)
- Y系数查表、许用应力查表
标准覆盖范围:
- 中国标准:GB/T 20801.1-2025 第6章、SH/T 3059-2012 第4章、SH/T 3405-2012、GB/T 1047/1048
- 国际标准:ASME B31.3-2024 第304节(IMA kb:7482252053210359可查证)、ASME B36.10M-2018/B36.19M-2018(Sch系列)
- 法兰管件标准:ASME B16.5-2020、ASME B16.47-2017/2020(kb:7443311484736197可查证)
- 管件标准:GB/T 12459、SH/T 3425(盲板)、GB/T 19326(支管座)、SH/T 3419(异径短节)
典型应用场景
| 用户说 | 识别场景 | 计算内容 | 需追问参数 |
|---|---|---|---|
| "DN200蒸汽管0.8MPa 165℃" | 直管壁厚 | 理论壁厚+圆整 | 材料牌号 |
| "DN150氢气管2MPa 350℃" | 直管壁厚(高温) | Y系数、高温许用应力 | 材料、腐蚀裕量 |
| "DN300主管开DN100支管" | 三通补强 | 等面积补强法 | 设计压力、壁厚 |
| "DN50盲板1.6MPa" | 盲板厚度 | 盲板计算公式 | 材料 |
| "真空管道DN200" | 外压校核 | 临界外压 | 管长、壁厚 |
计算工作流程
第 1 步:确定设计参数
必须确认的参数:
| 参数 | 说明 | 取值原则 |
|---|---|---|
| 设计压力 P | MPa | ≥ 1.1×P操作,泵出口取关死点压力 |
| 设计温度 T | ℃ | 操作温度 + 15~20℃裕量 |
| 管子外径 Do | mm | 查 SH/T 3405 或 GB/T 17395 |
| 材料牌号 | — | 由 pipe-material-selection Skill 输出 |
| 许用应力 S | MPa | 查 GB/T 20801.1-2025 附录B(设计温度下) |
| 纵向焊缝系数 E | — | 无缝管=1.0,ERW=0.85 |
| 焊接接头系数 W | — | 无缝管=1.0 |
| Y系数 | — | ≤482℃铁素体钢取0.4 |
| 腐蚀裕量 C₁ | mm | 按介质腐蚀性,1.5~3.0mm |
| 加工减薄量 C₂ | mm | 直管=0,弯头=10~12%壁厚 |
第 2 步:计算理论壁厚
优先使用 Python 脚本计算:
python scripts/wall_thickness_calc.py --pressure 0.88 --do 219.1 --s 137 --e 1.0 --y 0.4 --c 1.5 --dn 200
python scripts/wall_thickness_calc.py --pressure 2.2 --do 219.1 --s 147 --e 1.0 --y 0.4 --c 1.5 --dn 200 --material "15CrMoG" --temperature 350
python scripts/wall_thickness_calc.py --pressure 1.0 --do 219.1 --s 137 --e 1.0 --y 0.4 --c 1.5 --dn 200 --branch-do 114.3 --branch-t 4.5 # 三通补强
手动计算时参考 references/thickness_formulas.md 中的完整公式体系。
第 3 步:圆整至标准壁厚
将计算壁厚圆整至标准壁厚系列,参见 references/pipe_schedule_tables.md:
| 公称壁厚 | 说明 | 适用 |
|---|---|---|
| Sch 10S/10 | 薄壁 | 低压,不锈钢常用 |
| Sch 20/20S | 中薄壁 | 一般工业 |
| Sch 40S/40 | 中壁 | 最常用 |
| Sch 80S/80 | 厚壁 | 高压 |
| Sch 160/XXS | 特厚壁 | 高压高温 |
第 4 步:校核管件壁厚
参见 references/fitting_pressure_design.md:
| 管件 | 校核方法 |
|---|---|
| 弯头 | 直管壁厚 × 减薄系数K(3D: 1.10~1.12, 5D: 1.05~1.08) |
| 三通 | 等面积补强法(开孔直径×理论壁厚 vs 可用补强面积) |
| 异径管 | 大端壁厚≥直管,小端单独计算 |
| 盲板 | SH/T 3425 公式 |
| 支管座 | GB/T 19326 压力设计 |
第 5 步:输出计算结果
以表格形式输出完整计算书:
| 序号 | 项目 | 符号 | 取值 | 单位 | 依据 |
|------|------|------|------|------|------|
| 1 | 设计压力 | P | 0.88 | MPa | 1.1×0.8 |
| 2 | 设计温度 | T | 180 | ℃ | 165+15 |
| 3 | 管子外径 | Do | 219.1 | mm | SH/T 3405 |
| 4 | 材料牌号 | — | 20 | — | — |
| 5 | 许用应力 | S | 130 | MPa | GB/T 20801 附录B |
| 6 | 焊缝系数 | E | 1.0 | — | 无缝管 |
| 7 | Y系数 | Y | 0.4 | — | ≤482℃ |
| 8 | 腐蚀裕量 | C | 1.5 | mm | — |
| 9 | 计算壁厚 | t | 1.62 | mm | 公式6-2 |
| 10 | 圆整壁厚 | t选 | 6.0(Sch20) | mm | 标准壁厚 |
| 11 | 安全裕量 | t选/t | 3.7 | — | ≥1.0 |
资源文件说明
references/
| 文件 | 内容 | 何时加载 |
|---|---|---|
thickness_formulas.md |
壁厚计算完整公式集:直管公式(6-1)、Y系数表、弯头减薄系数、三通补强(等面积法)、盲板计算、异径管校核、外压稳定性、设计压力取值原则、常见错误 | 计算时首先加载 |
allowable_stress_tables.md |
材料许用应力表:碳钢/合金钢/不锈钢/低温钢在各温度下的许用应力值,许用应力确定原则,高温蠕变区处理 | 查许用应力时加载 |
pipe_schedule_tables.md |
管材壁厚系列表:DN6~DN2000的Sch10/20/40/80/160/XXS对应壁厚,无缝/焊接管外径,SH/T 3405尺寸系列 | 圆整壁厚时加载 |
fitting_pressure_design.md |
管件压力设计校核:弯头(ASME B16.9)、三通(等面积法/压力面积法)、异径管、管帽、支管台。含GB/T 20801.1-2025 附录K/L | 管件校核时加载 |
flange_rating_tables.md |
法兰压力-温度额定值:Class150~2500各温度下最大允许工作压力,PN系列选用指南 | 法兰选型时加载 |
scripts/
| 文件 | 功能 |
|---|---|
wall_thickness_calc.py |
管道壁厚计算脚本,支持直管壁厚、三通补强、盲板厚度计算,输出JSON格式结果 |
重要注意事项
- 设计压力 ≠ 操作压力:P设计 ≥ 1.1×P操作,泵出口取关死点压力,有安全阀时取整定压力
- 许用应力取设计温度下的值:高温下许用应力衰减,必须查表,不可用常温值
- Y系数:≤482℃铁素体钢取0.4,奥氏体不锈钢全温域0.4,>482℃按公式计算
- 腐蚀裕量不能忘:C₁=1.5~3.0mm,忘记加裕量会导致管道寿命缩短
- 弯头壁厚高一级:直管Sch20→弯头选Sch40,直管Sch40→弯头选Sch80
- 外压管道必须校核稳定性:真空管道、埋地管道需校核临界外压
- 标准版本:GB/T 20801.1-2025已替代原GB/T 20801.3-2020,第6章为设计计算
- 免责声明:计算结果供工程参考,最终设计须由具备资质的管道工程师审核确认
Current listing version
1.0.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 基于 GB/T 20801.1-2025 和 ASME B31.3 权威标准,提供工业管道壁厚完整计算能力
- 覆盖直管、弯头、三通、盲板等多种管件,具备工程实用价值
Highlights
- 触发词覆盖全面,包括'壁厚计算'、'Sch选型'、'弯头减薄'等工程常用术语
- 边界清晰,能有效区分管道计算与其他工程计算需求
Areas to improve
-
文档过长 Reported severity: Minor
主文档约1800字,超出推荐长度,影响阅读体验
Recommendation: 建议精简概述部分,将部分技术细节移至 references 文件中
Highlights
- 计算流程分步清晰,包含参数确认、理论计算、圆整选型等完整步骤
- 提供了典型应用场景表格,便于用户理解使用方式
Areas to improve
-
引用文件缺失 Reported severity: Major
SKILL.md 中引用了 scripts/wall_thickness_calc.py 和 references/ 目录下多个文件,但未实际传入这些文件
Recommendation: 请补充上传所有被引用的脚本和参考文件,确保计算功能可完整执行
Highlights
- 计算逻辑完整,包含理论壁厚计算、腐蚀裕量处理、标准壁厚圆整等关键环节
- 提供了详细的参数说明和取值原则,降低用户输入错误风险
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Not specified in the source documentation.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.