Hostname: page-component-74656f9884-skzmx Total loading time: 0 Render date: 2026-11-06T00:02:37.446Z Has data issue: false hasContentIssue false

Reduced representations of Rayleigh–Bénard flows via autoencoders

Published online by Cambridge University Press:  05 March 2025

Melisa Y. Vinograd
Affiliation:
Departamento de Ingeniería, Universidad de San Andrés, Buenos Aires, Victoria 1644, Argentina Departamento de Física, Universidad de Buenos Aires, CABA 1868, Argentina
Patricio Clark Di Leoni*
Affiliation:
Departamento de Ingeniería, Universidad de San Andrés, Buenos Aires, Victoria 1644, Argentina CONICET, CABA 1414, Argentina
*
Corresponding author: Patricio Clark Di Leoni, pclarkdileoni@udesa.edu.ar

Abstract

We analysed the performance of convolutional autoencoders in generating reduced-order representations of the temperature field of two-dimensional Rayleigh–Bénard flows at $\textit{Pr} =1$ and Rayleigh numbers extending from $10^6$ to $10^8$, capturing the range where the flow transitions to turbulence. We present a way of estimating the minimum number of dimensions needed by the autoencoders to capture all the relevant physical scales of the data that is more apt for highly multiscale flows than previous criteria applied to lower-dimensional systems. We compare our architecture with two regularized variants as well as with linear methods, and find that manually fixing the dimension of the latent space produces the best results. We show how the estimated minimum dimension presents a sharp increase around $Ra\sim 10^7$, when the flow starts to transition to turbulence. Furthermore, we show how this dimension does not follow the same scaling as the physically relevant scales, such as the dissipation length scale and the thermal boundary layer.

Information

Type
JFM Papers
Copyright
© The Author(s), 2025. Published by Cambridge University Press
Figure 0

Figure 1. Two-dimensional convolutional neural network-based autoencoder. The central layer $z$ in the middle is the bottleneck layer or latent vector. The image on the left-hand side represents an example of the input to the network for $Ra=10^8$, corresponding to the temperature fields of a Rayleigh–Bénard numerical simulation. The image on the right is the output of the network for the same input, with a latent space dimension of $d=2250$.

Figure 1

Figure 2. Schematic of the convolutional encoder $\mathcal {E}$. The first layers are convolutional while the last layer after the flattening operation is a fully connected layer. Details are listed in table 1.

Figure 2

Table 1. The CNN autoencoder parameters. The encoder and decoder structure specify the number of filters per convolutional layer.

Figure 3

Figure 3. Visualizations of $\theta (x,z,t)$ and $\theta (x,z,t+\tau )$ for three different values of $Ra$.

Figure 4

Figure 4. Temporal evolution at a fixed location $(x_p, z_p)$ of the flow for three different $Ra$.

Figure 5

Figure 5. Relevant scales of the fluid for three different $Ra$. The top plot illustrates the profile of $\langle \theta ^2 \rangle ^{1/2}_{x,t}$. The lower plot shows the Kolmogorov scale, $\langle \eta _K \rangle _{x,t} (z)$. For each $Ra$, $z_p$ is marked.

Figure 6

Table 2. Parameters used for the reference Rayleigh–Bénard flows, all in non-dimensional simulation units. Here $Re = u_{rms} h / \nu$ denotes the Reynolds number, where $u_{rms}$ is the r.m.s. velocity.

Figure 7

Figure 6. The output fields $\tilde {\theta }$ of the F$d$AE for a snapshot of the temperature field, corresponding to latent space dimensions $d = 100$, 500 and 2250, with respective MSEs of $1.6 \times 10^{-3}$, $3.1 \times 10^{-4}$ and $4.0 \times 10^{-5}$, are shown. For comparison, the normalized ground truth field $\theta / \theta _0$, used as input, is also displayed. Additionally, an inset highlights a region where small-scale structures are present.

Figure 8

Figure 7. Profile of the original $\theta _{rms}$ along with reconstructed profiles for F$d$AE with $d=100$ and $d=500$. The inset zooms in on the near-wall region, showing the boundary layer thickness $\delta _\theta$, defined as the height $z$ where the $\theta _{rms}$ profile transitions away from a linear profile. While the reconstruction with $d=100$ does not capture $\theta _{rms}$ accurately in the bulk, the reconstruction with $d=500$ successfully reproduces the boundary layer behaviour.

Figure 9

Figure 8. Difference between the Nusselt number $Nu$ and the reconstructed Nusselt number $\tilde {Nu}$ with F$d$AE as a function of the latent dimension $d$. The error stabilizes at $d=1500$, indicating that the model reliably captures $Nu$ at this dimension. For reference, the true value of $Nu$ is provided in table 1.

Figure 10

Figure 9. Comparison of the MSE of the temperature field ($\theta$) reconstructions against the latent space dimension $d$ for the F$d$AE (represented by circles), PCA (illustrated with squares) and Fourier-DST decomposition (denoted by triangles) using the same dataset. For the autoencoder, each data point corresponds to the average of three runs with minor variations.

Figure 11

Figure 10. Error spectra $E_{\Delta \theta }$ for various reconstructions, alongside the reference energy spectra $E_\theta$ for comparison. The spectra were calculated at $z_p$. The dotted vertical line indicates the wavenumber corresponding to the Kolmogorov scale $k_\eta$ also at $z_p$, and the dots represent the maximum resolved $k_x$ for each $d$.

Figure 12

Figure 11. Maximum $k_x^*$ resolved by each F$d$AE for different heights. The horizontal line shows the Kolmogorov scale $k_\eta$ of the flow at $z_p$. At $d^*=2250$ the network reconstructs scales up to $k_\eta$ for $z_p$.

Figure 13

Figure 12. Distribution of the normalized IQR for the SIAE with different regularization values $\lambda$, where the normalization is done using the maximum IQR value. (a) The IQR values for the network with a regularization strength of $\lambda =10^{-1}$, with the line marking a threshold that differentiates the two observed distributions. (b) The IQR distributions for various $\lambda$ values, including a comparison with the F$d$AE ($\lambda =0$, shown in darker shading). The line in this figure represents the same threshold as identified in (a).

Figure 14

Figure 13. Error spectra $E_{\Delta \theta }$ for SIAEs with $\lambda =10^{-1}$, along with the reference energy spectra $E_\theta$ for comparison. The spectra were calculated at $z_p$ by taking the values from the latent space that corresponded to the right distribution of the histogram shown in figure 12(b) that has 2010 dimensions. The dotted vertical line indicates the wavenumber corresponding to the Kolmogorov scale $k_\eta$ at $z_p$, and the dot represents the maximum resolved $k_x$.

Figure 15

Figure 14. Singular values of the latent space. Each curve represents the singular values of the covariance matrix of the test dataset. Additionally, the thick black line illustrates the spectrum of singular values obtained by performing PCA on the training dataset and projecting the test dataset onto its modes. Also shown for comparison is F$d$AE with $d=4096$. As we increase the number of linear layers $n$, we observe increased regularization.

Figure 16

Figure 15. Error spectra $E_{\Delta \theta }$ for IRMAE with $n=2$, along with the reference energy spectra $E_\theta$ for comparison. The spectra were calculated at $z_p$ by taking the first $i$ values from the latent space, based on the singular value spectra. Note that the lines for $d=2250$ and $d=4096$ overlap due to the similarity in their spectra, indicating that the IRMAE network does not improve significantly after some $d$. The dotted vertical line indicates the wavenumber corresponding to the Kolmogorov scale $k_\eta$ at $z_p$, and the dots represent the maximum resolved $k_x$ for each $i$.

Figure 17

Figure 16. Minimum dimension needed to represent all relevant physical scales of the temperature field using F$d$AE, $d^*$, as a function of the Rayleigh number. An estimate of the number of degrees of freedom that scales as the inverse of $\delta _\theta \;\eta _K$ is also shown.

Figure 18

Figure 17. Output fields $\tilde {\theta }$ of the FdAE for $Ra=10^6$, showing a snapshot of the output temperature field for latent space dimension $d = \{1, 2\}$. The value $d=2$ corresponds to $d^*$ for this $Ra$. The normalized ground truth field, $\theta / \theta _0$, used as input, is shown for comparison.

Figure 19

Figure 18. Error spectra $E_{\Delta \theta }$ for various reconstructions, alongside the reference energy spectra $E_\theta$ for comparison. The spectra were calculated at $z_p$. The dotted vertical line indicates the wavenumber corresponding to the Kolmogorov scale $k_\eta$ also at $z_p$, and the dots represent the maximum resolved $k_x$ for each $d$.

Figure 20

Figure 19. Output fields $\tilde {\theta }$ of the FdAE for $Ra=10^7$, showing a snapshot of the output temperature field for latent space dimensions $d = \{10, 75\}$. The value $d=75$ corresponds to $d^*$ for this $Ra$. The normalized ground truth field, $\theta / \theta _0$, used as input, is shown for comparison.

Figure 21

Figure 20. Error spectra $E_{\Delta \theta }$ for various reconstructions, alongside the reference energy spectra $E_\theta$ for comparison. The spectra were calculated at $z_p$. The dotted vertical line indicates the wavenumber corresponding to the Kolmogorov scale $k_\eta$ also at $z_p$, and the dots represent the maximum resolved $k_x$ for each $d$.

Figure 22

Figure 21. Maximum $k_x^*$ resolved by each F$d$AE for $Ra=10^6$ and $Ra=10^7$, as seen in figure 11. The horizontal dashed lines show the Kolmogorov scale $k_\eta$ of the flow at each $z_p$ for both Rayleigh numbers.

Figure 23

Figure 22. (a) Maximum wavenumber resolved by each IRMAE network for different numbers of training images, $N_{{train}}$, at $Ra=10^8$. The horizontal line indicates the Kolmogorov scale $k_\eta$ for this Rayleigh number. (b) The MSE of the validation dataset for the temperature field for each network.