control-valve-sizing-isa75
Skill7 starsChanged 6 months agoApache-2.0View on GitHub
Size liquid or gas control valves using `fluids.control_valve` (ISA 75.01.01 / IEC 60534 sizing equations). Returns Kv (m³/hr) and US Cv. Use when selecting a control valve or checking a vendor sizing. Don't use for relief devices (use relief-valve-sizing-api520), choked-flow check valves, or specialized cryogenic / slurry / abrasive service that requires vendor-specific derating.
In this repository31 other files it gives its agents.
- absorption-stripping-designSkill
- bayesian-hierarchical-process-modelsSkill
- caustic-merox-extractionSkill
- censored-regressionSkill
- compositional-data-analysisSkill
- convective-heat-transfer-correlationsSkill
- design-of-experimentsSkill
- dimensionless-numbersSkill
- distillation-shortcut-designSkill
- distributed-lag-modelsSkill
- engg-skills-commonSkill
- engineering-skill-creatorSkill
- engineering-statisticsSkill
- equation-of-state-selectionSkill
- heat-exchanger-sizingSkill
- literature-search-engineeringSkill
- material-energy-balancesSkill
- pipe-flow-pressure-dropSkill
- process-causal-inference-dagsSkill
- process-units-conversionSkill
- reactor-sizing-and-kineticsSkill
- relief-valve-sizing-api520Skill
- separator-vessel-sizingSkill
- sour-gas-amine-treatingSkill
- statistical-process-controlSkill
- steam-tables-iapwsSkill
- thermo-process-propertiesSkill
- time-series-process-data-analysisSkill
- two-phase-flowSkill
- uvSkill
- vle-flash-calculationsSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 56
Run sizing at each flow rate.
- Very specific: line 79
If fluids.control_valve is unavailable, surface to the user.
- Very specific: line 86
Run the listed script with representative inputs and an --output file when a deterministic calculation is available.
- Distinctive: line 88
Check result magnitudes against the stated assumptions, references, and a hand calculation or known operating range before reporting them.
≈ “Common” is an estimate: at least 1 in 5 of the 372,429 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
Control Valve Sizing (ISA 75.01.01)
Overview
Wrapper around fluids.control_valve.size_control_valve_l (liquid) and
size_control_valve_g (gas) per the ISA 75.01.01 / IEC 60534 family of
sizing equations.
Prerequisites
uvavailable.- On first use, the script writes
LICENSE_NOTIFICATION.txt.
When to Use
- Selecting a control valve size for liquid or gas service.
- Checking a vendor-supplied Cv.
- Comparing Cv against the operating envelope (min/normal/max flow).
Don't use for
- Pressure relief / safety valves — use
relief-valve-sizing-api520. - On-off valves, ball-valve trim selection.
- Cryogenic, slurry, abrasive, or high-temperature service with vendor-specific corrections beyond the ISA standard.
Utility Scripts
uv run scripts/cv.py liquid --rho 800 --P1 2000000 --P2 1700000 --Q 0.005 --mu 5e-4 --Psat 100000 --Pc 4.2e6 --output /tmp/liq.jsonuv run scripts/cv.py gas --T 300 --MW 30 --mu 1.2e-5 --gamma 1.3 --Z 0.92 --P1 800000 --P2 400000 --Q 0.6 --output /tmp/gas.json
Procedure
- Determine min / normal / max flow rates for the service.
- Get fluid properties at upstream conditions (rho, mu, Psat, gamma, Z).
- Run sizing at each flow rate; the operating Cv should fall in the 20-80% open range at the normal flow.
- Review cavitation/flashing and choked-flow limits separately against the valve trim and vendor data.
- Select the valve from vendor data such that the required Cv is met at max flow with margin.
Pitfalls
- Sizing only for max flow; the valve may be unstable or hunt at min flow if it ends up too far closed.
- Using upstream density for downstream conditions when there is a large pressure drop and significant flashing.
- Treating cavitation onset as the same as choked flow. They are different:
cavitation depends on pressure recovery (
FL) andPsat; choked flow depends on pressure ratio andgamma. - Confusing Kv (m³/hr) with Cv (US gpm); the ratio is ~1.156.
- Using a globe-valve
FLfor a butterfly-valve service.FLis trim-specific. - Sizing with viscosity-corrected
FRoutside the correlation envelope.
Fallback Strategies
- If
fluids.control_valveis unavailable, surface to the user; the rigorous ISA equation is not reproduced here. - For two-phase service, the standard ISA 75.01.01 does not apply directly; consult the vendor or use a specialised correlation.
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/equation_family.md— pointers to ISA 75.01.01 / IEC 60534.fluids.control_valvedocs: https://fluids.readthedocs.io/fluids.control_valve.html- ISA 75.01.01-2012 — Industrial-process control valves — Flow capacity.
- IEC 60534-2-1 — Industrial-process control valves — Part 2-1: Flow capacity.
Anti-Patterns
- Specifying a control valve by line size rather than by Cv requirement.
- Skipping the min-flow check.
- Ignoring cavitation/flashing on liquid service near
Psat.
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.

