doublet — doublet setup for AI agents doublet, co2injection, community, doublet setup for AI agents, ide skills, streamline model physics, advection-reaction-dispersion problems, bipolar coordinates in doublet, Claude Code, Cursor, Windsurf

v1.0.0
GitHub

About this Skill

Ideal for Physics-based Agents requiring advanced 2-D doublet modeling and potential flow field analysis. Doublet is a physics knowledge model using streamline methods to solve advection-reaction-dispersion problems in a potential flow field.

Features

Solves advection-reaction-dispersion problems along circular streamlines
Modifies streamline geometry calculations using bipolar coordinates
Changes transport solvers, including hydrodynamic, chemical, and thermal
Implements or modifies breakthrough curve integration
Works with potential flow fields

# Core Topics

ddempsey ddempsey
[0]
[0]
Updated: 3/8/2026

Agent Capability Analysis

The doublet skill by ddempsey is an open-source community AI agent skill for Claude Code and other IDE workflows, helping agents execute tasks with better context, repeatability, and domain-specific guidance. Optimized for doublet setup for AI agents, streamline model physics, advection-reaction-dispersion problems.

Ideal Agent Persona

Ideal for Physics-based Agents requiring advanced 2-D doublet modeling and potential flow field analysis.

Core Value

Empowers agents to solve advection-reaction-dispersion problems along circular streamlines using bipolar coordinates and streamline methods, facilitating transport solver integration for hydrodynamic, chemical, and thermal applications.

Capabilities Granted for doublet

Modifying streamline geometry calculations
Implementing breakthrough curve integration
Changing transport solvers for hydrodynamic and chemical applications

! Prerequisites & Limits

  • Requires knowledge of potential flow fields
  • Limited to 2-D doublet models
  • Streamline method dependency
Labs Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

doublet

Unlock the power of doublet with this AI agent skill, solving advection-reaction-dispersion problems and modifying streamline geometry calculations - learn...

SKILL.md
Readonly

Doublet Streamline Model Physics Knowledge

This skill provides physics knowledge for the 2-D doublet (injection-production well pair) model using streamline methods. The model solves advection-reaction-dispersion problems along circular streamlines in a potential flow field.

When This Skill Applies

  • Modifying streamline geometry calculations (bipolar coordinates)
  • Changing transport solvers (hydrodynamic, chemical, thermal)
  • Implementing or modifying breakthrough curve integration
  • Working with Green's function kernels for thermal transport
  • Debugging unexpected breakthrough behavior
  • Planning changes to physics-related code
  • Explaining why the model behaves a certain way

Core Physics Reference

The model tracks transport in a 2-D potential flow field between an injector (+a, 0) and producer (-a, 0):

ModuleTransport TypeSolution Method
HydrodynamicPure advectionTime-of-flight along streamlines
ChemicalAdvection + capacity-limited reactionLogistic traveling wave
ThermalAdvection + fluid-matrix exchangeBessel-function Green's kernel

Key state variables:

VariableSymbolMeaningUnits
Take-off angleβAngle at which streamline leaves injectorrad
Time-of-flightτ(β)Travel time from injector to producers
Arc positionφAngle along circular streamlinerad
ConcentrationC(φ,t)Solute mass fractionkg/kg
CapacityS(φ,t)Remaining reaction capacitykg/kg
Fluid temperatureTf(φ,t)Fluid temperature along streamline°C
Matrix temperatureTm(φ,t)Rock matrix temperature°C

For detailed equations, see EQUATIONS.md. For symbol definitions and units, see SYMBOLS.md. For derivation logic, see DERIVATIONS.md. For edge cases and sanity checks, see SANITY_CHECKS.md.


Workflow A: Physics Validation

Use this workflow when reviewing or planning code changes.

Step 1: Identify affected transport type

Determine which transport physics is affected:

  • Hydrodynamic: Streamline geometry, time-of-flight, velocity field
  • Chemical: Capacity-limited reaction, logistic traveling wave
  • Thermal: Fluid-matrix exchange, Bessel function kernel

Step 2: Check coordinate system consistency

The model uses multiple coordinate systems:

  • Cartesian (x, y) for plotting
  • Bipolar (ξ, β) for streamline parameterization
  • Polar about streamline center (R, φ) for local calculations

Verify transformations are applied correctly.

Step 3: Verify breakthrough integration

Breakthrough curves integrate over all streamlines:

C_prod(t) = (1/π) ∫_0^π C(β, t) dβ

Check that:

  • Integration weights are correct (trapezoidal or custom)
  • β limits span [0, π] (or arrived streamlines only)
  • Singularities at β → 0, π are handled

Step 4: Check Green's function stability (thermal)

For thermal transport, the Bessel kernel G(τ, t) can overflow:

  • Verify exponent recentering is applied
  • Check that i1e (scaled Bessel I1) is used instead of i1
  • Verify prefix integrals use cumulative_trapezoid

Step 5: Report findings

Summarize:

  • Which transport type is affected
  • Any coordinate transformation issues
  • Any integration boundary issues
  • Any numerical stability concerns
  • Recommendations for correction

Workflow B: Physics Reasoning

Use this workflow when explaining behavior, debugging, or proposing solutions.

For explaining physics concepts:

  1. Identify the relevant equations and parameters
  2. State the physical interpretation
  3. Explain cause-and-effect relationships
  4. Use the derivation steps from DERIVATIONS.md to show connections

For debugging simulation issues:

  1. Identify which transport type shows unexpected behavior
  2. Check if the issue relates to:
    • Breakthrough timing (τ calculation)
    • Front retardation (reaction capacity)
    • Thermal lag (fluid-matrix exchange rates)
  3. Trace through the analytical solution
  4. Check edge cases against SANITY_CHECKS.md

For proposing physics-consistent changes:

  1. Identify which equations are affected
  2. Show how new terms integrate into the transport equations
  3. Demonstrate that mass/energy balance is preserved
  4. Identify any new sanity checks needed

Quick Reference: Module Structure

ModulePurposeKey Functions
doublet.pyMain model (streamlines, chemical, thermal)Tf, Ctf, Cxf, Ttf, Txf, breakthrough
streamlines.pyBipolar coordinate streamlinesstreamline_bipolar, streamtube_width
diffusion.pyGreen's kernel solver with diffusionsolve_kernel_capacity, cxfD, ctDf
thermal.pyThermal kernel (alternative impl.)thermal_kernel_Tf_Tm_xvec_t
thermal2.pyOptimized thermal solverG_grid_efficient, run_breakthrough, Tprodf
notebook_widgets.pyInteractive Jupyter visualizationsvisualize_* functions

Key Physical Constraints

These must always hold:

  1. Streamline geometry: Streamlines are circular arcs through (±a, 0)
  2. Travel time bounds: T(β=0) = 4πna²/(3Q) is minimum arrival time
  3. Velocity singularity: v → ∞ at wells (handled by coordinate transformation)
  4. Conservation: Integrated flux across all streamlines equals Q
  5. Retardation: Chemical front travels at speed v·C_inj/(C_inj + S_0)
  6. Thermal equilibrium: As t → ∞, Tf → Tm → T_inj (behind the front)

Transport Type Classification

TransportGoverning EquationSolution Type
Hydrodynamic∂C/∂t + v·∇C = 0Method of characteristics
Chemical (no diffusion)∂C/∂t + v·∇C = -kCSLogistic traveling wave
Chemical (with diffusion)∂C/∂t + v·∇C = D∇²C - kCSGreen's function convolution
Thermal∂Tf/∂t + v·∇Tf = -γ(Tf - Tm)Bessel kernel (Eq. 47)
Matrix∂Tm/∂t = β(Tf - Tm)Exponential convolution (Eq. 48)

Dimensionless Groups

GroupDefinitionPhysical Meaning
Retardation R(C_inj + S_0)/C_injFront slowdown factor
Damköhler Dak·τReaction extent over travel time
Péclet Pev·L/DAdvection vs diffusion
β·τ(exchange rate)·(travel time)Matrix equilibration extent
γ·τ(exchange rate)·(travel time)Fluid cooling extent

FAQ & Installation Steps

These questions and steps mirror the structured data on this page for better search understanding.

? Frequently Asked Questions

What is doublet?

Ideal for Physics-based Agents requiring advanced 2-D doublet modeling and potential flow field analysis. Doublet is a physics knowledge model using streamline methods to solve advection-reaction-dispersion problems in a potential flow field.

How do I install doublet?

Run the command: npx killer-skills add ddempsey/co2injection/doublet. It works with Cursor, Windsurf, VS Code, Claude Code, and 19+ other IDEs.

What are the use cases for doublet?

Key use cases include: Modifying streamline geometry calculations, Implementing breakthrough curve integration, Changing transport solvers for hydrodynamic and chemical applications.

Which IDEs are compatible with doublet?

This skill is compatible with Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer. Use the Killer-Skills CLI for universal one-command installation.

Are there any limitations for doublet?

Requires knowledge of potential flow fields. Limited to 2-D doublet models. Streamline method dependency.

How To Install

  1. 1. Open your terminal

    Open the terminal or command line in your project directory.

  2. 2. Run the install command

    Run: npx killer-skills add ddempsey/co2injection/doublet. The CLI will automatically detect your IDE or AI agent and configure the skill.

  3. 3. Start using the skill

    The skill is now active. Your AI agent can use doublet immediately in the current project.

Related Skills

Looking for an alternative to doublet or another community skill for your workflow? Explore these related open-source skills.

View All

widget-generator

Logo of f
f

f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.

149.6k
0
AI

flags

Logo of vercel
vercel

flags is a Next.js feature management skill that enables developers to efficiently add or modify framework feature flags, streamlining React application development.

138.4k
0
Browser

zustand

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI

data-fetching

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI