Skip to content
Active Fluid Control
Cylinder wake in the Active Fluid Control water channel

Active fluid control in the physical world.

An open frontier in physical intelligence.

Active control of fluid flows remains one of the most compelling open frontiers in physical intelligence: it sits at the intersection of infinite-dimensional dynamical systems, partial observation, learning, control, and real-world experimentation.

We train reinforcement-learning agents directly on physical experiments — real data, not CFD. The flows we care about are hard to simulate accurately and efficiently, and rich, vision-based perception lets agents find high-performance control strategies in minutes of real-world interaction.

By combining dense flow measurements during training with reduced sensing at execution, we aim to understand when rich observations are necessary, when they can be compressed away, and how modern learning architectures can be grounded in the physics of continuum systems.

This opens a path toward new theory, algorithms, and experimental benchmarks for AI-driven control of fluids — with applications ranging from drag reduction and wake steering to energy-efficient transport and environmental flow management.

Build on it. Help it spread.

All the active fluid control work on this site is open: hardware, software, and methods. Build it, fork it, run it, take it further. When you share what you make in a social post, a talk, a blog, or a paper, drop in a line of credit. It helps the work spread and grow. BibTeX for papers, a single line for everything else.

Suggested credit

Active Fluid Control — ETH Zürich (A. Terpin, R. D'Andrea). activefluidcontrol.com

More info for citations
Featured
2025 · arXiv preprint Preprint

Sparks of human-like skills acquisition in modern artificial intelligence

A. Terpin, R. D'Andrea

Many high-performance human activities are executed with little or no external feedback: think of a figure skater landing a triple jump, a pitcher throwing a curveball for a strike, or a barista pouring latte art. To study the process of skill acquisition under fully controlled conditions, we bypass human subjects. Instead, we directly interface a generalist reinforcement learning agent with a spinning cylinder in a tabletop circulating water channel to maximize or minimize drag. This setup has several desirable properties. First, it is a physical system, with the rich interactions and complex dynamics that only the physical world has: the flow is highly chaotic and extremely difficult, if not impossible, to model or simulate accurately. Second, the objective — drag minimization or maximization — is easy to state and can be captured directly in the reward, yet good strategies are not obvious beforehand. Third, decades-old experimental studies provide recipes for simple, high-performance open-loop policies. Finally, the setup is inexpensive and far easier to reproduce than human studies. In our experiments we find that high-dimensional flow feedback lets the agent discover high-performance drag-control strategies with only minutes of real-world interaction. When we later replay the same action sequences without any feedback, we obtain almost identical performance. This shows that feedback, and in particular flow feedback, is not needed to execute the learned policy. Surprisingly, without flow feedback during training the agent fails to discover any well-performing policy in drag maximization, but still succeeds in drag minimization, albeit more slowly and less reliably. Our studies show that learning a high-performance skill can require richer information than executing it, and learning conditions can be kind or wicked depending solely on the goal, not on dynamics or policy complexity.

2025 · arXiv preprint Preprint

Sparks of human-like skills acquisition in modern artificial intelligence

A. Terpin, R. D'Andrea

Many high-performance human activities are executed with little or no external feedback: think of a figure skater landing a triple jump, a pitcher throwing a curveball for a strike, or a barista pouring latte art. To study the process of skill acquisition under fully controlled conditions, we bypass human subjects. Instead, we directly interface a generalist reinforcement learning agent with a spinning cylinder in a tabletop circulating water channel to maximize or minimize drag. This setup has several desirable properties. First, it is a physical system, with the rich interactions and complex dynamics that only the physical world has: the flow is highly chaotic and extremely difficult, if not impossible, to model or simulate accurately. Second, the objective — drag minimization or maximization — is easy to state and can be captured directly in the reward, yet good strategies are not obvious beforehand. Third, decades-old experimental studies provide recipes for simple, high-performance open-loop policies. Finally, the setup is inexpensive and far easier to reproduce than human studies. In our experiments we find that high-dimensional flow feedback lets the agent discover high-performance drag-control strategies with only minutes of real-world interaction. When we later replay the same action sequences without any feedback, we obtain almost identical performance. This shows that feedback, and in particular flow feedback, is not needed to execute the learned policy. Surprisingly, without flow feedback during training the agent fails to discover any well-performing policy in drag maximization, but still succeeds in drag minimization, albeit more slowly and less reliably. Our studies show that learning a high-performance skill can require richer information than executing it, and learning conditions can be kind or wicked depending solely on the goal, not on dynamics or policy complexity.

Hardware: v0
2026 · SoftwareX, vol. 34, 102642 Journal

SynthPix: a lightspeed PIV image generator

A. Terpin, A. Bonomi, F. Banelli, R. D'Andrea

We describe SynthPix, a synthetic image generator for Particle Image Velocimetry (PIV) with a focus on performance and parallelism on accelerators, implemented in JAX. SynthPix produces PIV image pairs from prescribed flow fields while exposing a configuration interface aligned with common PIV imaging and acquisition parameters (e.g., seeding density, particle image size, illumination nonuniformity, noise, blur, and timing). In contrast to offline dataset generation workflows, SynthPix is built to stream images on-the-fly directly into learning and benchmarking pipelines, enabling data-hungry methods and closed-loop procedures — such as adaptive sampling and acquisition/parameter co-design — without prohibitive storage and input–output costs. We demonstrate that SynthPix is compatible with a broad range of application scenarios, including controlled laboratory experiments and riverine image velocimetry, and supports rapid sweeps over nuisance factors for systematic robustness evaluation. SynthPix is a tool that supports the flow quantification community and in this paper we describe the main ideas behind the software package.

2026 · SoftwareX, vol. 34, 102642 Journal

SynthPix: a lightspeed PIV image generator

A. Terpin, A. Bonomi, F. Banelli, R. D'Andrea

We describe SynthPix, a synthetic image generator for Particle Image Velocimetry (PIV) with a focus on performance and parallelism on accelerators, implemented in JAX. SynthPix produces PIV image pairs from prescribed flow fields while exposing a configuration interface aligned with common PIV imaging and acquisition parameters (e.g., seeding density, particle image size, illumination nonuniformity, noise, blur, and timing). In contrast to offline dataset generation workflows, SynthPix is built to stream images on-the-fly directly into learning and benchmarking pipelines, enabling data-hungry methods and closed-loop procedures — such as adaptive sampling and acquisition/parameter co-design — without prohibitive storage and input–output costs. We demonstrate that SynthPix is compatible with a broad range of application scenarios, including controlled laboratory experiments and riverine image velocimetry, and supports rapid sweeps over nuisance factors for systematic robustness evaluation. SynthPix is a tool that supports the flow quantification community and in this paper we describe the main ideas behind the software package.

DOI Code
Hardware: v0 , v1
Featured paper

Sparks of human-like skills acquisition in modern artificial intelligence.

Read the paper

A spinning cylinder in the channel, a generalist reinforcement-learning agent, and a single objective: maximize or minimize drag. With rich flow feedback during training, the agent finds high-performance control strategies in minutes of real-world interaction. Replay the same action sequences open-loop, with no feedback at all, and the performance is almost identical — feedback drives learning, not execution.

The same physical system can be kind or wicked depending only on the goal. Drag minimization can be learned even without flow feedback during training, just slower and less reliably. Drag maximization, on the same dynamics, fails outright: early measurements anti-align with long-run performance, a non-minimum-phase trap that rich exteroceptive feedback dissolves.

A reproducible water channel.

All hardware

The low-cost, tabletop water channel gives researchers, students, and teachers a platform to run experiments on fluid flows. Everything necessary to reproduce the water channel lives here. Comprehensive build manuals, manufacturing files, and bill of materials are available for free under a stable URL.

A modular stack for closed-loop fluid control.

All software

The water channel is held up by a small, deliberately modular stack. FlowGames orchestrates the channel in real time; SynthPix and Flow Gym anchor the flow-quantification toolbox; Goggles and TinyROS handle middleware and observability. Each piece stands on its own and is open-source.

Water channel software stack

FlowGames

Coming soon

The software stack that runs the water channel. FlowGames exposes a single real-time loop on top of sensors, actuators, flow-field estimators, and control agents, and keeps the same interface across the physical channel and a high-fidelity simulator. The V0 stack is being released publicly alongside the V0 hardware — expect placeholders until the channel is live.

Synthetic PIV image generation

SynthPix

A JAX synthetic image generator for Particle Image Velocimetry. SynthPix streams image pairs from prescribed flow fields straight into training and benchmarking pipelines — no offline dataset, no I/O ceiling — while exposing the imaging and acquisition knobs practitioners actually tune. Built for the water channel; independently useful for lab PIV, riverine velocimetry, and adaptive acquisition design.

uv add synthpix
Flow-field quantification framework

Flow Gym

A common framework for developing, benchmarking, training, and deploying flow-field quantification methods. Classical and learning-based PIV sit behind one JAX-accelerated interface, interoperable with OpenCV and PyTorch, and the same workflow runs offline and in real time on synthetic or experimental data. It is also our path to 3D and tomographic PIV.

uv add flow-gym-suite

From the lab.