Simulate turbulent flow through a pipe with a change in diameter using the k-\(\epsilon\) turbulence model, and investigate the effects of inlet boundary conditions and near-wall modelling on the numerical results.
Turbulent flow calculations at ReD = 200 000 using the standard k-\(\epsilon\) turbulence model will be performed on two computational meshes: a baseline coarse mesh and a fine mesh. The Reynolds number is based on the larger pipe diameter, D = 0.1524m, and the mean velocity at the outlet of the computational domain.
Simulations on the baseline mesh require Standard Wall Functions to calculate the mean velocity, turbulent kinetic energy, k, and turbulent kinetic energy dissipation rate, \(\epsilon\), near the wall. Calculations on the fine mesh will use the k-\(\epsilon\) turbulence model coupled with the Wolfstein one-equation model in the near-wall region. This approach is referred to as Enhanced Wall Treatment.
The working fluid is water.
A velocity-inlet boundary condition will be prescribed at the inlet to the computational domain. The mean velocity profile has been obtained from a simulation of fully developed turbulent pipe flow. Three approaches to prescribing the inlet profiles of turbulent kinetic energy and its dissipation rate will be considered:
Pre-prepared *.cas files containing the coarse and fine computational meshes are provided. Mesh generation is therefore not required.
Completion of the exercise requires presenting the numerical results and their analysis to the laboratory instructor. Submit a report containing both visualisations and an analysis of the results.
Drag Fluent from Component Systems into the project schematic. Launch Fluent by opening the Setup cell (2D, Double precision, serial (one process)).
Import the *.mesh file containing the baseline computational mesh using File/Import/Mesh….
The pipe diameters are D = 0.1524m and Dinlet = 0.517D = 0.0788 m.
The flow is axisymmetric. Fluent will probably detect this from the boundary condition naming and display a corresponding warning in the console. Check the Solver settings under Setup/General.
Select the appropriate turbulence model under Setup/Models and the appropriate Near-Wall Treatment option.
Verify the fluid properties under Setup/Materials/Fluid.
Download the file containing the prescribed boundary condition profiles.
Load the downloaded profiles using either of the following methods:
Five fields will be loaded, three of which represent the required variables: velocity, turbulent kinetic energy, and turbulent kinetic energy dissipation rate profiles.
Under Solution/Methods, select the first-order upwind discretisation scheme for the convective terms in the momentum equations and SIMPLE for pressure–velocity coupling.
Set the convergence criterion to 1e-5 under Solution/Monitors/Residual.
Initialise the solution from the inlet and run the calculation. Monitor solution convergence.
Examine the inlet profiles of mean velocity, turbulent kinetic energy, and dissipation rate under Results/Plots/Profile Data. Open the profile file in Notepad and examine how the profiles are defined.
In the report, provide examples of cases in which such profiles can be used to prescribe boundary conditions, and cases in which a UDF is preferable, as in the previous laboratory instructions.
Once a converged first-order solution has been obtained, switch to second-order discretisation and continue the calculation without reinitialising the solution. In some cases, convergence cannot be achieved when the calculation is started directly with second-order discretisation.
Include the convergence plot in the report.
Generate visualisations of pressure, velocity, turbulent kinetic energy, and dissipation rate contours, as well as velocity vectors and streamlines, using the options under Results/Graphics/Contours.
Include these visualisations in the report.
Verify the Reynolds number using the mean velocity at the outlet of the pipe with diameter D=0.1524m. Use Results/Report/Surface Integrals, with Report Type set to Area-Weighted Average.
Determine the mean inlet velocity and the maximum inlet velocity on the pipe axis. Both quantities can be calculated under Results/Report/Surface Integrals:
Record the mean velocity, Uśr, and the maximum velocity, Uxmax. These values are required to normalise the axial component of the mean velocity and the turbulent kinetic energy for comparison with the experimental data.
Define the normalised functions using User-defined/Field Functions/Custom in the top menu:
The axial velocity component normalised by the maximum velocity on the pipe axis at the inlet to the computational domain, Ux / Uxmax.
From the Field Functions drop-down menu, select Velocity and Axial Velocity, then click Select. Select the division operator and enter the previously recorded maximum inlet velocity. Enter a name and click Define.
The turbulent kinetic energy normalised by the square of the mean inlet velocity, k/(Uśr)2.
From the Field Functions drop-down menu, select Turbulence and Turbulent Kinetic Energy (k), then divide by the square of the corresponding constant.
Check y+ on the wall, wall_d, and wall_inlet boundaries using Results/Plots/XY Plot:
Effective use of wall functions requires the dimensionless wall distance y+ at the centroids of the wall-adjacent cells to lie within the range y+=30-300.
Include the results in the report.
Compare the numerical results with the experimental data at the cross-section x = -0.0381 and along the longitudinal section r = 0.07271.
Use Load File under Results/Plots/XY Plot to load the experimental data. As in the previous laboratory instructions, first plot the experimental data, then determine which quantities should be assigned to the X and Y axes. Define the sections x=-0.0381 and r=0.07271. Remember to compare the normalised functions available under Custom Field Functions, rather than comparing velocity and turbulent kinetic energy directly. Pay particular attention to the position of the first near-wall point in the cross-section.
Do the numerical results adequately reproduce the variation of mean velocity with x along the longitudinal section? Note that two recirculation regions are observed in the experiment, with the smaller one located at the step.
Export the plot for the longitudinal section to a text file using Write to File under Results/Plots/XY Plot.
Include the plot in the report.
Close Fluent and save the project in Workbench.
Duplicate the simulation system, assign an appropriate name, and launch Fluent from the new system by opening the Setup cell.
Under Setup/Boundary Conditions/Inlet/Velocity_inlet, replace the profiles for turbulent kinetic energy and dissipation rate with the default Fluent conditions, const=1.
Initialise the solution from the inlet and run the calculation.
Compare the resulting velocity profiles along the longitudinal section with the experimental data and the previous simulation results.
Do the numerical results differ significantly from the experimental data? Export the resulting near-wall velocity profile using Display/Plot/Xyplot, Write to File.
Include the comparison in the report.
Close Fluent and save the project in Workbench.
Duplicate the simulation system, assign an appropriate name, and launch Fluent from the new system by opening the Setup cell.
Change the inlet turbulence boundary conditions under Setup/Boundary Conditions/Inlet/Velocity_inlet. In the Turbulence section, select Intensity and Hydraulic diameter.
The relationship between turbulent kinetic energy, k, turbulence intensity, Ti, and mean velocity, Umean, is:
k=1.5(Ti Umean)2.
For fully developed pipe flow, Tu=4% may be assumed on the pipe axis.
In internal flows, the turbulent length scale lt cannot exceed the characteristic physical dimension L. For the pipe flow considered here, L=Dinlet. The turbulent length scale is assumed to be: lt = 0.07 L.
Dissipation rate \(\epsilon\) = k3/2 / lt.
Specify the boundary conditions Tu=4% and L=Dinlet.
Initialise the solution and run the calculation.
Compare the numerical results along the longitudinal section with the experimental data and the previous simulation results.
Which simulation results are closest to the experimental data, and why? Is the use of the default Fluent conditions justified?
Include the comparison and discussion in the report.
Close Fluent and save the project in Workbench.
Duplicate the simulation system from the first section, assign an appropriate name, and launch Fluent from the new system by opening the Setup cell.
Download the fine mesh file:
Replace the mesh:
In the top menu, open Domain and select Replace Mesh… in the Zone panel.
Fluent will perform a series of operations to adapt the existing settings to the new mesh. It is essential that the new mesh use exactly the same boundary names.
Initialise the solution and run the calculation.
After several dozen iterations, check y+ on wall_inlet and wall_d using Results/Plots/XY Plot, selecting Turbulence and Wall YPlus.
To use Enhanced Wall Treatment, y+ must be less than 1 to represent the flow dynamics in the viscous sublayer correctly. If y+ you will be close to 10/15 change Near Wall treatment approach from Standard Wall Treatment to Enchanced Wall Treatment in k-epsilon turbulence model. If this condition is not satisfied, refine the computational mesh. Repeat the calculation and mesh refinement until y+ is close to 1.
Compare the numerical results with the experimental data at the cross-section using Results/Plots/XY Plot. Compare the fine-mesh results along the longitudinal section with the experimental data and the baseline-mesh results.
Does increasing the mesh resolution produce substantially better results near the wall? Is the computational cost of the fine-mesh simulation significantly higher than that of the baseline-mesh simulation?
Include the comparison and discussion in the report.
Generate visualisations.
exper-axial-vel_x-0_0381.xy — the axial component of the mean velocity, normalised by the maximum velocity on the pipe axis at the inlet to the computational domain, plotted against radial position at the cross-section x = - 0.0381, immediately upstream of the step.
exper-axial-vel_r0.07271.xy — the axial component of the mean velocity, normalised by the maximum velocity on the pipe axis at the inlet to the computational domain, plotted against x at a radial distance r = 0.07271 from the pipe axis, near the wall of the larger-diameter pipe.