Custom python scripts used to post process data in OpenFOAM. They allow analysis of field quantities, evaluation of turbulent kinetic energy (TKE) and related statistics. The structure of this custom package is shown below.
OpenFOAM-custom-scripts
├── README.md
├── setup.py
└── src
├── bin
│ ├── fieldAveraging
│ ├── intLengthScale
│ ├── regionOfSeparation
│ ├── sgsTkePerUnitArea
│ ├── tkePerUnitArea
│ ├── tkeStdDev
│ ├── trackVortices
│ └── twoPointCorr
├── postProcessConfig
└── readers
├── reader.py
└── reader_support_functions.py
The src
directory holds the different scripts:
fieldAveraging
: To average the field quantities in given y-z planesregionOfSeparation
: To evaluate the region of flow separation in the 3D domaintkePerUnitArea
: Evaluate the TKE area density in given planestkeStdDev
: Evaluate the standard deviation in TKE area densitytwoPointCorr
: Evaluate spanwise two-point correlations at specific streamwise locationstrackVortices
: Track the vorticity centers of coherent vortices
readers
holds the functions that read the data files generated by postProcess utilities of OpenFOAM and prepare them to be used by custom scripts.
The python scripts require the following
- numpy
- scipy
- matplotlib
- tqdm
Clone the master (default) branch from the git repository
git clone https://github.com/suyashtn/OpenFOAM-custom-scripts.git
setup and install the scripts
cd <your-path-to>/OpenFOAM-custom-scripts
python setup.py install
To install locally for a user, use the --user
flag
python setup.py install --user
The scripts are based and built on the scripts originally designed by Siddhesh Shinde.
Copyright © 2020, Suyash Tandon