co2lpm

Validates physics consistency and mass balance in the 0-D CO2 lumped-parameter model.

Updated Aug 6, 2025
One-click install
npx skills add https://github.com/ddempsey/co2injection --skill co2lpm
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: co2lpm
Source: https://github.com/ddempsey/co2injection/tree/main/.claude/skills/co2lpm
Command: npx skills add https://github.com/ddempsey/co2injection --skill co2lpm

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Validates physics reasoning and code correctness for the 0-D CO2 lumped-parameter model used in geothermal reservoir simulations, helping engineers verify equations, units, and mass balance during development.

Core Features & Use Cases

  • Physics validation: Check dimension consistency, steady-state behavior, and edge-case sanity checks for the LPM.
  • Code reasoning support: Document derivations, assumptions, and how ODE/DDE solutions behave under delays and pressure coupling.
  • Debugging workflows: Provide structured explanations and debugging workflows for scenarios like pressure reversal and degassing.
  • Use Case: When modifying ODE solvers, parameter classes, or emissions calculations, run through the physics checks to ensure robust implementation.

Quick Start

Explain how a proposed change to beta or gamma coefficients would impact C_inf and the mass balance in the co2lpm model.

Frequently Asked Questions about co2lpm

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

FAQPage Schema
How do I validate mass balance in a 0-D CO2 lumped-parameter model?

Validating mass balance in a 0-D CO2 lumped-parameter model requires dimensional analysis and steady-state checks to ensure parameter classes and concentration dynamics conserve mass. The Skill provides structured workflows for verifying equations and units during development.

What is a lumped-parameter model for geothermal reservoir simulation?

A lumped-parameter model is a 0-D simplified representation used in geothermal reservoir modeling to calculate concentration dynamics and emissions. It uses ordinary differential equations to approximate spatially averaged physics rather than full 3D distributions.

Why does my CO2 degassing simulation fail during pressure reversal?

Pressure reversal and degassing failures in CO2 simulations often stem from inconsistent beta or gamma coefficients impacting the mass balance. The Skill helps debug these scenarios by checking delay differential equations and pressure coupling behavior.

Can I check steady-state behavior with and without delay in differential equations?

Checking steady-state behavior with and without delay is supported for ordinary and delay differential equations. The Skill performs edge-case sanity checks to verify how pressure coupling and solubility parameters behave under steady-state conditions.

How do proposed changes to beta or gamma coefficients impact C_inf and mass balance?

Changes to beta or gamma coefficients directly impact C_inf and mass balance by altering the concentration dynamics in the lumped-parameter model. The Skill traces these modifications through ODE solvers to verify physics consistency.

What is the best way to debug ODE solvers for geothermal reservoir modeling?

Debugging ODE solvers for geothermal reservoir modeling is best handled through physics validation and dimensional consistency checks. The Skill provides structured explanations for simulation behavior and edge-case sanity checks to ensure robust implementation.