thermo-eos

Calculate thermodynamic properties and phase equilibrium using cubic equations of state.

Updated Mar 5, 2026
One-click install
npx skills add https://github.com/jpfielding/claude.pnge --skill thermo-eos
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: thermo-eos
Source: https://github.com/jpfielding/claude.pnge/tree/main/skills/thermo-eos
Command: npx skills add https://github.com/jpfielding/claude.pnge --skill thermo-eos

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides computational tools for understanding the thermodynamic behavior of petroleum fluids, crucial for reservoir engineering and process design.

Core Features & Use Cases

  • Equation of State Calculations: Implements common cubic equations of state (van der Waals, Peng-Robinson, Soave-Redlich-Kwong) to predict fluid properties.
  • Phase Equilibrium: Calculates vapor-liquid equilibrium (VLE) conditions, including bubble and dew points, and fugacity coefficients.
  • Use Case: Determine the phase behavior of a natural gas mixture at reservoir conditions to estimate liquid dropout or gas shrinkage.

Quick Start

Calculate the compressibility factor Z for methane at 300 K and 50 bar using the Peng-Robinson equation of state.

Frequently Asked Questions about thermo-eos

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

FAQPage Schema
How do I calculate compressibility factor Z using the Peng-Robinson equation of state?

To calculate the compressibility factor Z using the Peng-Robinson equation of state, input the fluid temperature, pressure, and critical properties. The calculation solves the cubic EOS to return the Z factor for pure fluids or mixtures.

What is the best way to predict vapor-liquid equilibrium for petroleum fluids?

Predicting vapor-liquid equilibrium for petroleum fluids involves calculating bubble and dew points using fugacity coefficients. This approach applies VLE flash algorithms to determine phase behavior and phase compositions under reservoir conditions.

Can I use cubic equations of state for reservoir fluid characterization of natural gas mixtures?

Yes, cubic equations of state like Soave-Redlich-Kwong and van der Waals are used for reservoir fluid characterization. They predict phase behavior of natural gas mixtures to estimate liquid dropout and gas shrinkage at specific conditions.

How do you calculate fugacity coefficients in phase equilibrium simulations?

Calculating fugacity coefficients in phase equilibrium simulations requires applying a cubic equation of state. The coefficients are derived from the pressure, temperature, and mixture composition to establish VLE conditions.

What are the limitations of using van der Waals versus Peng-Robinson for phase behavior prediction?

The limitations of van der Waals versus Peng-Robinson for phase behavior prediction involve accuracy. Peng-Robinson generally provides more accurate vapor pressure and density predictions for petroleum fluids than the simpler van der Waals equation.