AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified Apache-2.0 Self-run

Pipe Flow Pressure Drop

skill-jskherman-engg-skills-pipe-flow-pressure-drop · by jskherman

>-

No reviews yet
0 installs
0 views
view→install

Install

$ agentstack add skill-jskherman-engg-skills-pipe-flow-pressure-drop

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-jskherman-engg-skills-pipe-flow-pressure-drop)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
2mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Pipe Flow Pressure Drop? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Single-Phase Pipe Pressure Drop

Overview

Computes Darcy-Weisbach pressure drop with the Clamond friction factor (via fluids) as primary, and the Haaland explicit form as fallback when fluids is unavailable or fails. Outputs include Re, friction factor f, velocity, head loss, and pressure drop.

Prerequisites

  1. uv available.

When to Use

  • Sizing a pump suction or discharge line.
  • Checking line size given a design flow.
  • Screening pressure drop across a long straight run before adding

fittings.

Don't use for

  • Two-phase flow (two-phase-flow).
  • Compressible / choked gas flow.
  • Pressure drop across fittings, valves, expansions, contractions (those

need K factors).

  • Non-Newtonian fluids.

Utility Scripts

  • uv run scripts/pipe_pressure_drop.py --length-m 100 --diameter-m 0.05 --flow-m3-s 0.002 --density-kg-m3 998 --viscosity-pa-s 0.001 --roughness-m 1.5e-6 --output /tmp/pdrop.json

Procedure

  1. Get fluid density and viscosity at the operating temperature.
  2. Pick the pipe inside diameter (after accounting for wall thickness and

schedule).

  1. Pick the pipe absolute roughness (commercial steel ~ 45 μm, drawn

tubing ~ 1.5 μm, PE ~ 0.0015 mm).

  1. Run the script. The output reports Re; check that the flow is in the

regime you expect.

  1. Add fitting / valve K-factor losses separately if needed.
  2. If the pressure drop is large, iterate to a larger diameter and rerun.

Pitfalls

  • Using nominal pipe diameter instead of the inside diameter for a given

schedule.

  • Using roughness too low (e.g. ε = 0 for smooth pipe) for commercial

steel.

  • Forgetting elevation change when the outlet elevation differs; pass

--elevation-m explicitly.

  • Treating the result as the total dP across a system unless you supplied

representative minor-loss K values and elevation change.

  • Using water properties for a hydrocarbon line.
  • Mixing kinematic and dynamic viscosity.
  • Reporting head loss in meters of water when the fluid is something else.
  • Using the formula in the transitional regime (2300 < Re < 4000) without

acknowledging the uncertainty band.

Fallback Strategies

  • If fluids is missing, the script falls back to Haaland explicitly and

flags the substitution in the JSON output.

  • If the calculated Re is borderline transitional, the script attaches a

warning so downstream design margins can be increased.

Verification

  • Run the listed script with representative inputs and an --output file when a deterministic calculation is available.
  • Confirm the JSON result contains ok: true, expected units, and no unhandled warnings.
  • Check result magnitudes against the stated assumptions, references, and a hand calculation or known operating range before reporting them.

References

  • references/limitations.md — full assumption list.
  • Crane TP-410 (procure separately) for fittings / valve K-factors.

Anti-Patterns

  • Designing a pipe with an estimated dP and zero margin.
  • Reporting Δp in psi without naming whether it is gauge or absolute (it

is a Δ, but the reader still needs to know the basis).

  • Using this skill for the long-run flare line where two-phase or

compressible effects matter.

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.