neqsim-control-valve-cv-screening
Skill4 starsChanged 5 months agoApache-2.0View on GitHub
Educational control-valve sizing screening that estimates the required flow coefficient (Kv/Cv) and flags choked flow per public IEC 60534-2-1 / ISA-75.01 equations for liquid and gas service. USE WHEN: a task needs a public, screening-level required Cv and a choked-flow flag before detailed control-valve selection.
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-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-piping-flexibility-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
6 rules. About 0 are common, 5 are distinctive, and 1 is 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.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 20
When a user asks roughly what Cv a control valve needs for a duty.
- Distinctive: line 21
When an agent needs a quick choked-flow (flashing or critical) flag.
- Distinctive: line 22
When examples must run without confidential valve data, vendor curves, or company specs.
- Very specific: line 120
No piping geometry factor Fp, Reynolds correction, or low-flow laminar handling.
- Distinctive: line 121
No two-phase, flashing, or multiphase valve sizing.
- Distinctive: line 122
No vendor valve characteristic, noise, or actuator sizing.
≈ “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
Control Valve Cv Screening
Use this skill for public, educational control-valve sizing screening. It estimates the required flow coefficient (Kv and Cv) and flags choked flow for liquid and gas service using the open IEC 60534-2-1 / ISA-75.01 equations so an agent can scope a valve and decide whether to invoke validated NeqSim valve calculations.
When to Use
- When a user asks roughly what Cv a control valve needs for a duty.
- When an agent needs a quick choked-flow (flashing or critical) flag.
- When examples must run without confidential valve data, vendor curves, or company specs.
Inputs
Common:
service:"liquid"or"gas".inlet_pressure: valve inlet pressureP1in bar absolute.pressure_drop: valve pressure dropdPin bar.rated_cv: optional rated valve Cv for the margin check.
Liquid service:
flow_rate: volumetric flow in m3/h.specific_gravity: liquid specific gravity (water = 1).vapor_pressure: fluid vapor pressure in bar absolute, default 0.critical_pressure: fluid critical pressure in bar absolute (forFF), optional.fl: liquid pressure-recovery factorFL, default 0.9.
Gas service:
mass_flow: gas mass flow in kg/h.inlet_density: inlet gas density in kg/m3.specific_heat_ratio: ratio of specific heatsk, default 1.3.xt: pressure-drop-ratio factorxT, default 0.7.
Outputs
service: the resolved service.required_kv: required flow coefficient in metric Kv.required_cv: required flow coefficient in US Cv (1.156 * Kv).choked: choked-flow flag.choke_limit: choked pressure drop in bar (liquid) or chokingx(gas).cv_margin_ratio:rated_cv / required_cv, ornullif no rating.valve_warning:ok,watch,under-sized,choked, orno-rating.assumptions: public assumptions used by the placeholder model.
Engineering Method
The Python class ControlValveCvModel uses public IEC 60534-2-1 / ISA-75.01 equations:
- liquid Kv uses
Kv = Q * sqrt(SG / dP_sizing). - the liquid liquid-critical-pressure-ratio factor uses
FF = 0.96 - 0.28 * sqrt(Pv / Pc). - liquid choke occurs when
dP >= FL^2 * (P1 - FF * Pv); the sizingdPis capped at this limit. - gas uses
x = dP / P1,Fk = k / 1.4, chokex = Fk * xT, expansion factorY = 1 - x / (3 Fk xT)bounded to[0.667, 1], and the mass-flow formKv = W / (N6 * Y * sqrt(x * P1 * rho1))withN6 = 27.3. Cv = 1.156 * Kv.
This is educational and screening-only logic. It assumes single-phase, fully turbulent flow with no piping geometry factor (Fp), no Reynolds-number correction, and no two-phase or flashing mixture handling. It is not a replacement for validated control-valve sizing and qualified selection.
Python Usage Pattern
from control_valve_cv_screening import ControlValveCvModel
model = ControlValveCvModel()
result = model.evaluate(
service="gas",
inlet_pressure=50.0,
pressure_drop=12.0,
mass_flow=5000.0,
inlet_density=40.0,
specific_heat_ratio=1.3,
)
print(result.required_cv)
print(result.choked)
print(result.valve_warning)Related NeqSim Functionality
For validated control-valve behaviour, redirect to existing NeqSim classes:
neqsim.process.equipment.valve.ThrottlingValve— flow-vs-Cv valve withgetCv/setCvand pressure-drop response.neqsim.process.equipment.valve.ControlValve— control valve with characteristic and controller coupling.neqsim.process.equipment.valve.SafetyValve— relief-valve modelling for the relieving case.
This skill is a public sizing triage layer that decides when to invoke those validated valve classes.
Validation Checklist
inlet_pressureandpressure_dropare positive anddP < P1.- Liquid service supplies flow and specific gravity; gas service supplies mass flow and density.
- The choked flag uses
FL(liquid) orFk xT(gas). - Tests cover liquid sizing, gas sizing, choking, rating margin, and invalid input.
- Real sizing is redirected to validated NeqSim valve classes and qualified review.
Common Mistakes
| Symptom | Cause | Fix |
| Cv too small | Used choked dP not realising flow is critical | The model caps dP; check the choked flag |
| Gas Cv off | Density not at inlet conditions | Pass inlet_density at P1, T1 |
| Liquid choke never flags | vapor_pressure left at 0 | Provide vapor and critical pressure |
| Wrong units | Q in m3/s or W in kg/s | Use m3/h (liquid) and kg/h (gas) |
Limitations
- No piping geometry factor
Fp, Reynolds correction, or low-flow laminar handling. - No two-phase, flashing, or multiphase valve sizing.
- No vendor valve characteristic, noise, or actuator sizing.
References
- NeqSim repository: https://github.com/equinor/neqsim
- NeqSim Skills Guide: https://github.com/equinor/neqsim/blob/master/docs/integration/skills_guide.md
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.

