Hostname: page-component-6898cfcb55-zkb6p Total loading time: 0 Render date: 2026-11-11T08:45:52.539Z Has data issue: false hasContentIssue false

Residual dynamic mode decomposition: robust and verified Koopmanism

Published online by Cambridge University Press:  17 January 2023

Matthew J. Colbrook*
Affiliation:
Department of Applied Mathematics and Theoretical Physics, University of Cambridge, Cambridge CB3 0WA, UK
Lorna J. Ayton
Affiliation:
Department of Applied Mathematics and Theoretical Physics, University of Cambridge, Cambridge CB3 0WA, UK
Máté Szőke
Affiliation:
Kevin T. Crofton Department of Aerospace and Ocean Engineering, Virginia Tech, Blacksburg, VA 24060, USA
*
†Email address for correspondence: m.colbrook@damtp.cam.ac.uk

Abstract

Dynamic mode decomposition (DMD) describes complex dynamic processes through a hierarchy of simpler coherent features. DMD is regularly used to understand the fundamental characteristics of turbulence and is closely related to Koopman operators. However, verifying the decomposition, equivalently the computed spectral features of Koopman operators, remains a significant challenge due to the infinite-dimensional nature of Koopman operators. Challenges include spurious (unphysical) modes and dealing with continuous spectra, which both occur regularly in turbulent flows. Residual dynamic mode decomposition (ResDMD), introduced by Colbrook & Townsend (Rigorous data-driven computation of spectral properties of Koopman operators for dynamical systems. 2021. arXiv:2111.14889), overcomes such challenges through the data-driven computation of residuals associated with the full infinite-dimensional Koopman operator. ResDMD computes spectra and pseudospectra of general Koopman operators with error control and computes smoothed approximations of spectral measures (including continuous spectra) with explicit high-order convergence theorems. ResDMD thus provides robust and verified Koopmanism. We implement ResDMD and demonstrate its application in various fluid dynamic situations at varying Reynolds numbers from both numerical and experimental data. Examples include vortex shedding behind a cylinder, hot-wire data acquired in a turbulent boundary layer, particle image velocimetry data focusing on a wall-jet flow and laser-induced plasma acoustic pressure signals. We present some advantages of ResDMD: the ability to resolve nonlinear and transient modes verifiably; the verification of learnt dictionaries; the verification of Koopman mode decompositions; and spectral calculations with reduced broadening effects. We also discuss how a new ordering of modes via residuals enables greater accuracy than the traditional modulus ordering (e.g. when forecasting) with a smaller dictionary. This result paves the way for more significant dynamic compression of large datasets without sacrificing accuracy.

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 (http://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), 2023. Published by Cambridge University Press.
Figure 0

Figure 1.The basic idea of ResDMD – by introducing an additional matrix $\varPsi _Y^*W\varPsi _Y$ (compared with EDMD), we compute a residual in infinite dimensions. The matrices $\varPsi _X$ and $\varPsi _Y$ are defined in (2.8a,b) and correspond to the dictionary evaluated at the snapshot data. The matrix $W=\mathrm {diag}(w_1,\ldots,w_M)$ is a diagonal weight matrix. The approximation of the residual becomes exact in the large data limit $M\rightarrow \infty$.

Figure 1

Figure 2.A diagrammatic chart for the algorithms used in this paper. The computational problem is shown on the left, and the relevant algorithms on the right.

Figure 2

Algorithm 1 :ResDMD for computing eigenpairs without spectral pollution. The corresponding Koopman mode decomposition is given in (3.6).

Figure 3

Algorithm 2 :ResDMD for estimating ε-pseudospectra.

Figure 4

Algorithm 3 :ResDMD with DMD selected observables.

Figure 5

Algorithm 4 :ResDMD with kEDMD selected observables.

Figure 6

Algorithm 5 :Approximating spectral measures from autocorrelations.

Figure 7

Figure 3.Pseudospectral contours computed using algorithm 2 for the cylinder wake example, using a linear dictionary (a) and a nonlinear dictionary (b). The eigenvalues of the finite Galerkin matrices $\mathbb {K}$ are shown as red dots in both cases. The computed residuals allow ResDMD to detect spectral pollution (spurious modes); (a) $\tau _{200}(\lambda )$, linear dictionary and (b) $\tau _{200}(\lambda )$, nonlinear dictionary.

Figure 8

Figure 4.Convergence of $\tau _N(-0.5)$ as $M''$ (the number of snapshots used to build the ResDMD matrices) increases. The plots show the clear monotonicity of $\tau _N(-0.5)$, which decreases to $\|(\mathcal {K}+0.5)^{-1}\|^{-1}=0.5$ as $N$ increases. (a) linear dictionary; (b) nonlinear dictionary.

Figure 9

Figure 5.Phase-residual plot of the eigenvalues of $\mathbb {K}$. The linear dictionary has very small residuals for the lower modes, yet also suffers from severe spectral pollution. The nonlinear dictionary demonstrates the lattice structure of the Koopman eigenvalues. Branches of the phase as the eigenvalues wrap around the unit circle are labelled. (a) ${res} (\lambda _j, g_{(j)})$, linear dictionary and (b) ${res} (\lambda _j, g_{(j)})$, nonlinear dictionary.

Figure 10

Figure 6.Errors of the computed spectral information of each mode. (a) linear dictionary; (b) nonlinear dictionary; (c) union of dictionaries.

Figure 11

Figure 7.Koopman modes for the cylinder wake, computed using the linear dictionary.

Figure 12

Figure 8.Koopman modes for the cylinder wake, computed using the nonlinear dictionary (see graphical abstract).

Figure 13

Figure 9.Schematic of the experimental set-up for a boundary layer with embedded shear profile, and side view of the boundary layer near the flow control region.

Figure 14

Figure 10.Relative error in integration against the test function $\phi (\theta )=\exp (\sin (\theta ))$ for data collected at $y/\delta _0=0.1$. Algorithm 5 converges at the expected rates for various filter functions. In contrast, the PSD approximation appears to converge at a second-order rate initially but then stagnates. (a) relative error (injection); (b) relative error (baseline).

Figure 15

Figure 11.Comparison of the traditional PSD definition (4.10) with spectral measure (4.13) (referenced to 1 m$^2$ s$^{-2}$), for baseline and injection flows, at a range of vertical heights within the boundary layer. (a) PSD (injection); (b) spectral measure (injection); (c) PSD (baseline); (d) spectral measure (baseline).

Figure 16

Figure 12.Zoomed in values for low frequencies computed using $N_{{ac}}=4000$ and various choices of filter function. In general, higher order filters lead to a sharper peak at low frequencies. (a) injection; (b) baseline.

Figure 17

Figure 13.The schematic of the TR-PIV experiments conducted in the Wall Jet Wind Tunnel of Virginia Tech.

Figure 18

Figure 14.Forecast of total kinetic energy (normalised by the time average of the kinetic energy), averaged over the 12 000 initial conditions. Values closer to $1$ correspond to better predictions.

Figure 19

Figure 15.The eigenvalues of finite Galerkin matrix $\mathbb {K}$ for the wall-jet example. For each eigenvalue–eigenvector pair $(\lambda _j,g_{(j)})$, the residual ${res}(\lambda _j,g_{(j)})$ is shown on a colour scale. When truncating the Koopman mode decomposition for figure 16, we kept those modes with residual at most $0.5$. The black curve corresponds to a fit $r=\exp (-c|\theta |)$ of the boundary of the eigenvalues and represents successive powers of modes. (a) ${res} (\lambda _j, g_{(j)})$, linear dictionary and (b) ${res} (\lambda _j, g_{(j)})$, nonlinear dictionary.

Figure 20

Figure 16.(a,c,e,g) A range of long-lasting modes from the ResDMD Koopman mode decomposition. (b,d, f,h) A range of transient modes from the ResDMD Koopman mode decomposition. The arrows dictate the unsteady fluid structure (computed from the Koopman modes of the velocity fields), with the magnitude of the arrow indicating the local flow speed, and the colour bar denotes the Koopman mode of the velocity magnitude; (a) $\lambda = 1.0000 +0.0000i$, $\tau _{2000} (\lambda ) = 0.0024$, (b) $\lambda = 0.9837 +0.0057i$, $\tau _{2000} (\lambda ) = 0.0175$, (c) $\lambda = 0.9760 +0.1132i$, $\tau _{2000} (\lambda ) = 0.0539$, (d) $\lambda = 0.9528 +0.0000i$, $\tau _{2000} (\lambda ) = 0.0472$, (e) $\lambda = 0.9700 +0.1432i$, $\tau _{2000} (\lambda ) = 0.0602$, ( f) $\lambda = 0.8948 +0.1065i$, $\tau _{2000} (\lambda ) = 0.1105$, (g) $\lambda = 0.9439 +0.2458i$, $\tau _{2000} (\lambda ) = 0.0765$ and (h) $\lambda = 0.9888 +0.0091i$, $\tau _{2000} (\lambda ) = 0.0146$.

Figure 21

Figure 17.Pre-multiplied streamwise wavenumber spectra (a,b) and spectral measures (c,d) for streamwise ($u$) and wall-normal ($v$) velocity components; (a) $k_x |\phi {uu}|$, (b) $k_x |\phi {vv}|$, (c) spectral measure ($u$ field) and (d) spectral measure ($v$ field).

Figure 22

Figure 18.Schematic diagram of the laser beam set-up used to generate the laser-induced plasma.

Figure 23

Figure 19.Schlieren images of the initial LIP illustrating the shock wave formation and propagation; (a) $t=5\ \mathrm {\mu }{\rm s}$, (b) $t=10\ \mathrm {\mu }{\rm s}$, (c) $t=15\ \mathrm {\mu }{\rm s}$ and (d) $t=20\ \mathrm {\mu }{\rm s}$.

Figure 24

Figure 20.(a) Prediction using (8.2) on the first experiment in the test set. The values of $p$ to the left of the vertical dashed line correspond to $\pmb {x}_0$. (b) The RMSE averaged over the test set for different values of $d$.

Figure 25

Figure 21.(a) Pseudospectral contours, computed using algorithm 2 with the nonlinear dictionary and $d=10$. The eigenvalues of $\mathbb {K}$ are shown as red dots. (b) Prediction using (3.6) on the first experiment in the test set. The values of $p$ to the left of the vertical dashed line correspond to $\pmb {x}_0$. For each type of ordering, we use $40$ modes.

Figure 26

Figure 22.The RMSE averaged over the test set for two types of compression. The ‘residual ordering’ (black curves) corresponds to ordering approximate eigenvalues based on their residual. The ‘modulus ordering’ (red curves) corresponds to ordering approximate eigenvalues based on their modulus; (a) $d=10$, (b) $d=15$ and (c) $d=20$.