Hostname: page-component-74656f9884-8r8nv Total loading time: 0 Render date: 2026-11-08T14:52:13.821Z Has data issue: false hasContentIssue false

Model order reduction using sparse coding exemplified for the lid-driven cavity

Published online by Cambridge University Press:  27 October 2016

Rohit Deshmukh
Affiliation:
Department of Mechanical and Aerospace Engineering, The Ohio State University, Columbus, OH 43210, USA
Jack J. McNamara*
Affiliation:
Department of Mechanical and Aerospace Engineering, The Ohio State University, Columbus, OH 43210, USA
Zongxian Liang
Affiliation:
Department of Mechanical and Aerospace Engineering, The Ohio State University, Columbus, OH 43210, USA
J. Zico Kolter
Affiliation:
School of Computer Science, Carnegie Mellon University Pittsburgh, PA 15213, USA
Abhijit Gogulapati
Affiliation:
Department of Mechanical and Aerospace Engineering, The Ohio State University, Columbus, OH 43210, USA
*
†Email address for correspondence: mcnamara.190@osu.edu

Abstract

Basis identification is a critical step in the construction of accurate reduced-order models using Galerkin projection. This is particularly challenging in unsteady flow fields due to the presence of multi-scale phenomena that cannot be ignored and may not be captured using a small set of modes extracted using the ubiquitous proper orthogonal decomposition. This study focuses on this issue by exploring an approach known as sparse coding for the basis identification problem. Compared with proper orthogonal decomposition, which seeks to truncate the basis spanning an observed data set into a small set of dominant modes, sparse coding is used to identify a compact representation that spans all scales of the observed data. As such, the inherently multi-scale bases may improve reduced-order modelling of unsteady flow fields. The approach is examined for a canonical problem of an incompressible flow inside a two-dimensional lid-driven cavity. The results demonstrate that Galerkin reduction of the governing equations using sparse modes yields a significantly improved predictive model of the fluid dynamics.

Information

Type
Papers
Copyright
© 2016 Cambridge University Press 
Figure 0

Figure 1. The two-dimensional lid-driven cavity configuration.

Figure 1

Figure 2. The turbulent kinetic energy (${\mathcal{K}}$) of the flow predicted by DNS over the first 100 time units, computed using the mean flow obtained from different snapshot matrices.

Figure 2

Figure 3. Errors in the representation of the snapshot matrix using the converged solutions for (a) 20-mode and (b) 50-mode sets. Errors for sparse modes for 30 different initial guesses are compared against POD sets of size 20 and 50.

Figure 3

Table 1. Normalised L2 errors in estimated mean flows obtained from four different snapshot matrices, and estimated instantaneous ${\mathcal{K}}$ over 100 time units.

Figure 4

Table 2. Mean and standard deviations of the normalised L2 errors in the representation of the RMS of the fluctuating velocity vector by 20- and 50-mode sets of sparse modes. The 20- and 50-mode POD errors are provided for reference.

Figure 5

Table 3. Normalised L2 errors in the representation of the RMS of the fluctuating velocity vector by POD and sparse modes, and sparsity in the representation of the snapshot matrix by sparse modes.

Figure 6

Table 4. The normalised L2 error in the prediction of the RMS of the fluctuating velocity vector by several POD and sparse ROMs.

Figure 7

Figure 4. Sparsity and normalised L2 error in the representation of the snapshot matrix using sparse modes. The snapshot matrix consists of 1250 snapshots, and 20 sparse modes are computed. The 20-mode POD error is provided for reference.

Figure 8

Figure 5. The $u$ and $v$ components of the POD modes numbered 1, 10, 50 and 100 of the lid-driven cavity.

Figure 9

Figure 6. The $u$ and $v$ components of four of the sparse modes of the lid-driven cavity.

Figure 10

Figure 7. The $u$ and $v$ components of four different snapshots of the lid-driven cavity.

Figure 11

Figure 8. Transformation matrix between the 20 sparse modes and 200 POD modes.

Figure 12

Figure 9. Estimated energy content in the first 100 POD modes and the sparse modes of a 100-mode model of the lid-driven cavity, expressed in terms of the sum of squares of projection coefficients evaluated over 25 time units. The estimated energy content in sparse modes is rearranged in terms of decreasing sums of squares of coefficients.

Figure 13

Figure 10. The time history of POD projection coefficients corresponding to the 100-mode POD set of the lid-driven cavity; coefficients of (a) POD mode 1 and (b) POD mode 2.

Figure 14

Figure 11. The time history of sparse projection coefficients and sparse coefficients output from the sparse coding process corresponding to the 100-mode sparse sets of the lid-driven cavity; coefficients corresponding to (a), (b) two of the sparse modes.

Figure 15

Figure 12. The RMS of the (a) $u$ and (b) $v$ velocity components of flow within the lid-driven cavity as predicted by DNS.

Figure 16

Figure 13. The RMS of the $u$ velocity component of flow within the lid-driven cavity as predicted by (a) 10-mode, (b) 20-mode, (c) 50-mode, (d) 80-mode, (e) 100-mode and (f) 200-mode POD ROMs.

Figure 17

Figure 14. The RMS of the $v$ velocity component of flow within the lid-driven cavity as predicted by (a) 10-mode, (b) 20-mode, (c) 50-mode, (d) 80-mode, (e) 100-mode and (f) 200-mode POD ROMs.

Figure 18

Figure 15. The RMS of the $u$ velocity component of flow within the lid-driven cavity as predicted by (a) 10-mode, (b) 20-mode, (c) 50-mode, (d) 80-mode, (e) 100-mode and (f) 200-mode sparse ROMs.

Figure 19

Figure 16. The RMS of the $v$ velocity component of flow within the lid-driven cavity as predicted by (a) 10-mode, (b) 20-mode, (c) 50-mode, (d) 80-mode, (e) 100-mode and (f) 200-mode sparse ROMs.

Figure 20

Figure 17. The time history of the instantaneous ${\mathcal{K}}$ of the lid-driven cavity as predicted by DNS, and the computed POD and sparse ROMs constructed using (a) 10 modes, (b) 20 modes, (c) 50 modes, (d) 80 modes, (e) 100 modes and (f) 200 modes. The snapshot matrix used to compute the modes spans the first 25 time units, and ROMs are integrated for 500 time units.

Figure 21

Figure 18. The PSD of the turbulent kinetic energy of the lid-driven cavity as predicted by DNS, and the (a) 20-mode, (b) 80-mode and (c) 200-mode POD and sparse ROMs.

Figure 22

Figure 19. The time history of projection and prediction coefficients corresponding to the 100-mode POD and 100-mode sparse sets of the lid-driven cavity; coefficients of (a) POD mode 1, (b) POD mode 2 and (c), (d) two of the sparse modes.

Figure 23

Figure 20. The two probe locations in the computational domain over which the local dynamics of the predicted and DNS flows are computed.

Figure 24

Figure 21. The PSDs of the $u$ and $v$ velocity components at probe P1, as predicted by DNS, POD ROMs and sparse ROMs; (a) PSD of $u$ by 20-mode models, (b) PSD of $v$ by 20-mode models, (c) PSD of $u$ by 80-mode models, (d) PSD of $v$ by 80-mode models, (e) PSD of $u$ by 200-mode models and (f) PSD of $v$ by 200-mode models.

Figure 25

Figure 22. The PSDs of the $u$ and $v$ velocity components at probe P2, as predicted by DNS, POD ROMs and sparse ROMs; (a) PSD of $u$ by 20-mode models, (b) PSD of $v$ by 20-mode models, (c) PSD of $u$ by 80-mode models, (d) PSD of $v$ by 80-mode models, (e) PSD of $u$ by 200-mode models and (f) PSD of $v$ by 200-mode models.

Figure 26

Figure 23. Autocovariances of the $u$ and $v$ velocity components at probe P1, as predicted by DNS, POD ROMs and sparse ROMs: (a) $R_{u(\text{P}1),u(\text{P}1)}$ by 20-mode models, (b) $R_{v(\text{P}1),v(\text{P}1)}$ by 20-mode models, (c) $R_{u(\text{P}1),u(\text{P}1)}$ by 80-mode models, (d) $R_{v(\text{P}1),v(\text{P}1)}$ by 80-mode models, (e) $R_{u(\text{P}1),u(\text{P}1)}$ by 200-mode models and (f) $R_{v(\text{P}1),v(\text{P}1)}$ by 200-mode models.

Figure 27

Figure 24. Autocovariances of the $u$ and $v$ velocity components at probe P2, as predicted by DNS, POD ROMs and sparse ROMs: (a) $R_{u(\text{P}2),u(\text{P}2)}$ by 20-mode models, (b) $R_{v(\text{P}2),v(\text{P}2)}$ by 20-mode models, (c) $R_{u(\text{P}2),u(\text{P}2)}$ by 80-mode models, (d) $R_{v(\text{P}2),v(\text{P}2)}$ by 80-mode models, (e) $R_{u(\text{P}2),u(\text{P}2)}$ by 200-mode models and (f) $R_{v(\text{P}2),v(\text{P}2)}$ by 200-mode models.

Figure 28

Figure 25. The unbiased autocovariances of the $u$ and $v$ velocity components, as predicted by DNS, POD ROMs and sparse ROMs: (a) $C_{u,u}$ by 20-mode models, (b) $C_{v,v}$ by 20-mode models, (c) $C_{u,u}$ by 80-mode models, (d) $C_{v,v}$ by 80-mode models, (e) $C_{u,u}$ by 200-mode models and (f) $C_{v,v}$ by 200-mode models.

Figure 29

Figure 26. Two-point covariances of the $u$ and $v$ velocity components between probes P1 and P2, as predicted by DNS, POD ROMs and sparse ROMs: (a) $R_{u(\text{P}1),u(\text{P}2)}$ by 20-mode models, (b) $R_{v(\text{P}1),v(\text{P}2)}$ by 20-mode models, (c) $R_{u(\text{P}1),u(\text{P}2)}$ by 80-mode models, (d) $R_{v(\text{P}1),v(\text{P}2)}$ by 80-mode models, (e) $R_{u(\text{P}1),u(\text{P}2)}$ by 200-mode models and (f) $R_{v(\text{P}1),v(\text{P}2)}$ by 200-mode models.

Figure 30

Figure 27. Magnitudes of the CPSDs between probes P1 and P2, as predicted by DNS, POD ROMs and sparse ROMs: CPSD of (a) $(u(\text{P}1),u(\text{P}2))$ by 20-mode models, (b) $(v(\text{P}1),v(\text{P}2))$ by 20-mode models, (c) $(u(\text{P}1),u(\text{P}2))$ by 80-mode models, (d) $(v(\text{P}1),v(\text{P}2))$ by 80-mode models, (e) $(u(\text{P}1),u(\text{P}2))$ by 200-mode models and (f) $(v(\text{P}1),v(\text{P}2))$ by 200-mode models.

Figure 31

Figure 28. Imaginary parts of the CPSDs between probes P1 and P2, as predicted by DNS, POD ROMs and sparse ROMs: CPSD of (a) $(u(\text{P}1),u(\text{P}2))$ by 20-mode models, (b) $(v(\text{P}1),v(\text{P}2))$ by 20-mode models, (c) $(u(\text{P}1),u(\text{P}2))$ by 80-mode models, (d) $(v(\text{P}1),v(\text{P}2))$ by 80-mode models, (e) $(u(\text{P}1),u(\text{P}2))$ by 200-mode models and (f) $(v(\text{P}1),v(\text{P}2))$ by 200-mode models.

Figure 32

Figure 29. The time history of the instantaneous ${\mathcal{K}}$ of the lid-driven cavity at $Re$ 15 000 as predicted by DNS, and the computed POD and sparse ROMs constructed using (a) 20 modes, (b) 50 modes, (c) 60 modes and (d) 80 modes. The POD and sparse modes are retained from the $Re=30\,000$ study.

Figure 33

Figure 30. The time history of the instantaneous ${\mathcal{K}}$ of the lid-driven cavity at $Re$ 29 000 as predicted by DNS, and the computed POD and sparse ROMs constructed using (a) 20 modes, (b) 50 modes, (c) 60 modes and (d) 80 modes. The POD and sparse modes are retained from the $Re=30\,000$ study.

Figure 34

Figure 31. The time history of the instantaneous ${\mathcal{K}}$ of the lid-driven cavity at $Re=31\,000$ as predicted by DNS, and the computed POD and sparse ROMs constructed using (a) 20 modes, (b) 50 modes, (c) 60 modes and (d) 80 modes. The POD and sparse modes are retained from the $Re=30\,000$ study.

Figure 35

Figure 32. The time history of the instantaneous ${\mathcal{K}}$ of the lid-driven cavity at $Re=35\,000$ as predicted by DNS, and the computed POD and sparse ROMs constructed using (a) 20 modes, (b) 50 modes, (c) 60 modes and (d) 80 modes. The POD and sparse modes are retained from the $Re=30\,000$ study.

Figure 36

Figure 33. Errors in average ${\mathcal{K}}$ levels for POD and sparse ROMs over $Re$ values ranging from 15 000 to 35 000 when using (a) 20 modes, (b) 50 modes, (c) 60 modes and (d) 80 modes. The POD and sparse modes are retained from the $Re=30\,000$ study.

Figure 37

Table 5. Computational costs associated with several POD ROMs developed for the lid-driven cavity at $Re=30\,000$. It should be noted that the modes are computed using a snapshot matrix spanning the first 25 time units, whereas the ROMs are integrated for 500 time units.

Figure 38

Table 6. Computational costs associated with several sparse ROMs developed for the lid-driven cavity at $Re=30\,000$. It should be noted that the modes are computed using a snapshot matrix spanning the first 25 time units, whereas the ROMs are integrated for 500 time units.

Figure 39

Table 7. Sums of computational costs associated with several POD ROMs developed for the lid-driven cavity in the off-design conditions. The costs are summed over 11 $Re$ values ranging from 15 000 to 35 000. The total cost of computing the high-fidelity solutions over 150 time units in all of the off-design conditions is 250.5 h.

Figure 40

Table 8. Sums of computational costs associated with several sparse ROMs developed for the lid-driven cavity in the off-design conditions. The costs are summed over 11 $Re$ values ranging from 15 000 to 35 000. The total cost of computing the high-fidelity solutions over 150 time units in all of the off-design conditions is 250.5 h.