# Mec208: Tutorial 6 – Cfd Compressible Flow

Essay by alawi1889 . • April 1, 2019 • Study Guide • 3,866 Words (16 Pages) • 595 Views

**Page 1 of 16**

MEC208: Tutorial 6 – CFD Compressible flow

[pic 1]

Learning Outcomes:

- Practice operating the Ansys software and workbench interfaces (Instructions for ANSYS 18.2)
- Create geometries from a coordinates file
- Implement a mapped mesh with defined sizing
- Use a density-based solver, suitable for compressible flow.
- Change fluid properties to use an ideal gas, required if the fluids required to compress.
- Utilize a standard initialisation scheme
- Extract relevant data to compare with theoretical calculations.

Contents

__Task overview 1__

__0. Theory 2__

__1. Workbench 2__

__2. Geometry 3__

__3. Mesh 5__

__4. Solver (FLUENT) Setup 6__

__5. Solver (FLUENT) Solution 9__

__6. Results 9__

__7. Stretch Goals 11__

__Appendix 1 – Creating a geometry coordinates file. 12__

## Task overview

- You will simulate the flow of air in a convergent divergent nozzle using Ansys FLUENT, and extract Mach number data.
- A 2D, axisymmetric, inviscid flow will be assumed to reduce computational time.

## 0. Theory

A convergent divergent (CD) or de Laval nozzle is one in which the area changes along its length, at first contracting to a minimum (called the throat) and then expanding out. These types of nozzles are very useful because when dealing with compressible flows (i.e. Mach number, M > 0.3) reducing the cross-sectional area to increase flow velocity is only valid in subsonic (M < 1) regime. Once the flow is supersonic (M > 1) then the cross-sectional area needs to increase to increase the velocity.

In this tutorial you will simulate the flow through a CD nozzle whose cross-sectional area changes according to the following equation:

[pic 2]

[pic 3]

Figure 1: Schematic of a convergent-divergent nozzle

The stagnation pressure, P0 at the inlet is 101325 Pa (1 atm) and the stagnation temperature, T0 is 300K. The static pressure at the outlet Poutlet is 3738.9 Pa. For this case consider the nozzle to be choked i.e. the flow at the throat is sonic (M=1). From the Little Book of Thermofluids we can determine that the pressure ratio P0/Pinlet = 1.02019 so that the static pressure at the inlet is 99348 Pa

Given that the Reynolds number for a high-speed flow like this one is quite large, then the viscous forces will be confined to a small region close to the wall. Hence, it is reasonable to assume the fluid to be inviscid.

## 1. Workbench

The Ansys Workbench interface serves as a bookkeeping interface which will keep track of the individual components needed to setup and run the simulation i.e. the geometry, the mesh, the solver and postprocessor. Given that the case being run in this tutorial is a simple one, we will use a fluid flow analysis system rather than a linked set of component systems to run this analysis.

- Launch Workbench by typing “workbench” on the search bar next to the windows start button. At this point save the project to a relevant location that you have write access.
- Drag an instance of Fluid Flow (Fluent) from the Analysis Systems Toolbox to the Project Schematic Window. (A dashed green box should appear in the top left corner of the window, drag the fluid flow system here).
- Right click on the Geometry component (row 2) and select Properties. The same can be achieved by going to the View menu and enabling Properties and then selecting the Geometry component.
- Change the Analysis Type from 3D to 2D
- Again, right click on the Geometry component (row 2) and click on New DesignModeler Geometry…

Refer to figure 2 for the locations of each step on the Project Schematic Window.

[pic 4]

Figure 2: Workbench project window

## 2. Geometry

In this section you will create the geometry of the nozzle by importing a set of coordinates from a file. Since the geometry has rotational symmetry, we can create a geometry only for the top half of the pie in 2D and then apply an axisymmetric condition in the solver. For this tutorial the coordinate file, NozzleWallCoords.txt, has been provided. For reference, there are detailed instructions on how these coordinate files need to be formatted for proper importing into DesignModeler in Appendix 1.

- Ensure that you have downloaded the file NozzleWallCoords.txt and saved it in the same location you saved the entire project.
- Go to the Units menu at the top of the window and select Meter
- Go to the Concept menu and select 3D Curve
- On the Details View change Definition to From Coordinates File
- For Coordinates File browse to where you saved the NozzleWallCoords.txt file and click Open.
- Click Generate.
- Click Zoom to fit. [pic 5]

You should now have four line bodies imported into DesignModeler as shown in figure 3.

- Create a new surface by selecting the Concept menu and then Surfaces From Edges.
- Select all four edges and then in the Details View for Edges click Apply. There are two ways to select the edges:

- Hold down the “Ctrl” key and mouse click on each edge individually.
- Change the Select Mode to Box Select and dragging the left mouse over all four edges.

- Click Generate
- In order to only carry the surface (not the lines) over to the Mesher, right click each Line Body (under 5 parts, 5 bodies) and select Suppress Body.

Your geometry should now be as shown in figure 4. If so, save your work, close down DesignModeler and return to workbench for the next stage of the process: Meshing.

[pic 6]

Figure 3: DesignModeler with the geometry imported

[pic 7]

Figure 4: DesignModeler with the surface generated and the line edges suppressed

## 3. Mesh

Back in the Project Schematic Window in Workbench the Geometry component (row 2) should now have a green tick next to it.

...

...

(2019, 04). Mec208: Tutorial 6 – Cfd Compressible Flow. *Essays24.com*. Retrieved 04, 2019, from https://www.essays24.com/essay/Mec208-Tutorial-6-Cfd-Compressible-Flow/89229.html

"Mec208: Tutorial 6 – Cfd Compressible Flow" __Essays24.com__. 04 2019. 2019. 04 2019 <https://www.essays24.com/essay/Mec208-Tutorial-6-Cfd-Compressible-Flow/89229.html>.

"Mec208: Tutorial 6 – Cfd Compressible Flow." *Essays24.com*. Essays24.com, 04 2019. Web. 04 2019. <https://www.essays24.com/essay/Mec208-Tutorial-6-Cfd-Compressible-Flow/89229.html>.

"Mec208: Tutorial 6 – Cfd Compressible Flow." Essays24.com. 04, 2019. Accessed 04, 2019. https://www.essays24.com/essay/Mec208-Tutorial-6-Cfd-Compressible-Flow/89229.html.