Skip to content
/ turbPOD Public

Python scripts that compute the Proper Orthogonal Decomposition (POD) of a dataset.

License

Notifications You must be signed in to change notification settings

flohey/turbPOD

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Python scripts that compute the Proper Orthogonal Decomposition (POD) of a dataset.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages