NumMeth: Chap 5 up to Riemann problem

This commit is contained in:
Felix Spanier
2022-11-09 19:40:35 +01:00
parent 637090fcac
commit 6f8966cafd
+74 -2
View File
@@ -2721,8 +2721,22 @@ in the limit of vanishing viscosity $\epsilon$. Let $u^\epsilon(x,t)$ be a solut
\section{Burgers equation} \section{Burgers equation}
Let's move on to real nonlinear equations. We will consider equations of the type Let's move on to real nonlinear equations. We will consider equations of the type
\begin{align}
\partial_t u + \partial_x f(u) = 0
\end{align}
where $f(u)$ is a convex function with $\partial_x^2 f(u) > 0$. The simplest case is the Burgers equation with $f(u) = 1/2 u^2$
\begin{align}
\partial_t u + u\partial_x u = 0
\end{align}
It should be pointed out that the original Burgers equation in fact includes a dissipation term $\epsilon \partial_x^2 u$ on the RHS.
One may find the exact solution to this equation using the Cole-Hopf transformation that transforms the Burgers equation to heat transfer equation. But this is too theoretical. We are interested in the characteristics
\begin{align}
x^\prime (t) &= u(x(t),t)\\
\diff{}{t} u(x(t),t) &= \diffp{}{t} u(x(t),t) + \diffp{}{x} u(x(t),t) x^\prime(t)\\
&= u_t + u u_x
\end{align}
Since $u$ is constant along the characteristic the gradient of the characteristic does not change, i.e. the gradients are straight lines (cf. Fig. \ref{fig:burgers1}).
\begin{figure} \begin{figure}
\begin{center} \begin{center}
\pgfimage[width=.8\textwidth]{fig_chapter5/burgers1} \pgfimage[width=.8\textwidth]{fig_chapter5/burgers1}
@@ -2730,8 +2744,14 @@ Let's move on to real nonlinear equations. We will consider equations of the typ
\caption{Solution to the Burgers equation with characteristics. Due to the nonlinearity the peak moves faster and becomes steeper.} \caption{Solution to the Burgers equation with characteristics. Due to the nonlinearity the peak moves faster and becomes steeper.}
\label{fig:burgers1} \label{fig:burgers1}
\end{figure} \end{figure}
For small times $t$ the characteristics do not cross each other, one may calculate
\begin{align}
x &= \zeta + u(\zeta,0) t\\
u(x,t) &= u(\zeta,0)
\end{align}
For increasing times $t$ the characteristic come close to each other (cf. \ref{fig:burgers2}) until at some time $T_b$ two characteristic cross each other. This leads to a non-unique solution.
\begin{figure} \begin{figure}
\begin{center} \begin{center}
\pgfimage[width=.8\textwidth]{fig_chapter5/burgers2} \pgfimage[width=.8\textwidth]{fig_chapter5/burgers2}
@@ -2740,7 +2760,7 @@ Let's move on to real nonlinear equations. We will consider equations of the typ
\label{fig:burgers2} \label{fig:burgers2}
\end{figure} \end{figure}
This process is somewhat like wave-breaking. As seen in Fig. \ref{fig:burgers3} we would have a three valued function for $t>T_b$ (don't be fooled by the breaking wave analogy: the process is similar, but $u$ is not a wave shape).
\begin{figure} \begin{figure}
\begin{center} \begin{center}
\pgfimage[width=.8\textwidth]{fig_chapter5/burgers3} \pgfimage[width=.8\textwidth]{fig_chapter5/burgers3}
@@ -2748,6 +2768,58 @@ Let's move on to real nonlinear equations. We will consider equations of the typ
\caption{Following the evolution of \ref{fig:burgers1} would result in a non-well defined solution. For some points three solutions exist. This is clearly unphysical} \caption{Following the evolution of \ref{fig:burgers1} would result in a non-well defined solution. For some points three solutions exist. This is clearly unphysical}
\label{fig:burgers3} \label{fig:burgers3}
\end{figure} \end{figure}
As pointed out before we may make use of viscosity to find the correct solution (the vanishing viscosity solution).
\subsection{Weak solutions}
So how do we find the solution for the inviscid equation without demanding differentiability? We will take a step back and consider the integral formulation (the integral includes the fundamental physical background of conservation).
Let's consider a test function $\varphi \in C_0^1 (\mathbb{R}\times \mathbb{R})$ which is continuously differentiable with compact support (i.e., 0 outside the interval). We will now multiply the equation $u_t + f_x = 0$ with $\varphi(x,t)$
\begin{align}
\int_0^\infty \dd t \int_{-\infty}^{+\infty} \dd x (\varphi \partial_t u + \varphi \partial_x f(u)) &= 0
\end{align}
Using integration by parts we can show that this is
\begin{align}
\left(\int_{-\infty}^{+\infty}\dd x \varphi u \right)|_0^\infty - \int_0^\infty \dd t\int_{-\infty}^{+\infty} \dd x \varphi_t u + \varphi_x f(u)
\end{align}
The function $u(x,t)$ is called weak solution when for all functions $\varphi \in C_0^1 (\mathbb{R}\times \mathbb{R})$ the following equation holds
\begin{align}
\int_0^\infty \dd t\int_{-\infty}^{+\infty} \dd x \varphi_t u + \varphi_x f(u) = -\int_{-\infty}^{+\infty} \dd x \varphi(x,0) u(x,0)
\end{align}
The concept of weak solutions is not something that is used in real life, it is a theoretical concept to prove the correctness of solutions. The following solutions all fulfil the weak solution concept.
\section{The Riemann problem}
The connection of a conservation problem and a piecewise constant initial value yields a so called Riemann problem. The Riemann problem is essentially a template for the general solution. We will again consider the Burgers equation as conservation law and
\begin{align}
u(x,0) = \begin{cases} u_l & x<0 \\ u_r & x>0 \end{cases}
\end{align}
We will assume $u>0$ for the sake of simplicity.
\subsection{Case 1}
For $u_l> u_r$ we will find the following solution
\begin{align}
u(x,t) = \begin{cases} u_l & x < s t\\ u_r & x > s t\end{cases}
\end{align}
with the shock speed $s=1/2(u_l+u_r)$. When viscosity is included, this will result in the traveling wave solution.
Fig. \ref{fig:riemann1} shows the solution of a moving shock where the characteristic converge \emph{into} the shock.
\subsection{Case 2}
For $u_l < u_r$ there are infinitely many weak solutions. The upper solution in Fig. \ref{fig:riemann2} includes again a shock with speed $s$. The difference to the previous case is that the characteristics come out of the shock. This is an entropy violating solution, which is unstable against perturbations.
The correct solution is a rarefaction wave (shown in the lower part of Fig. \ref{fig:riemann2})
\begin{align}
u(x,t) = \begin{cases} u_l & x < u_l t\\ x/t & u_l t \leq x \leq u_r t \\ u_r & x> u_r t \end{cases}
\end{align}
\subsection{Shock speed}
The shock solution is only a weak solution, when $s=1/2(u_l+u_r)$. For any other speed the solution is not a weak solution.
- Finite Differenzen - Finite Differenzen
- Finite Volumina - Finite Volumina