Hostname: page-component-77f85d65b8-zzw9c Total loading time: 0 Render date: 2026-03-30T02:13:31.829Z Has data issue: false hasContentIssue false

Using optimal transport aligned latent embeddings for separated flow analysis

Published online by Cambridge University Press:  16 January 2026

Jonathan Tran*
Affiliation:
Department of Mechanical and Aerospace Engineering, University of California , Los Angeles, CA 90095, USA
Chi-An Yeh
Affiliation:
Department of Mechanical and Aerospace Engineering, North Carolina State University, Raleigh, NC 27695, USA
Kunihiko Taira
Affiliation:
Department of Mechanical and Aerospace Engineering, University of California , Los Angeles, CA 90095, USA
*
Corresponding author: Jonathan Tran, jqtranus@g.ucla.edu

Abstract

Quantifying differences between flow fields is a key challenge in fluid mechanics, particularly when evaluating the effectiveness of flow control or other problem parameters. Traditional vector metrics, such as the Euclidean distance, provide straightforward pointwise comparisons but can fail to distinguish distributional changes in flow fields. To address this limitation, we employ optimal transport (OT) theory, which is a mathematical framework built on probability and measure theory. By aligning Euclidean distances between flow fields in a latent space learned by an autoencoder with the corresponding OT geodesics, we seek to learn low-dimensional representations of flow fields that are interpretable from the perspective of unbalanced OT. As a demonstration, we utilise this OT-based analysis on separated flows past a NACA 0012 airfoil with periodic heat flux actuation near the leading edge. The cases considered are at a chord-based Reynolds number of 23 000 and a free-stream Mach number of 0.3 for two angles of attack (AoA) of $6^\circ$ and $9^\circ$. For each angle of attack, we identify a two-dimensional embedding that succinctly captures the different effective regimes of flow responses and control performance, characterised by the degree of suppression of the separation bubble and secondary effects from laminarisation and trailing-edge separation. The interpretation of the latent representation was found to be consistent across the two AoA, suggesting that the OT-based latent encoding was capable of extracting physical relationships that are common across the different suites of cases. This study demonstrates the potential utility of optimal transport in the analysis and interpretation of complex flow fields.

Information

Type
JFM Papers
Creative Commons
Creative Common License - CCCreative Common License - BY
This is an Open Access article, distributed under the terms of the Creative Commons Attribution licence (https://creativecommons.org/licenses/by/4.0/), which permits unrestricted re-use, distribution and reproduction, provided the original article is properly cited.
Copyright
© The Author(s), 2026. Published by Cambridge University Press
Figure 0

Figure 1. Pedagogical schematic of OT between a supply and demand distribution representative of two different flow fields. The OT distance is the minimum total cost to move the supply to the demand distribution.

Figure 1

Figure 2. Comparison of unbalanced OT distance $d_{\textit{UOT}}$ with the $L^2$ metric. (a) Gaussian pulse undergoing advection and diffusion. (b) Comparison of distances between the evolving pulse and the initial condition.

Figure 2

Figure 3. Examples of baseline flow and various responses of a separated wake past a NACA 0012 airfoil at $\alpha =6^\circ$ to a heat flux actuator input at the leading edge (Yeh & Taira 2019). The Q-criterion ($Q L_c^2/u_\infty ^2=50$) isosurface coloured by the normalised streamwise velocity is shown.

Figure 3

Table 1. Network architecture of the encoder and decoder models. The activation function used is ReLU.

Figure 4

Figure 4. Illustration of the augmented autoencoder problem set-up. During training, the model learns to associate Euclidean distances in the latent space (red line) with flow-field dissimilarities computed with OT.

Figure 5

Figure 5. Example parameter study of the OT-based autoencoder for $\alpha =9^\circ$. (a) The L-curve showing the trade-off between $\mathcal{L}_1$ and $\mathcal{L}_2$ for the test set with $10^{-4} \leqslant \lambda \leqslant 10^4$. (b) Variation of the total loss $\mathcal{L}_1 + \lambda \mathcal{L}_2$ with respect to the latent space dimension for $\lambda = 0.1$. Standard deviation for the last 500 epochs is coloured in grey.

Figure 6

Figure 6. Reconstructions of baseline flow fields by OT autoencoder. The $\bar {u}_x = 0$ isocontour is shown in black for all fields. The reconstructed vorticity is obtained by central differencing of the reconstructed velocity fields. The per cent Frobenius norm reconstruction error is reported.

Figure 7

Table 2. Comparison of average per cent error for field variables using different autoencoder architectures (with two latent variables) at AoA $\alpha = 6^{\circ }$ and $9^{\circ }$. Field variable errors are reported as per cent Frobenius norm error. The embedding loss is reported using the MDS stress.

Figure 8

Figure 7. Comparison of learned latent spaces with $\alpha =9^\circ$ coloured by aerodynamic performance $\bar {C}_L/\bar {C}_D$ for (a) standard autoencoder ($\mathcal{L}_1$ loss only), (b) OT autoencoder ($\mathcal{L}_1$ and $\mathcal{L}_2$ losses). (c) Isocontours of time-averaged streamwise velocity $\bar {u}_x = 0$ shown for different representative cases labelled in (a) and (b).

Figure 9

Figure 8. Plot of latent embeddings highlighting the influence of actuation parameters for $\alpha =9^\circ$. Labelled are example actuation cases. Examples of average turbulent kinetic energy, average vorticity fields, as well as instantaneous $Q$-criterion ($Q L_c^2/u_\infty ^2 = 50$) coloured by streamwise velocity are shown for the labelled cases. The $\bar {u}_x = 0$ isocontour is shown for all average fields.

Figure 10

Figure 9. Comparison of learned latent spaces with $\alpha =6^\circ$ coloured by control performance $\bar {C}_L/\bar {C}_D$ for (a) standard autoencoder ($\mathcal{L}_1$ loss only), (b) OT autoencoder ($\mathcal{L}_1$ and $\mathcal{L}_2$ losses). (c) Isocontours of time-averaged streamwise velocity $\bar {u}_x = 0$ shown for different representative cases labelled in (a) and (b).

Figure 11

Figure 10. Plot of latent embeddings highlighting the influence of actuation parameters for $\alpha =6^\circ$. Labelled are example actuation cases. Examples of average turbulent kinetic energy, average vorticity fields, as well as instantaneous $Q$-criterion ($Q L_c^2/u_\infty ^2 = 50$) coloured by streamwise velocity are shown for the labelled cases. The $\bar {u}_x = 0$ isocontour is shown for all average fields.

Figure 12

Figure 11. Plot of loss curves for (a) $\alpha =9^\circ$ and (b) $\alpha =6^\circ$ cases of both regular (top) and OT-based autoencoders (bottom).

Figure 13

Figure 12. Plot of $\alpha =9^\circ$ latent space for both regular and OT-based autoencoder with (a) $n=3$ and (b) $n=8$ (showing the first 3 principal component analysis axes).

Figure 14

Figure 13. Plot of $\alpha =6^\circ$ latent space for both regular and OT-based autoencoder with (a) $n=3$ and (b) $n=8$ (showing the first 3 principal axes).

Figure 15

Figure 14. Plot of pairwise UOT-based distances ($\tilde {d}_{\textit{field}}$) vs. pairwise $L^2$ distances for discretised flow fields for (a) $\alpha =9^\circ$ and (b) $\alpha =6^\circ$. Both axes have been normalised by the maximum pairwise distance. Red points denote example pairwise distances from the baseline flow corresponding to the cases in figures 8 and 10.