The Wayback Machine - https://web.archive.org/web/20200906050227/https://github.com/petebachant/NACAFoil-OpenFOAM/
Skip to content
master
Go to file
Code

README.md

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.

Creative Commons License
All other materials licensed under a Creative Commons Attribution 4.0 International License.
You can’t perform that action at this time.