mass-energy-balance

Perform material and energy balance calculations for chemical and petroleum engineering.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill automates complex material and energy balance calculations, including reaction stoichiometry, combustion analysis, and phase equilibrium, essential for chemical and petroleum engineering coursework and applications.

Core Features & Use Cases

  • Material Balances: Handles steady-state and transient balances for single/multi-component systems, including recycle streams.
  • Energy Balances: Calculates sensible and latent heat duties, heat exchanger performance, and reactive energy balances.
  • Combustion & Flash Calculations: Determines theoretical air, flue gas composition, and performs multi-component vapor-liquid equilibrium (VLE) flash calculations.
  • Use Case: A petroleum engineer needs to calculate the heat duty required for a heater-treater to separate produced water and oil at specific temperatures. This Skill can provide the necessary calculations based on fluid properties and flow rates.

Quick Start

Use the mass-energy-balance skill to calculate the material balance for a two-phase separator with a feed of 100 mol/s, composed of 70% methane and 30% ethane, splitting 95% of methane and 40% of ethane to the overhead.

Frequently Asked Questions about mass-energy-balance

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

FAQPage Schema
How do I calculate material and energy balances for a chemical engineering system?

Material and energy balances for chemical and petroleum engineering systems are calculated by applying stoichiometry, steady-state or transient mass conservation, and heat of reaction data to quantify flow rates and heat duties.

How do I perform a multi-component flash calculation for vapor-liquid equilibrium?

Multi-component flash calculations for vapor-liquid equilibrium are performed by feeding component compositions and flow rates into a VLE solver to determine phase splits and equilibrium compositions for separator design.

Can I calculate combustion flue gas composition and theoretical air requirements?

Combustion calculations determine theoretical air requirements and flue gas composition by applying reaction stoichiometry to the fuel mixture to quantify the exact oxygen and product gas volumes.

What's the best way to calculate heat duty for a separator treating produced oil and water?

Heat duty for a separator treating produced oil and water is calculated by performing an energy balance that accounts for sensible and latent heat changes based on specific fluid properties and flow rates.

Does this approach handle transient balances with recycle streams?

Transient balances with recycle streams are handled by solving time-dependent mass conservation equations alongside steady-state material balances to track accumulation and component flow rates.

Do I need thermodynamic data tables to calculate heat of reaction?

Thermodynamic data tables are required to calculate heat of reaction, as accurate reactive energy balances depend on referencing standard enthalpy values for the specific chemical components involved.