# Dynamic mode decomposition

Physical systems, such as fluid flow or mechanical vibrations, behave in characteristic patterns, known as modes. In a recirculating flow, for example, one may think of a hierarchy of vortices, a big main vortex driving smaller secondary ones and so on. Most of the motion of such a system can be faithfully described using only a few of those patterns. In a purely mathematical setting similar modes can be extracted form the governing equations using an eigenvalue decomposition. But in many cases the mathematical model is very complicated or not available at all. In an experiment, the mathematical description is not at hand and one has to rely on the measured data only. The dynamic mode decomposition (DMD) is a mathematical method to extract the relevant modes from experimental data, without any recurrence to the governing equations. It can thus be applied to any dynamic phenomenon where appropriate data is available. It is similar, but different from proper orthogonal decomposition which has similar features but lacks dynamical information about the data.

## Description

A time-evolving physical situation may be approximated by the action of a linear operator $e^{\Delta t A}$ to the instantaneous state vector.

${q(t+\Delta t)} \approx e^{\Delta t A} q(t)$

The dynamic mode decomposition strives to approximate the evolution operator $\tilde A := e^{\Delta t A}$ from a known sequence of observations, $V_{0 \dots n}=\{q_0, q_1, q_2, \dots, q_n \}$. Thus, we ask the following matrix equation to hold:

$V_{1 \dots n+1}=\tilde A V_{0\dots n}$

The right hand side states that $V_{1\dots n+1}$ is a linear combination of the columns of $\tilde A$, which can be expressed as

$V_{1 \dots n+1}= V_{0\dots n} S$

where S is the companion matrix

$S=\begin{pmatrix} 0 & 0 & \dots & 0 & c_0 \\ 1 & 0 & \dots & 0 & c_1 \\ 0 & 1 & \dots & 0 & c_2 \\ \vdots & \vdots & \ddots & \vdots & \vdots \\ 0 & 0 & \dots & 1 & c_n \end{pmatrix}.$

The matrix S is small as compared to the sample data V. Therefore eigenvalues and eigenvectors can be computed with ease.

## Examples

### Trailing edge of a profile

Fig 1 Trailing edge Vortices (Entropy)

The wake of an obstacle in the flow may develop a Kármán vortex street. The Fig.1 shows the shedding of a vortex behind the trailing edge of a profile. The DMD-Analysis was applied to 90 sequential Entropy fields (animated gif (1.9MB) ) and yield an approximated Eigenvalue-Spectrum as depicted below. The analysis was applied to the numerical results, without referring to the governing equations. The profile is seen in white. The white arcs are the processor boundaries, since the computation was performed on a parallel computer using different computational blocks.

Roughly a third of the spectrum was highly damped (large, negative $\lambda_r$) and is not shown. The dominant shedding mode is shown in the following pictures. The image to the left is the real part, the image to the right, the imaginary part of the Eigenvector.

Again, the Entropy-Eigenvector is shown in this pictures. The acoustic contents of the same mode is seen in the bottom half of the next plot. The top half corresponds to the entropy mode as above.

### Synthetic example of a traveling pattern

The DMD analysis assumes a pattern of the form $q(x_1,x_2,x_3, ...)=e^ {c x_1 }\hat q(x_2,x_3,..)$ where $x_1$ is any of the independent variables of the problem, but has to be selected in advance. Take for example the pattern

$q(x,y,t)=e^{-i \omega t} \hat q (x,t) e^{-(y/b)^2} \Re \left\{ e^{i (k x - \omega t)} \right\} + \mbox{Random Noise}$

With the time as the preselected exponential factor.

A sample is given in the following figure with $\omega = 2*\pi /0.1$, $b=0.02$ and $k = 2*\pi/ b$ The left picture shows the pattern without, the right with noise added. The amplitude of the random noise is the same as that of the pattern.

A DMD analysis is performed with 21 synthetically generated fields using a time interval $\Delta t =1/90 s$, limiting the analysis to $f =45 Hz$.

The spectrum is symmetric and shows 3 almost undamped modes (small negative Real part), whereas the other modes are heavily damped. Their numerical values are $\omega_1=-0.201, \omega_{2/3}=-0.223 \pm i 62.768$ respectively. The real one corresponds to the mean of the field, whereas $\omega_{2/3}$ corresponds to the imposed pattern with $f = 10Hz$. Yielding a relative error of -1/1000. Increasing the noise to 10 times the signal value yields about the same error. The real and imaginary part of one of the latter two Eigenmodes is depicted in the following figure.