Install
$ agentstack add skill-jskherman-engg-skills-separator-vessel-sizing ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo 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.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
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 →About
Two-Phase Separator Vessel Sizing
Overview
Implements the Souders-Brown velocity criterion with GPSA-style K-factor ranges (no proprietary table reproduced) for vertical and horizontal two-phase vessels. Liquid holdup time defaults to 5 minutes (typical operator-response horizon); override for your service.
Prerequisites
uvavailable.- On first use, the script writes
LICENSE_NOTIFICATION.txt.
When to Use
- Sizing a knock-out drum, flash drum, suction scrubber, or compressor
inlet drum.
- Screening vendor sizing or rating an existing vessel for new conditions.
Don't use for
- Three-phase separators with explicit oil-water-gas residence time.
- Cyclonic / vane / coalescer-only separators.
- Tower-bottom sumps where downcomer hydraulics dominate.
Utility Scripts
uv run scripts/sizing.py vertical --vapor-volumetric 0.4 --liquid-volumetric 0.005 --rho-l 600 --rho-g 30 --demister --output /tmp/v.jsonuv run scripts/sizing.py horizontal --vapor-volumetric 0.4 --liquid-volumetric 0.005 --rho-l 600 --rho-g 30 --demister --LD 4 --output /tmp/h.jsonuv run scripts/sizing.py watkins-k --quality 0.6 --rho-l 600 --rho-g 30 --output /tmp/k.json
Procedure
- Get the vapor volumetric flow at operating P,T (from a flash, or from
measured density and mass flow).
- Get the liquid volumetric flow.
- Decide demister or no demister (demister = ~50% smaller diameter for the
same separation).
- Pick liquid holdup time: 5 min for operator response, 2 min for high
reliability shutdown systems, 10 min for upstream / unattended skids.
- Pick
L/Dfor horizontal: 3 (compact), 4 (default), 5 (long, high gas
load).
- Run
verticalorhorizontal; check that the available liquid holdup
meets requirement.
Pitfalls
- Picking the K-factor at the top of the range without justifying it.
- Sizing for max vapor flow but ignoring the relief contingency flow (which
may govern the design).
- Forgetting to add a demister allowance to tan-tan height (~0.3 m typical).
- Using a vertical vessel for a high-liquid-loading service; horizontal is
often better when liquid-to-vapor flow ratio is large.
- Treating the diameter as exact; round up to standard pipe / fab sizes.
- Reporting K without specifying horizontal vs vertical and with/without
demister.
- Forgetting that high-pressure systems need different K factors than
atmospheric service (the GPSA chart trends with P).
- Sizing on lab/measured density and forgetting that density at operating
conditions can differ by 5-15%.
Fallback Strategies
- If quality
xis known, usewatkins-kto derive a more realistic K
from fluids.separator.K_separator_Watkins instead of the rule-of-thumb ranges.
- If the holdup time check fails, increase L/D for horizontal or vessel
diameter for vertical and rerun.
Verification
- Run the listed script with representative inputs and an
--outputfile 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/k_factor_ranges.md— K-factor ranges and citations.- GPSA Engineering Data Book (procure separately).
- API 12J — Specification for Oil and Gas Separators.
Anti-Patterns
- Treating the vessel as final design without HAZOP, relief, or vendor
review.
- Specifying tan-tan height without showing the holdup calculation.
- Picking K to fit a pre-existing nozzle size rather than to meet the
separation duty.
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: jskherman
- Source: jskherman/engg-skills
- License: Apache-2.0
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.