Skip to main content

NACA0012 2D Airfoil

This tutorial introduces basic concepts for setting up your simulation for aerospace applications.

Updated yesterday

Time to complete: 20 min

Credits required: 1

CFD skill level afterwards: Beginner++

Note: If you've chosen this project from the New Project window in the app, it's pre-configured with a mesh file, settings, a pre-run simulation, visualization filters, and more.

Use this guide to create this case from scratch with a blank project.

In this Tutorial

Welcome to this tutorial on running an aerodynamics flow simulation over the NACA0012 airfoil! In this page you will learn:

  • how to setup a fluid physics simulation (assign boundary conditions, initial condition, etc),

  • how to build a Body Frame to compute forces & moments,

  • some basic post-processing (visualizations) of the simulation result,

  • and how to setup your first exploration (ensemble of simulations at different conditions),

and we'll point out some interesting features of the Luminary platform along the way. So get ready to dig in and have fun, and we'll get you to to this result in no time:

Background

The NACA 0012 is one of the standard airfoils developed by the U.S. National Advisory Committee for Aeronautics (NASA's precursor) in the 1920s and 1930s. This is one of the "four digit airfoils", where the first digit specifies the airfoil's maximum camber, the second digit the position of that maximum camber, and the last two digits the maximum thickness. Thus the NACA 0012 means an airfoil that is symmetrical with a maximum thickness equal to 12% of its chord length, but this four digit recipe can be used to understand any NACA XXXX airfoil you come across.

Getting Started

Log into the App and navigate to the Projects page, then click New Project in the top-right. In the modal that pops-up you will see a list of Sample Projects organized into sections β€” full or partially completed Projects that you can simply copy into your workspace. Select the one titled "NACA 0012" in the Case Studies section:

This Sample Project simply has a 2D mesh loaded, as if you had imported a 3rd-party mesh, and nothing else. We will setup the simulation, run it, as well as describe some additional things you may want to try to learn Luminary. Let's get started!

Project Files


Entering the Project

As if we had just uploaded a mesh, you will see the surfaces and volumes of the mesh described in the Geometry Tree. Importantly, we will use these entities (surfaces & volumes) to assign properties of the simulation, so it is important you re familiar with what they refer to.

You can visually explore by clicking the surface names in the Tree and seeing which surfaces highlight in the 3D Viewer, but you can also use Ghost Mode (Transparency mode) to make it easier to visualize specific surfaces as well. The four surfaces of interest are: z_plus, z_minus, airfoil, and farfield, which all enclose a single volume.

Because we have imported a mesh we can visualize the mesh topology (cell sizes and spatial distribution) by rendering the surface with edges - shown below is a side-view of the mesh near the airfoil itself:


Set Up the Simulation


Apply Visualizations

Nest a slice and a clip to view just the area in the vicinity of the airfoil.

Slice

  1. Click the Slice icon

    in the visualization toolbar and select Slice.

  2. In the properties panel, set the Visualization options to:

    1. Origin: 0, 0, 0.5

    2. Normal: 0, 0, 1

  3. Click the check button to create the slice.

Click the Zoom to Fit button at the bottom of the 3D Viewer to see the entire domain. It's difficult to view the flow features around the airfoil, so use the clip tool to only look at the area near the airfoil.

Clip

In the Geometry panel, hide the airfoil, farfield, z_minus and z_plus surfaces. You'll only be left with the slice.

Next, create the clip:

  1. Ensure the previous slice is currently selected in the Visualizations section of the Settings panel.

  2. Click the Clip icon

    in the visualization toolbar.

  3. In the properties panel, set the Display options to:

    1. Color By: Pressure (Pa)

    2. Representation: Surface

  4. In the Visualization Input options set:

    1. Clip Type: Box

    2. Box Center: 0, 0, 0.5

    3. Length: 4, 3, 2

    4. Rotation: 0, 0, 0

  5. Click the check button to create the clip.

Set the camera view to the -Z direction and click Zoom to Fit, you should see only the area around the airfoil, as shown below.

Did this answer your question?