Deep Dynamical Modeling and Control of Unsteady Fluid Flows

Jeremy Morton, Freddie D. Witherden, Antony Jameson, Mykel J. Kochenderfer

Abstract

Controlling unsteady fluid flows is a significant challenge due to the high-dimensional, nonlinear, and chaotic nature of the governing Navier-Stokes equations. This paper presents a "Deep Koopman" approach that leverages deep learning to embed complex fluid dynamics into a latent space where the physics evolve linearly. By training an encoder-decoder architecture to maintain long-horizon stability, the researchers developed a model capable of real-time control. The approach was validated on a 2D cylinder wake, where it successfully suppressed vortex shedding and revealed an interpretable, simple control law.

Introduction

The ability to control fluid flow has transformative potential for industries ranging from aerospace to automotive engineering. However, fluids are notoriously difficult to manage because they are governed by nonlinear partial differential equations. While high-fidelity Computational Fluid Dynamics (CFD) simulations provide accurate models, they are too computationally intensive for real-time control applications. Traditional control methods, which excel in linear regimes, often struggle with the chaotic transitions in fluid systems. The goal is to create a Reduced-Order Model (ROM) that is both fast enough for "on-the-fly" decision-making and accurate enough to capture essential nonlinear behaviors.

Methodology: The Deep Koopman Model

The core of this research is based on Koopman Theory, which suggests that nonlinear dynamical systems can be mapped into a higher-dimensional space where their evolution becomes linear. The authors implement this using a deep neural network architecture.

The Deep Koopman architecture uses an encoder to map high-dimensional snapshots to a latent space where dynamics are evolved linearly via a transition matrix A.

The model consists of several key components:

  1. Encoder-Decoder Architecture: A ResNet-based autoencoder learns a mapping from high-dimensional CFD snapshots to a lower-dimensional latent state.
  2. Linear Latent Dynamics: Instead of using a neural network for prediction, the system performs a linear least-squares fit in the latent space to find a transition matrix ($A$). This matrix evolves the system: $g(x_{t+1}) = Ag(x_t)$.
  3. Recursive Training: To ensure long-term stability, the model is trained to minimize error over multiple time-steps by applying the $A$ matrix recursively. This prevents the "drift" common in models trained only for single-step predictions.
  4. Control Integration: The model incorporates control inputs ($u_t$) by learning a $B$ matrix, resulting in a standard linear state-space model: $z_{t+1} = Az_t + Bu_t$. This enables the use of Model Predictive Control (MPC).

Experimental Setup and Datasets

The model was tested on a canonical 2D airflow simulation over a circular cylinder at a Reynolds number of 50. At this regime, the flow exhibits a "von Karman vortex street," characterized by periodic vortex shedding.

The dataset consists of CFD snapshots with four physical channels: density, x-momentum, y-momentum, and energy.

Data was generated using the PyFR solver on a 128 × 256 grid. The training set included over 4,000 snapshots, organized into staggered sequences to facilitate the recursive training process.

Key Insights and Results

The Deep Koopman approach demonstrated that "nonlinear" behavior is often a matter of representation. By finding the correct latent coordinates, the complex physics became linear and manageable.

Stability and Accuracy: The model achieved a relative error of less than 0.2% over a 128-step prediction horizon, significantly outperforming baselines like the Deep Variational Bayes Filter (VBF), which often became unstable beyond its training window.

Vortex Suppression: Using MPC, the system successfully suppressed vortex shedding, driving the flow toward a steady, laminar state.

Interpretability: An unexpected finding was that the complex MPC controller converged on a simple physical relationship: optimal control actions were in phase with the y-velocity at a specific point in the cylinder's wake. This allowed for the replacement of the neural network with a simple proportional control law, bridging the gap between deep learning and classical engineering.

Limitations and Future Work

While successful, the study was limited to a low Reynolds number (Re=50) and 2D simulations. Real-world applications involve 3D flows with Reynolds numbers in the millions, introducing significantly more turbulence and dimensionality. Future research will focus on scaling these methods to higher Reynolds numbers and testing the generalization of the learned models across different geometries and flow conditions.

Summary updated

BibTeX
@inproceedings{morton2018deep,
  author = {Jeremy Morton and Freddie D. Witherden and Antony Jameson and Mykel J. Kochenderfer},
  title = {{Deep Dynamical Modeling and Control of Unsteady Fluid Flows}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2018},
}
Figure