Riemann problem for Burgers’ equation with both shock waves and rarefaction waves.

characteristicsfluid dynamicshyperbolic-equationspartial differential equations

Given the inviscid Burgers' equation with piecewise initial data
$$
u_t + u u_x = 0,\qquad
u(x,0) = \left\lbrace
\begin{aligned}
&0 && \text{if } x<-1 \\
&2 && \text{if } {-1}<x<0 \\
&4 && \text{if } {0}<x<1 \\
&2 && \text{if } 1\leq x<2 \\
&0 && \text{if } x\geq 2
\end{aligned}\right.
$$

I want to find the exact solution of this problem represented in a single piecewise function.

Progress and Confusion

I know the Riemann problem has exact solution for rarefaction waves and shock waves respectively.
So for region $(-1,1)$ at $x=-1$ and $x=0$, characteristics separate, I will obtain the rarefaction waves and the solution will be in same form within different spatial region as following:
$$
u(x,t) = \left\lbrace
\begin{aligned}
&0 && \text{if } x<0 \\
&\frac{x}{t} && \text{if } {0}<x<2t \\
&2 && \text{if } x>2t \\
\end{aligned}\right.
,and\;\;\;
u(x,t) = \left\lbrace
\begin{aligned}
&2 && \text{if } x<2t \\
&\frac{x}{t} && \text{if } {2t}<x<4t \\
&4 && \text{if } x>4t \\
\end{aligned}\right.
$$

and the shock wave solution will occur in region (1,2) and also be in same form within different spatial region as following:
$$
u(x,t) = \left\lbrace
\begin{aligned}
&4 && \text{if } x<3t \\
&2 && \text{if } x>3t \\
\end{aligned}\right.
,and\;\;\;
u(x,t) = \left\lbrace
\begin{aligned}
&2 && \text{if } x<t \\
&0 && \text{if } x>t \\
\end{aligned}\right.
$$


Those different solution profiles have clearly overleaping in the spatial region, I am not sure what will happen in those overleaping area, and how could I condense them into a single piecewise function to represent the solution for entire region.

For the rarefaction waves case, according to the spatial region profile, I guess the first two rarefaction waves will merge together at first as following:
$$
u(x,t) = \left\lbrace
\begin{aligned}
&0 && \text{if } x<0 \\
&\frac{x}{t} && \text{if } {0}<x<4t \\
&4 && \text{if } x>4t \\
\end{aligned}\right.
$$

But for the two shocks, since the first shock is faster than second, the first shock seems to swallow up the second shock, and therefore only the first shock waves left:
$$
u(x,t) = \left\lbrace
\begin{aligned}
&4 && \text{if } x<3t \\
&0 && \text{if } x>3t
\end{aligned}\right.
$$

Am I got correct in those intermediate state? And also, what will be the case when the rarefaction waves meet with the shock waves?

Best Answer

The problem is somewhat similar to this one for which the basic concepts are explained here. An important aspect is that we need to apply a translation to the Riemann solution. In fact, standard Riemann problems are defined for discontinuities located at $x=0$ only. In other words, for small positive times, the entropy solution reads $$ u(x,t) =\left\lbrace \begin{aligned} &0, && x\leq -1\\ &\tfrac{x+1}{t}, && {-1} \leq x \leq -1+2t\\ &2, && {-1+2t}\leq x\leq 2t\\ &\tfrac{x}{t}, && 2t \leq x \leq 4t\\ &4, && 4t\leq x < 1+3t \\ &2, && 1+3t <x< 2+t \\ &0, && 2+t < x \end{aligned}\right. $$ Note that the solution is continuous across rarefactions, and that the initial data must be recovered when setting $t=0$ in the solution's expression. The solution's sub-domains should not overlap at small times, but one notes that there exists a positive time at which the two shock waves interact, and another one at which the rarefaction part interacts with a shock.