Simulate compressible turbulent flow (Mach number > 0.3) through a converging–diverging nozzle with a circular cross-section, and become familiar with dynamic mesh adaptation.
In this exercise, simulate steady turbulent flow using the k-\(\omega\) SST turbulence model and the density-based solver. Treat air as an ideal gas and perform the calculations on a mesh generated during the laboratory session. First use the density-based solver, then compare the results with those obtained using the pressure-based solver. Present the results to the laboratory instructor in the form of a report.
Create the surface shown in Figure 1.
Assign the boundary names shown in Figure 2.
Specify the edge divisions shown in Figure 2.
When specifying the vertical edge divisions, apply biasing so that the mesh is refined towards the wall boundary.
Apply Mapped Meshing to the Powietrze surface, as in Laboratory Instructions I.
Adjust the mesh settings to obtain a mesh similar to that shown in Figure 3.
Preview of the Completed Mesh
Because the geometry is axisymmetric, only the upper half of the nozzle will be modelled. In the display options, select the appropriate symmetry plane to display the lower half of the domain as well.
For convenience, change the pressure units to atmospheres using Setup / General / Units…, or Physics / General… / Units… in the top menu.
Select the density-based solver under Setup / General. This solver can be used for compressible, transonic flows without low-velocity regions. If the velocity is low over a large part of the flow domain, use the pressure-based solver instead, for example for flow around an aerofoil or an aircraft.
Enable the appropriate turbulence model.
Since compressible flow involves substantial temperature variations, enable the energy equation. It is enabled automatically when the appropriate fluid properties are selected.
The working fluid is air. Set its density model to ideal-gas.
Configure the boundary conditions by double-clicking Boundary conditions under Setup, or by selecting Physics/Zones/Boundaries in the top menu.
Under Operating Conditions…, set Operating Pressure (unit) to 0 atm. With zero operating pressure, the boundary pressure values correspond to absolute pressures.
Consult Section 8.14 of the Fluent User’s Guide, or another Fluent guide, for the definition of operating pressure.
Inlet: use pressure inlet when the inlet pressure is known but the inlet velocity and mass flow rate are unknown.
Outlet: for subsonic flow, pressure outlet allows the static pressure at the outlet of the computational domain to be specified.
Under Solution / Methods, select first-order schemes in all discretisation fields.
Under Solution / Controls:
To monitor solution convergence, track the difference between the outlet and inlet mass flow rates:
Disable the residual convergence criterion by setting Convergence Criterion = none under Solution / Monitors / Residual. This option becomes available after selecting Show Advanced Options.
Under Solution / Monitors, create a new report plot using Report Plots:
Start the calculation and monitor convergence of the mass flow rate difference. The plot you have defined is available in the second tab of the graphics window.
Monitor convergence using both the displayed mass flow plot and the values printed in the console at the bottom of the application window.
Identify the console column containing the variable you defined.
Stop the calculation once the mass flow rate difference has converged towards zero, with fluctuations on the order of 1e-6.
To obtain the difference between the inlet and outlet mass flow rates, open Results / Reports / Fluxes and select the appropriate surfaces.
Assess whether the numerical results are physically reasonable using engineering judgement. Plot the pressure along the axis of symmetry and across the narrowest section of the nozzle. Save the plots as both images and datasets. Generate pressure and Mach number contours, check for flow separation using streamlines or vectors, and determine whether the local flow velocity exceeds the speed of sound. Produce suitable visualisations.
Perform the calculations with an inlet pressure of 1.1 atm using the density-based solver. Compare the results with the cases without mesh refinement and with the density-based solver without mesh refinement.
To resolve the equations accurately in regions with abrupt changes in flow variables, enable automatic mesh refinement using Domain / Adapt / Automatic… in the top menu and configure the following settings.
Initialise the solution before proceeding.
Create a coarsening criterion using Cell registers / New / Field Variable…:
This criterion marks cells in which the static pressure gradient is below 0.3.
Create a refinement criterion using Cell registers / New / Field Variable…:
This criterion marks cells in which the static pressure gradient is above 0.7.
Under Frequency(Iteration), specify an interval of 100 iterations. Mesh adaptation will occur once every 100 iterations.
Under Refinement Criterion, select Refine.
Under Coarsening Criterion, select Coarsen.
Open General Adaption Controls and set Maximum Refinement Level to 2.
Save the simulation case at this stage. Mesh modifications made by Fluent are irreversible. If the modified mesh is unsatisfactory, the procedure will have to be restarted from the beginning.
Start the calculation and monitor convergence of the mass flow rate difference.
Mesh adaptation should occur after exactly 100 iterations, according to the settings in step 1.3 of this section. To check that the procedure is working correctly, interrupt the calculation after approximately 110 iterations. Inspect the mesh. Visible regions of mesh refinement or coarsening indicate that dynamic mesh adaptation has been configured correctly. Otherwise, repeat the adaptation setup in step 1 of this section.
Preview of the Completed Mesh
Continue the calculation. With an adapted mesh, convergence of the mass flow rate difference may be less smooth. Stop the calculation when a satisfactory level of convergence has been achieved.
Analyse the results.