TL;DR
Aquarium is a new, fully differentiable 2D fluid-structure interaction (FSI) solver designed specifically for robotics. By treating fluid-robot physics as a constrained optimization problem, it provides analytical gradients that allow researchers to simultaneously optimize a robot's shape and its movement (gait) with unprecedented efficiency.
What Problem Does This Paper Address?
Designing bio-inspired robots—like mechanical fish or flapping-wing drones—is notoriously difficult because their performance depends on complex interactions with the surrounding fluid. Traditionally, engineers have had to separate the design of the robot's body from the design of its control system.
Existing Computational Fluid Dynamics (CFD) solvers are often "black boxes": you put in parameters, and you get out a simulation. However, they rarely provide gradients (information about how a small change in shape or movement affects the outcome). Without these gradients, optimizing a robot requires slow, "gradient-free" trial and error. Furthermore, many existing solvers are unstable at the large time steps required for practical robotics applications. Aquarium fills this gap by providing a stable, physics-based simulator where every part of the math is "differentiable."
Methods
The authors built Aquarium on a foundation of classic fluid mechanics, but with a modern "differentiable programming" twist:
- Fluid Dynamics: It solves the incompressible Navier-Stokes equations using a second-order finite-volume method.
- Stability: It employs a fully implicit Crank-Nicolson scheme. Unlike "explicit" solvers that crash if the time step is too large, this implicit approach remains stable at the coarser time scales often used in robotics control.
- Coupling (The "Interaction"): To handle the robot moving through the fluid, they use the immersed-boundary method. This avoids the need to constantly "re-mesh" the fluid grid as the robot moves, which is a major computational bottleneck in other solvers.
- The Differentiable "Secret Sauce": The authors formulate the entire FSI system as a Karush-Kuhn-Tucker (KKT) system—essentially a large optimization problem where the fluid equations are the objective and the robot's presence is a constraint. By applying the Implicit Function Theorem, they can calculate analytical gradients by reusing the math already performed during the simulation step. This makes getting gradients nearly "free" in terms of extra computation.
Datasets
As this is a physics solver, the authors evaluated it against established benchmarks and real-world data rather than standard ML datasets:
- Cylinder in Free Stream: A classic CFD benchmark used to validate drag, lift, and vortex shedding (at Reynolds numbers 40 and 100).
- Soft Robotic Fish Tail: Empirical data (video and force measurements) from a real-world pneumatically actuated soft fish tail was used for "real-to-sim" validation.
- Diamond Foil Optimization: A custom setup used to demonstrate the solver's ability to co-optimize shape (thickness) and gait (heave/pitch) to maximize thrust.
Key Insights and Ideas
- Optimization as Simulation: The core insight is that FSI isn't just a sequence of steps; it can be viewed as a constrained optimization problem. This perspective shift is what unlocks the use of the Implicit Function Theorem for gradients.
- Efficiency through Reuse: Because the solver already factorizes a large matrix to solve the physics, it can reuse that same factorization to find the gradients. This is significantly faster than "backpropagating" through every tiny sub-step of a simulation.
- Sim-to-Real Viability: By modeling a 10-link rigid chain to approximate a soft robot, the authors showed that 2D differentiable solvers can still capture the essential "forcing effects" (phase and frequency) of complex 3D hardware.
Key Results
- Accuracy: Aquarium’s results for the cylinder benchmark (drag/lift coefficients and Strouhal numbers) showed "good agreement" with established numerical and empirical studies.
- Hardware Match: The simulator successfully matched the thrust force patterns of a physical soft robotic fish tail actuated at 3Hz, capturing the transient flow effects accurately.
- Optimization Power: In a "shape-and-gait" co-optimization task for an oscillating diamond foil, Aquarium achieved a 139% improvement in thrust.
- Speed of Convergence: Using the analytical gradients provided by Aquarium, the L-BFGS optimization algorithm reached a near-optimal solution in just 7 iterations and fully converged in 14.
Limitations and Future Work
The authors are transparent about the current version's constraints:
- 2D Only: The current solver is limited to two dimensions. While useful for many tasks, it cannot capture 3D fluid effects like flow over the top of a fin.
- Rigid Bodies: While they approximated a soft tail using a multi-link chain, the solver does not yet natively handle truly deformable "soft" bodies.
- Computational Overhead: While efficient for its class, the total runtime for a complex optimization (6 hours on a 64-core CPU) suggests there is still room for optimization, potentially through specialized sparse linear solvers or GPU acceleration.
The team plans to extend Aquarium to 3D and integrate more complex soft-body dynamics in future releases.
Summary updated