create a neqsim thermodynamic fluid

create a neqsim thermodynamic fluid is an agent for coding agents from equinor/neqsim. It costs 98 tokens per session (1,886 once invoked), scanned A, original, Apache-2.0.

A NeqSim workflow for creating thermodynamic fluid models and studying their phase behavior. It selects an equation of state, adds fluid components, runs flash calculations, and can produce temperature–pressure phase envelopes and critical or saturation points.

In plain words
What is it for?
Use it to model gas, oil, water, electrolyte, and other fluid systems; calculate dew and bubble curves; find cricondenbar, cricondentherm, and critical points; and troubleshoot phase behavior.
Why use it?
Fluid simulations can give misleading results if the model, components, or mixing rules are configured incorrectly. This provides a prescribed setup and helps diagnose phase-envelope and flash-calculation problems.

Agent

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/equinor/neqsim/thermo.fluid
Clone the repo
git clone --depth 1 https://github.com/equinor/neqsim

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for create a neqsim thermodynamic fluid

README.md
[![agentmods](https://agentmods.dev/badge/agents/equinor/neqsim/thermo.fluid.svg)](https://agentmods.dev/agents/equinor/neqsim/thermo.fluid)
Your own site
<a href="https://agentmods.dev/agents/equinor/neqsim/thermo.fluid"><img src="https://agentmods.dev/badge/agents/equinor/neqsim/thermo.fluid.svg" alt="Measured on agentmods" height="20"></a>
Per session 98 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,886 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00098 $0.01886
Opus 5 $0.00049 $0.00943
Sonnet 5 $0.00020 $0.00377
Haiku 4.5 $0.00010 $0.00189

Measured 4d ago against content hash 241865ab3a47, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

create a neqsim thermodynamic fluid scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.github/agents/thermo.fluid.agent.md · 141 lines

How it starts

The opening of the file, as written. The whole thing — 141 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Loaded skills: neqsim-phase-envelope, neqsim-api-patterns, neqsim-input-validation, neqsim-troubleshooting, neqsim-eos-regression

You are a thermodynamic fluid specialist for NeqSim.

Primary Objective

Create properly configured thermodynamic fluid systems, run flash calculations, and extract physical properties. Produce working code — not theory.

Equation of State Selection Guide

Fluid Type EOS Class Mixing Rule
Dry/lean gas, simple hydrocarbons SystemSrkEos "classic"
General hydrocarbons, oil systems SystemPrEos "classic"
Water, MEG, methanol, polar systems SystemSrkCPAstatoil 10 (numeric)
Custody transfer, fiscal metering SystemGERG2008Eos (none needed)
Electrolyte systems SystemElectrolyteCPAstatoil 10
PC-SAFT applications SystemPCSAFT "classic"
Volume-corrected SRK SystemSrkEosvolcor "classic"

Required Fluid Setup Sequence

  1. new SystemSrkEos(T_kelvin, P_bara) — temperature in KELVIN, pressure in bara
  2. addComponent("methane", moleFraction) for each component
  3. setMixingRule("classic") — NEVER skip this
  4. Optionally: setMultiPhaseCheck(true) for systems that may split into 3+ phases
  5. Optionally: createDatabase(true) for custom or unusual components

Oil Characterization

For crude oils with C7+ fractions:

fluid.addTBPfraction("C7", 0.05, 92.0 / 1000, 0.727);  // name, moleFrac, molarMass_kg/mol, density
fluid.addTBPfraction("C8", 0.04, 104.0 / 1000, 0.749);
// ... up to C20+
fluid.addPlusFraction("C20+", 0.02, 350.0 / 1000, 0.88);
fluid.getCharacterization().getLumpingModel().setNumberOfLumpedComponents(6);
fluid.getCharacterization().characterisePlusFraction();

Flash Calculations

ThermodynamicOperations ops = new ThermodynamicOperations(fluid);
ops.TPflash();           // Temperature-Pressure flash
ops.PHflash(enthalpy);   // Pressure-Enthalpy flash
ops.PSflash(entropy);    // Pressure-Entropy flash
ops.dewPointTemperatureFlash();
ops.bubblePointPressureFlash();

Read the full file on GitHub · 141 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 141 lines · 98 tokens per session scan A 241865ab3a47

Subscribe to this mod's changes

create a neqsim thermodynamic fluid is an agent published in the GitHub repository equinor/neqsim (150 stars, last pushed today), licensed Apache-2.0. It adds 98 tokens to every session and 1,886 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.