NACAFoil-OpenFOAM
NACAFoil-OpenFOAM copied to clipboard
OpenFOAM case files for simulating NACA foils.
NACA foil OpenFOAM case files
OpenFOAM (3.0.x) case files for simulating NACA foils.
Dependencies
- Python
- NumPy
- pandas
- matplotlib
Note: All dependencies are included in the Anaconda Python distribution. Python 3.5 is recommended.
Usage
To run a single case, execute
./Allrun {foil} {alpha_deg}
For example, to simulate the flow around a NACA 0012 at 8 degrees angle of attack, run
./Allrun 0012 8
To automatically simulate multiple angles of attack, execute
python paramsweep.py
To plot the results for multiple angles of attack, run
python plot.py
Acknowledgements
blockMeshDict generation script based on work by
Håkon Strandenes.
Experimental data
NACA0012_6e6_Ladson* datasets taken from http://turbmodels.larc.nasa.gov/NACA0012_validation/CLCD_Ladson_expdata.dat,
linked from http://turbmodels.larc.nasa.gov/naca0012_val.html. Header:
# Data from Ladson, NASA TM 4074, 1988
# Re=6 million, with transition tripped
# M=0.15
License
Code is GPL licensed. See LICENSE for details.
All other materials licensed under a Creative Commons Attribution 4.0 International License.