Sei sulla pagina 1di 2

Compressible Flow in a Nozzle using FLUENT

MAE 423 Spring 2007

Problem Specification
Consider air flowing at high-speed through a convergent-divergent nozzle having a circular cross-
sectional area, A, that varies with axial distance from the throat, x, according to the formula
A = 0.1 + x2 − 0.5 ≤ x ≤ 0.5
where A is in square meters and x is in meters. The stagnation pressure po at the inlet is 101,325 Pa.
The stagnation temperature To at the inlet is 300 K. The static pressure p at the exit is 3,738.9 Pa.
We will calculate the Mach number, pressure and temperature distribution in the nozzle using
FLUENT and compare the solution to quasi-1D nozzle flow results. The Reynolds number for this
high-speed flow is large. So we expect viscous effects to be confined to a small region close to the wall.
So it is reasonable to model the flow as inviscid.

Synopsis of Steps in FLUENT


1. Download the mesh file nozzle.msh from
http://www.mae.cornell.edu/swanson/mae423files.html
Launch FLUENT, select 2ddp version and read in the mesh file.
2. Grid → Check
3. Grid → Info → Size
How many cells and nodes does the grid have?
4. Display → Grid
How many nodes are there in the radial direction? Are the nodes clustered towards the wall?
Why?
5. Define→ Models → Solver
Choose Coupled and Axisymmetric.
6. Define→ Models → Viscous
Select Inviscid.
7. Define→ Models → Energy
The energy equation needs to be turned on since this is a compressible flow where the energy
equation is coupled to the continuity and momentum equations.
8. Define→ Materials
Select air under Fluid materials. Select Ideal Gas under Density. This means FLUENT uses
the ideal gas equation of state to relate density to the static pressure and temperature. Use
FLUENT’s values for Cp and Molecular Weight for air. Click on Change/Create.

1
9. Define → Operating Conditions
We’ll work in terms of absolute rather than gauge pressures in this example. So set Operating
Pressure to zero. It is important that you set the operating pressure correctly in compressible
flow calculations since FLUENT uses it to compute absolute pressure to use in the ideal gas law.

10. Define → Boundary Conditions


Set boundary conditions for the following surfaces: centerline, inlet, outlet, wall. Use the
pressure-inlet boundary condition for the inlet surface. Set the total (i.e. stagnation) pressure
and temperature at the inlet. For a subsonic inlet, Supersonic/Initial Gauge Pressure is the
initial guess value for the static pressure. Calculate this initial guess value from the 1D solution.
Use the pressure-outlet boundary condition for the outlet surface and set the pressure at the
outlet.

11. Solve → Control → Solution


Use defaults.

12. Solve → Initialize


Set the initial guess values to the values at the inlet by selecting inlet under Compute From and
clicking on Init.

13. Monitors → Residual

14. Solve → Iterate


What does the convergence plot look like? How many iterations does it take to converge? Save
case and data after you have obtained a converged solution.

15. Plot → XY Plot


Plot the variation of the Mach number in the axial direction at the axis and wall. The cor-
responding variation from 1D theory is provided in the file M 1D.xy. How does the FLUENT
solution compare with the 1D solution?
Save the Mach number values at the axis and wall in an “xy” file.

16. Display → Contours


Plot pressure and temperature contours.

Grid Adaption
FLUENT offers the capability of adapting the grid to the solution by enabling the user to increase the
grid resolution in regions of high gradients.
To adapt the grid to the pressure gradient, click on Adapt → Gradient. Make sure that Pressure . . .
and Static Pressure are selected under Gradients Of. Select Gradient under Method (use Curvature
only if you want to adapt to the second- rather than first-derivative). The next step is to select
the Refine Threshold. The grid will be refined in regions where the static pressure gradient is above
the Refine Threshold. Click on Compute. This will display the minimum and maximum values of
the adaption variable (pressure gradient). Display the static pressure gradient field by clicking on
Contour. . . . Select Adaption and Existing Value under Contours Of. Select Filled and deselect Node
Values. Click Display.
Deselect Auto Range in the Contours panel. Try various values for Min to determine the Refine
Threshold.
Close the Contours panel and set the Refine Theshold. Click on Mark. FLUENT will report how many
cells have been marked for refinement. Click on Adapt and Yes to Hanging-node mode. FLUENT will
adapt the grid and display the old and new grid statistics.
Look at the adapted grid using Grid → Display. Iterate until convergence on the adapted grid.

Potrebbero piacerti anche