--- license: other tags: - fluidic-pinball - flow-tracking - reinforcement-learning - dreamerv3 - piv - water-channel configs: - config_name: flow-fields data_files: - split: train path: analysis/flow_fields/train-episode-*.parquet - split: evaluation path: analysis/flow_fields/eval-episode-*.parquet - split: no_control path: analysis/flow_fields/no-control-episode-*.parquet --- # Flow tracking in the wake of a fluidic pinball Water-channel recordings of a DreamerV3 controller learning to track spatially varying flow targets by rotating three cylinders. Flow feedback is provided by ART of PIV using two DIS configurations. ## Experiments | Recordings | Episodes | |---|---:| | Controller training | 20 | | Trained-policy evaluation | 10 | | No control | 10 | | Untrained-policy evaluation | 2 | | Incoming-flow calibration without cylinders | 1 | Training and evaluation episodes are configured for 60 seconds, with a target switch at 30 seconds. The first phase requests horizontal flow throughout the measurement area. The second requests zero velocity in the displayed upper half while retaining horizontal flow below. Cylinder actions are continuous within ±150 RPM. The circulation propellers run at −200 and +200 RPM. No-control recordings keep the cylinders in the water at zero RPM; the calibration recording has the cylinders removed. ## Recordings `recordings/` contains one losslessly compressed `tar.zst` archive per run. `recordings.json` gives episode indices, file counts, sizes, and SHA-256 checksums. Extract each archive into its own directory: ```sh mkdir training tar --zstd -xf recordings/training.tar.zst -C training ``` Each archive contains the run's recorded files: - `log.jsonl`: timestamped measurements, rewards, targets, commands, motor feedback, estimator selections, timing measurements, and media references. - `vector_fields/vision/image_pair/`: camera-rectified grayscale image pairs, shape `(752, 936, 2)`, saved as NumPy arrays. The last axis contains the two exposures, separated by 2.5 ms. - `vector_fields/vision/reference_flow/`: the 16 × 16 flow feedback used to calculate the tracking reward, after the causal three-field average. - `vector_fields/vision/flow/`: published flow arrays. - `.hydra/`: experiment configuration. - `logs/`, where present: learning metrics and saved controller state. NumPy filenames contain the run-local episode index and logging step. Use the corresponding timestamps and media references in `log.jsonl` to align images, flow fields, targets, and actions. Run-local episode indices start at zero. For the two trained-policy runs, add 1 or 6 to obtain evaluation episode numbers 1–5 or 6–10. For `no-control-03-10`, add 3 to obtain episode numbers 3–10. ## Units and coordinates The 768 × 720 estimator crop covers 7.88 × 7.38 cm. Displacement fields retain source-image pixels per pair. Multiplying either component by 0.041 converts it to m/s, using a common spatial scale of 0.1025 mm/pixel and the 2.5 ms interpulse interval. The horizontal target of −2 pixels per pair therefore corresponds to −0.082 m/s. Array rows increase downward. The displayed camera view reflects rows vertically, so array rows 8–15 are the displayed upper half of a 16 × 16 field. Reflect the vertical vector component when reflecting the view. The control reward is the negative spatial mean Euclidean error divided by the horizontal target magnitude. ## Analysis tables `analysis/flow_fields/` contains per-episode Parquet tables for the 20 training, 10 trained-policy, and 10 no-control episodes over the interval `[0, 60)` seconds. They retain both flow components, recorded time, pair sequence, selected estimator, reward, regional means, source-media references, and file hashes. `analysis/actions/` contains cylinder commands and selections. `analysis/metrics/` contains episode errors, rewards, regional velocity envelopes, and comparisons with no control. `analysis/calibration.json` gives the physical conversion; `analysis/configurations.parquet` records the experiment settings. The full run archives retain samples outside the analysis interval as recorded. The untrained-policy and incoming-flow-calibration recordings are provided in `recordings/`. ## Software and selector data - [FlowGames](https://github.com/antonioterpin/flowgames): experiment execution. - [FlowGym](https://github.com/antonioterpin/flowgym): flow estimation. - [ART of PIV water-channel dataset](https://huggingface.co/datasets/activefluidcontrol/art-of-piv-water-channel): selector-training image pairs and labels. Load the analysis-ready flow fields with the Hugging Face datasets library: ```python from datasets import load_dataset flows = load_dataset( "activefluidcontrol/fluidic-pinball-flow-tracking", "flow-fields", split="evaluation", ) ``` The Parquet `u` and `v` columns each contain 256 displacement values in row-major order; reshape to `(16, 16)`. `recordings.json` maps their `source_run` values to the corresponding run archives.