neqsim-piping-flexibility-screening
Skill4 starsChanged 5 months agoApache-2.0View on GitHub
Educational piping-flexibility screening using open ASME B31.3 / B16.5 style relations. USE WHEN: a task needs a public, screening-level check of hoop (sustained) stress, thermal expansion, displacement (expansion) stress range, and a flange-rating pressure check for a process pipe run before detailed pipe-stress analysis.
In this repository90 other files it gives its agents.
- neqsim-document-intelligence-extractionSkill
- neqsim-co2-emissions-screeningSkill
- neqsim-energy-emissions-screeningSkill
- neqsim-weather-dataSkill
- neqsim-anp-open-dataSkill
- neqsim-artificial-lift-screeningSkill
- neqsim-asset-value-npv-screeningSkill
- neqsim-capex-opex-screeningSkill
- neqsim-design-basis-screeningSkill
- neqsim-economy-basis-screeningSkill
- neqsim-ncs-infrastructure-networkSkill
- neqsim-ncs-ownership-equitySkill
- neqsim-ncs-value-chain-optimizationSkill
- neqsim-norwegian-continental-shelf-dataSkill
- neqsim-psc-bid-economics-screeningSkill
- neqsim-reservoir-depletion-screeningSkill
- neqsim-reservoir-facility-value-chainSkill
- neqsim-reservoir-model-builderSkill
- neqsim-resource-classification-screeningSkill
- neqsim-hydrate-margin-checkSkill
- neqsim-hydrate-screeningSkill
- neqsim-multiphase-flow-slug-screeningSkill
- neqsim-olga-multiphase-simulatorSkill
- neqsim-produced-water-scale-screeningSkill
- neqsim-surf-cooldown-screeningSkill
- neqsim-two-phase-flow-regime-screeningSkill
- neqsim-wax-margin-checkSkill
- neqsim-acoustic-induced-vibration-screeningSkill
- neqsim-adsorbent-capillary-condensation-screeningSkill
- neqsim-ageing-life-extension-screeningSkill
- neqsim-cfd-couplingSkill
- neqsim-compressor-antisurge-recycleSkill
- neqsim-compressor-operating-window-checkSkill
- neqsim-compressor-power-screeningSkill
- neqsim-continuous-improvement-toolkitSkill
- neqsim-control-authority-screeningSkill
- neqsim-control-valve-cv-screeningSkill
- neqsim-dry-gas-seal-screeningSkill
- neqsim-dynamic-instrument-controller-setupSkill
- neqsim-dynamic-process-preparationSkill
- neqsim-fem-couplingSkill
- neqsim-fired-heater-duty-screeningSkill
- neqsim-flow-induced-vibration-screeningSkill
- neqsim-gas-scrubber-sizing-screeningSkill
- neqsim-gas-turbine-performance-screeningSkill
- neqsim-heat-exchanger-fouling-assessmentSkill
- neqsim-line-velocity-checkSkill
- neqsim-noise-screeningSkill
- neqsim-pipe-wall-thickness-screeningSkill
- neqsim-pressure-drop-screeningSkill
- neqsim-pump-hydraulics-screeningSkill
- neqsim-reciprocating-compressor-screeningSkill
- neqsim-reliability-data-screeningSkill
- neqsim-sand-erosion-screeningSkill
- neqsim-separator-modellingSkill
- neqsim-teg-dehydration-modelingSkill
- neqsim-uncertainty-quantificationSkill
- neqsim-utility-balance-screeningSkill
- neqsim-water-dewpoint-dehydration-screeningSkill
- neqsim-benchmark-reference-dataSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 5 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 16
Use this skill for public, educational piping-flexibility screening.
- Distinctive: line 20
When a user asks whether a hot pipe run needs an expansion loop or whether a flange class is adequate.
- Distinctive: line 21
When an agent needs a quick hoop-stress and thermal-expansion estimate for a process line.
- Distinctive: line 22
When examples must run without confidential isometrics, stress-analysis models, or company piping specs.
- Distinctive: line 115
No proprietary isometrics, stress-analysis models, or company piping specs are included.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Piping Flexibility Screening
Use this skill for public, educational piping-flexibility screening. It estimates hoop (sustained) stress, free thermal expansion, displacement (expansion) stress range against a simplified allowable, and a flange-rating pressure check so an agent can scope a pipe-flexibility study before detailed pipe-stress analysis.
When to Use
- When a user asks whether a hot pipe run needs an expansion loop or whether a flange class is adequate.
- When an agent needs a quick hoop-stress and thermal-expansion estimate for a process line.
- When examples must run without confidential isometrics, stress-analysis models, or company piping specs.
Inputs
outside_diameter_mm: pipe outside diameter in mm.wall_thickness_mm: pipe wall thickness in mm.design_pressure_bar: internal design pressure in bar gauge.design_temperature_c: design (operating) temperature in degrees Celsius.pipe_length_m: straight run length in m.install_temperature_c: installation/ambient temperature in degrees Celsius, default 20.anchor_to_anchor: whether the run is fully restrained anchor-to-anchor, default True.youngs_modulus_mpa: Young's modulus in MPa, default 200000.thermal_expansion_coeff_per_k: mean thermal expansion coefficient per K, default 1.2e-5.allowable_stress_mpa: material allowable stress in MPa, default 138.flange_rating_class: optional ASME B16.5 flange class (e.g. 150, 300, 600).flange_allowable_pressure_bar: optional flange allowable pressure at temperature in bar.
Outputs
hoop_stress_mpa: Barlow hoop (sustained) stress.hoop_stress_ratio: hoop stress divided by allowable stress.delta_temperature_k: design minus install temperature difference.free_thermal_expansion_mm: unrestrained thermal growth of the run.displacement_stress_mpa: displacement (expansion) stress estimate.allowable_stress_range_mpa: simplified allowable stress range.displacement_stress_ratio: displacement stress divided by the allowable range.flange_pressure_ratio: design pressure divided by flange allowable pressure, ornull.stress_warning:ok,watch,hoop-stress-exceeded, orexpansion-stress-exceeded.flange_warning:ok,flange-overpressure, orno-rating.assumptions: public assumptions used by the placeholder model.
Engineering Method
The Python class PipingFlexibilityModel uses open piping relations only:
- hoop stress uses the thin-wall Barlow relation
S_h = P D / (2 t). - thermal strain uses
epsilon = alpha |T_design - T_install|. - free thermal expansion uses
dL = epsilon * L. - displacement stress uses the fully restrained worst case
S_E = E alpha dT, with a fixed relief factor when the run is not anchor-to-anchor. - the allowable stress range uses a simplified
S_A = 1.5 * S_allow(screening off (1.25 S_c + 0.25 S_h)). - the flange check compares design pressure to a supplied flange allowable pressure.
This is educational and screening-only logic. It assumes thin-wall pressure stress, a single straight run, constant material properties, and a fully restrained worst-case expansion stress. It is not a replacement for validated pipe-stress/flexibility analysis or qualified piping-engineering review.
Python Usage Pattern
from piping_flexibility_screening import PipingFlexibilityModel
model = PipingFlexibilityModel()
result = model.evaluate(
outside_diameter_mm=168.3,
wall_thickness_mm=7.11,
design_pressure_bar=50.0,
design_temperature_c=180.0,
pipe_length_m=40.0,
flange_allowable_pressure_bar=49.6,
)
print(result.hoop_stress_mpa)
print(result.displacement_stress_mpa)
print(result.stress_warning)
print(result.flange_warning)Related NeqSim Functionality
For validated mechanical-design calculations, redirect to NeqSim classes:
neqsim.process.mechanicaldesign.pipeline.PipelineMechanicalDesign— pipeline wall thickness and mechanical design.neqsim.process.mechanicaldesign.pipeline.PipingFlexibilityCalculator— proposed pipe-stress/flexibility screening (sustained and displacement stress, flange checks); candidate NeqSim gap.neqsim.process.equipment.pipeline.PipeBeggsAndBrills— hydraulic and thermal pipe model for line conditions.
This skill is a public triage layer that decides when to invoke a validated pipe-stress model.
Validation Checklist
- Outside diameter and wall thickness are positive and
t < D/2. - Design pressure, length, and material properties are positive.
- Tests cover hoop stress, displacement stress, the flange check, and invalid input.
- Results are described as educational screening indicators.
- Real flexibility analysis is redirected to validated NeqSim classes and qualified review.
Common Mistakes
| Symptom | Cause | Fix |
| Displacement stress always high | Anchor-to-anchor worst case used | Route an expansion loop or set anchor_to_anchor=False |
| Flange ratio missing | No flange allowable pressure supplied | Provide flange_allowable_pressure_bar for the check |
| Hoop stress underestimated | Thin-wall Barlow used on thick wall | Use a validated thick-wall pipe-stress model |
Limitations
- No proprietary isometrics, stress-analysis models, or company piping specs are included.
- A single straight run is modelled; bends, branches, and supports are not analysed.
- Displacement stress uses a fully restrained worst case; real flexibility depends on routing.
References
- ASME B31.3, Process Piping.
- ASME B16.5, Pipe Flanges and Flanged Fittings.
- NeqSim repository: https://github.com/equinor/neqsim
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

