Solitary wave formation in the compressible Euler equations
Abstract
We study the behavior of perturbations in a compressible one-dimensional inviscid gas with an ambient state consisting of constant pressure and periodically-varying density. We show through asymptotic analysis that long-wavelength perturbations approximately obey a system of dispersive nonlinear wave equations. Computational experiments demonstrate that solutions of the 1D Euler equations agree well with this dispersive model, with solutions consisting mainly of solitary waves. Shock formation seems to be avoided for moderate-amplitude initial data, while shock formation occurs for larger initial data. We investigate the threshold for transition between these behaviors, validating a previously-proposed criterion based on further computational experiments. These results support the existence of large-time non-breaking solutions to the 1D compressible Euler equations, as hypothesized in previous works.
1 Introduction
One of the most fundamental questions about any dynamical system is whether every solution trajectory eventually approaches a constant state. For nonlinear hyperbolic conservation laws in one dimension, decay to a state that is constant in both space and time seems to be the generic behavior. It has been known since the work of Riemann that solutions of the Euler equations of compressible gas dynamics in one dimension generically form shocks and then decay to an asymptotically constant state. This result was made rigorous in the work of Glimm & Lax [3], wherein it was shown that solutions of the Cauchy problem for a genuinely nonlinear 2x2 hyperbolic system decay in time at a rate of , while on a periodic domain they decay at a rate .
Remarkably, for the Euler equations on a periodic domain, substantial evidence has been provided to suggest that there exist solutions that do not form shocks or decay, and even to suggest that such solutions represent the typical long-time behavior [12, 2, 26, 21, 23, 24, 25]. These solutions seem to avoid shock formation through a resonant interaction between the nonlinear acoustic fields and the linearly degenerate entropy field.
Nevertheless, for the Cauchy problem, shock formation and entropy decay still represent the typical expected behavior. After all, for any localized perturbation it is natural to expect that the variation in the different characteristic fields will eventually separate; once the fields are not interacting with each other, the resulting simple waves will inevitably form N-waves and decay.
Given these contrasting expectations for problems on the real line versus a in periodic domain, it is interesting to consider solutions evolving on the real line but in the presence of a periodic spatial background state. For the 22 hyperbolic -system with spatially-periodic coefficients (but on an infinite domain), it has been observed that some solutions exhibit solitary waves instead of shocks, and do not decay asymptotically [10, 7]. For the shallow water system with spatially-periodic bathymetry, similar behavior has recently been reported [8], with solutions exhibiting solitary waves and no shock formation nor decay. Both of these systems can formally be written as a larger system of conservation laws, by introducing an evolution equation for the spatially-varying coefficient. When viewed this way, each of these systems has two genuinely nonlinear characteristic fields and one linearly degenerate field.
The Euler equations of compressible gas dynamics have a similar structure, with two genuinely nonlinear fields and one linearly degenerate field. Indeed, for smooth solutions the Euler equations can be written in Lagrangian coordinates as the p-system mentioned above: a genuinely nonlinear system of two conservation laws with a third field (the entropy) that varies in space but is constant in time. It is thus natural to wonder whether solutions of the Euler equations might behave in a manner similar to the aforementioned solutions of the shallow water system or p-system. Indeed, the interaction between the genuinely nonlinear acoustic fields and the linearly degenerate entropy field plays a key role in the analysis of the periodic solutions discussed above [12, 21, 24, 25].
Here we conduct a detailed study of solutions of the 1D Euler equations on an unbounded domain in the presence of an initial spatially-periodic entropy variation. We use asymptotic analysis and numerical solutions to understand their behavior. Computational experiments suggest that the fate of these solutions depends on the size of the initial data compared to the size of the variation in the entropy. Unsurprisingly, if the initial data are sufficiently large then the solution can include the formation of large shocks. We thus focus on solutions whose amplitude is not too large relative to the entropy variation. Our analysis and computational experiments provide strong evidence for the following remarkable properties of such solutions:
-
1.
There is no shock formation.
-
2.
Positive initial disturbances generically develop into solitary wave trains, and are accurately described by a pair of dispersive homogenized wave equations.
-
3.
These solitary waves persist indefinitely; thus the solution does not exhibit long-term decay.
This behavior is just the opposite of what is typically expected for the 1D Euler equations, but it is not unexpected based on the work of LeVeque & Yong [10]. This does not violate existing results on decay for the Cauchy problem, such as the one mentioned above, because those results deal only with compactly supported initial data, whereas here the initial entropy field is assumed to vary over the whole real line. Nevertheless, our results suggest that decay of solutions should not be viewed as a universal property of nonlinear hyperbolic systems, even on unbounded domains.
In the remainder of this section we provide an example showing solitary wave formation and then we review the Euler equations and their connection with the p-system. In Section 2 we derive a dispersive model based on asymptotic analysis and the work of LeVeque & Yong [10]. In Section 2.3 we show how the dispersive model, which is ill-posed in its natural form, can be rewritten to be at least linearly well-posed. In Section 2.5 we show that numerical solutions of the dispersive model agree well with solutions of the 1D Euler equations for moderate-amplitude initial data, but not for large-amplitude initial data. In Section 3 we study traveling wave solutions of the dispersive model and compare them with traveling waves obtained from numerical solution of the full 1D Euler equations. In Section 4 we study the entropy evolution. First we recall a criterion for shock formation proposed in [7] and verify that it accurately predicts whether shocks will form in the 1D Euler setting. We observe that for moderate-amplitude initial data the numerical entropy change becomes very small as the mesh is refined, and we show that for such data the solution can be accurately computed using a non-conservative numerical method. Finally, in Section 5 we investigate the generality and applicability of these findings in a scenario where the ambient state is not perfectly periodic, but has some random modulation. The code to reproduce most of the calculations and figures in this work is available online111https://github.com/ketch/Euler_1D_homogenization_RR.
1.1 A motivating example
Let us consider the Cauchy problem for the 1D Euler equations (see (2) below). The background density is given by
(1a) | ||||
and we define the material coordinate . Then the initial data is given by | ||||
(1b) | ||||
(1c) | ||||
(1d) |
This initial data corresponds to a gas in which the initial density and temperature vary periodically in space, such that the pressure is constant over most of the domain. Near , there is an initial positive pressure perturbation that will split into two opposite-traveling pulses.
Figure 1 shows the resulting pressure solution at four different times. The initial pulse first steepens, but at later times, rather than the usual N-wave formation typical of 1D hyperbolic conservation laws, we observe the emergence of a series of solitary waves, reminiscent of the behavior of dispersive nonlinear wave equations such as Korteweg-de Vries (KdV).

By way of contrast, in Figure 2 we show the behavior of the same disturbance when the background density is taken to be constant and equal to the average of the oscillating density from the previous example: . In this case we see the N-wave formation, and the solution will asymptotically decay (as ) to a spatially-uniform state. This is typical of solutions to 1D hyperbolic conservation laws. Note also that the solution propagates significantly faster.

1.2 Model equations
We start from the one-dimensional Euler equations
(2a) | ||||
representing conservation of mass, momentum, and energy. Here is the mass per unit volume, the gas velocity, the gas pressure, and is the internal energy per unit mass. We consider a polytropic gas, for which
(3) |
where is the polytropic constant, given by the ratio of specific heats respectively at constant pressure and constant volume. The Euler equations can be conveniently written in Lagrangian form by adopting the mass coordinate:
(4) |
The difference measures the mass of the gas (per unit area) between position and at time . Notice that for any the relation between the mass Lagrangian coordinate and the Eulerian coordinate relation is invertible.
In the new coordinates, the Euler equations can be written as
(5) | ||||
where is the specific volume.
In this paper we are interested in studying the propagation of weakly nonlinear waves. In particular, we plan to show that such waves that propagate on an unperturbed state with constant pressure and zero velocity and periodic density will never form shocks. For such a reason we shall also consider a different form of the equations. Manipulating the energy equation, making use of the first principle of thermodynamics and of the first two equations, one obtains that, for smooth solutions, the entropy density does not depend on time (see, for example, [27], Chapter 6). The last equation of (5) can then be replaced by
(6) |
The entropy for a polytropic gas is given by
which can be written as
where and denote a particular reference state, and the corresponding entropy density. Solving for , the functional relation becomes
(7) |
From Eq. (6) it follows that the entropy density is a function of space only,
In particular, is determined by considering an initial condition which is a perturbation of a stationary state
so that
In the classical statistical theory of gases, the entropy is defined up to an additive constant. Without loss of generality we take .
Using Eq. (7), and considering that , the system (5) reduces to the system with space-dependent coefficients
(8a) | ||||
(8b) |
We consider an unperturbed situation in which the initial density is a periodic function of , with period 222In the examples in this work we use initial data with average density equal to 1, which conveniently means that the period is the same in both the Eulerian and Lagrangian coordinates. and assume that the initial condition is a perturbation of amplitude , with a typical wavelength large compared to , see Figure 3.

Given that the specific volume has oscillations whose amplitude is , we prefer to use in place of as dependent variable, since the pressure is expected to be much less oscillatory than .
We therefore reformulate the problem as
(9) | ||||
(10) |
Since the entropy depends only on space and not on time, we have
where denotes the sound speed in Lagrangian coordinates. It represents the mass (per unit surface) crossed by a small pressure perturbation per unit time. It is related to the classical Eulerian sound speed by the relation
In the field variables the system can be written as
(11a) | ||||
(11b) |
where
and we introduced the quantity
In this work we consider the Cauchy problem for propagation of waves in a compressible gas in which the entropy field is initially periodic in space. We consider the problem in Lagrangian coordinates and suppose that no shocks form, so that and (11) holds. We then derive a constant-coefficient (i.e. effective medium) equation that approximates the p-system (11), using multiple-scale perturbation analysis. An analysis of the system (11) with a different constitutive relation and physical interpretation was carried out by LeVeque & Yong, who found that the resulting equations admit traveling solitary wave solutions, in good agreement with numerical experiments [10]. In that work the authors considered a special exponential equation of state and focused on piecewise constant materials. Here we revisit the analysis in the context of compressible gas dynamics and consider general periodic variation of . We also make a connection with related analysis in [7] and propose a criterion for shock stability in a compressible gas with a spatially periodic entropy.
In all numerical experiments in this work, we take .
2 A Dispersive Effective Model
2.1 Averaging operators
In what follows we make use of certain averaging operators, which appear in the literature but are recalled here for the convenience of the reader.
First, the integral (or average) of over one period, denoted by , is defined as
Second, the fluctuating part of the function , denoted by , is defined as
Finally, the fluctuating part of the antiderivative of the fluctuating part, denoted by , is defined for any as
that is,
(12) |
Clearly, we have
Some useful properties of the operator, which will be used in this work, are provided in [8, Appendix A] .
Remark 1
We will often write even for functions that are independent of a priori, in order to emphasize which factors do not depend on . Also, note that while is -independent, and depend on .
Remark 2
Note that the frequently appearing average is equal to the total mass per period in the background state; i.e. .
2.2 Effective model
LeVeque & Yong [10] studied the propagation of elastic waves in a periodically-varying medium, using the model
(13a) | ||||
(13b) |
The p-system (11) is a special case of (13), with and the notational changes
(14a) | ||||
(14b) | ||||
(14c) | ||||
(14d) | ||||
(14e) |
Here we have overloaded the definitions of and in order to facilitate comparison between the analysis here and in [10]. The correspondence (14) allows us to directly transfer results of the analysis conducted in [10] to the present setting. To do so, we introduce a fast spatial variable , formally independent of , such that partial derivatives are transformed as
We suppose there exist power series for in terms of :
(15) | ||||
(16) |
We can also expand as a power series:
(17) | ||||
(18) |
Following the analysis in [10] we obtain
(19a) | |||||
(19b) |
where and
(20a) | ||||
(20b) | ||||
(20c) | ||||
(20d) | ||||
(20e) | ||||
(20f) | ||||
(20g) | ||||
(20h) | ||||
(20i) |
Note that we always have and . Here we have assumed that is translation-even333We say a function defined on a periodic domain is translation-even if it can be made even by a shift. and applied [8, Proposition 5] in order to simplify this expression somewhat; for a more general function (19) includes several additional terms of order . In the examples below we consider piecewise-constant or sinusoidal functions , both of which are shift-periodic. Additionally, several terms that are present in [10] instead vanish here because of the correspondence .444Note also that there is a typo in [10, eqn. (5.18)]: the expressions for and are reversed.
2.3 Alternative form of the equations
System (19) contains high order derivatives in time. This form of the equations is not convenient for two reasons. First, the original system of PDE’s is a first order hyperbolic system of two equations, therefore the initial value problem is well posed when two initial profiles are assigned. In contrast, system (19) requires four initial conditions, namely the initial values of , , , and . Furthermore, system (19) is linearly unstable (see Appendix A.1 ). For these reasons, we shall convert some time derivatives to space derivatives, keeping the same order of consistency in the asymptotic expansion.
It is possible to convert all of the -derivatives in the higher-order terms in (19) to -derivatives, in order to write it as a first order system of evolution equations. However, as noted in [8], this approach leads to a system that is linearly unstable for large wavenumber modes. As in [8], we instead keep one -derivative in the higher-order linear terms, in order to obtain a system that is linearly stable for all wavenumbers. This yields
(21a) | ||||
(21b) |
Here is a function of and and their derivatives, in which every term is nonlinear:
where for shortness we set
The number of terms appearing here in the evolution equation for is much larger than in [10], because in that work the equation of state was chosen such that . On the other hand, the evolution equation for here is much simpler, due to the fact that the variable coefficient present in [10] is replaced by a constant here.
2.4 Linear stability
In this section we study the well-posedness, for small initial data, of the initial value problem for the model equations derived in the previous section. As mentioned above, the linearization of system (19) is unstable for all wave numbers, and the initial value problem is ill-posed (see Appendix A.1).
Next we consider the system (21). We linearize around an equilibrium configuration . Neglecting terms of , the linearized equations read
(22a) | ||||
(22b) |
where
(23) |
We look for solutions of the system (22) of the form
Plugging this ansatz into system (22) we obtain a homogeneous system for and :
Non-trivial solutions of the above system exist provided the determinant of the coefficient matrix of the system vanishes. This gives the following dispersion relation
(24) |
which can be solved for :
For all the profiles we have tested, , and we conjecture that in general, which means that the systems admits linearly dispersive waves for all wave numbers .
2.5 Comparison of the models
We now compare solutions obtained by solving the Euler equations, the p-system, and the homogenized equations. The Euler equations in Eulerian form and the variable-coefficient p-system are solved using Clawpack [13], specifically with the high-order SharpClaw algorithm based on fifth-order WENO reconstruction and a ten-stage, fourth-order strong stability preserving Runge-Kutta method [6, 5, 4]. The homogenized equations (21), including terms up to are solved using a Fourier pseudospectral collocation method in space and the three-stage, third-order strong stability preserving Runge-Kutta method of Shu & Osher [22]. The code used to produce the results reported here is available online555ADD link to Github repository..
2.5.1 Moderate-amplitude initial data
We first consider exactly the scenario from Section 1.1, with the initial data given by (1). For the pseudospectral simulation we use the domain with periodic boundary conditions, but the simulation ends before there is significant interaction of the waves with the boundary. For the finite volume simulations we use the domain and impose a reflecting (solid wall) boundary condition at .
Results are shown in Figure 4. The Euler and p-system solutions are visually indistinguishable and seem to converge to the same values, as would be expected if shocks do not form (so that there is no temporal change in the entropy field). The homogenized solution shows close agreement at early times, with increasingly noticeable differences at later times.

2.5.2 Large-amplitude initial data
The behavior seen in the last example is typical for initial data that is not too large relative to the variation in the background entropy. For larger initial data (or smaller entropy variation), typical solutions involve shock formation as is usually expected in solutions of the Euler equations. To demonstrate this, we repeat the experiment of the previous section with one change: the amplitude of the initial pressure pulse is increased from to :
(25) |
Results are shown in Figure 5. We see that the Euler solution differs markedly from the homogenized solution and exhibits high-frequency oscillations, presumably resulting from the interaction of shock waves and the spatially-varying density. The p-system solution remains close to the Euler solution with visible differences only after a very long time. It is well known that for weak shocks the entropy produced by the shock is very small. Indeed it is of , where denotes the jump in the pressure and is the pressure in the unperturbed region ahead of the shock (see [27], Chapter 6). Isentropic approximation works well even for shocks of moderate strength. This has been observed in several contexts, including multilayered fluids (see [15]).

2.6 Exploiting the regularity of the solution
In the previous section we showed numerical evidence that under certain circumstances, nonlinear waves in the Euler equations do not break into shocks, and no entropy is produced. This suggests that the solution remains smooth for all times, presumably maintaining the regularity of the initial data. If that is the case, accurate numerical solutions do not require the use of a shock capturing scheme, and discretizations can be based on a non-conservative form of the equations. In the case of smooth initial data it is possible to adopt, for example, a pseudospectral discretization, similar to the one adopted for the numerical solution of the homogenized equations.
Here we write the Euler system as
(26a) | ||||
(26b) | ||||
(26c) |
All spatial derivatives are computed by Fourier pseudospectral differentiation; for example, . The system is integrated in time using the standard four-stage, fourth-order Runge-Kutta method. In the computation we use a Courant number 0.9. As usual, we integrate the equations in the domain with periodic boundary conditions, and plot the solution only in the interval . Note that if the initial density and pressure are even functions, and the initial velocity is an odd function, then the symmetry of the solution is maintained for all times.
As an example we compare the solution obtained by the high-order finite volume method described in the previous section, with the one obtained by the pseudospectral method. We take as initial condition
(27a) | ||||
(27b) | ||||
(27c) |
The result of the comparison is reported in Fig. 6. In order to get a fully resolved calculation we used 144,000 cells with Clawpack in the interval and only 32K points with the pseudospectral code in the domain [-512,512]. It is not our intent here to make a detailed performance comparison, and the solvers are implemented in different languages, but we remark that the pseudospectral simulation takes about one tenth of the time of the FV simulation (about 10 minutes versus about 100 minutes), with both running on a M1 Max Macbook Pro with 32 GB of RAM.

3 Approximate traveling waves
In this section we compute approximate traveling wave solutions of the homogenized system (21). We look for solutions which depend only on the variable , where is the traveling speed of the wave; i.e. we look for solutions of the form and . To simplify the notation we write simply in place of .
We first consider traveling waves for the approximate system in which we neglect terms of . Inserting the traveling wave ansatz for and in system (21), we obtain the system of ODEs
(28a) | ||||
(28b) |
From the second equation we deduce that , and therefore , since we consider propagation of traveling perturbations of the state and .
Inserting the dependence of on in the first equation, we obtain a third order ODE for . In order to integrate this equation further, we approximate , yielding
(29) |
Now let be a primitive of . Then . Using this relation, (29) can be written as
which indicates that the quantity in square brackets is constant. Given that at infinity vanishes with its derivatives, we obtain a second-order equation for :
(30) |
The second-order equation can be written as a first-order system of the form
(31) |
It turns out that is an equilibrium point for system (31). The linearization around the origin reads
with
When , there are two real roots, , and the origin is a saddle point. Integrating system with an initial condition very close to the origin, aligned with the eigenvector corresponding to the positive eigenvalue, one obtains a good approximation of a traveling wave. Figure 7 represents a typical traveling wave.

We now use this solution as the initial guess for Newton’s method in order to find a more accurate traveling wave solution. Given an initial guess we iteratively solve
where is the residual of the traveling wave equation:
with , , , and is the Jacobian of F:
Here we used the relation given that we assume that and its derivatives vanish at infinity. We use a three-point centered difference to approximate . The Newton iteration is terminated when the residual falls below a prescribed tolerance.
3.1 Traveling waves to
We now look for traveling waves for system (21), keeping the term proportional to , and neglecting only the right hand side of (21a). Let us denote by the coefficient of , as in (23). Using as before the approximation in system (21), and proceeding as above, we obtain the following fourth-order equation for :
(32) |
We then apply the Newton method described above to (32), using the traveling wave computed from the approximation as initial guess.
Figure 8 shows the shape of the traveling waves corresponding to the second and to the fourth-order model, respectively, with traveling velocity . We also include for comparison a traveling wave with this velocity computed by solving the initial value PDE with Clawpack. For the latter, we show the solution as a function of at fixed points in space, for three different points (since the shape of the wave varies depending on the spatial location).

Remark 3
Sometimes it is also possible to compute approximate traveling waves using Petviashvili’s fixed-point iteration. This approach is based on separating the ODE that defines the traveling wave into a linear part, which includes the term with the highest-order derivative, and a non-linear part:
One of the assumptions of the procedure is that the non-linear operator is homogeneous of a certain degree. Unfortunately, this is not the case for our problem.
Nevertheless, by observing that , and approximating by in system (28), one can rewrite the traveling wave equation as , with homogeneous operator of degree 2, therefore allowing the use of the Petviashvili method for the construction of the approximate traveling wave. The results are very similar to the ones obtained by Newton’s method. This was pointed out to the authors by Giuseppe Virgilio Minissale.
4 Shock formation and entropy evolution
Visual inspection of the solutions computed in Section 2.5.1 suggests that no shocks are formed. A more precise method for detecting shock formation in the numerical solution is to study the total entropy change over time. In the exact solution of the Euler equations, the total entropy is constant in the absence of shock formation. For numerical solutions, we expect some entropy change due to numerical errors. We compute a measure of the total entropy at a given time from the discrete solution via
(33) |
In order to reduce the entropy change caused by the numerical discretization, for this test we again use the smooth initial data (27). We take the domain and impose periodic boundary conditions to avoid any entropy change due to boundary effects. We run to final time , which is many times greater than the time of shock formation for a similar initial condition in a constant initial entropy field. In Table 1 we report the change in entropy:
(34) |
This value should be zero in the absence of shock formation, or positive in the presence of shocks.
For this comparison we computed solutions with the high-order SharpClaw (SC) method in Clawpack and with the pseudospectral method described in Section 2.6. There is a small amount of entropy production in the Clawpack solutions, and in the pseudospectral solution on a coarse grid. This entropy production decreases at approximately the expected rate of convergence for Clawpack, while the pseudospectral method shows a very small entropy production on finer grids. This suggests that if any shock formation occurs, the shock(s) must be very weak.
Clawpack | Pseudospectral | |
---|---|---|
1/16 | 6.02e-1 | 5.93e-6 |
1/32 | 2.45e-2 | 1.96e-7 |
1/50 | 2.90e-3 | 1.36e-7 |
1/100 | 1.16e-4 | 7.47e-8 |
1/200 | 9.18e-6 | 8.76e-8 |
The behavior of the total entropy variation as a function of time is reported in Figure 9. Although we cannot exclude the production of a small amount of entropy, with fully resolved calculations the change in the entropy at final time appears only on the eleventh digit.

4.1 A criterion for shock formation
A careful study of shock formation for the p-system in a periodic medium was conducted in [7], and an empirically-supported criterion for shock formation was formulated there. This criterion indicates that in a non-uniform medium a propagating front will form a shock if and only if the speed of the front exceeds a critical threshold, namely, the maximum speed of signal propagation in the state ahead of the front, given by the harmonic average of the sound speed:
(35) |
where . Note that the speed of propagation of the front itself is altered by the variation in the background; for details see [7]. This criterion cannot be applied precisely to the propagation of localized pulses, since for a pulse the asymptotic left and right states are the same, and the theory was formulated in terms of a propagating front.
Instead, we consider a series of shock-tube-like problems with an oscillating density. Specifically, we take
(36a) | ||||
(36b) | ||||
(36c) |
The pressure is approximately a step function, taking the value for and for , but the hyperbolic tangent function is used to smooth it out slightly so that there is not a shock at . In this way we can assess whether a shock forms later. We take and vary . We see that the solution of this problem resembles that of a Riemann problem for a dispersive nonlinear wave equation, with an oscillatory region forming between the left-going rarefaction and right-going front. Our interest here is in assessing the speed of this front and whether it is truly a shock. We see clearly that in the first two figures the front is moving slower than , while in the last two figures it is clearly moving faster than . Thus we expect (based on the theory from [7]) shock formation in the last two cases but not in the first two. The middle cases are more ambiguous.

To test this expectation, we compute a measure of the local entropy production (LEP):
(37) |
Local entropy production a very useful tool to detect the presence and nature of possible singularities in the numerical solution of quasilinear hyperbolic systems of conservation laws. This tool was originally introduced by G.Puppo [16, 17] in the context of finite volume central schemes, and later extended to other schemes. In [18] the authors studied the dependence of this quantity on the spatial mesh size . When applied to the Riemann problem for the Euler equations, they proved that when using a method of order in space and time, the local numerical entropy production scales as in the smooth regions, and as near the shock. They also observed that LEP scales as at the rarefaction corner, as at the contact. In the same paper the LEP has been adopted as an indicator for adaptive mesh refinement in finite volume methods on uniform grids. In in [19] and [20] indicators based on LEP have also been adopted in the case of non uniform grids.
In Figure 11 we plot the maximum (over time and space) of the absolute value of for each shock tube experiment, for various values of and . For values , this value grows linearly as the mesh is refined, indicating the presence of one or more shocks. For smaller values of this measurement suggests that shocks are not present or are extremely weak.

5 Perturbations in a random quasi-periodic background
Here we have observed that genuinely nonlinear waves do not break up into shocks, and presumably maintain the regularity of the initial conditions, provided they propagate on a periodic background. Similar observations have been made for other hyperbolic systems; see e.g. [8, 1]. A natural question arises: how fundamental is the periodicity of the background? What if the background is oscillatory but not strictly periodic?
Here we conduct some very simple and limited experiments to begin probing the answer to this question. We consider a background density of the form
where and are random functions centered about unity (see Appendix A.3). We conduct two realizations of these random functions, with differing amounts of variation (specifically, the number of smoothing iterations is set to 320,000 for the smoother one and 20,000 for the less-smooth one). We apply the high-order SharpClaw FV algorithm from Clawpack, solving on the domain up to , just as in the previous section. We use a grid with . Solutions are shown in Figure 12, where we have zoomed in to show the leading part of the wave. A part of one of the random entropy profiles is also shown. We see that the solution no longer consists of such neat solitary waves, although a roughly similar pattern emerges (with a lot more small-scale oscillations).
In Figure 13 we show the change in total entropy over time for the solutions over a random field compared to the same initial pressure perturbation but with a constant (in space) density field. It is clear that the entropy change in the presence of a random oscillating density field is orders of magnitude smaller, and if shocks form then they are extremely weak. We also computed the relative change in entropy (eq. (34)) for the two random realizations; for the smoother density field we obtain and for the less-smooth density field we obtain . These values are of the same order of magnitude (though somewhat larger) as what was obtained for a strictly periodic density field with the same grid spacing (see Table 1). This further supports the hypothesis that little or no shock formation occurs in these scenarios. Similar results (not shown here) were obtained with additional realizations of the random density field.
This experiment suggests that periodicity of the background is not a necessary condition in order to have a smooth solution for long time. Further investigation in this direction, in order to understand the conditions on the background under which genuinely nonlinear waves of quasilinear systems remain smooth for arbitrarily long times represents an interesting and challenging problem for future study.


6 Conclusion
We have shown that a pressure perturbation propagating on a background of a gas with periodically (or almost periodically) varying density (or equivalently, entropy) undergoes an effective dispersion that can lead to the formation of solitary waves that seem to persist for arbitarily long times. This behavior can be accurately described by a pair of high-order constant-coefficient PDEs obtained via perturbation theory. This conduct is in stark contrast with what is generally expected for one-dimensional compressible gas dynamics. In agreement with recent work on nonlinear acoustics [25], our results suggest that in general solutions of the compressible Euler equations need not decay to a constant state. We note that whereas the results in [25] deal only with very small amplitude (nonlinear) perturbations, our results suggest the existence of non-decaying solutions of relatively large amplitude.
The behavior observed here seems to be intimately connected to work on resonant wave interactions [11, 12, 14]. Although we have not explored this aspect here, the traveling wave solutions we observe are composed of variation in all three characteristic fields (cf. [9]). It is remarkable that such interactions persist indefinitely on an unbounded domain.
We also observe that, given the regularity of the solution, one can effectively adopt simpler and more accurate methods for the numerical solution of the Euler system, such as, for example, a pseudospectral method coupled with a standard ODE integrator, with great gain in computational efficiency. Of course, this requires advance knowledge of the nature of the solution, for example that is is sufficiently regular to be treated by pseudsospectral methods, which can be facilitated partially by the shock formation criterion proposed in [7] and revisited here in Section 4. Nevertheless, there is not yet a complete theory to guarantee the avoidance of shock formation for general classes of initial data.
Many interesting open questions are raised by this work. For instance, is it possible to prove that there exist large-amplitude non-breaking solutions of the 1D Euler equations, and is there a limit to how large they can be? Could these waves be generated and observed experimentally?
At this point it is natural to expect that similar behavior to what is observed here (and recently in the shallow water system [8]) may arise in other hyperbolic systems with spatially-periodic structure. Based on the work of Temple & Young [23, 24, 25], this behavior may require the presence of two nonlinear characteristic fields and one linearly degenerate field. An investigation of the necessary and sufficient hyperbolic structure for such behavior to arise is the subject of ongoing work.
Appendix A Appendix
A.1 Linear stability analysis of the solution of system (19)
Here we prove that system (19) is always linearly unstable, for all , and that the initial value problem for the linearized system is ill-posed.
Let us consider the linearized system (19), and neglect the terms on the right hand side. The system can be written as
(38a) | ||||
(38b) |
where we set
We assume , , while ( corresponds to the model which neglects terms of order higher than ). We look for solution of the form
After dividing by the imaginary unit and collecting the terms in and we obtain the homogeneous system
Non trivial solutions of the system exist if the determinant of the coefficient matrix is zero. This gives the dispersion relation
Let . Then satisfies the cubic equation
(39) |
For , satisfies the equation
which has two real roots of opposite sign, say , . The equation has two imaginary roots, one of which with positive imaginary part, corresponding to an unstable mode which grows exponentially.
If , since the function is monotonically increasing and , there will be only one positive root, which corresponds to two real values of . The other roots of (39) are either negative real or complex. Let us denote by one of such roots. If then corresponds to an unstable mode. If is a complex root, one of the two roots of will have positive imaginary part, therefore corresponding to an unstable mode.
Finally, as , so the corresponding roots diverge, i.e. , making the initial value problem ill-posed.
A.2 Linear stability of LeVeque & Yong system
In [10], the homogenized equations obtained there are converted to a form in which only x-derivatives appear (except for the evolution terms). Here we derive the linear stability relation for the analogous system, taking the Euler equation of state rather than the exponential stress-strain relation used there. Using (14) we obtain the system
(40) | ||||
(41) |
The linearized system around state reads
(42) | ||||
(43) |
where is defined in the previous section, and . We look for solutions of the form
After dividing by the imaginary unit and collecting the terms in and we obtain the homogeneous system
Non trivial solutions of the system exist if the determinant of the coefficient matrix is zero. This gives the dispersion relation
which gives the two branches
therefore the linear modes are unstable for , leading to ill-posed initial value problems.
A.3 Randomly modulated background
Here we describe how we construct the coefficients and which modulate the amplitude and space frequency of the originally sinusoidal background. We describe the construction of . First we solve the stochastic differential equation
numerically on the grid which discretizes the domain , with a grid f stepsize , starting from . Here and are two non-negative constants, and denotes a random number with uniform distribution in . In this way we obtain a discretization of a Hölder continuous function with exponent , with zero expected value. Then we smooth the obtained discrete values by discrete diffusion equation, i.e. we iterate
imposing periodic boundary conditions, and with . At the end of the process we add 1 to , so that its expected value is 1. Similarly we act for . Specifically, in our simulation we adopted , , . In order to make the result reproducible we set a seed of the random number generator with the Matlab command rng.
Acknowledgments
The authors would like to thank Giuseppe Virgilio Minissale for pointing out the approximation that allows to use Petviashvili technique to compute the traveling wave. G. Russo would like to thank the Italian Ministry of University and Research (MUR) for the support of this research with funds coming from PRIN Project 2022 (N. 2022KA3JBA entitled “Advanced numerical methods for time dependent parametric partial differential equations with applications”) and KAUST for hosting him during part of the time this work was completed.
References
- [1] Laila S Busaleh and David I Ketcheson. Homogenized equations for isentropic gas in a pipe with periodically-varying cross-section. arXiv preprint arXiv:2410.05176, 2024.
- [2] Carlos Maria Celentano. Finite amplitude resonant acoustic waves without shocks. PhD thesis, Massachusetts Institute of Technology, 1995.
- [3] James Glimm and Peter D Lax. Decay of solutions of systems of nonlinear hyperbolic conservation laws, volume 101. American Mathematical Soc., 1970.
- [4] D. I. Ketcheson, K. T. Mandli, A. J. Ahmadia, A. Alghamdi, M. Quezada de Luna, M. Parsani, M. G. Knepley, and M. Emmett. PyClaw: Accessible, Extensible, Scalable Tools for Wave Propagation Problems. SIAM Journal on Scientific Computing, 34(4):C210–C231, November 2012.
- [5] D. I. Ketcheson, M. Parsani, and R. J. LeVeque. High-order Wave Propagation Algorithms for Hyperbolic Systems. SIAM Journal on Scientific Computing, 35(1):A351–A377, 2013.
- [6] David I Ketcheson. Highly efficient strong stability-preserving runge–kutta methods with low-storage implementations. SIAM Journal on Scientific Computing, 30(4):2113–2136, 2008.
- [7] David I Ketcheson and Randall J Leveque. Shock dynamics in layered periodic media. Communications in Mathematical Sciences, 10(3):859–874, 2012.
- [8] David I Ketcheson, Lajos Lóczi, and Giovanni Russo. A multiscale model for weakly nonlinear shallow water waves over periodic bathymetry, 2023. arXiv preprint arXiv:2311.02603.
- [9] Randall J LeVeque and Darryl H Yong. Phase plane behavior of solitary waves in nonlinear layered media. In Hyperbolic Problems: Theory, Numerics, Applications: Proceedings of the Ninth International Conference on Hyperbolic Problems held in CalTech, Pasadena, March 25–29, 2002, pages 43–51. Springer, 2003.
- [10] Randall J. LeVeque and Darryl H. Yong. Solitary waves in layered nonlinear media. SIAM Journal on Applied Mathematics, 63:1539–1560, 2003.
- [11] Andrew Majda and Rodolfo Rosales. Resonantly interacting weakly nonlinear hyperbolic waves. i. a single space variable. Studies in Applied Mathematics, 71(2):149–179, 1984.
- [12] Andrew Majda, Rodolfo Rosales, and Maria Schonbek. A canonical system of lntegrodifferential equations arising in resonant nonlinear acoustics. Studies in Applied Mathematics, 79(3):205–262, 1988.
- [13] Kyle T Mandli, Aron J Ahmadia, Marsha Berger, Donna Calhoun, David L George, Yiannis Hadjimichael, David I Ketcheson, Grady I Lemoine, and Randall J LeVeque. Clawpack: building an open source ecosystem for solving hyperbolic PDEs. PeerJ Computer Science, 2:e68, 2016.
- [14] Robert L Pego. Some explicit resonating waves in weakly nonlinear gas dynamics. Studies in Applied Mathematics, 79(3):263–270, 1988.
- [15] Duyen TM Phan, Sergey L Gavrilyuk, and Giovanni Russo. Numerical validation of homogeneous multi-fluid models. Applied Mathematics and Computation, 441:127693, 2023.
- [16] Gabriella Puppo. Numerical entropy production on shocks and smooth transitions. Journal of scientific computing, 17:263–271, 2002.
- [17] Gabriella Puppo. Numerical entropy production for central schemes. SIAM Journal on Scientific Computing, 25(4):1382–1415, 2004.
- [18] Gabriella Puppo and Matteo Semplice. Numerical entropy and adaptivity for finite volume schemes. Communications in Computational Physics, 10(5):1132–1160, 2011.
- [19] Gabriella Puppo and Matteo Semplice. Well-balanced high order 1d schemes on non-uniform grids and entropy residuals. Journal of Scientific Computing, 66:1052–1076, 2016.
- [20] Matteo Semplice, Armando Coco, and Giovanni Russo. Adaptive mesh refinement for hyperbolic systems based on third-order compact weno reconstruction. Journal of Scientific Computing, 66:692–724, 2016.
- [21] Michael Shefter and Rodolfo R Rosales. Quasiperiodic solutions in weakly nonlinear gas dynamics. part i. numerical results in the inviscid case. Studies in Applied Mathematics, 103(4):279–337, 1999.
- [22] Chi-Wang Shu and Stanley Osher. Efficient implementation of essentially non-oscillatory shock-capturing schemes. Journal of computational physics, 77(2):439–471, 1988.
- [23] Blake Temple and Robin Young. A paradigm for time-periodic sound wave propagation in the compressible euler equations. Methods and Applications of Analysis, 16(3):341–364, 2009.
- [24] Blake Temple and Robin Young. Time-periodic linearized solutions of the compressible euler equations and a problem of small divisors. SIAM journal on mathematical analysis, 43(1):1–49, 2011.
- [25] Blake Temple and Robin Young. The nonlinear theory of sound. arXiv preprint arXiv:2305.15623, 2023.
- [26] Dimitri Vaynblat. The strongly attracting character of large amplitude nonlinear resonant acoustic waves without shocks: a numerical study. PhD thesis, Massachusetts Institute of Technology, 1996.
- [27] Gerald Beresford Whitham. Linear and nonlinear waves, volume 42. John Wiley & Sons, 2011.