Tutorial 2: Modal Analysis#

Goals of the tutorial#

In this tutorial, we will do an eigenvalue decomposition of the base flow obtained in the tutorial of cylinder wake. By the end of this tutorial, you will be able to:

  • Define the boundary conditions.

  • Run a linear stability analysis case.

  • Postprocess modal analysis results with paraview.

The linear stability analysis provides insights into:

  • The growth or decay rates of small perturbations superimposed on the base flow.

  • The dominant spatial structures (modes) associated with flow instabilities.

The modal analysis will:

  1. Identify which flow structures are most likely to become unstable.

  2. Quantify the stability characteristics by computing eigenvalues and corresponding eigenmodes.

Requirements#

Before you begin this tutorial make sure to:

  • have completed the base flow tutorial.

  • access the case folder felics/tutorials/modal_analysis_tutorial and copy it into your working directory.

Running the analysis#

Run the modal analysis via

FELiCS -f modal.json

Postprocessing#

After running the modal analysis, the working directory should look like:

.
└── logs
└── output_dir
├ base_flow_for_FELiCS.fel
├ bc_modal.json
├ cylinder_wake.msh
├ modal.json
├ PlotScatter.py
└ ...

Inside the output_dir directory, all the eigenmodes in .h5 and .xmf format can be found, along with the eigenvalues in spectrum.csv file. Run the pyhton script PlotScatter.py to plot the computed eigenvalue spectrum: Figure 1. Eigenspectrum

In Figure 1, an eigenvalue with a positive imaginary part stands out. We use paraview to visualize the corresponding real part of the eigenmode stored in Mode_Modal_Direct_Omega_0.745+0.013j.xmf.

Figure 2. Real eigenmode, \(u'_x\)

Figure 3. Real eigenmode, \(u'_y\)

Figure 4. Real eigenmode, \(p'\)