Agent skill

Neqsim Compressor Antisurge Recycle

by equinor in equinor/neqsim

Anti-surge recycle and coordinated minimum-speed recycle control for centrifugal compressors in NeqSim: chart generation, anti-surge calculation, MinimumSpeedRecycleControllerStructure split-range…

Apache-2.0Auto-check passedDevOps & Cloud

Install Neqsim Compressor Antisurge Recycle

skills CLI
$ npx skills add equinor/neqsim --skill neqsim-compressor-antisurge-recycle -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install equinor/neqsim neqsim-compressor-antisurge-recycle --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/equinor/neqsim.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.github/skills/neqsim-compressor-antisurge-recycle .claude/skills/neqsim-compressor-antisurge-recycle && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
neqsim-compressor-antisurge-recycle
GitHub stars
156
Token cost
~2k tokens
SKILL.md length
571 words
Files
1
Skills in repo
12
Repo updated
First seen
Licence
Apache-2.0

At a glance

Anti-surge recycle and coordinated minimum-speed recycle control for centrifugal compressors in NeqSim: chart generation, anti-surge calculation, MinimumSpeedRecycleControllerStructure split-range…

  • Works in 7 steps: Split-Range Output Transition: Pressure… → Speed Command Range: Above transition… → Inverse Recycle Addition: Below… → …
  • : a task must protect a compressor from surge
  • SKILL.md covers When to Use, Key Java Class:…, Energy & CO2 Savings… and Checklist for PEPR & Control…, plus 1 more section
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Neqsim Compressor Antisurge Recycle is an agent skill from equinor/neqsim. Anti-surge recycle and coordinated minimum-speed recycle control for centrifugal compressors in NeqSim: chart generation, anti-surge calculation, MinimumSpeedRecycleControllerStructure split-range control, fuel-gas, CO2 and cost savings. USE WHEN: a task must protect a compressor from surge, coordinate speed and recycle valve at minimum speed, stop uncoordinated recycle opening, or value power/CO2 savings from control optimization.

Its SKILL.md is about 2k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in DevOps & Cloud, covering Cloud cost optimization. The repository describes itself as: NeqSim is a library for calculation of fluid behavior, phase equilibrium and process simulation. The licence is Apache-2.0.

When your agent uses it

  • : a task must protect a compressor from surge
  • Coordinate speed and recycle valve at minimum speed
  • Stop uncoordinated recycle opening
  • Value power/CO2 savings from control optimization

Example prompts

  • “/neqsim-compressor-antisurge-recycle”

Requirements

  • Python 3

Workflow steps

7 steps, taken from the first numbered list in SKILL.md.

  1. Split-Range Output Transition: Pressure controller output is divided at a configurable transition (e.g., 75%).
  2. Speed Command Range: Above transition (75% to 105%), recycle addition is zero and compressor speed increases linearly from minimum (75%)…
  3. Inverse Recycle Addition: Below transition (0% to 75%), speed is held at minimum (75%) while an inverse recycle addition increases as…
  4. Latch on Entry: On lower-range entry, the previously selected recycle command is latched and pressure-derived recycle is added to that…
  5. High Selector Protection: Independent anti-surge and suction-pressure demands participate in a high selector ($R_{selected} =…
  6. Unwind before Speed Increase: On rising pressure, pressure-derived recycle unwinds to the latched baseline before speed increases.
  7. Dynamic Saturation Floor: Applies a lower output limit (latched * 74 / 100) to prevent integral windup.

What it can do on your machine

Read from SKILL.md and the folder at commit 69c5882. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are java and python).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Neqsim Compressor Antisurge Recycle loads about 2k tokens when it runs. Until then it costs about 118 tokens; SKILL.md has 571 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~118
When it runs · the whole SKILL.md, loaded when a task matches
~2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from equinor/neqsim at commit 69c5882, republished under its Apache-2.0 licence (© equinor). 571 words, ~2,031 tokens.

Download SKILL.mdSave it as .claude/skills/neqsim-compressor-antisurge-recycle/SKILL.md (or your agent's skills folder).
name
neqsim-compressor-antisurge-recycle
description
Anti-surge recycle and coordinated minimum-speed recycle control for centrifugal compressors in NeqSim: chart generation, anti-surge calculation, MinimumSpeedRecycleControllerStructure split-range control, fuel-gas, CO2 and cost savings. USE WHEN: a task must protect a compressor from surge, coordinate speed and recycle valve at minimum speed, stop uncoordinated recycle opening, or value power/CO2 savings from control optimization.
version
1.0.0
last_verified
2026-08-26
requires.java_packages
neqsim.process.equipment.compressor, neqsim.process.controllerdevice.structure, neqsim.process.controllerdevice

NeqSim Compressor Anti-Surge & Minimum-Speed Recycle Control Skill

This skill provides patterns for anti-surge protection, minimum-speed recycle coordination, and energy/CO2 emission evaluations for centrifugal compressor recycle loops.

When to Use

  • Coordinating compressor speed and recycle-valve opening at minimum speed (e.g. PEPR control optimization)
  • Preventing opposing speed demand and recycle-valve opening in compressor pressure loops
  • Sizing anti-surge recycle valves and modeling anti-surge controllers
  • Calculating power penalties, fuel gas consumption, CO2 emission reductions, and financial cost savings ($CO_2$ tax + fuel gas value) from eliminating unnecessary recycle opening
  • Running dynamic simulation of split-range pressure, speed, and recycle control using MinimumSpeedRecycleControllerStructure

Standards: API 617 / API 619, IEC 60534 / ISA-75, ISO 50001 / ISO 14064 (energy & carbon emissions).

Key Java Class: MinimumSpeedRecycleControllerStructure

neqsim.process.controllerdevice.structure.MinimumSpeedRecycleControllerStructure coordinates pressure control between compressor speed and recycle-valve opening when the compressor reaches its minimum speed.

Core Features
  1. Split-Range Output Transition: Pressure controller output is divided at a configurable transition (e.g., 75%).
  2. Speed Command Range: Above transition (75% to 105%), recycle addition is zero and compressor speed increases linearly from minimum (75%) to maximum (100%).
  3. Inverse Recycle Addition: Below transition (0% to 75%), speed is held at minimum (75%) while an inverse recycle addition increases as pressure output falls.
  4. Latch on Entry: On lower-range entry, the previously selected recycle command is latched and pressure-derived recycle is added to that baseline.
  5. High Selector Protection: Independent anti-surge and suction-pressure demands participate in a high selector ($R_{selected} = \max(R_{latch} + R_{add}, R_{AS}, R_{suction})$) so protection authority is never suppressed.
  6. Unwind before Speed Increase: On rising pressure, pressure-derived recycle unwinds to the latched baseline before speed increases.
  7. Dynamic Saturation Floor: Applies a lower output limit (latched * 74 / 100) to prevent integral windup.
Java Usage Pattern
java
import neqsim.process.controllerdevice.ControllerDeviceInterface;
import neqsim.process.controllerdevice.ControllerDeviceBaseClass;
import neqsim.process.controllerdevice.structure.MinimumSpeedRecycleControllerStructure;

// Create controllers
ControllerDeviceInterface pressureController = new ControllerDeviceBaseClass("PIC-0205A");
ControllerDeviceInterface antiSurgeController = new ControllerDeviceBaseClass("UIC-0231");
ControllerDeviceInterface suctionController = new ControllerDeviceBaseClass("PIC-0131");

// Instantiate structure: (pressureCtrl, antiSurgeCtrl, suctionCtrl, transitionPct, maxOutputPct, minSpeedPct, maxSpeedPct)
MinimumSpeedRecycleControllerStructure coordStructure = new MinimumSpeedRecycleControllerStructure(
    pressureController, antiSurgeController, suctionController, 75.0, 105.0, 75.0, 100.0
);

// In transient loop or update step:
coordStructure.update(pressureControllerOutput, antiSurgeOutput, suctionPressureOutput);

double speedCommand = coordStructure.getSpeedOutput();             // % speed
double recycleAddition = coordStructure.getRecycleAddition();       // % recycle addition
double recycleCommand = coordStructure.getLatchedRecycleOutput();   // % latched baseline

Energy & CO2 Savings Quantification Pattern

When recycle opens uncoordinatedly while the compressor is operating at minimum or elevated speed, extra gas is re-compressed without increasing net forward production.

Show full SKILL.md (261 more words)Show less
Governing Equations
  1. Compressor Shaft Power: $$P_{shaft} = \frac{\dot{m}{total} \cdot h{poly}}{\eta_p} = \frac{\dot{m}{net} \cdot h{poly}}{\eta_p (1 - \alpha_{recycle})}$$ where $\alpha_{recycle}$ is the recycle fraction ($0 \le \alpha < 1$).

  2. Power Penalty: $$\Delta P = P_{shaft}(\alpha) - P_{shaft}(0) = P_0 \left(\frac{\alpha}{1 - \alpha}\right)$$

  3. Fuel Gas & CO2 Emission Penalty: $$\Delta \dot{m}{fuel} = \frac{\Delta P}{\eta{driver} \cdot LHV} \quad (\text{kg/hr})$$ $$\Delta \dot{m}{CO2} = \Delta \dot{m}{fuel} \cdot e_{CO2} \quad (\text{kg } CO_2/\text{hr})$$

  4. Financial Cost Savings: $$\text{Annual Savings (MNOK/yr)} = \frac{\Delta m_{CO2, yr} \cdot \text{Tax}{CO2} + \Delta m{fuel, yr} \cdot \text{Value}_{gas}}{10^6}$$

Python / NeqSim Process Simulation Recipe
python
from neqsim import jneqsim

# 1. Fluid Creation
fluid = jneqsim.thermo.system.SystemSrkEos(311.15, 12.5) # 38 °C, 12.5 bara
fluid.addComponent("methane", 0.78)
fluid.addComponent("ethane", 0.085)
fluid.addComponent("propane", 0.045)
fluid.addComponent("CO2", 0.040)
fluid.setMixingRule("classic")

# 2. Recompressor Model
stream = jneqsim.process.equipment.stream.Stream("Suction Gas", fluid)
stream.setFlowRate(150000.0, "kg/hr") # 150 t/h net flow
stream.run()

comp = jneqsim.process.equipment.compressor.Compressor("Recompressor", stream)
comp.setOutletPressure(45.0, "bara")
comp.setPolytropicEfficiency(0.78)
comp.setUsePolytropicCalc(True)
comp.run()

base_power_kw = comp.getPower() / 1000.0

# 3. Recycle Sweep
for r_frac in [0.0, 0.10, 0.20, 0.30]:
    total_flow = 150000.0 / (1.0 - r_frac)
    stream.setFlowRate(total_flow, "kg/hr")
    stream.run()
    comp.run()
    p_kw = comp.getPower() / 1000.0
    extra_kw = p_kw - base_power_kw
    extra_co2_t_hr = (extra_kw / (0.34 * 48000.0)) * 3600.0 * 2.75 / 1000.0
    print(f"Recycle {r_frac*100:.0f}%: Power = {p_kw:.1f} kW (+{extra_kw:.1f} kW), Extra CO2 = +{extra_co2_t_hr:.2f} t/h")

Checklist for PEPR & Control Optimization Tasks

  • Verify fluid composition, suction temperature, and pressure basis
  • Confirm compressor polytropic efficiency, pressure ratio, and head
  • Model net forward flow vs recycle flow
  • Calculate shaft power, driver fuel gas rate, and CO2 emissions rate
  • Benchmark split-range mapping with MinimumSpeedRecycleControllerStructure
  • Quantify annual MWh, fuel gas tonnes, CO2 tonnes, and MNOK cost savings across operating hours
  • Generate dynamic time-series comparison plots (Pressure, Speed, Recycle, Power & CO2)

Fixed minimum flow without a numerical recycle loop

For steady-state screening with a prescribed minimum suction flow and a return cooled to the net-feed suction state, use neqsim.process.equipment.compressor.MinimumFlowSpill(name, netFeed). Set setMinimumInletFlow(value, unit) and configure getCompressor(). Add the assembly once to ProcessSystem; the net forward outlet is getOutletStream(), while getSpillStream() is an internal discharge spill. getSpillFlow(unit) uses suction conditions even for actual volume. Use getPower(unit) for gross compression and getSpillCoolingDuty(unit) for ideal heat rejection. The assembly delegates capacity constraints to its compressor. Disable internal AntiSurge flow modification. Use physical valve/cooler/recycle equipment for composition changes, condensation, finite cooler approach or dynamics. See compressor equipment guide and MinimumFlowSpillTest for the executed synthetic material/energy checks.

© equinor, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .github/skills/neqsim-compressor-antisurge-recycle of equinor/neqsim.

Open the folder on GitHubat commit 69c5882

Compare with similar skills

Neqsim Compressor Antisurge Recycle next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Neqsim Compressor Antisurge Recycle compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Neqsim Compressor Antisurge Recycle this skillequinor/neqsim156—~2kAutomated safety check: PassApache-2.0
Vercel Optimize Auditvercel-labs/agent-skills32k8 repos~4.3kAutomated safety check: PassNone
Cloud Cost Optimizationwshobson/agents40k14 repos~1.7kAutomated safety check: PassMIT
Kubernetes SpecialistJeffallan/claude-skills12k1 repos~2.1kAutomated safety check: PassMIT
Trigger.dev Cost Savings Auditpapermark/papermark9.2k—~1.3kAutomated safety check: PassCustom licence
Axiom Cost Controlopenclaw/clawhub9.5k—~1.7kAutomated safety check: PassMIT

Similar skills

  • Vercel Optimize Audit

    vercel-labs/agent-skills

    Official

    Runs a metrics-first audit of a deployed Vercel project, gating investigations on real signals to produce ranked, citation-backed cost and performance recommendations.

    32k GitHub starsUsed in 8 repos~4.3k tokens
    DevOps & CloudAuto-check passed
  • Cuts cloud spend across AWS, Azure, GCP and OCI with cost tagging, rightsizing, commitment and spot pricing models, and architecture changes.

    40k GitHub starsUsed in 14 repos~1.7k tokens
    DevOps & CloudAuto-check passed
  • Kubernetes Specialist

    Jeffallan/claude-skills

    Creates and checks Kubernetes manifests, Helm charts, RBAC and network policies, and helps debug pod problems, with kubectl checks and rollback steps.

    12k GitHub starsUsed in 1 repo~2.1k tokens
    DevOps & CloudAuto-check passed
  • Audits Trigger.dev tasks, schedules and run history for wasteful machine sizes, retries, polling and cron frequency to cut spend.

    9.2k GitHub stars~1.3k tokensUpdated 1 mo ago
    DevOps & CloudAuto-check passed
  • Axiom Cost Control

    openclaw/clawhub

    Finds unused data in Axiom by analyzing query patterns, then deploys a cost dashboard and ingest monitors to keep spend under the contract limit.

    9.5k GitHub stars~1.7k tokensUpdated yesterday
    DevOps & CloudAuto-check passed
  • Spotinfo

    alexei-led/spotinfo

    Query Spot/preemptible VM prices, savings and interruption risk across AWS, GCP and Azure with the spotinfo CLI.

    164 GitHub stars~1.8k tokensUpdated 5 days ago
    DevOps & CloudAuto-check passed

More from equinor/neqsim

All 11 skills in this repo
  • Guides NeqSim agents through acid-gas and contaminant removal with SimpleAmineAbsorber, SimpleAmineRegenerator, SystemKentEisenberg, SystemDesmukhMather, RateBasedAbsorber, MembraneSeparator, and…

    156 GitHub stars~4.2k tokensUpdated today
    Auto-check passed
  • Guides agents through ProcessLinkedMPC, ProcessLinearizer, ModelPredictiveController, VirtualFlowMeter, SoftSensor, and DataReconciliationEngine.

    156 GitHub stars~3.7k tokensUpdated today
    Auto-check passed
  • Neqsim Agent Handoff

    equinor/neqsim

    Agent-to-agent communication schema for NeqSim. An agent skill from equinor/neqsim.

    156 GitHub stars~2.2k tokensUpdated today
    Auto-check passed
  • Autonomous observe-hypothesize-predict-test-discriminate loop for operational anomalies.

    156 GitHub stars~2.9k tokensUpdated today
    Auto-check passed
  • Neqsim Ccs Hydrogen

    equinor/neqsim

    CO2 capture, transport, storage (CCS) and hydrogen systems patterns for NeqSim.

    156 GitHub stars~3.8k tokensUpdated today
    Auto-check passed
  • Neqsim Code Hygiene

    equinor/neqsim

    Fix formatting, Checkstyle, Spotless, and JavaDoc build failures in NeqSim Java code.

    156 GitHub stars~2.7k tokensUpdated yesterday
    Auto-check passed

Categories

Questions about Neqsim Compressor Antisurge Recycle

What does Neqsim Compressor Antisurge Recycle do?

Anti-surge recycle and coordinated minimum-speed recycle control for centrifugal compressors in NeqSim: chart generation, anti-surge calculation, MinimumSpeedRecycleControllerStructure split-range…. Neqsim Compressor Antisurge Recycle is an agent skill from equinor/neqsim. Anti-surge recycle and coordinated minimum-speed recycle control for centrifugal compressors in NeqSim: chart generation, anti-surge calculation, MinimumSpeedRecycleControllerStructure split-range control, fuel-gas, CO2 and cost savings.

When should I use Neqsim Compressor Antisurge Recycle?

Neqsim Compressor Antisurge Recycle fits situations like: : a task must protect a compressor from surge; coordinate speed and recycle valve at minimum speed; stop uncoordinated recycle opening; value power/CO2 savings from control optimization.

How do I install Neqsim Compressor Antisurge Recycle in Claude Code?

Run `npx skills add equinor/neqsim --skill neqsim-compressor-antisurge-recycle -a claude-code`. Or copy the skill folder (.github/skills/neqsim-compressor-antisurge-recycle in equinor/neqsim) into .claude/skills/neqsim-compressor-antisurge-recycle in your project. Claude Code loads it when a task matches its description.

How do I install Neqsim Compressor Antisurge Recycle in Codex?

Run `npx skills add equinor/neqsim --skill neqsim-compressor-antisurge-recycle -a codex`. Or copy the skill folder (.github/skills/neqsim-compressor-antisurge-recycle in equinor/neqsim) into .agents/skills/neqsim-compressor-antisurge-recycle in your project. Codex loads it when a task matches its description.

Can I use Neqsim Compressor Antisurge Recycle in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add equinor/neqsim --skill neqsim-compressor-antisurge-recycle -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/neqsim-compressor-antisurge-recycle, .gemini/skills/neqsim-compressor-antisurge-recycle, .github/skills/neqsim-compressor-antisurge-recycle and .opencode/skills/neqsim-compressor-antisurge-recycle in your project.

What does Neqsim Compressor Antisurge Recycle need to run?

SKILL.md names no scripts, command-line tools or credentials: Neqsim Compressor Antisurge Recycle is instructions for the agent only. Our summary lists: Python 3.

Does Neqsim Compressor Antisurge Recycle access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Neqsim Compressor Antisurge Recycle safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Neqsim Compressor Antisurge Recycle use?

Neqsim Compressor Antisurge Recycle is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Neqsim Compressor Antisurge Recycle use?

About 2k tokens (SKILL.md is roughly 8.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Neqsim Compressor Antisurge Recycle?

Skills that share tags, products or a category with Neqsim Compressor Antisurge Recycle: Vercel Optimize Audit (vercel-labs/agent-skills, 32k stars), Cloud Cost Optimization (wshobson/agents, 40k stars), Kubernetes Specialist (Jeffallan/claude-skills, 12k stars) and Trigger.dev Cost Savings Audit (papermark/papermark, 9.2k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Neqsim Compressor Antisurge Recycle?

equinor (a GitHub organization) maintains it in equinor/neqsim, which has 156 GitHub stars. The repository holds 12 skills in this directory. The repository was last updated on October 10, 2026.

Source: equinor/neqsim on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.