neqsim-fluid-quality-check

Validates fluid composition mole fractions and flags water, CO2, and H2S before NeqSim simulation.

4|2|Updated May 31, 2026
One-click install
npx skills add https://github.com/equinor/neqsim-community-skills --skill neqsim-fluid-quality-check-equinor
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: neqsim-fluid-quality-check
Source: https://github.com/equinor/neqsim-community-skills/tree/main/skills/pvt/fluid-quality-check
Command: npx skills add https://github.com/equinor/neqsim-community-skills --skill neqsim-fluid-quality-check-equinor

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Fluid compositions with mole fractions that do not sum to 1.0, negative values, or missing required components silently corrupt downstream NeqSim simulations and examples. This Skill screens public composition tables for these data-quality issues before any thermodynamic calculation runs. ## Core Features & Use Cases - Mole Fraction Validation: Checks that composition fractions are finite, non-negative, and sum to 1.0 within a configurable tolerance. - Component Screening: Verifies required components are present and flags water, CO2, and H2S with alias-aware name matching. - Structured Results: Returns a FluidQualityResult with total fraction, warnings, flagged components, and an is_usable gate for downstream workflows. - Use Case: Before running a TP flash on a natural gas mixture in a notebook, pass the composition dictionary to FluidQualityChecker to catch a percent-versus-fraction scaling error or a missing methane entry. ## Quick Start Ask the agent to check whether my gas composition of methane 0.82, ethane 0.08, propane 0.04, CO2 0.03, and water 0.03 is valid for a NeqSim simulation.

Frequently Asked Questions about neqsim-fluid-quality-check

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I check if a gas composition is valid before a NeqSim simulation?▼

Pass the composition as a dictionary of component names to mole fractions into FluidQualityChecker and call check(). The result reports the total fraction, negative components, missing required components, and an is_usable flag indicating whether the composition is safe to simulate.

How to validate that mole fractions sum to 1 in Python?▼

FluidQualityChecker sums all fractions and compares the total against 1.0 within a configurable tolerance, defaulting to 1e-6. If the sum falls outside the tolerance, a warning is emitted and is_usable becomes false.

Does the fluid quality checker require the neqsim package?▼

No, the checker runs with no external dependencies and works without neqsim installed. If the neqsim package is available, the result records that fact via neqsim_available so an agent can proceed to NeqSim-specific setup.

Why is my composition total reported as 100 instead of 1?▼

Percent values were used as mole fractions instead of fractional values. Divide each component value by 100 before running the check so the total sums to 1.0.

What are the limitations of composition quality screening?▼

The checker performs data-quality screening only and does not select equations of state, characterize plus fractions, regress binary interaction parameters, or validate laboratory procedures. Water, CO2, and H2S flags are informational and are not compliance checks or replacements for validated PVT analysis.