# churroc/reservoir-research architecture

> Architecture diagram of the GitHub repository churroc/reservoir-research, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-24). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/churroc/reservoir-research
- Repository: https://github.com/churroc/reservoir-research

## Overview

This repository is a research workspace for physical reservoir computing, alongside a small spring-lattice simulation and plotting package. A representative workflow drives a spring-mass chain with a Hénon signal, records reservoir states, and evaluates prediction with a readout; sweeps and design-map experiments compare physical parameters and disorder. The package exposes lattice construction, simulation, and plotting as separate capabilities. The README is empty, and experiment notebooks and several modules were not sampled, so links beyond the shown calls and indexed references are omitted.

Main entry points: [`src/experiments/26_10_12_spring_henon_Danny_26_10_06/spring_henon.py`](https://github.com/churroc/reservoir-research/blob/main/src/experiments/26_10_12_spring_henon_Danny_26_10_06/spring_henon.py) (Hénon Model), [`src/experiments/26_10_12_spring_henon_Danny_26_10_06/spring_henon_sweep.py`](https://github.com/churroc/reservoir-research/blob/main/src/experiments/26_10_12_spring_henon_Danny_26_10_06/spring_henon_sweep.py) (Parameter Sweep), [`src/experiments/26_10_12_spring_henon_Danny_26_10_06/spring_henon_noprestress.py`](https://github.com/churroc/reservoir-research/blob/main/src/experiments/26_10_12_spring_henon_Danny_26_10_06/spring_henon_noprestress.py) (No-Prestress Ablation), [`src/experiments/26_10_12_spring_henon_Danny_26_10_06/spring_henon_equaltension.py`](https://github.com/churroc/reservoir-research/blob/main/src/experiments/26_10_12_spring_henon_Danny_26_10_06/spring_henon_equaltension.py) (Equal-Tension Control)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experiment["Hénon Experiments"]
  node_henon_model["Hénon Model<br/>[spring_henon.py]"]
  node_spring_dynamics["Spring Dynamics<br/>[spring_henon.py]"]
  node_reservoir_states["Reservoir States<br/>[spring_henon.py]"]
  node_readout["Prediction Readout<br/>[spring_henon.py]"]
end

subgraph group_engine["Spring Engine"]
  node_lattice_builder["Lattice Builder<br/>[lattice.py]"]
  node_physics_engine["Physics Engine<br/>[physics.py]"]
  node_plotting["Plotting Tools<br/>[plotting.py]"]
end

subgraph group_analysis["Research Analysis"]
  node_sweep["Parameter Sweep"]
  node_design_map["Design Map<br/>[design_map.py]"]
  node_winner_check["Winner Check<br/>[check_bo_winner.py]"]
  node_seed_check["Seed Check<br/>[check_seed42.py]"]
  node_no_prestress["No-Prestress Ablation"]
  node_equal_tension["Equal-Tension Control"]
end

node_researcher(("Researcher"))

node_researcher -->|"runs experiment"| node_henon_model
node_henon_model -->|"drives simulation"| node_spring_dynamics
node_spring_dynamics -->|"records states"| node_reservoir_states
node_reservoir_states -->|"fits predictions"| node_readout
node_sweep -->|"calls model"| node_henon_model
node_sweep -->|"evaluates states"| node_reservoir_states
node_sweep -->|"scores predictions"| node_readout
node_design_map -->|"references model"| node_henon_model
node_winner_check -->|"imports model"| node_henon_model
node_seed_check -->|"uses model"| node_henon_model
node_no_prestress -->|"runs ablation"| node_henon_model
node_no_prestress -->|"uses metrics"| node_sweep
node_equal_tension -->|"runs control"| node_henon_model
node_equal_tension -->|"uses metrics"| node_sweep
node_physics_engine -->|"computes forces"| node_physics_engine

click node_henon_model "https://github.com/churroc/reservoir-research/blob/main/src/experiments/26_10_12_spring_henon_Danny_26_10_06/spring_henon.py"
click node_spring_dynamics "https://github.com/churroc/reservoir-research/blob/main/src/experiments/26_10_12_spring_henon_Danny_26_10_06/spring_henon.py"
click node_reservoir_states "https://github.com/churroc/reservoir-research/blob/main/src/experiments/26_10_12_spring_henon_Danny_26_10_06/spring_henon.py"
click node_readout "https://github.com/churroc/reservoir-research/blob/main/src/experiments/26_10_12_spring_henon_Danny_26_10_06/spring_henon.py"
click node_sweep "https://github.com/churroc/reservoir-research/blob/main/src/experiments/26_10_12_spring_henon_Danny_26_10_06/spring_henon_sweep.py"
click node_design_map "https://github.com/churroc/reservoir-research/blob/main/src/experiments/26_10_12_spring_henon_Danny_26_10_06/design_map.py"
click node_winner_check "https://github.com/churroc/reservoir-research/blob/main/src/experiments/26_10_12_spring_henon_Danny_26_10_06/check_bo_winner.py"
click node_seed_check "https://github.com/churroc/reservoir-research/blob/main/src/experiments/26_10_12_spring_henon_Danny_26_10_06/check_seed42.py"
click node_no_prestress "https://github.com/churroc/reservoir-research/blob/main/src/experiments/26_10_12_spring_henon_Danny_26_10_06/spring_henon_noprestress.py"
click node_equal_tension "https://github.com/churroc/reservoir-research/blob/main/src/experiments/26_10_12_spring_henon_Danny_26_10_06/spring_henon_equaltension.py"
click node_lattice_builder "https://github.com/churroc/reservoir-research/blob/main/src/spring_rc/v1/lattice.py"
click node_physics_engine "https://github.com/churroc/reservoir-research/blob/main/src/spring_rc/v1/physics.py"
click node_plotting "https://github.com/churroc/reservoir-research/blob/main/src/spring_rc/v1/plotting.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_henon_model,node_spring_dynamics,node_reservoir_states,node_readout toneBlue
class node_lattice_builder,node_physics_engine,node_plotting toneAmber
class node_sweep,node_design_map,node_winner_check,node_seed_check,node_no_prestress,node_equal_tension toneMint
class node_researcher toneIndigo
```

## Components

### Hénon Experiments

- [Hénon Model](https://github.com/churroc/reservoir-research/blob/main/src/experiments/26_10_12_spring_henon_Danny_26_10_06/spring_henon.py): `src/experiments/26_10_12_spring_henon_Danny_26_10_06/spring_henon.py`
- [Spring Dynamics](https://github.com/churroc/reservoir-research/blob/main/src/experiments/26_10_12_spring_henon_Danny_26_10_06/spring_henon.py): `src/experiments/26_10_12_spring_henon_Danny_26_10_06/spring_henon.py`
- [Reservoir States](https://github.com/churroc/reservoir-research/blob/main/src/experiments/26_10_12_spring_henon_Danny_26_10_06/spring_henon.py): `src/experiments/26_10_12_spring_henon_Danny_26_10_06/spring_henon.py`
- [Prediction Readout](https://github.com/churroc/reservoir-research/blob/main/src/experiments/26_10_12_spring_henon_Danny_26_10_06/spring_henon.py): `src/experiments/26_10_12_spring_henon_Danny_26_10_06/spring_henon.py`

### Spring Engine

- [Lattice Builder](https://github.com/churroc/reservoir-research/blob/main/src/spring_rc/v1/lattice.py): `src/spring_rc/v1/lattice.py`
- [Physics Engine](https://github.com/churroc/reservoir-research/blob/main/src/spring_rc/v1/physics.py): `src/spring_rc/v1/physics.py`
- [Plotting Tools](https://github.com/churroc/reservoir-research/blob/main/src/spring_rc/v1/plotting.py): `src/spring_rc/v1/plotting.py`

### Research Analysis

- [Parameter Sweep](https://github.com/churroc/reservoir-research/blob/main/src/experiments/26_10_12_spring_henon_Danny_26_10_06/spring_henon_sweep.py): `src/experiments/26_10_12_spring_henon_Danny_26_10_06/spring_henon_sweep.py`
- [Design Map](https://github.com/churroc/reservoir-research/blob/main/src/experiments/26_10_12_spring_henon_Danny_26_10_06/design_map.py): `src/experiments/26_10_12_spring_henon_Danny_26_10_06/design_map.py`
- [Winner Check](https://github.com/churroc/reservoir-research/blob/main/src/experiments/26_10_12_spring_henon_Danny_26_10_06/check_bo_winner.py): `src/experiments/26_10_12_spring_henon_Danny_26_10_06/check_bo_winner.py`
- [Seed Check](https://github.com/churroc/reservoir-research/blob/main/src/experiments/26_10_12_spring_henon_Danny_26_10_06/check_seed42.py): `src/experiments/26_10_12_spring_henon_Danny_26_10_06/check_seed42.py`
- [No-Prestress Ablation](https://github.com/churroc/reservoir-research/blob/main/src/experiments/26_10_12_spring_henon_Danny_26_10_06/spring_henon_noprestress.py): `src/experiments/26_10_12_spring_henon_Danny_26_10_06/spring_henon_noprestress.py`
- [Equal-Tension Control](https://github.com/churroc/reservoir-research/blob/main/src/experiments/26_10_12_spring_henon_Danny_26_10_06/spring_henon_equaltension.py): `src/experiments/26_10_12_spring_henon_Danny_26_10_06/spring_henon_equaltension.py`

### Other components

- **Researcher**

## Connections

- Researcher → Hénon Model: runs experiment (evidence: `src/experiments/26_10_12_spring_henon_Danny_26_10_06/spring_henon.py`)
- Hénon Model → Spring Dynamics: drives simulation (evidence: `src/experiments/26_10_12_spring_henon_Danny_26_10_06/spring_henon.py`)
- Spring Dynamics → Reservoir States: records states (evidence: `src/experiments/26_10_12_spring_henon_Danny_26_10_06/spring_henon.py`)
- Reservoir States → Prediction Readout: fits predictions (evidence: `src/experiments/26_10_12_spring_henon_Danny_26_10_06/spring_henon.py`)
- Parameter Sweep → Hénon Model: calls model (evidence: `src/experiments/26_10_12_spring_henon_Danny_26_10_06/spring_henon_sweep.py`)
- Parameter Sweep → Reservoir States: evaluates states (evidence: `src/experiments/26_10_12_spring_henon_Danny_26_10_06/spring_henon_sweep.py`)
- Parameter Sweep → Prediction Readout: scores predictions (evidence: `src/experiments/26_10_12_spring_henon_Danny_26_10_06/spring_henon_sweep.py`)
- Design Map → Hénon Model: references model (evidence: `src/experiments/26_10_12_spring_henon_Danny_26_10_06/design_map.py`)
- Winner Check → Hénon Model: imports model (evidence: `src/experiments/26_10_12_spring_henon_Danny_26_10_06/check_bo_winner.py`)
- Seed Check → Hénon Model: uses model (evidence: `src/experiments/26_10_12_spring_henon_Danny_26_10_06/check_seed42.py`)
- No-Prestress Ablation → Hénon Model: runs ablation (evidence: `src/experiments/26_10_12_spring_henon_Danny_26_10_06/spring_henon_noprestress.py`)
- No-Prestress Ablation → Parameter Sweep: uses metrics (evidence: `src/experiments/26_10_12_spring_henon_Danny_26_10_06/spring_henon_noprestress.py`)
- Equal-Tension Control → Hénon Model: runs control (evidence: `src/experiments/26_10_12_spring_henon_Danny_26_10_06/spring_henon_equaltension.py`)
- Equal-Tension Control → Parameter Sweep: uses metrics (evidence: `src/experiments/26_10_12_spring_henon_Danny_26_10_06/spring_henon_equaltension.py`)
- Physics Engine → Physics Engine: computes forces (evidence: `src/spring_rc/v1/physics.py`)
