1. Create Case

After opening SimFlow, we will create a new case named wing

1. Go to New panel
2. Provide name wing
3. Click Create Case

2. Import Geometry

Firstly, we need to Download Geometry: wing.stl

1. Click Import Geometry
2. Select geometry file wing.stl
3. Click Open

3. Geometry - Wing

After importing geometry, it will appear in the 3D window.

1. Set the XY orientation View XY
2. Click Fit View to fit geometry in the view

4. Meshing Parameters - Wing

In order to create the mesh, we need to specify geometry options for the meshing process. We will increase mesh resolution near the wing surface.

1. Go to Hex Meshing panel
2. Select wing
3. Enable Mesh Geometry
4. Enable Create Boundary Layer Mesh
5. Set Refinement to Min 4 Max 7

5. Base Mesh - Domain

Our simulation will be limited to a 2D flow. This can be accomplished by choosing the Plate type as the background mesh.

1. Go to Base tab
2. Select Plate as a Base Mesh Type
3. Define minimum and maximum extend
Min [m] -15 -15
Max [m] 20 15
4. Set the division of the base mesh
Division 105 90

6. Material Point

Material Point tells the meshing algorithm on which side of the geometry the mesh is to be retained. Since we are considering flow around the wing we need to place the material point outside the geometry.

1. Go to Point tab
2. Specify location inside base mesh but outside wing geometry
Material Point -2 0 0

You can specify the point location from the 3D view. Hold the Ctrl key and drag the arrows to the destination.

7. Start Meshing

We can define the count of the buffer cells between refinement levels. This parameter determines the width of the transition zone between refined and background mesh. A higher value of this parameter will increase the overall cells count.

1. Switch to Mesh tab
2. Go to Settings
3. Change Cells Between Levels to 5
4. Start the meshing process with Mesh button

8. Mesh

After the meshing process is finished the mesh should appear in the graphics window.

1. Click Fit View to fit mesh in the view

9. Examine Mesh

For further examination, we should zoom in to see the refinement mesh. Additionally, we can switch projection view from perspective to parallel as the parallel view is more appropriate for visualizing 2D objects.

1. Zoom in the mesh – use the Scroll Wheel or drag mouse with RMB (right mouse button) pressed
2. Click on Change View Projection
3. Select Parallel view

10. Select Solver - SIMPLE

We want to compute the steady-state solution of the incompressible turbulent flow around the airfoil. For this purpose, we will use the SIMPLE (simpleFoam) solver.

1. Go to SETUP panel
2. Select Steady State filter
3. Check Incompressible flow
4. Pick SIMPLE (simpleFoam) solver
5. Select solver

11. Turbulence

For the purpose of this tutorial, we will simulate the turbulence phenomenon using the k-ω SST model.

1. Go to Turbulence panel
2. Select RANS turbulence formulation
3. Select k-ω SST model

12. Boundary Conditions - Boundaries (Flow)

The domain has only one external boundary. We will use the Free Stream character type to model the far field conditions. The flow will be aligned with the x-axis.

1. Go to Boundary Conditions panel
2. Select boundaries
3. Set the Free Stream character
4, 5. Change the velocity type and value accordingly
U Type Free Stream
U Freestream Value [m/s] 40 0 0

13. Boundary Conditions - Boundaries (Turbulence)

Additionally to flow conditions, we will modify default free stream turbulence properties.

1. Switch to Turbulence tab
2. Set the k Intensity [-] to 1e-02

14. Monitors - Forces

In order to measure aerodynamic forces, we will use the force monitor. We will observe drag and lift force coefficients on the aerofoil boundary.

1. Go to Monitors panel
2. Switch to Forces tab
3. Expand Monitored Boundaries list and check wing
4. Check Monitor Coefficients option
5. Set lift direction vector along Y axis
Lift Direction 0 1 0
6. Set pitch axis vector along Z axis
Pitch Axis 0 0 1
7. Set the reference velocity
U[m/s] 40

15. Run - Time Control

1. Go to RUN panel
2. Set the maximal Number of Iterations to 250
3. Click Run Simulation button

16. Results - Force Coefficient

During the simulation, we can observe whether forces on the wing stabilize which will mean that our simulation converges

1. Go to Force Coefficient tab

17. Postprocessing – ParaView

After the computation is finished we can do a comprehensive visualization of our results with ParaView.

2. Click on Run ParaView

18. ParaView - Load Results

After opening the ParaView, we need to load the simulation results from SimFlow.

1. Select your case wing.foam
2. Click Apply to load results into ParaView
3. Click Load a color palette and choose White Background
4. Select the velocity U from the list
5. Load the latest results by clicking Last Frame icon
6. Click Rescale to data range
7. After loading results they will be shown in the 3D graphic window. Your default color map may be different than the one below. Go to the next slide and choose an appropriate preset.

19. ParaView - Choose Preset

1. Click Edit Color Map from the menu placed on the left side
2. Select Choose Preset from the Color Map Editor placed by default on the right side of the ParaView
3. Search rainbow
4. Choose Blue to Red Rainbow preset
5. Apply changes
6. Close Choose Preset window
7. Set Number of Table Values to 20
8. Click Save current color map settings values as default for all arrays

20. ParaView – Streamlines

We can visualize the flow by displaying the streamlines.

1. Select your case wing.foam
2. Select Stream Tracer from top menu
3. Set the start point and end point of the streamline source
Point1 -5 -3 0.5
Point2 -5 3 0.5
4. Set the number of streamlines
Resolution 300
5. Click Apply
6. Select StreamTracer1
7. Select the velocity U from the list
8. Zoom in to the wing profile

21. ParaView – Import Wing Geometry (I)

To display the wing geometry with the streamlines, we need to read the geometry file to the ParaView.

1. Select Open from top menu
2. From the bottom left menu select wing folder
3. From the right menu open constant and than triSurface folder
4. Select wing.stl
5. Press OK

22. ParaView – Import Wing Geometry (II)

Confirm default properties and display geometries with streamlines.

1. Click Apply to load geometry
2. After loading geometry, it will be shown in the 3D graphic window

23. Discretization - Convection

After preliminary calculation, we will continue with a more accurate algorithm. Go back to the Simflow but do not close the ParaView yet. Change velocity discretization to the Linear Upwind scheme. This will decrease numerical diffusion affecting the results.

1. Go to Discretization panel
2. Switch to Convection tab
3. Click on Upwind to extend the list
4. Select Linear Upwind

24. Run - Continue Simulation

1. Go to RUN panel
2. Increase the Number of Iterations to 500
3. Click Continue Simulation button

Estimated computation time: 1 minute

25. Force Coefficient

You can observe in the Force Coefficient plot that after switching to second-order the coefficients started to oscillate.

1. Switch tab to Force Coefficient

26. ParaView - Reload the results

Switch window to ParaView once again. To read newly calculated steps we need to reload the results.

1. Click Refresh
2. Click Last Frame to display the latest results

27. ParaView - Streamlines Results

Finally, we can see the results in the 3D window. We observe the flow separation on the second flap. This separation is the cause of the flow instability that we have observed as oscillating values of the force coefficients.

This website uses cookies to offer you the best experience online. By continuing to use our website, you agree to the use of cookies.