/NACAFoil-OpenFOAM

OpenFOAM case files for simulating NACA foils.

Primary LanguageC++GNU General Public License v3.0GPL-3.0

NACA foil OpenFOAM case files

OpenFOAM (3.0.x) case files for simulating NACA foils. Wikipedia's NACA 4-digit airfoils (http://en.wikipedia.org/wiki/NACA_airfoil)

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

Just forking Pete Bachant (https://github.com/petebachant/NACAFoil-OpenFOAM) work to play with NACA foils. Some stuff needs update.

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.

Creative Commons License
All other materials licensed under a Creative Commons Attribution 4.0 International License.