Reduced-order modeling
Learning objectives
After this lecture, we should be able to:
- Identify the inputs a reduced model needs for a steady parameter query or a time-dependent forecast, including prescribed forcing.
- Assemble dimensionless velocity and pressure snapshots on a finite-volume mesh and explain how cell-volume weighting affects the POD basis.
- Use singular values and modal coefficients to choose a reduced representation and compare coefficient interpolants using training cases.
- Reconstruct a flow field at a new operating point and assess its accuracy against an independent CFD calculation.
Why reduce the order of a flow model?
Suppose we have computed the steady pressure field around an airfoil at several angles of attack. A designer now asks what happens at an angle between two of our simulations. Running CFD again would give us another full field. If the question comes up hundreds of times during a design study, can we reuse what we already know about how the pressure distribution changes?
In the previous lecture, we saw that a few spatial modes can describe much of the variation in a sequence of flow fields. If we store the modes and their coefficients, we can reconstruct a snapshot. To answer the designer’s question, we need one more ingredient: a way to predict the coefficients for a case we have not computed. The cost of building that predictor and collecting its training data is paid up front. The potential saving comes when we evaluate it repeatedly (Benner et al. 2015).
The first distinction is what we want to predict. For a steady airfoil flow, we seek one field at a specified operating point. For an unsteady airfoil flow, we seek a sequence of fields. In the latter case, two further questions determine the model inputs. Do the operating conditions vary between runs? Do we prescribe a forcing signal during each run?
From snapshots to predictions
- Reduce the dimension. We collect the field values of one snapshot in a vector \(\mathbf{x}\) of length \(M\). An encoder \(E\) maps it to \(\mathbf{z}=E(\mathbf{x})\) with only \(r\) entries, where \(r\ll M\). For proper orthogonal decomposition (POD), these entries are the coefficients of the retained modes. The space in which \(\mathbf{z}\) lives is the latent space.
- Predict in the latent space. Each training snapshot gives us a target \(\mathbf{z}_i=E(\mathbf{x}_i)\). We pair it with the information \(\mathbf{q}_i\) that would be available when making that prediction. For a steady field, this might be the angle of attack. For a forecast, it might be the preceding latent state and a prescribed input. We fit a predictor \(g\) to these pairs. Given a new query \(\mathbf{q}\), we can then estimate the unknown coordinates as \(\hat{\mathbf{z}}=g(\mathbf{q})\). A classifier can also use latent coordinates to identify a buffet regime or select a regime-specific predictor. Reconstructing an individual pressure field still requires an estimate of its coordinates.
- Reconstruct the state. A decoder \(D\) maps the predicted coordinates back to the grid, giving \(\hat{\mathbf{x}}=D(\hat{\mathbf{z}})\). For POD of mean-subtracted snapshots this amounts to adding the predicted weighted sum of modes to the mean field. Even exact coefficients leave a reconstruction error if the discarded modes contain part of the field.
For a new steady operating point, we already know the query from the specified conditions. For an autoregressive forecast, we first encode the initial state, then use predicted coordinates to construct subsequent queries. In both cases we can reconstruct a field whenever we need it. Another way to obtain a reduced predictor is to project the governing equations onto a reduced basis (Benner et al. 2015).
What information does the predictor need?
A field at a new operating point
For steady airfoil flow, let \(\boldsymbol{\mu}=(\alpha,M_\infty,Re)\) collect the angle of attack, freestream Mach number, and Reynolds number. We assume a single steady solution on the branch of interest. Each training simulation or experiment gives us a field \(\mathbf{x}_i\) paired with its operating point \(\boldsymbol{\mu}_i\). After encoding the fields, we fit a map \(g\) to the pairs \((\boldsymbol{\mu}_i,\mathbf{z}_i)\). A prediction then takes the form
\[ \hat{\mathbf{z}}=g(\boldsymbol{\mu}), \qquad \hat{\mathbf{x}}=D(\hat{\mathbf{z}}). \]
This is a steady parametric ROM. One example is POD with interpolation (PODI), where a radial basis function interpolant predicts each modal coefficient. We can check its accuracy by withholding entire operating points inside the sampled region and comparing reconstructed fields with the corresponding reference fields. Predicting beyond that region is extrapolation.
A field at a later time
Now suppose the airfoil is held fixed and the flow exhibits transonic buffet. Even at constant operating conditions the shock can oscillate. A single steady field cannot tell us where the shock will be a few time steps from now. We use time-ordered snapshots and initialize a predictor from the observed state. In the simplest autoregressive model, each predicted state becomes the input to the next step:
\[ \mathbf{z}_0=E(\mathbf{x}_0),\qquad \hat{\mathbf{z}}_1=F(\mathbf{z}_0),\qquad \hat{\mathbf{z}}_2=F(\hat{\mathbf{z}}_1),\qquad \ldots \]
The resulting sequence is a rollout. A linear example is reduced dynamic mode decomposition (DMD), with \(F(\mathbf{z})=\mathbf{A}\mathbf{z}\). A predictor can also use several past states. This is especially helpful with a probe signal: the same pressure value can occur on both the rising and falling parts of an oscillation. Several consecutive measurements can distinguish those phases. With probe data alone the decoder can reconstruct the measured signal; recovering a spatial field additionally requires a relationship between the probes and that field. In a rollout, errors in the predicted phase can accumulate even when individual one-step predictions are accurate.
Parameters and forcing in a rollout
A parameter describes an operating condition held fixed during one trajectory. A forcing input is supplied to the model as the trajectory unfolds and can change from one step to the next. The distinction depends on the experiment. For a pitching airfoil, we can write the incidence as \(\alpha(t)=\bar\alpha+u(t)\). The mean incidence \(\bar\alpha\) can be a parameter, while the prescribed pitch displacement \(u(t)\) is a forcing history.
The four time-dependent cases answer different questions about the same airfoil:
| Operating conditions | Question | Example latent predictor |
|---|---|---|
| Fixed, unforced | Given the current buffet state, where will the shock be next? | DMD fitted at one operating point. |
| Fixed, forced | How does the flow respond to a prescribed pitching motion? | DMD with control (DMDc), \(\hat{\mathbf{z}}_{k+1}=\mathbf{A}\mathbf{z}_k+\mathbf{b}u_k\), uses the imposed input during each interval (Proctor et al. 2016). |
| Parametric, unforced | How do the frequency and amplitude of buffet change with Mach number and mean incidence? | A parameter-conditioned autoregressor takes \(\mathbf{z}_k\) and \(\boldsymbol{\mu}\) as inputs and is fitted to trajectories at several operating points. |
| Parametric, forced | How does the response to the same pitching maneuver change with Mach number? | A parameter-dependent DMDc model uses reduced operators \(\mathbf{A}(\boldsymbol{\mu})\) and \(\mathbf{b}(\boldsymbol{\mu})\) in a common coordinate system. |
For a forced forecast we need the future input sequence, whether it comes from a prescribed motion or from a controller that chooses the next action during the rollout. For a parametric forecast we supply the operating point once and keep it fixed. An experiment can involve both: in a pitching study we can vary the Mach number between runs and apply a different pitch command at each time step within a run.
The flowTorch library supports reduced-order modeling of fluid flows (Weiner and Semaan 2021). Its ROM subpackage follows the same organization (flowTorch contributors 2026). It separates the encoder and decoder from the latent predictor, and distinguishes parameter-tagged snapshots, time trajectories, and trajectories with forcing. Its prediction interface lets a model specify which inputs it needs. We will use these distinctions when we turn to individual algorithms.
POD with interpolation
The prediction problem
Suppose we know the steady flow past an airfoil at angles of attack of \(0^\circ\), \(2^\circ\), \(4^\circ\), \(6^\circ\), and \(8^\circ\). Can we predict the two in-plane velocity components and the pressure at \(5^\circ\)? We use proper orthogonal decomposition with interpolation (PODI): the CFD snapshots provide spatial patterns shared across the operating points, and an interpolant predicts how strongly each pattern contributes at a new angle.
Our example is the steady, incompressible simpleFoam/airFoil2D case in OpenFOAM v2606. The chord joins the leading and trailing edges of the airfoil. Its length on the supplied mesh is \(c\approx35.05\,\mathrm{m}\). We keep the geometry, kinematic viscosity (\(10^{-5}\,\mathrm{m^2/s}\)), and freestream speed (\(U_\infty=26\,\mathrm{m/s}\)) fixed and vary the direction of the incoming flow. We measure \(\alpha\) counterclockwise from the mesh chord to the incoming velocity vector. The chord is inclined by \(\beta\approx-0.50^\circ\) to the mesh \(x\) axis, so the imposed vector is \(U_\infty(\cos(\beta+\alpha),\sin(\beta+\alpha),0)\). The sketch exaggerates the angle for clarity.

The chord-based Reynolds number is \(Re_c=U_\infty c/\nu\approx9.11\times10^7\). It stays fixed as we rotate the freestream. For air with an assumed speed of sound of \(a_\infty=343\,\mathrm{m/s}\), the corresponding freestream Mach number would be \(M_\infty=U_\infty/a_\infty\approx0.076\). The incompressible solver has no speed-of-sound input, so this Mach number gives a physical scale for the example.
How does incidence change the flow?
The columns below show converged CFD solutions at \(0^\circ\), \(4^\circ\), and \(8^\circ\). We divide both mesh-axis velocity components by the same freestream speed \(U_\infty\) and the kinematic pressure by \(U_\infty^2\). The color limits stay fixed across each row, so a change in color between columns represents a change in the field.

At zero incidence, pressure and streamwise velocity look similar above and below the nose. The transverse velocity changes sign as the incoming flow divides around the airfoil. As incidence increases, the flow accelerates more strongly over the upper surface near the leading edge. The region of low pressure there becomes more pronounced, while the high-pressure region around the nose shifts toward the lower surface. The transverse velocity also reflects the imposed change in direction: even far upstream its value varies with incidence. Our reduced model must capture both this change in the incoming velocity and the local redistribution around the airfoil.
From three fields to one snapshot
Let \(i=1,\ldots,P\) index the \(P=10{,}720\) mesh cells and let \(j=1,\ldots,N\) index the \(N=5\) training angles in increasing order. For the solution at angle \(\alpha_j\), cell \(i\) supplies three scalar values: the two mesh-axis velocities \(u_{x,i}^{(j)}\) and \(u_{y,i}^{(j)}\), and the kinematic pressure \(p_i^{(j)}\). We use the same cell numbering and pressure reference in every run.
To construct snapshot \(j\), we first read the streamwise velocity in cell order, from cell 1 through cell \(P\). We repeat this for the transverse velocity and then for pressure. Dividing by the respective freestream scales before stacking gives one dimensionless column vector:
\[ \mathbf{x}_j = \left[ \underbrace{\frac{u_{x,1}^{(j)}}{U_\infty},\ldots, \frac{u_{x,P}^{(j)}}{U_\infty}}_{P\text{ streamwise velocities}},\; \underbrace{\frac{u_{y,1}^{(j)}}{U_\infty},\ldots, \frac{u_{y,P}^{(j)}}{U_\infty}}_{P\text{ transverse velocities}},\; \underbrace{\frac{p_1^{(j)}}{U_\infty^2},\ldots, \frac{p_P^{(j)}}{U_\infty^2}}_{P\text{ pressures}} \right]^{\mathsf T} \in\mathbb R^{M},\qquad M=3P=32{,}160. \]
For example, the three values from cell 1 occupy rows 1, 10,721, and 21,441 of the same column. The last row, 32,160, contains the normalized pressure in cell 10,720. Placing the five snapshot columns side by side gives the data matrix
\[ \mathbf{X} = \begin{bmatrix}\mathbf{x}_1 & \mathbf{x}_2 & \mathbf{x}_3 & \mathbf{x}_4 & \mathbf{x}_5\end{bmatrix} \in\mathbb R^{M\times N}=\mathbb R^{32{,}160\times5}. \]
Reading down column \(j\) gives the full state at one angle. Reading across a row gives one quantity in one cell as the angle changes. We subtract the training mean \(\bar{\mathbf{x}}=\frac{1}{N}\sum_{j=1}^{N}\mathbf{x}_j\) from each column to form the centered matrix \(\mathbf{X}_c\). We reserve the five-degree field for evaluating the prediction.
Why weight the POD by cell volume?
Imagine subdividing a cell into four equal cells while leaving a field approximation and its local error unchanged. In an unweighted sum of squared errors, this region would now count four times as much. Such a norm gives regions of high mesh density, including the region close to the airfoil, extra influence simply because we sample them more often. Weighting each contribution by its cell volume instead approximates a spatial integral: the four smaller contributions add up to the original one.
We use volume fractions \(w_i=V_i/\sum_{k=1}^P V_k\) and repeat them for each dimensionless field. With \(\mathbf{W}_c=\operatorname{diag}(w_1,\ldots,w_P)\) and \(\mathbf{W}=\operatorname{diag}(\mathbf{W}_c,\mathbf{W}_c,\mathbf{W}_c)\), the squared norm \(\mathbf{e}^\mathsf{T}\mathbf{W}\mathbf{e}\) sums the volume-averaged squared errors in the three components. This reduces mesh-density bias. It also specifies what we value: over this large external domain the far field occupies considerable volume. Accuracy at the airfoil wall would call for a separate local assessment.
We compute the thin SVD of the weighted, centered snapshots and retain the first \(r\) directions:
\[ \mathbf{W}^{1/2}\mathbf{X}_c=\mathbf{Q}\boldsymbol{\Sigma} \mathbf{V}^\mathsf{T},\qquad \boldsymbol{\Phi}_r=\mathbf{W}^{-1/2}\mathbf{Q}_r,\qquad \mathbf{Z}=\boldsymbol{\Phi}_r^\mathsf{T}\mathbf{W}\mathbf{X}_c=\boldsymbol{\Sigma}_r\mathbf{V}_r^\mathsf{T}. \]
The coefficient matrix \(\mathbf{Z}\) plays the same role as \(\mathbf{Y}\) in the coherent-structures lecture: each row follows one mode across snapshots. Here each column corresponds to an angle of attack.
A column of \(\boldsymbol{\Phi}_r\) is a joint mode. Splitting it into three blocks gives spatial patterns for \(u_x/U_\infty\), \(u_y/U_\infty\), and \(p/U_\infty^2\). The same coefficient multiplies all three blocks. The figure shows the two leading modes near the airfoil; the basis was computed over the entire mesh. Each panel has its own symmetric color limits so that weaker components remain visible. The sign of a mode is conventional: reversing it and its coefficient together gives the same reconstruction.

What do we need to interpolate?
The singular values measure the size of the training variation in each modal direction. Five centered snapshots give at most four nonzero singular values, shown below on a logarithmic scale. The first two modes capture \(\sum_{i=1}^{2}\sigma_i^2/\sum_i\sigma_i^2=99.934\%\) of the centered, volume-weighted training variation. We retain these two modes for prediction.

The markers in the two coefficient panels are the entries of the rows of \(\mathbf{Z}\). The first coefficient grows almost linearly with angle. The second is smaller and turns over near \(4^\circ\). Its separate vertical scale makes that curvature visible. We compare two simple regressors: straight lines joining adjacent markers and a single quadratic least-squares fit for each coefficient. To choose between them, we successively omit \(2^\circ\), \(4^\circ\), and \(6^\circ\), refit the mean, rank-two basis, and regressor to the four remaining cases, and predict the omitted field. The average dimensionless error \(\|\hat{\mathbf{x}}-\mathbf{x}\|_{\mathbf{W}}\) is 0.00237 for piecewise linear interpolation and 0.00239 for the quadratic. These scores are close; we use the simpler local interpolant shown in the figure. The independent \(5^\circ\) case is still unused.
Reconstructing the five-degree flow
Five degrees is halfway between two training angles. We interpolate both modal coefficients, decode them, and add back the mean:
\[ \hat{\mathbf{z}}(5^\circ)=\tfrac12 \mathbf{z}(4^\circ)+\tfrac12 \mathbf{z}(6^\circ),\qquad \hat{\mathbf{x}}(5^\circ)=\bar{\mathbf{x}}+\boldsymbol{\Phi}_2\hat{\mathbf{z}}(5^\circ). \]
We split \(\hat{\mathbf{x}}\) into three consecutive blocks of length \(P\), giving \(\hat u_x/U_\infty\), \(\hat u_y/U_\infty\), and \(\hat p/U_\infty^2\). The independent CFD solution at \(5^\circ\) uses the same scales. For example, the signed pressure difference in the last column is \((\hat p-p_{\rm CFD})/U_\infty^2\).

Each row uses matching limits for CFD and PODI. The difference column uses a smaller symmetric scale for the dimensionless error. Coordinates in the spatial plots are measured from the mesh leading edge along the mesh axes and divided by \(c\). The plots zoom in on the airfoil. Over the whole mesh, the volume-weighted relative errors are 0.134% for \(u_x\), 0.123% for \(u_y\), and 0.236% for \(p\), each normalized by the weighted norm of its own CFD reference field. The code companion reproduces the cases, the interpolation check, and all five figures.
Time-dependent reduced-order models
This section will be added soon.