neqsim-compressor-operating-window-check
Skill4 starsChanged 5 months agoApache-2.0View on GitHub
Educational compressor operating window screening against surge and stonewall margins. USE WHEN: a task needs a public, screening-level check that a centrifugal compressor operating point sits inside the surge and stonewall limits before detailed performance review.
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-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-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
9 rules. About 0 are common, 8 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈8
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 16
Use this skill for public, educational compressor operating window screening.
- Distinctive: line 20
When a user asks whether a compressor operating point is too close to surge or stonewall.
- Distinctive: line 21
When an agent needs a quick operating-window triage to scope a compressor or debottlenecking study.
- Distinctive: line 22
When examples must run without confidential performance maps, vendor curves, or anti-surge control settings.
- Very specific: line 68
If the optional neqsim Python package is available, the result records that fact so an agent can recommend moving to validated NeqSim …
- Distinctive: line 88
No proprietary performance maps, vendor curves, or anti-surge control data are included.
- Distinctive: line 89
No head, polytropic efficiency, or power checks are performed.
- Distinctive: line 90
No transient, recycle, or control-margin dynamics are included.
- Distinctive: line 91
Not suitable for safety-critical, design, guarantee, or standards-compliance work.
≈ “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
Compressor Operating Window Check
Use this skill for public, educational compressor operating window screening. It compares an operating flow against surge and stonewall limits to flag whether a centrifugal compressor operates inside a safe operating window before moving to validated performance and anti-surge review.
When to Use
- When a user asks whether a compressor operating point is too close to surge or stonewall.
- When an agent needs a quick operating-window triage to scope a compressor or debottlenecking study.
- When examples must run without confidential performance maps, vendor curves, or anti-surge control settings.
Inputs
operating_flow: actual or required volumetric flow at the operating point in m3/h.surge_flow: surge-limit flow at the same speed and conditions in m3/h.stonewall_flow: stonewall or choke-limit flow at the same speed and conditions in m3/h.min_surge_margin: minimum acceptable surge margin fraction, default 0.10.min_stonewall_margin: minimum acceptable stonewall margin fraction, default 0.05.
Outputs
surge_margin_fraction: fractional distance from the operating point to the surge limit.stonewall_margin_fraction: fractional distance from the operating point to the stonewall limit.limiting_margin_fraction: the smaller of the two margins, where lower means closer to a limit.operating_window_warning:ok,watch, orhigh.assumptions: public assumptions used by the placeholder model.
Engineering Method
The Python class CompressorOperatingWindowModel uses open, published concepts only:
- the surge margin is
(operating_flow - surge_flow) / surge_flow. - the stonewall margin is
(stonewall_flow - operating_flow) / stonewall_flow. - the limiting margin is the smaller of the two and drives rule-based warnings.
- an operating point at or beyond either limit is flagged
high; a margin below the minimum is flaggedwatch.
This is educational and screening-only logic. It is not a compressor performance standard, an anti-surge design method, a vendor method, or a replacement for validated performance review aligned with API 617 and a qualified process engineering review.
Python Usage Pattern
from compressor_operating_window import CompressorOperatingWindowModel
model = CompressorOperatingWindowModel()
result = model.evaluate(
operating_flow=1300.0,
surge_flow=1000.0,
stonewall_flow=2000.0,
)
print(result.operating_window_warning)
print(result.surge_margin_fraction)
print(result.stonewall_margin_fraction)If the optional neqsim Python package is available, the result records that fact so an agent can recommend moving to validated NeqSim compressor calculations and performance curves. If it is not installed, the example still runs with public placeholder logic.
Validation Checklist
- Inputs are positive and flows share the same speed and reference conditions.
surge_flowis belowstonewall_flow.- Tests cover normal, warning, and invalid-input cases.
- Results are described as educational screening indicators.
- Real performance review is redirected to validated methods, API 617, and qualified review.
Common Mistakes
| Symptom | Cause | Fix |
| Margins look inconsistent | Surge and stonewall flows taken at different speeds | Use surge and stonewall flows at the same speed and conditions |
| Operating point never flags surge | Surge flow taken too low | Use the surge flow from the relevant speed line on the map |
| Wrong window | surge_flow and stonewall_flow swapped | Keep surge_flow below stonewall_flow |
Limitations
- No proprietary performance maps, vendor curves, or anti-surge control data are included.
- No head, polytropic efficiency, or power checks are performed.
- No transient, recycle, or control-margin dynamics are included.
- Not suitable for safety-critical, design, guarantee, or standards-compliance work.
Related NeqSim Functionality
This educational screening corresponds to validated, rigorous functionality in the NeqSim Java library that a qualified engineer should use for design-grade work:
neqsim.process.equipment.compressor.Compressor— rigorous polytropic compression with real-gas properties.neqsim.process.equipment.compressor.CompressorChart— vendor performance maps with surge and stonewall limits.
In Python the same classes are reachable through the neqsim package (for example from neqsim import jneqsim).
References
- NeqSim repository: https://github.com/equinor/neqsim
- NeqSim Skills Guide: https://github.com/equinor/neqsim/blob/master/docs/integration/skills_guide.md
- Public turbomachinery references such as API Standard 617 for general operating-window concepts.
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.

