Pipe Wall Thickness Screening
Use this skill for public, educational pressure-piping wall-thickness screening. It estimates the minimum pressure-design wall thickness using the open ASME B31.3 internal-pressure equation, adds a corrosion allowance, and compares the result to a nominal wall so an agent can flag piping that may be under-walled before detailed mechanical design.
When to Use
- When a user asks whether a nominal pipe wall is adequate for a design pressure.
- When an agent needs a quick wall-thickness triage to scope a piping or pipeline study.
- When examples must run without confidential piping classes, project material certificates, or company piping specs.
Inputs
design_pressure: internal design pressure in bar gauge.
outer_diameter: pipe outer diameter in mm.
allowable_stress: allowable stress S of the material in MPa at design temperature.
weld_joint_factor: longitudinal weld joint quality factor E, default 1.0 (seamless).
coefficient_y: temperature coefficient Y, default 0.4 for ferritic steel below 482 C.
corrosion_allowance: corrosion and mechanical allowance in mm, default 3.0.
nominal_thickness: nominal wall thickness in mm for the comparison.
Outputs
pressure_design_thickness_mm: minimum pressure-design thickness t.
required_thickness_mm: t plus the corrosion allowance.
nominal_thickness_mm: the supplied nominal wall.
thickness_margin_ratio: ratio of nominal to required thickness.
wall_thickness_warning: ok, watch, or inadequate.
assumptions: public assumptions used by the placeholder model.
Engineering Method
The Python class PipeWallThicknessModel uses the open ASME B31.3 internal-pressure equation only:
- the pressure-design thickness uses
t = P D / (2 (S E W + P Y)), where W is taken as 1.0 in this screening form.
- the required thickness adds a configurable corrosion and mechanical allowance.
- the margin ratio compares the supplied nominal wall to the required thickness.
- the warning is a simple rule-based label aligned with ASME B31.3 and ISO 13703 pressure-design intent.
This is educational and screening-only logic. It does not include mill tolerance, bend thinning, external pressure or collapse, longitudinal or combined stresses, supports, or fatigue. It is not a piping code calculation, a vendor method, or a replacement for validated mechanical design and a qualified piping engineering review.
Python Usage Pattern
from pipe_wall_thickness_screening import PipeWallThicknessModel
model = PipeWallThicknessModel()
result = model.evaluate(
design_pressure=100.0,
outer_diameter=323.9,
allowable_stress=138.0,
nominal_thickness=12.7,
)
print(result.wall_thickness_warning)
print(result.required_thickness_mm)
print(result.thickness_margin_ratio)
Related NeqSim Functionality
For validated wall-thickness and pipeline mechanical design, redirect to existing NeqSim classes:
neqsim.process.mechanicaldesign.pipeline.PipelineMechanicalDesign — pipeline wall thickness and mechanical design (DNV-OS-F101 style).
neqsim.process.mechanicaldesign.separator.SeparatorMechanicalDesign — vessel wall thickness for separators (ASME VIII Div.1 style).
neqsim.process.mechanicaldesign.MechanicalDesign — base mechanical-design framework with material data sources.
This skill is a public ASME B31.3 triage layer that decides when to invoke those validated design classes.
Validation Checklist
Common Mistakes
| Symptom |
Cause |
Fix |
| Thickness looks too thin |
Allowable stress taken at ambient not design temperature |
Use the code allowable stress at design temperature |
| Margin always passes |
Corrosion allowance set to zero |
Use a service-appropriate corrosion and mechanical allowance |
Wrong Y coefficient |
Using ferritic Y at high temperature |
Use the ASME B31.3 Y table for the material and temperature |
Limitations
- No proprietary piping classes, material certificates, or company piping specs are included.
- No mill tolerance, bend thinning, external pressure, or combined-stress checks are performed.
- No branch reinforcement, flange rating, or fatigue assessment is included.
References
1---2name: neqsim-pipe-wall-thickness-screening3description: Educational process-pipe wall-thickness screening using the public ASME B31.3 hoop-stress (Barlow style) equation. USE WHEN: a task needs a public, screening-level minimum wall-thickness estimate and a check against a nominal schedule wall before detailed piping or pipeline mechanical design.4---56# Pipe Wall Thickness Screening78Use this skill for public, educational pressure-piping wall-thickness screening. It estimates the minimum pressure-design wall thickness using the open ASME B31.3 internal-pressure equation, adds a corrosion allowance, and compares the result to a nominal wall so an agent can flag piping that may be under-walled before detailed mechanical design.910## When to Use1112- When a user asks whether a nominal pipe wall is adequate for a design pressure.13- When an agent needs a quick wall-thickness triage to scope a piping or pipeline study.14- When examples must run without confidential piping classes, project material certificates, or company piping specs.1516## Inputs1718- `design_pressure`: internal design pressure in bar gauge.19- `outer_diameter`: pipe outer diameter in mm.20- `allowable_stress`: allowable stress `S` of the material in MPa at design temperature.21- `weld_joint_factor`: longitudinal weld joint quality factor `E`, default 1.0 (seamless).22- `coefficient_y`: temperature coefficient `Y`, default 0.4 for ferritic steel below 482 C.23- `corrosion_allowance`: corrosion and mechanical allowance in mm, default 3.0.24- `nominal_thickness`: nominal wall thickness in mm for the comparison.2526## Outputs2728- `pressure_design_thickness_mm`: minimum pressure-design thickness `t`.29- `required_thickness_mm`: `t` plus the corrosion allowance.30- `nominal_thickness_mm`: the supplied nominal wall.31- `thickness_margin_ratio`: ratio of nominal to required thickness.32- `wall_thickness_warning`: `ok`, `watch`, or `inadequate`.33- `assumptions`: public assumptions used by the placeholder model.3435## Engineering Method3637The Python class `PipeWallThicknessModel` uses the open ASME B31.3 internal-pressure equation only:3839- the pressure-design thickness uses `t = P D / (2 (S E W + P Y))`, where `W` is taken as 1.0 in this screening form.40- the required thickness adds a configurable corrosion and mechanical allowance.41- the margin ratio compares the supplied nominal wall to the required thickness.42- the warning is a simple rule-based label aligned with ASME B31.3 and ISO 13703 pressure-design intent.4344This is educational and screening-only logic. It does not include mill tolerance, bend thinning, external pressure or collapse, longitudinal or combined stresses, supports, or fatigue. It is not a piping code calculation, a vendor method, or a replacement for validated mechanical design and a qualified piping engineering review.4546## Python Usage Pattern4748```python49from pipe_wall_thickness_screening import PipeWallThicknessModel5051model = PipeWallThicknessModel()52result = model.evaluate(53 design_pressure=100.0,54 outer_diameter=323.9,55 allowable_stress=138.0,56 nominal_thickness=12.7,57)5859print(result.wall_thickness_warning)60print(result.required_thickness_mm)61print(result.thickness_margin_ratio)62```6364## Related NeqSim Functionality6566For validated wall-thickness and pipeline mechanical design, redirect to existing NeqSim classes:6768- `neqsim.process.mechanicaldesign.pipeline.PipelineMechanicalDesign` — pipeline wall thickness and mechanical design (DNV-OS-F101 style).69- `neqsim.process.mechanicaldesign.separator.SeparatorMechanicalDesign` — vessel wall thickness for separators (ASME VIII Div.1 style).70- `neqsim.process.mechanicaldesign.MechanicalDesign` — base mechanical-design framework with material data sources.7172This skill is a public ASME B31.3 triage layer that decides when to invoke those validated design classes.7374## Validation Checklist7576- [ ] Pressure, diameter, and allowable stress are positive and in the stated units.77- [ ] Example inputs are public and synthetic.78- [ ] Tests cover adequate, watch, inadequate, and invalid-input cases.79- [ ] Results are described as educational screening indicators.80- [ ] Real design is redirected to validated methods, ASME B31.3, ISO 13703, and qualified review.8182## Common Mistakes8384| Symptom | Cause | Fix |85| --- | --- | --- |86| Thickness looks too thin | Allowable stress taken at ambient not design temperature | Use the code allowable stress at design temperature |87| Margin always passes | Corrosion allowance set to zero | Use a service-appropriate corrosion and mechanical allowance |88| Wrong `Y` coefficient | Using ferritic `Y` at high temperature | Use the ASME B31.3 `Y` table for the material and temperature |8990## Limitations9192- No proprietary piping classes, material certificates, or company piping specs are included.93- No mill tolerance, bend thinning, external pressure, or combined-stress checks are performed.94- No branch reinforcement, flange rating, or fatigue assessment is included.9596## References9798- NeqSim repository: https://github.com/equinor/neqsim99- NeqSim Skills Guide: https://github.com/equinor/neqsim/blob/master/docs/integration/skills_guide.md