Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 1.87 KB

README.md

File metadata and controls

27 lines (20 loc) · 1.87 KB

turbPOD

Python code for performing the snapshot Proper Orthogonal Decomposition (POD) fluid flow data. The script computes the spatial modes and the temporal coefficients of the flow data and stores them on the disc.

Examples

  • Two-dimensinal Rayleigh-Bénard convection at ${\rm Ra}= 10^6$ and ${\rm Pr}= 10$ in a rectangular box with aspect ratio $\Gamma = L_X/H = 4$. The boundary conditions were free-slip and constant temperature.

Manual

For a tutorial, see the prepared IPython Notebook tutorial.ipynb under /examples/two_dimensional_rbc/. Moreover, a post-processing script for the computed POD in read_pod.ipynb (same directory). For this, the POD has to be computed via the run_config.py script in a previous step.

About POD

The POD is a common Reduced Order Modeling technique in, e.g., the field of Fluid Dynamics. It decomposes the fluid flow into a set of orthogonal spatially dependent modes and their time-dependent coefficients. By restricting oneself to a subset of these modes and coefficients, the amount of input data can drastically be reduced. In this way, information on the initial data is lost. In the POD case, this information loss is optimal in a mean square sense. Note that the POD is also known as Principle Component Analysis (PCA).

Further information on the POD can be found here:

Requirements

Stable for

  • python >= 3.6.0
  • matplotlib >= 3.6.2
  • torch >= 1.10.0
  • numpy >= 1.20.1
  • h5py >= 2.10.0
  • pyyaml >= 6.0