![MathJax Logo](/templates/jsp/_style2/_tandf/pb2/images/math-jax.gif)
ABSTRACT
We present a high-resolution convergence study of detonation initiated by a temperature gradient in a stoichiometric hydrogen–oxygen mixture using the PENCIL CODE and compare with a code that employs a fifth order weighted essentially non-oscillating (WENO) scheme. With Mach numbers reaching 10–30, a certain amount of shock viscosity is needed in the PENCIL CODE to remove or reduce numerical pressure oscillations on the grid scale at the position of the shock. Detonation is found to occur for intermediate values of the shock viscosity parameter. At fixed values of this parameter, the numerical error associated with those small wiggles in the pressure profile is found to decrease with decreasing mesh width like
down to
. With the WENO scheme, solutions are smooth at
, but no detonation is obtained for
. This is argued to be an artifact of a decoupling between pressure and reaction fronts.
1. Introduction
Detonation can be produced by the coupling of a spontaneous reaction wave, which propagates along an initial temperature gradient, with a pressure wave (Zeldovich et al. Citation1970, Zeldovich Citation1980). This process is governed by the time-dependent compressible reactive Navier-Stokes equations. Its direct numerical simulation (DNS) is an intricate problem that is of fundamental importance for understanding the ignition of different combustion modes caused by a transient thermal energy deposition localised in a finite volume of reactive gas (Liberman et al. Citation2012). High resolution methods are necessary to resolve the broad range of length scales. It is also well-known that problems involving strong shocks, such as in the final stage of the deflagration to detonation transition (DDT), require the use of shock-capturing techniques to eliminate or reduce spurious oscillations near discontinuities. One of the widely used approaches is the use of weighted essentially non-oscillating (WENO) finite differences (Jiang and Shu Citation1996), which is an improvement upon the essentially non-oscillating (ENO) scheme. The main idea of the WENO scheme is to use a convex combination of all the candidate stencils rather than the smoothest candidate stencil to achieve a higher order accuracy than the ENO scheme, while maintaining the essentially non-oscillating property near discontinuities. There are also other methods such as the Total Variation Diminishing (TVD) method or the Artificial Compression Method (ACM) switch (Lo et al. Citation2007).
Yet another approach to avoid wiggles in the numerical solution is to add a shock-capturing viscosity. However, one must be cautious when using such a shock-capturing viscosity, since its properties are problem-dependent. The shock-capturing viscosity will fail to eliminate oscillations if it is too small. Since the gaseous combustion process is highly sensitive to the resolution of the reaction zone, using too large shock-capturing viscosity can lead to an artificial coupling of the leading pressure wave and the flame front. Thus, it is essential to determine the proper shock-capturing viscosity when using the PENCIL CODE to simulate problems involving the onset of detonation.
The test problem examined in this paper is the hot spot problem, which is a chemically exothermic reactive mixture with a nonuniform distribution of temperature. According to the theory developed by Zeldovich et al. (Citation1970) and Zeldovich (Citation1980), the gradient of induction time associated with temperature (or concentration) gradients may be ultimately responsible for the detonation initiation. A similar concept of shock-wave amplification by coherent energy release (SWACER) was introduced later by Lee and Moen (Citation1980). The basic idea is that a spontaneous reaction wave can propagate through a reactive gas mixture if there is a spatial gradient in the chemical induction time . The spontaneous reaction is ignited first at the location of minimum induction (ignition delay) time
and then spreads by spontaneous ignition over neighbouring locations where the temperature is lower and
is correspondingly longer. The velocity of the spontaneous reaction wave is analogous to a phase velocity. It cannot be smaller than the velocity of deflagration, but is not limited from above, and depends on the steepness of the temperature gradient and the temperature derivative of the induction time. The proposed mechanism of detonation initiated by the temperature gradient suggests that the formation of an induction time gradient produces a spatial time sequence of energy release, which then produces a compression wave that gradually amplifies into a shock wave. Coupling of the spontaneous reaction and pressure waves can cause shock wave amplification by coherent energy release and can finally result in the formation of a detonation wave. This requires a certain synchrony between the progress of the shock and the sequential release of chemical energy by successive reactions along of the temperature gradient.
The first numerical demonstration of the formation of a detonation wave by a temperature gradient was by Zeldovich et al. (Citation1970). Although this earliest numerical solution had a low resolution, the authors demonstrated successfully that sufficiently shallow gradients produce detonation, while for steeper gradients the reaction wave and the shock failed to couple together. In subsequent studies, Zeldovich et al. (Citation1988), He and Clavin (Citation1992), He (Citation1996), Khokhlov et al. (Citation1997), Bartenev and Gelfand (Citation2000), and Kurtz and Regele (Citation2014) have employed a one-step chemical model to investigate regimes of detonation ignition by an initial temperature gradient. However, the one-step model or other simplified chemical models do not predict correctly the induction time for the combustion process involving a large set of chain-branching reactions. Liberman et al. (Citation2011, Citation2012) studied different modes of combustion produced by the initial temperature gradient in stoichiometric hydrogen–oxygen and hydrogen–air mixtures ignited by a temperature gradient using detailed chemical models and compared the results with those obtained with a one-step chemical model. In particular, it was shown that the minimal slope of the temperature gradient required for triggering detonation and other combustion modes obtained in simulations with simplified chemical models, for example a one-step model, is orders of magnitude smaller than those obtained in simulations with a detailed chemical model. Wang et al. (Citation2018) and Liberman et al. (Citation2018) studied the influence of the chemical reaction model on detonation ignited by a temperature gradient for hydrogen-air and methane-air mixtures. They concluded that the one-step model and other simplified models usually cannot describe correctly the ignition processes. Thus, using simplified chemical kinetics for understanding the mechanisms of DDT must be considered with great caution. Using one-dimensional Navier-Stokes equations with detailed chemical kinetics, Gu et al. (Citation2003) extended Zeldovich's temperature gradient theory and demonstrated five modes of reaction front propagation from a hot spot for hydrogen and syngas mixture at high pressure (). They identified the regimes of detonation initiation using two dimensionless parameters, namely the ratio of sound speed to reaction front velocity and the residence time of the acousic wave in the hot spot normalised by the excitation time of the unburned mixture. This theory has been employed and extended to investigate the super-knock in gasoline spark ignition engines (Bradley and Kalghatgi Citation2009, Bradley Citation2012, Rudloff et al. Citation2013, Dai and Chen Citation2015, Dai et al. Citation2015, Bates et al. Citation2016).
The aim of this paper is to study the convergence of detonations simulation using the PENCIL CODE. We also present a comparison with the simulation results of a code that employs a fifth order WENO scheme. The paper is organised as follows. In section 2, the governing equations are presented and the setup of the hot spot problem is described. section 3 presents a convergence study of the pressure profiles obtained using the PENCIL CODE. The dependence on the shock viscosity is also investigated in this section. In section 4, we consider the convergence of the same problem of detonation produced by a temperature gradient using the WENO code. In section 5, we conclude by summarising our main findings.
2. The model
2.1. The basic equations
The set of equations for modelling combustion was implemented into the PENCIL CODE by Babkovskaia et al. (Citation2011). Considering a mixture of species undergoing
reactions, we solve the continuity equation for the total density ρ,
(1)
(1)
the momentum equation for the velocity ,
(2)
(2)
the energy equation for the temperature T,
(3)
(3) and the equation for the mass fraction of the kth species
in the form
(4)
(4) where
is the advective derivative and
are the components of the stress tensor with
being the components of the traceless rate-of-strain tensor, ν is the kinematic viscosity, ζ is the bulk viscosity,
is the reaction rate and subscript k refers to species number k. The pressure is given by the equation of state,
(5)
(5) where R, W, and
are the universal gas constant, the mean molecular weight of the mixture, and the molecular weight of species k, respectively. The viscosity of species k is given by Coffee and Heimerl (Citation1981) as
(6)
(6) where
is the Lennard-Jones collision diameter,
is the Boltzmann constant,
is the mass of the molecule, and
is the collision integral (see Mourits and Rummens Citation1977). Then, the viscosity of the mixture,
, is given by Wilke (Citation1950)
(7)
(7) Here,
is the mole fraction of species k and
is given by
(8)
(8) The heat flux
is given by
(9)
(9) Here,
is the diffusive flux. Fick's law is employed to calculate the diffusion velocity
as Poinsot and Veynante (Citation2005)
(10)
(10) where the diffusion coefficient for species k is expressed as
(11)
(11) and the binary diffusion coefficient is given by
(12)
(12) where
,
, and
are given by Evlampiev (Citation2007).
The thermal conductivity for pure species k is expressed as
(13)
(13) and the thermal conductivity of the mixture follows an empirical law. The specific heat
and specific enthalpy
of species k are calculated by using tabulated polynomials used in rocket science by the National Aeronautics and Space Administration (NASA) and are known as NASA polynomials. We use here the coefficients from Kéromnès et al. (Citation2013).
The expression for the reaction rate is (Poinsot and Veynante Citation2005)
(14)
(14) where
is the density of species k. Furthermore,
and
are the stoichiometric coefficients of species k of reaction s on the reactant and product sides, respectively. Furthermore,
is the forward rate of reaction s, which is given by
(15)
(15) where
is a pre-exponential factor,
is the temperature exponent, and
is the activation energy. These are all empirical coefficients that are given by the kinetic mechanism. The backward rate of reaction s is calculated from the forward rates through the equilibrium constant
(16)
(16) where
. Here
,
and
are entropy and enthalpy changes for reaction s. The detailed chemical mechanism chosen to simulate the hot spot problem is the mechanism developed by Kéromnès et al. (Citation2013), which includes
reactions and
species. The induction time of this mechanism, which is one of the important parameters for the simulation, has been validated by extensive experiments and simulations at pressure from 1 to
, over a temperature range of 914 to
.
2.2. Treatment of shocks in the PENCIL CODE and setup using the WENO code
In the PENCIL CODE, the shock viscosity of von Neumann and Richtmyer (Citation1950) is applied as a bulk viscosity,
(17)
(17) and is required to eliminate wiggles in the numerical solution. Here,
denotes a running five point average over all positive arguments, corresponding to a compression.
In the WENO code, equations (Equation1(1)
(1) )–(Equation4
(4)
(4) ) are solved in the conservation form; see equations (5)–(9) of Wang et al. (Citation2018). The chemical model for hydrogen-oxygen is the same model as that developed by Kéromnès et al. (Citation2013). The one-dimensional simulations were performed using a DNS solver, which used the fifth order WENO finite difference scheme (Jiang and Shu Citation1996) to treat the convection terms of the governing equations and the sixth order standard central difference scheme to discretise the nonlinear diffusion terms. The time integration is the third order strong stability-preserving Runge-Kutta method (Gottlieb et al. Citation2001). The advantage of the WENO finite difference method is the capability to achieve arbitrarily high order accuracy in smooth regions while capturing sharp discontinuity.
2.3. Setup of the problem
We consider an unburned gas mixture under uniform initial conditions except for the aforementioned linear temperature gradient. The initial conditions at t = 0 are constant pressure and zero velocity of the unburned mixture. On the left boundary at x = 0, we assume a reflecting wall, where and the initial temperature,
exceeds the ignition threshold value. Thus, the initial conditions are as follows:
(18a)
(18a)
(18b)
(18b)
(18c)
(18c)
According to the Zeldovich gradient mechanism, the reactions begin primarily at the temperature maximum, , and then propagate along the temperature gradient due to spontaneous auto-ignition of the mixture. The velocity of the spontaneous reaction wave,
(19)
(19) depends on
and the steepness of the temperature gradient. It could be larger than that of the pressure wave, if the temperature gradient is sufficiently shallow. Then, the coupling between the spontaneous reaction wave with the shock wave, along with the coherent energy release in the reaction, may cause shock wave amplification and the transition into a detonation wave. Since we only consider the process of detonation initiation, the parameters in equation (Equation18
(18a)
(18a) ) are chosen as follows:
(20)
(20) This set of parameters was also used by Liberman et al. (Citation2012) to produce a steady detonation wave in a stoichiometric hydrogen–oxygen mixture.
3. Results from the PENCIL CODE
3.1. General remarks regarding the transition to detonation (TD)
In the absence of shock viscosity, or when the shock viscosity is too small, small-scale oscillations on the grid scale (wiggles) occur. Such a solution cannot be numerically reliable and must be discarded. When we add shock viscosity, the wiggles become weaker. However, when the shock viscosity is too large, TD is no longer possible. Thus, to pose a meaningful convergence test, we decided to fix the value of to a relatively small value of 0.8 and then increase the resolution. This means that the shock viscosity continuously decreases with increasing resolution until it becomes negligible.
3.2. The pressure wave at increasing resolution
With each doubling of the number of mesh points, the total shock viscosity integrated over the width of the shock decreases by a factor of four. In addition, there is the time-dependent molecular viscosity profile which is independent of the mesh resolution. Thus, we expect that in the limit of infinite resolution, which yields a vanishing shock viscosity, the wiggles of the tip of the pressure profile should disappear. To test this assertion, and to study the corresponding convergence property of the code, we perform four simulations with mesh resolutions between and
using
; see table . The corresponding pressure profiles are shown in figure for the four cases (a–d). The insets in each panel show the corresponding pressure profile in the proximity of the peak.
Figure 1. Pressure profiles for (a) , (b)
, (c)
, and (d)
in regular time intervals from
to
. The insets show the pressure peak at the last time, indicated by filled symbols, where the red line shows the fit in the proximity of the pressure peak. Note that the x range varies (colour online).
![Figure 1. Pressure profiles for (a) δx=2μm, (b) 1μm, (c) 0.5μm, and (d) 0.2μm in regular time intervals from t=2μs to 42μs. The insets show the pressure peak at the last time, indicated by filled symbols, where the red line shows the fit in the proximity of the pressure peak. Note that the x range varies (colour online).](/cms/asset/74109713-c114-494b-ae64-b3dc33406e3d/ggaf_a_1668382_f0001_oc.jpg)
Table 1. Summary of the fit parameters at ![](//:0)
; ![](//:0)
is in cm, ![](//:0)
and ![](//:0)
are in bar, ![](//:0)
is in ![](//:0)
, ![](//:0)
and ![](//:0)
are in ![](//:0)
, and ![](//:0)
in ![](//:0)
.
It is evident that the wiggles decrease as we increase the resolution. In addition, the pressure profiles change slightly with resolution. To characterise these changes, we determine a fit to the pressure peak of the form
(21)
(21) where
is the Heaviside step function (
for x>0 and zero otherwise),
is the position of the peak at the last time
,
is the atmospheric background pressure ahead of the peak,
is the pressure increase relative to
just behind the peak, and
is the slope of the pressure profile to the left of the peak, i.e. in the wake of the detonation wave. In all cases, the pressure ahead of the peak is
, which does not need to be fitted. The remaining three parameters are given in table , where the pressure is given in bar (
).
Note that between the runs with and
, the front speeds (or front positions
) agree within 0.05%, but for the run with
, the front speed has decreased by nearly 2%. The reason for this apparent loss of accuracy is not fully identified, although it is clear that smaller values of
lead again to larger front speeds; see run (e) in table . It is therefore possible that at this high resolution, the value
is already too large and that a smaller value, for example around 0.6, could be more reasonable. We should also point out that we have used a relatively optimistic choice of the viscous time step (we chose
instead of the more conservative value of 0.25 that is recommended in the manual to the PENCIL CODE). However, comparisons with the smaller value did not indicate any differences in the front speed. The fact that the viscous time step enters in this highest resolution run, but not in the others, is related to the extremely small mesh size in this case. This makes the time step constraint from the relatively large molecular viscosity near x = 0 very severe. Note also that in this run, waves appear in the wake of the pressure field behind the peak after
. These also seem to be spurious and are not found when
is smaller.
Next, to characterise the convergence, we use the and
norms defined here as follows:
(22)
(22)
(23)
(23) Both have the dimension of a length. These values are also given in table . Figure shows that
and
decrease with resolution like
.
In figure we compare the molecular viscosity profile at the last time with the corresponding shock viscosity for the three highest resolutions shown in figure (b–d). The overall profile of the molecular viscosity is the same in all three cases and varies significantly from at x = 0 to
at and ahead of the shock. However, the peak of the shock viscosity decreases from
in figure (b) by about a factor of five to
in figure (d). In addition, the width of the shock viscosity profile also decreases by about a factor of five, so the integrated effect of the shock viscosity diminishes by a factor of about 25, as expected from equation (Equation17
(17)
(17) ). Note that for the highest resolution, the shock viscosity makes up a small contribution compared to the molecular viscosity. We emphasise that the maximum of the molecular viscosity (
at x = 0) is much larger than the maximum of the shock viscosity (
at
, although at this point the molecular value is only
); compare figure (a,d). This means that at late times, when ν has become large far in the wake of the shock, an enormous amount of time is spent because the viscous time step is then so short. This is also evident from table , where we see that the total number of time steps has increased by a factor of over five as the resolution was increased by only a factor of 2.5.
3.3. Dependence on ![](//:0)
![](//:0)
Next, we investigate the dependence of our solutions on the value of . In figure we show pressure profiles for different values of
at resolutions of
and
. For
, the pressure profiles still show wiggles at the position of the pressure maximum, but the wiggles are smaller and more localised at the higher resolution of
. For
, however, the wiggles are nearly completely negligible at the resolutions of
, but the pressure profile has also changed in that case and has now a short flank with a negative slope just behind the shock, that is, to its left. For
, TD is only found in the case with
, but not with
.
In figure , we show a larger portion of the wake behind the pressure front, where we see the occurrence of another type of long-wavelength oscillation, when is larger than 0.8. Those waves are similar for both the higher and lower resolution runs, but could also be a feature of having under-resolved the solution at earlier times that are not shown here.
3.4. Speeds of pressure and reaction fronts
Finally, we show in figure the time dependence of the positions and speeds of the pressure and spontaneous reaction fronts. In practice, the speeds (with
for pressure and
for spontaneous reaction wave) are computed by time differentiation of the position
, which is obtained from the volume where the pressure or the reactant are above a certain threshold. Specifically, we compute
(24)
(24) where we have used
as threshold pressure and
is still the same background pressure as in equation (Equation21
(21)
(21) ). The spontaneous reaction speed is based on the amount of water produced, i.e.
(25)
(25) where
and
is half the value of
after
has reacted with
. The final values of the two speeds are
and
. These values are close to the empirically determined value of
, which is only known to within about 1% accuracy and therefore compatible with our results.
Figure 6. Front positions and speeds for and
. (a)
(red solid line) and
(blue dashed line), (b)
(red solid line) and
(blue dashed line), and (c)
(red solid line) and
(blue dashed line) (colour online).
![Figure 6. Front positions and speeds for δx=0.5μm and Cshock=0.8. (a) xsp(t) (red solid line) and xp(t) (blue dashed line), (b) Usp(t) (red solid line) and Up(t) (blue dashed line), and (c) Usp(x) (red solid line) and Up(x) (blue dashed line) (colour online).](/cms/asset/bc58cc5c-20de-4140-8cb6-86a2654c4989/ggaf_a_1668382_f0006_oc.jpg)
According to equation (Equation19(19)
(19) ), the velocity of the spontaneous reaction wave decreases in the beginning, since
. It reaches a minimum somewhere near the crossover temperature
(for the present mixture of
and
) for the steepest gradient capable of initiating detonation which corresponds to the transition from the endothermal to the exothermal stage of the reaction. In our case, the gradient is rather shallower, so the minimum of the velocity is reached earlier.
After reaching the minimum velocity, the speed of the spontaneous reaction wave increases due to energy release in the reaction. To accomplish coupling between the spontaneous reaction wave and the pressure wave, it is necessary (but not sufficient) that after the point where
is minimum, which is the case during the interval
. For
, the coupling between the reaction wave and the shock wave is developing until detonation is reached at
. Note also that
is now slightly less than
, but this is natural because the reaction happens always slightly behind the leading shock. In fact, at late times, hardly any difference between
and
can be seen; see figure (a). This is compatible with the experimental value of the detonation; see Kuznetsov et al. (Citation2005).
4. Comparison with the WENO code
There is extensive literature devoted to the simulation of hydrodynamic problems with shock and detonation waves using a shock-capturing approach (Cai et al. Citation2018, Deng et al. Citation2018, Citation2019, Zhao et al. Citation2018, Dong et al. Citation2019, Fan et al. Citation2019, Huang and Shu Citation2019). In this section we consider solutions to the detonation problem (see section 2.2 for details) using the WENO code, which is widely used to simulate various combustion and detonation problems. Compared to the results obtained with the PENCIL CODE, there are no wiggles in the pressure profiles without the addition of a shock viscosity due to the usage of the WENO scheme. Figure (a) shows the evolution of pressure profiles during the formation of a steady detonation after the coupling of the spontaneous reaction and shock waves has been obtained in the simulations with the WENO code at resolution . The corresponding spontaneous reaction wave velocity and pressure wave velocity are presented in figure (b). Small oscillations of the velocities of the reaction and pressure waves indicate the coupling of shock and spontaneous reaction waves in the beginning of the development toward detonation. However, the simulations shown in figure at a higher resolution with
show that the developing detonation quenches before it leaves the temperature gradient. The previously successfully coupled reaction and shock waves are decoupled at around
. It is worth noting that the quenching of detonation in this case is in no way due to the gradient being too steep. Simulations with a resolution of
for a much shallower gradient (
) also show that the initially coupled reaction and shock waves later decouple and the initially developing detonation quenches.
Figure 7. (a) pressure profiles calculated with the WENO code at resolution , in regular time intervals from
to
. The inset shows the vicinity of the pressure peak at
. (b) corresponding spontaneous wave velocity (red solid line) and pressure wave velocity; see the blue dashed line (colour online).
![Figure 7. (a) pressure profiles calculated with the WENO code at resolution δx=10μm, in regular time intervals from 0μs to 46μs. The inset shows the vicinity of the pressure peak at 42μs. (b) corresponding spontaneous wave velocity (red solid line) and pressure wave velocity; see the blue dashed line (colour online).](/cms/asset/249484f6-57d7-4fd6-8350-1ef5c1e0a5de/ggaf_a_1668382_f0007_oc.jpg)
Figure (a,b) show profiles of pressure, temperature, and mass fractions of and
at
, calculated using the WENO scheme at resolutions
and
. It is seen that, without artificial viscosity, the width of the shock is too small at a resolution of
so that the coupling of the reaction and shock waves becomes impossible, resulting in a quenching of the detonation, as shown in figure . While the non-oscillating shock-capturing WENO scheme works quite well for simulations of hydrodynamic problems with shock waves, it does not work for the problem of detonation development, which is more “sensitive to the resolution” compared to ordinary supersonic flows with shock waves. The solution obtained with the WENO scheme at a low resolution in figure (
) shows the development of a steady detonation, but at the higher resolution of figure (
), the shock becomes too thin (figure ), and thus could not couple with the reaction wave, so the detonation quenches.
Figure 9. Profiles of pressure (black line), temperature (red line), mass fraction of (green line), and
(blue line) at
, calculated with the WENO code at resolutions
(a) and
(b) (colour online).
![Figure 9. Profiles of pressure (black line), temperature (red line), mass fraction of HO2 (green line), and H2 (blue line) at t=34μs, calculated with the WENO code at resolutions δx=10μm (a) and δx=5μm (b) (colour online).](/cms/asset/2e5c0af9-28de-4925-8302-a0c03b36f35b/ggaf_a_1668382_f0009_oc.jpg)
The physical problem in question, also known as the shock wave amplification by coherent energy release (SWACER) mechanism, which is a particular case of a detonation initiated by shallow temperature (or reactivity) gradients, has been studied experimentally by Lee et al. (Citation1978). In this case, the shock-capturing approach of WENO does not work. More precisely, it works only at low resolutions, here with , when the width of the shock, obtained with WENO, is sufficiently large for coupling of pressure wave and the subsequent shock with the spontaneous reaction wave. In simulation of the SWACER problem, shock-capturing and artificial viscosities (numerical dissipation) must be compatible with the size of the computation resolution in the sense that, if the reaction wave was coupled with the pressure wave and later with the shock wave, it must remain coupled with the shock at all times until a strong shock wave is formed and then develops into a steady detonation.
We use the artificial viscosity developed by Kurganov and Liu (Citation2012) to increase the numerical dissipation of the WENO scheme. This does not contradict to the definition of convergence, because the artificial viscosity tends to zero, as tends to zero. At the same resolution, however, the numerical dissipation of the WENO scheme with artificial viscosity is larger than that of the WENO scheme. The simulation with the WENO code with artificial viscosity for a resolution of
results in the development of a steady detonation, as shown in figure . In simulations of problems containing shocks, we can calibrate the parameter of the artificial viscosity for a low resolution, but the problem of detonation development (SWACER) is special, because in this case the parameter of artificial viscosity depends on the resolution, which makes the simulations much more demanding and time consuming, especially when we use detailed chemical models.
It should be noted that the minimum resolution at which WENO code allows us to obtain a solution to the SWACER problem depends on the particular combustion gas mixture, the chemical kinetics scheme, and the initial pressure. At high resolution, the WENO code without artificial viscosity still shows the development of steady detonation for the mixture with high initial pressure. For example, for an initial pressure of 5 bar, a steady detonation develops for the largest resolution of about without the use of artificial viscosity.
5. Conclusions
Using high-resolution simulations of detonation initiated by an initial temperature gradient in a hydrogen–oxygen mixture, we have shown, using the PENCIL CODE, that the transition to and properties of detonation can successfully be modelled for intermediate values of the shock viscosity parameter. The numerical error, as determined by comparing with an empirical fit to the pressure peak in the final stage of TD, is found to decrease like with decreasing mesh size down to
. (The typical performance is
wall clock time per step and mesh point with 2048 processors on a Cray XC40 with
Intel cores.) The shock viscosity has non-vanishing values only in the immediate proximity of the shock and reaches there still values of about four times the molecular value in our highest resolution simulation. Unfortunately, the position of the shock still depends on the value of
of around
. Nevertheless, the shock speed reaches the expected value in the final stage of TD.
It remains unsatisfactory that even at the largest resolution of half a million mesh points in just the x direction, we are still unable to avoid the use of a shock viscosity. This is because the shock is so strong and the molecular viscosity still too small by comparison. Furthermore, we have been unable to demonstrate that the use of a small amount of shock viscosity does not affect the details of the shock position or even the detailed shape of the shock profile. We can therefore not be completely sure that TD will still be recovered at even higher resolution, which has not yet been possible to simulate. A reason for the current limitation is that our code is optimised to work for three-dimensional problems. It is therefore conceivable that a significant speed-up could be achieved by optimising the code for one-dimensional problems. In that case it would also be rather straightforward to use an adaptive mesh, which could make the calculations significantly more economic.
Another possible avenue for future research is to solve the governing equations in conservative form so that mass, momentum, and energy are conserved to machine precision. A difficulty here is the presence of source terms in the equations for the mass fractions of the individual species.
The WENO scheme is computationally demanding and it is difficult to reach resolutions comparable to what has been done with the PENCIL CODE. Nevertheless, a steady detonation front was obtained at the resolution of , and with the use of artificial viscosity at the resolution
. On the other hand, of course, we know from experiments that TD does occur. Thus, assuming that our equations are physically correct, as stated, there should be no doubt that any failure to recover TD must be regarded as a numerical artifact.
Yet another approach is to isolate the essence of the problem in a simpler single reaction model. One must then also use an idealised viscosity and a simplified equation of state. Those modifications could enable us to perform simulations at much higher resolution so that it is possible to focus on the purely numerical aspect of using a shock viscosity in this problem.
Acknowledgments
Simulations presented in this work have been performed with computing resources provided by the Swedish National Allocations Committee at the Center for Parallel Computers at the Royal Institute of Technology in Stockholm.
Disclosure statement
No potential conflict of interest was reported by the authors.
ORCID
Chengeng Qian http://orcid.org/0000-0002-5560-5475
Axel Brandenburg http://orcid.org/0000-0002-7304-021X
Mikhael A. Liberman http://orcid.org/0000-0003-4308-7225
Additional information
Funding
References
- Babkovskaia, N., Haugen, N.E.L. and Brandenburg, A., A high-order public domain code for direct numerical simulations of turbulent combustion. J. Comp. Phys. 2011, 230, 1–12. doi: 10.1016/j.jcp.2010.08.028
- Bartenev, A. and Gelfand, B., Spontaneous initiation of detonations. Prog. Energy Combust. Sci. 2000, 26, 29–55. doi: 10.1016/S0360-1285(99)00007-6
- Bates, L., Bradley, D., Paczko, G. and Peters, N., Engine hot spots: Modes of auto-ignition and reaction propagation. Combust. Flame 2016, 166, 80–85. doi: 10.1016/j.combustflame.2016.01.002
- Bradley, D. and Kalghatgi, G.T., Influence of autoignition delay time characteristics of different fuels on pressure waves and knock in reciprocating engines. Combust. Flame 2009, 156, 2307–2318. doi: 10.1016/j.combustflame.2009.08.003
- Bradley, D., Autoignitions and detonations in engines and ducts. Phil. Trans. Roy. Soc. A 2012, 370, 689–714. doi: 10.1098/rsta.2011.0367
- Cai, Y., Ao, Y., Yang, C., Ma, W. and Zhao, H., Extreme-scale high-order WENO simulations of 3-D detonation wave with 10 million cores. ACM T. Archit. Code Op. 2018, 15, 26.
- Coffee, T.P. and Heimerl, J.M., Transport algorithms for premixed, laminar steady-state flames. Combust. Flame 1981, 43, 273–289. doi: 10.1016/0010-2180(81)90027-4
- Dai, P. and Chen, Z., Supersonic reaction front propagation initiated by a hot spot in n-heptane/air mixture with multistage ignition. Combust. Flame 2015, 162, 4183–4193. doi: 10.1016/j.combustflame.2015.08.002
- Dai, P., Chen, Z., Chen, S. and Ju, Y., Numerical experiments on reaction front propagation in n-heptane/air mixture with temperature gradient. Proc. Combust. Inst. 2015, 35, 3045–3052. doi: 10.1016/j.proci.2014.06.102
- Deng, X., Xie, B., Loubère, R., Shimizu, Y. and Xiao, F., Limiter-free discontinuity-capturing scheme for compressible gas dynamics with reactive fronts. Comput. Fluids 2018, 171, 1–14. doi: 10.1016/j.compfluid.2018.05.015
- Deng, X., Xie, B., Teng, H. and Xiao, F., High resolution multi-moment finite volume method for supersonic combustion on unstructured grids. Appl. Math. Model. 2019, 66, 404–423. doi: 10.1016/j.apm.2018.08.010
- Dong, H., Fu, L., Zhang, F., Liu, Y. and Liu, J., Detonation simulations with a fifth-order teno scheme. Commun. Comput. Phys. 2019, 25, 1357–1393. doi: 10.4208/cicp.OA-2018-0008
- Evlampiev, A., Numerical Combustion Modeling for Complex Reaction Systems, Vol. 68/04, 2007 (Eindhoven Techn. Univ.: Eindhoven).
- Fan, W., Zhong, F., Ma, S. and Zhang, X., Numerical study of convective heat transfer of supersonic combustor with varied inlet flow conditions. Acta Mech. Sin. 2019, doi: 10.1007%2Fs10409-019-00882-x
- Gottlieb, S., Shu, C.W. and Tadmor, E., Strong stability-preserving high-order time discretization methods. SIAM Rev. 2001, 43, 89–112. doi: 10.1137/S003614450036757X
- Gu, X.J., Emerson, D.R. and Bradley, D., Modes of reaction front propagation from hot spots. Combust. Flame 2003, 133, 63–74. doi: 10.1016/S0010-2180(02)00541-2
- He, L., Theoretical determination of the critical conditions for the direct initiation of detonations in hydrogen-oxygen mixtures. Combust. Flame 1996, 104, 401–418. doi: 10.1016/0010-2180(96)00141-1
- He, L. and Clavin, P., Critical conditions for detonation initiation in cold gaseous mixtures by nonuniform hot pockets of reactive gases, Twenty-Fourth Symposium on Combustion, University of Sydney, Sydney, Australia, Vol. 24, 1992, pp. 1861–1867.
- Huang, J. and Shu, C.W., Positivity-preserving time discretizations for production–destruction equations with applications to non-equilibrium flows. J. Sci. Comput. 2019, 78, 1811–1839. doi: 10.1007/s10915-018-0852-1
- Jiang, G. and Shu, C., Efficient implementation of weighted ENO schemes. J. Comput. Phys. 1996, 126, 202–228. doi: 10.1006/jcph.1996.0130
- Kéromnès, A., Metcalfe, W.K., Heufer, K.A., Donohoe, N., Das, A.K., Sung, C.J., Herzler, J., Naumann, C., Griebel, P., Mathieu, O., Krejci, M.C., Petersen, E.L., Pitz, W.J. and Curran, H.J., An experimental and detailed chemical kinetic modeling study of hydrogen and syngas mixture oxidation at elevated pressures. Combust. Flame 2013, 160, 995–1011. doi: 10.1016/j.combustflame.2013.01.001
- Khokhlov, A., Oran, E. and Wheeler, J., A theory of deflagration-to-detonation transition in unconfined flames. Combust. Flame 1997, 108, 503–517. doi: 10.1016/S0010-2180(96)00105-8
- Kurganov, A. and Liu, Y., New adaptive artificial viscosity method for hyperbolic systems of conservation laws. J. Comput. Phys. 2012, 231, 8114–8132. doi: 10.1016/j.jcp.2012.07.040
- Kurtz, M.D. and Regele, J.D., Acoustic timescale characterisation of a one-dimensional model hot spot. Combust. Theory Model. 2014, 18, 532–551. doi: 10.1080/13647830.2014.934922
- Kuznetsov, M., Alekseev, V., Matsukov, I. and Dorofeev, S., DDT in a smooth tube filled with a hydrogen oxygen mixture. Shock Waves 2005, 14, 205–215. doi: 10.1007/s00193-005-0265-6
- Lee, J. and Moen, I., The mechanisms of transition from deflagration to detonation in vapor cloud explosions. Prog. Energ. Combust. Sci. 1980, 6, 359–389. doi: 10.1016/0360-1285(80)90011-8
- Lee, J., Knystautas, R. and Yoshikawa, N., Photochemical initiation of gaseous detonations. Acta Astronaut. 1978, 5, 971–982. doi: 10.1016/0094-5765(78)90003-6
- Liberman, M.A., Kiverin, A.D. and Ivanov, M.F., On detonation initiation by a temperature gradient for a detailed chemical reaction models. Phys. Lett. A 2011, 375, 1803–1808. doi: 10.1016/j.physleta.2011.03.026
- Liberman, M.A., Kiverin, A. and Ivanov, M., Regimes of chemical reaction waves initiated by nonuniform initial conditions for detailed chemical reaction models. Phys. Rev. E 2012, 85, 056312. doi: 10.1103/PhysRevE.85.056312
- Liberman, M.A., Wang, C., Qian, C. and Liu, J., Influence of chemical kinetics on spontaneous waves and detonation initiation in highly reactive and low reactive mixtures. Combust. Theory Model. 2019, 23, 467–495. doi: 10.1080/13647830.2018.1551578
- Lo, S.C., Blaisdelly, G.A. and Lyrintzisz, A.S., High-order shock capturing schemes for turbulence calculations, in 45th AIAA Aerospace Sciences Meeting and Exhibit, Reno, Nevada, January 8–11, 2007, 2007, pp. 1–18.
- Mourits, M.M. and Rummens, F.H.A., A critical evaluation of Lennard-Jones and Stockmayer potential parameters and of some correlation methods. Can. J. Chem. 1977, 55, 3007–3020. doi: 10.1139/v77-418
- Poinsot, T. and Veynante, D., Theoretical and Numerical Combustion, 2005 (RT Edwards, Inc. Philadelphia, USA).
- Rudloff, J., Zaccardi, J.M., Richard, S. and Anderlohr, J., Analysis of pre-ignition in highly charged SI engines: Emphasis on the auto-ignition mode. Proc. Combust. Inst. 2013, 34, 2959–2967. doi: 10.1016/j.proci.2012.05.005
- von Neumann, J. and Richtmyer, R.D., A method for the numerical calculation of hydrodynamic shocks. J. Appl. Phys. 1950, 21, 232–237. doi: 10.1063/1.1699639
- Wang, C., Qian, C., Liu, J. and Liberman, M.A., Influence of chemical kinetics on detonation initiating by temperature gradients in methane/air. Combust. Flame 2018, 197, 400–415. doi: 10.1016/j.combustflame.2018.08.017
- Wilke, C.R., A viscosity equation for gas mixtures. J. Comp. Phys. 1950, 18, 517–519.
- Zeldovich, Y.B., Regime classification of an exothermic reaction with nonuniform initial conditions. Combust. Flame 1980, 39, 211–214. doi: 10.1016/0010-2180(80)90017-6
- Zeldovich, Y., Librovich, V., Makhviladze, G. and Sivashinsky, G., On the development of detonation in a non-uniformly preheated gas. Acta Astron. 1970, 15, 313–321.
- Zeldovich, Y.B., Gelfand, B., Tsyganov, S., Frolov, S. and Polenov, A., Concentration and temperature nonuniformities of combustible mixtures as reason for pressure waves generation. Dyn. Explosions 1988, 114, 99.
- Zhao, W.G., Zheng, H.W., Liu, F.J., Shi, X.T., Gao, J., Hu, N., Lv, M., Chen, S.C. and Zhao, H.D., An efficient unstructured WENO method for supersonic reactive flows. Acta Mech. Sin. 2018, 34, 623–631. doi: 10.1007/s10409-018-0756-1