# Analysis of Step 4

Step 4 is definitely the most complex but also the most interesting case to compare high-fidelity codes for turbulent reacting flows, since it contains all the features relevant for turbulent combustion. Therefore, a more detailed analysis is useful. The comparisons will involve:

1. The evolution of maximum temperature versus time;

2. Velocity fields at ${\displaystyle t=2\tau _{ref}=0.5ms}$ along the centerlines of the domain;

3. Profiles of temperature, heat release and mass fractions of ${\displaystyle H_{2}}$, ${\displaystyle O_{2}}$ and ${\displaystyle OH}$ at ${\displaystyle t=2\tau _{ref}=0.5ms}$ along the centerline of the domain.

The simulations of YALES2, DINO and Nek5000 are presented in the following subsections for two different resolutions in space (${\displaystyle 256^{3}}$ and ${\displaystyle 512^{3}}$), in order to check the impact of the spatial resolution on the results. Additional data for other grids are also available (${\displaystyle 384^{3}}$ for both YALES2 and DINO, and ${\displaystyle 768^{3}}$ only for DINO). They are not discussed at length in the text and in separate figures in the interest of space, but the corresponding values are included in the Tables 4 and 5 summarizing all results of Step 4. Additionally, all results at all grid resolutions are available online in the benchmark repository [1]. Starting with the evolution of maximum temperature versus time, a perfect visual agreement between all three codes is observed at all resolutions. This quantity does not appear to be difficult to predict correctly, as already observed previously for the non-reacting flow in Step 3, provided that the pressure variation due to the heat release is correctly taken into account.

## Comparing results at spatial resolution of ${\displaystyle 256^{3}}$

The results shown in this section have been obtained for the same grid size than in Step 3, i.e. ${\displaystyle 256^{3}}$ for YALES2 and DINO and 2523 for Nek5000. The corresponding results for velocity and temperature at time ${\displaystyle t=2\tau _{ref}=0.5ms}$ along the centerlines of the domain show visually a perfect agreement. Nevertheless, the three codes show slight differences concerning heat release and some mass fractions profiles (in particular ${\displaystyle O_{2}}$ and ${\displaystyle OH}$) around the center of the domain. These differences – though small – are larger than those experienced in the non-reacting case. Note that there is originally no oxygen in this region, explaining why the mass fraction of ${\displaystyle O_{2}}$ is still smaller than the mass fraction of ${\displaystyle OH}$ there. One reason behind these discrepancies might be the well-known stiffness of the chemical source terms, inducing different non-linear effects as a function of the underlying algorithms employed for integration in time. Another possible source of error is the employed spatial discretization, which might still be insufficient to perfectly capture the reaction front; in the present case, the typical cell size is approximately 25 µm. To check this last point, the simulations have been repeated with a finer spatial resolution, as discussed in the next subsection.

Velocity at time ${\displaystyle t=2ref=0.5ms}$ for 3-D reacting case (Step 4) with ${\displaystyle N=256^{3}}$ grid points.

Temperature (left) and heat release profiles (right) at ${\displaystyle x=0.5L}$, ${\displaystyle z=0.5L}$, and time ${\displaystyle t=2\tau _{ref}=0.5ms}$ for 3-D reacting case (Step 4) with ${\displaystyle N=256^{3}}$ grid points.

Mass fraction profiles of ${\displaystyle H_{2}}$, ${\displaystyle O_{2}}$, and ${\displaystyle OH}$ at [/itex]x = 0.5 L[/itex], ${\displaystyle z=0.5L}$, and time ${\displaystyle t=2\tau _{ref}=0.5ms}$ for 3-D reacting case (Step 4) with ${\displaystyle N=256^{3}}$ grid points.

## Comparing results at spatial resolution of ${\displaystyle 512^{3}}$

The present results have been obtained on a grid size of ${\displaystyle 512^{3}}$ for YALES2 and DINO, while Nek5000 relies on similar discretization size of 5143 (57 spectral elements of order 9 in each direction). To reduce computational costs, the simulation is conducted only for the first ${\displaystyle t=2\tau _{ref}=0.5ms}$ of physical time. Only the quantities showing visible discrepancies at a resolution of ${\displaystyle 256^{3}}$ (heat release, ${\displaystyle Y_{O_{2}}}$, ${\displaystyle Y_{OH}}$) are discussed here in the interest of brevity, since all other quantities already revealed a perfect agreement for the previous resolution. It can be observed in the figures below that doubling the spatial resolution in each direction did not improve the comparisons in a clear way; marginal differences still exist between the codes, and a convergence towards a unique solution is not really visible. To discuss this issue in more detail, a refined analysis is necessary, as discussed in the next subsection.

Temperature (left) and heat release profiles (right) at ${\displaystyle x=0.5L}$, ${\displaystyle z=0.5L}$, and time ${\displaystyle t=2\tau _{ref}=0.5ms}$ for 3-D reacting case (Step 4) with ${\displaystyle N=512^{3}}$ grid points.

Mass fraction profiles of ${\displaystyle O_{2}}$ (left), and ${\displaystyle OH}$ (right) at ${\displaystyle x=0.5L}$, ${\displaystyle z=0.5L}$, and time ${\displaystyle t=2\tau _{ref}=0.5ms}$ for 3-D reacting case (Step 4) with ${\displaystyle N=512^{3}}$ grid points.

## Quantitative comparisons at the center point at t = 0.5 ms

In Table 4 the values of different variables at the center of the numerical domain at time ${\displaystyle t=2\tau _{ref}=0.5ms}$ are presented and analyzed. These values have been obtained for the three different codes involved in the benchmark (from left to right, YALES2, DINO, Nek5000), for an increasing spatial resolution from left to right, but also with different timesteps. The controlling time-limiter (as a condition on maximum CFL or Fourier number with corresponding value) is also listed in the table; it depends on the retained criteria and on the explicit or implicit integration of the corresponding terms in the equations.

 Code Spatial resolution Timestep control ${\displaystyle T[K]}$ ${\displaystyle Y_{O_{2}}[-]}$ ${\displaystyle Y_{H_{2}}[-]}$ ${\displaystyle Y_{OH}[-]}$ ${\displaystyle HR[MW/m^{3}]}$ YALES2 YALES2 YALES2 DINO DINO DINO DINO Nek5000 Nek5000 ${\displaystyle 256^{3}}$ ${\displaystyle 384^{3}}$ ${\displaystyle 512^{3}}$ ${\displaystyle 256^{3}}$ ${\displaystyle 384^{3}}$ ${\displaystyle 512^{3}}$ ${\displaystyle 768^{3}}$ ${\displaystyle 252^{3}}$ ${\displaystyle 504^{3}}$ CFL=0.10 CFL=0.15 CFL=0.25 Fo=0.15 Fo=0.15 Fo=0.15 Fo=0.2 CFL=0.25 CFL=0.25 1752 1751 1750 1754 1755 1755 1758 1758 1758 1.553E-3 1.523E-3 1.523E-3 1.508E-3 1.500E-3 1.508E-3 1.521E-3 1.499E-3 1.506E-3 2.692E-3 2.714E-3 2.720E-3 2.764E-3 2.737E-3 2.720E-3 2.700E-3 2.681E-3 2.688E-3 1.852E-3 1.838E-3 1.831E-3 1.844E-3 1.851E-3 1.858E-3 1.873E-3 1.862E-3 1.861E-3 670.8 669.7 670.1 684.1 675.8 673.5 671.8 674.2 660.8

Looking separately at the values obtained by each code, it is not always easy to recognize the convergence toward a single value that would be expected for a grid-independence analysis. By a comparison between the last column for each code, a good agreement is overall observed, in spite of differences regarding algorithms, resolution in space and in time. Nevertheless, the agreement is never perfect, and trends can better be seen by computing differences. This is why, choosing arbitrarily the results of the implicit time integration at the highest spatial resolution with DINO (7683) as a reference, all corresponding relative errors have been computed.

 Code Spatial resolution Controlling CFL/Fo ${\displaystyle \Delta T[\%]}$ ${\displaystyle \Delta Y_{O_{2}}[\%]}$ ${\displaystyle \Delta Y_{H_{2}}[\%]}$ ${\displaystyle \Delta Y_{OH}[\%]}$ ${\displaystyle \Delta HR[\%]}$ YALES2 YALES2 YALES2 DINO DINO DINO DINO Nek5000 Nek5000 ${\displaystyle 256^{3}}$ ${\displaystyle 384^{3}}$ ${\displaystyle 512^{3}}$ ${\displaystyle 256^{3}}$ ${\displaystyle 384^{3}}$ ${\displaystyle 512^{3}}$ ${\displaystyle 768^{3}}$ ${\displaystyle 253^{3}}$ ${\displaystyle 514^{3}}$ CFL=0.10 CFL=0.15 CFL=0.25 Fo=0.15 Fo=0.15 Fo=0.15 Fo=0.2 CFL=0.25 CFL=0.25 −0.341 −0.398 −0.455 −0.228 −0.171 −0.171 0 [Ref] 0 0 2.104 0.131 0.131 −0.855 −1.381 −0.855 0 [Ref] −1.446 −0.986 −0.296 0.518 0.741 2.370 1.370 0.741 0 [Ref] −0.704 −0.444 −1.121 −1.869 −2.242 −1.548 −1.175 −0.801 0 [Ref] −0.587 −0.641 −0.149 −0.313 −0.253 1.831 0.595 0.253 0 [Ref] 0.363 −1.637

Analyzing in detail all the values, the following intermediate conclusions can be drawn:

• The overall agreement between the three completely independent high-resolution codes employed in the benchmark is very good, with typical relative differences of the order of 1% for the essential quantities used to analyze turbulent combustion (temperature, mass fractions, heat release). 23

• Compared to the differences observed in the previous verification step (errors below 0.03%), the variations are obviously much larger, typically by two orders of magnitude. This is a result of the far more challenging configuration, with additional physicochemical complexity, stiffer profiles, highly non-linear processes in space and time.

• Increasing further the spatial resolution (which is also connected to a reduction of the timestep) does not seem to increase much the observed agreement between the codes. For all considered grids in the analysis finer than ${\displaystyle 256^{3}}$, overall differences of the order of 1% are observed. Often, using a finer resolution leads to a better agreement for most of the indicators, but to a worse comparison for some other ones.

• Though this has been attempted, it was impossible to obtain meaningful predictions using the Richardson extrapolation [2][3], since the results of all codes are non-monotonic when increasing resolution in space.

• Somewhat unexpectedly, the observed uncertainty is in the same range for temperature, mass fractions of main species or of radicals, and heat release. Quantities that are typically considered more sensitive (radicals, heat release) do not lead to larger discrepancies in the analysis.

Finally, the central finding is that all codes employed in the benchmark deliver suitable results for this configuration, and this already at a typical grid resolution of ${\displaystyle 256^{3}}$ for this particular case. An irreducible uncertainty of the order of 1% is observed for all quantities relevant for turbulent combustion. This uncertainty, noticeably larger than for cold flows, is apparently the result of stiff non-linear processes, of different splitting schemes, and of the different libraries/library versions employed for computing thermodynamic, diffusion, and reaction parameters. After this detailed analysis of uncertainty, it is necessary to quantify the corresponding numerical costs needed to get this level of accuracy.

# References

1. benchmark.coria-cfd.fr
2. J.H. Ferziger, M. Peric, Computational Methods for Fluid Dynamics, Springer , 2012, Bibtex
Author : J.H. Ferziger, M. Peric
Title : Computational Methods for Fluid Dynamics
In : Springer -
Date : 2012
3. I.B. Celik, U. Ghia, P.J. Roache, C.J. Freitas, H. Coleman,, P.E. Raad, Procedure for estimation and reporting of uncertainty due to discretization in CFD applications, J. Fluids Eng. 130, 2008, Bibtex
Author : I.B. Celik, U. Ghia, P.J. Roache, C.J. Freitas, H. Coleman,, P.E. Raad
Title : Procedure for estimation and reporting of uncertainty due to discretization in CFD applications
In : J. Fluids Eng. -