xiaohongshu
xiaohongshu
doublet
Validates code and provides physics reasoning for the 2-D injection-production doublet model using streamline methods. Use when modifying streamline geometry, transport calculations (hydrodynamic, chemical, thermal), breakthrough curves, or Green's function kernels. Also use when debugging simula...
Full skill instructions
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.
The model tracks transport in a 2-D potential flow field between an injector (+a, 0) and producer (-a, 0):
| Module | Transport Type | Solution Method |
|---|---|---|
| Hydrodynamic | Pure advection | Time-of-flight along streamlines |
| Chemical | Advection + capacity-limited reaction | Logistic traveling wave |
| Thermal | Advection + fluid-matrix exchange | Bessel-function Green's kernel |
Key state variables:
| Variable | Symbol | Meaning | Units |
|---|---|---|---|
| Take-off angle | β | Angle at which streamline leaves injector | rad |
| Time-of-flight | τ(β) | Travel time from injector to producer | s |
| Arc position | φ | Angle along circular streamline | rad |
| Concentration | C(φ,t) | Solute mass fraction | kg/kg |
| Capacity | S(φ,t) | Remaining reaction capacity | kg/kg |
| Fluid temperature | Tf(φ,t) | Fluid temperature along streamline | °C |
| Matrix temperature | Tm(φ,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.
Use this workflow when reviewing or planning code changes.
Determine which transport physics is affected:
The model uses multiple coordinate systems:
Verify transformations are applied correctly.
Breakthrough curves integrate over all streamlines:
C_prod(t) = (1/π) ∫_0^π C(β, t) dβ
Check that:
For thermal transport, the Bessel kernel G(τ, t) can overflow:
Summarize:
Use this workflow when explaining behavior, debugging, or proposing solutions.
| Module | Purpose | Key Functions |
|---|---|---|
doublet.py | Main model (streamlines, chemical, thermal) | Tf, Ctf, Cxf, Ttf, Txf, breakthrough |
streamlines.py | Bipolar coordinate streamlines | streamline_bipolar, streamtube_width |
diffusion.py | Green's kernel solver with diffusion | solve_kernel_capacity, cxfD, ctDf |
thermal.py | Thermal kernel (alternative impl.) | thermal_kernel_Tf_Tm_xvec_t |
thermal2.py | Optimized thermal solver | G_grid_efficient, run_breakthrough, Tprodf |
notebook_widgets.py | Interactive Jupyter visualizations | visualize_* functions |
These must always hold:
| Transport | Governing Equation | Solution Type |
|---|---|---|
| Hydrodynamic | ∂C/∂t + v·∇C = 0 | Method of characteristics |
| Chemical (no diffusion) | ∂C/∂t + v·∇C = -kCS | Logistic traveling wave |
| Chemical (with diffusion) | ∂C/∂t + v·∇C = D∇²C - kCS | Green's function convolution |
| Thermal | ∂Tf/∂t + v·∇Tf = -γ(Tf - Tm) | Bessel kernel (Eq. 47) |
| Matrix | ∂Tm/∂t = β(Tf - Tm) | Exponential convolution (Eq. 48) |
| Group | Definition | Physical Meaning |
|---|---|---|
| Retardation R | (C_inj + S_0)/C_inj | Front slowdown factor |
| Damköhler Da | k·τ | Reaction extent over travel time |
| Péclet Pe | v·L/D | Advection vs diffusion |
| β·τ | (exchange rate)·(travel time) | Matrix equilibration extent |
| γ·τ | (exchange rate)·(travel time) | Fluid cooling extent |
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience