Skip to main content
Visualize Flow Movement

In this section of the Piper Cherokee sample project we'll use different tools to visualize how the flow moves.

Updated over a week ago

One of the powerful abilities of computational fluid dynamics is that it can allow us to visualize the usually invisible movement of a fluid past an object. This understanding can be critical in improving the designs of vehicles and aircraft.

In this lesson we'll use a range of different visualization tools in Luminary to analyze the movement of air around the Piper Cherokee.

Before continuing, first ensure the airplane is clearly visible in the 3D Viewer, and turn off and deselect any other existing visualizations.‍

Slice

We'll create two slices, one running vertically through the length of the Piper Cherokee and the other cutting vertically across the wingspan:

  1. Click the Slice icon in the Visualization toolbar.

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

    1. Color By: Velocity (m/s)

    2. Component: Magnitude

    3. Representation: Surface

  3. Then in the Visualization options set:

    1. Origin: 0, 0, 0

    2. Normal: 0, 1, 0

  4. Click the check button to create the first slice.

  5. Double click on the name of this slice in the Visualization section of the Control panel, and change it to "Vertical: Nose-Tail"

  6. Repeat this process for a second slice, changing:

    1. Origin: 2.5, 0, 0

    2. Normal: 1, 0, 0

    3. Name: "Vertical: Wingspan"

Important: When creating multiple visualizations, ensure you deselect any previous visualizations first. Otherwise subsequent visualizations will be nested within these.

Now experiment with turning these slices on and off (using the eye symbol to the right of each in the Visualization section of the Control panel), and changing their Display options to view the different velocity magnitudes. This should allow you to get a general idea of how the air is moving around the airplane, although you will not see exact flow features.

Streamlines

Next we'll create streamlines to highlight how fluid particles are moving through the domain around the aircraft. We'll seed a rake beginning from just in front of the aircraft. Given the wings have a slight V-shape upwards, some of these streamlines will pass above the wings, and some below.

First turn off and deselect any previously created visualizations. Then:

  1. Click the Streamlines icon in the Visualization toolbar.

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

    1. Color By: Velocity (m/s)

    2. Component: Magnitude

    3. Representation: Surface

  3. Then in the Visualization Input options set:

    1. Streamline Field: Velocity (m/s)

    2. Integration Direction: Forward

    3. Maximum Length: 25

    4. Seed Type: Rake

    5. Start: -1, -4, -0.3

    6. End: -1, 4, -0.3

    7. Number of Streamlines: 20

    8. Rendering: Tube

    9. Radius: 0.02

  4. Click the check button to create the streamlines.

  5. Double click on the name of the streamlines in the Visualization section of the Control panel, and change it to "Streamline Rake".

You should see that the streamlines nearer the root of the wings pass over the top of the wings and then under the tail. Streamlines closer to the tip of the wings begin to spiral around as the air passes backwards from the airplane. Try experimenting with changing the streamline settings to get further understanding about the flow movement.

Vectors

Now we'll add vectors into to the domain to show the instantaneous movement of fluid particles. First turn off and deselect any previously created visualizations. Then:

  1. Click the Vectors icon in the Visualization toolbar.

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

    1. Color By: Velocity (m/s)

    2. Component: Magnitude

    3. Representation: Surface

  3. Then in the Visualization Input options set:

    1. Vector Field: Velocity (m/s)

    2. Scale Factor: 0.005

    3. Fixed Length: Off

    4. Sampling Method: Every Nth Point

    5. N: 4000

  4. Click the check button to create the vectors.

  5. Double click on the name of the vectors in the Visualization section of the Control panel, and change it to "Vectors Field".

You will notice that in areas of high mesh density, i.e., around the airplane, there is a greater number of vector glyphs. Additionally, the vectors move generally in the direction from the front to the back of the plane, but close to the surface itself the flow changes direction as it avoids the airplane. Depending on the exact seeding, you may also discover areas of recirculation.

Surface LIC

This is an Early Access feature that is still under development. View the Luminary Cloud Early Access Terms.

Finally we'll create a representation of fluid movement across the surface of the Piper Cherokee using a technique called surface line integral convolution (surface LIC). This is a method for visualizing vector fields.

First turn off and deselect any previously created visualizations. Then:

  1. Click the Surface LIC icon in the Visualization toolbar.

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

    1. Color By: Wall Shear Stress (N/m2)

    2. Component: Magnitude

    3. Representation: Surface

    4. Dark Contrast: 0%

    5. Light Contrast: 75%

  3. Then in the Visualization Input options set:

    1. Surface LIC Field: Wall Shear Stress (N/m2)

    2. Click in the box and select the Airplane surface group from the Geometry panel. Then click outside the box to save.

  4. Click the check button to create the visualization.

  5. Double click on the name of the surface LIC in the Visualization section of the Control panel, and change it to "Airplane Surface".

  6. Set the quantity displayed on the airplane surface itself to also be Wall Shear Stress (N/m2).

While this visualization will not show the velocity of the flow at the airplane surface (which is zero in this case), it can show an idea of the flow near the wall by illustrating the directions of the stresses there.

Did this answer your question?