NumMeth 2022: Beginning of Chap 5

This commit is contained in:
2022-11-09 15:17:58 +01:00
parent 18dfdd4c01
commit 637090fcac
5 changed files with 123 additions and 1 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

+123 -1
View File
@@ -2625,7 +2625,129 @@ simulations, as shown in \cite{Riva_2017}.
\chapter{Hyperbolische Erhaltungssätze}
\chapter{Hyperbolic conservation laws}
A large number of physics problems can be cast into a hyperbolic conservation law of the type
\begin{align}
\diffp{u(x,t)}{t} + \diffp{f(u(x,t))}{x} = 0
\end{align}
or in more than one dimension
\begin{align}
\diffp{u(x,t)}{t} + \nabla f(u(x,t)) = 0
\end{align}
As the name promises, something is conserved. Here $u$ is conserved and $f$ is the flux of this quantity. Whenever something behaves vaguely like a fluid this type of equation comes into play. The most simple form of this conservation law is the advection equation. As we will discuss later, the advection equation has - in its simple form - an analytic solution. If this was the case for all hyperbolic conservation laws there would be no need for numerical simulations. Unfortunately most hyperbolic conservation laws are similar to the Burgers equation, which includes a nonlinearity on the RHS (Navier-Stokes, MHD, etc.). And then there is no analytic solution.
We still need to understand how solutions look like for hyperbolic conservation laws to develop numerical schemes and decide, which solution is correct.
One point we have to discuss is the fact that we deal with PDEs now rather than ODEs before. We may solve a conservation law using, e.g., a Runge-Kutta 3rd order scheme
\begin{align}
u^\prime &= u^n +\Delta t \diffp{u^n}{x}\\
u^{\prime\prime} &= \frac{3}{4} u^n + \frac{1}{4}u^\prime +\frac{1}{4}\diffp{u^\prime}{x}\\
u^{n+1} &= \frac{1}{3} u + \frac{2}{3} u^{\prime\prime} - \frac{2}{3}\diffp{u^{\prime\prime}}{x}
\end{align}
Looks simple? It isn't. As we will figure out, the derivatives with respect to $x$ cannot just be cast into a finite difference.
\section{Advection equation}
The advection equation
\begin{align}
\partial_t u + a \partial_x u &= 0\\
u_0(x,t=0) &= u_0(x)
\end{align}
describes how the quantity $u$ is advected with a constant velocity $a$. When everything moves at constant speed, we can easily find the analytic solution
\begin{align}
u(x,t) = u_0(x- a t)
\end{align}
The solution is constant along the line $x_0 = x-at$. These lines are called characteristics.
\begin{figure}
\begin{center}
\pgfimage[width=.8\textwidth]{fig_chapter5/linear-advection}
\end{center}
\end{figure}
Characteristics are a fundamental concept for first order differential equations and we will make use of this concept for the more complicated conservation schemes.
The characteristic fulfills $x^\prime(t)=a$ and $x(0)=x_0$. When differentiating $u$ along the characteristic we find
\begin{align}
\diff{}{t} u(x(t),t) &= \diffp{}{t} u(x(t),t) + \diffp{}{x} u(x(t),t) x^\prime(t)\\
&= u_t + a u_x = 0
\end{align}
As pointed out before: $u$ is a constant along the characteristic.
Now we may take a more general approach: let the advection speed be a function of $x$
\begin{align}
\partial_t u + \partial_x (a(x) u) = 0
\end{align}
where $a(x)$ is a smooth function.
\begin{align}
\partial_t u + a(x)\partial_x u = -a^\prime(x) \Leftrightarrow\left(\diffp{}{t}+a(x)\diffp{}{x} \right) u(x,t) = -a^\prime(x) u(x,t)
\end{align}
The evolution of $u$ along
\begin{align}
x^\prime(t) = a(x(t)),\quad x(0) = x_0
\end{align}
is given by the ODE
\begin{align}
\diff{}{t} u(x(t),t) = -a^\prime(x(t)) u(x(t),t)
\end{align}
We have found a characteristic again, but this is no longer a constant.
On which points does the solution depend? For the linear advection equation the answer is simple: It is the point $x_0$ through which the characteristic goes. The concept is called \emph{Domain of Dependence} $\mathcal{D}(x,t) = \{x_0\}$. It is not completely unexpected that $\mathcal{D}$ is not necessarily a single point. For hyperbolic systems we can at least conclude that $\mathcal{D}$ is a bounded interval. The length of the interval will increase with time
\begin{align}
\mathcal{D} \subset \{x:|x-\bar x| \leq a_\text{max} \bar t\}
\end{align}
Vice versa this means that starting from a single given point only a given area $ \{x:|x- x_0| \leq a_\text{max} t\}$ will be influenced (\emph{Range of Influence}). Hyperbolic systems have a limited velocity of propagation.
\subsection{Non-smooth data}
We have implictly assumed that $u_0$ is differentiable. For the characteristic differentiable functions are not essential. Even for $u_0$ with singularities we may define a solution. The singularity will move along the characteristic.
For non-differentiable $u_0$ the solution $u$ is no longer a classic solution (since the differential equation requires\dots differentiation\dots). The solution fulfills, however, the integral conservation law (i.e., the fundamental physics behind this).
A different approach to this would be: Let $u_0^\epsilon$ be a series of differentiable functions with $\lim_{\epsilon\to 0} = u_0$
\begin{align}
\| u_0 - u_0^\epsilon \|_1 < \epsilon, \quad \| \cdot \|_1 \Rightarrow \| v\|_1= \int_{-\infty}^{+\infty} |v(x)| \dd x
\end{align}
The $u_0^\epsilon$ lead to differentiable, classic solutions $u^\epsilon(x,t)$
\begin{align}
u^\epsilon(x,t) = u_0^\epsilon(x - at) \Rightarrow u(x,t) = \lim_{\epsilon\to 0} u_0^\epsilon(x-at) = u_0(x- at)
\end{align}
This works totally fine when talking about the linear case. When we move on to a non-constant advection speed we change from the advection equation to the diffusion advection equation
\begin{align}
\partial_t u + a \partial_x u = \epsilon \partial_x^2 u
\end{align}
in the limit of vanishing viscosity $\epsilon$. Let $u^\epsilon(x,t)$ be a solution to this equation. This solution is always differentiable since we have moved from a hyperbolic to a parabolic equation. From that point we can move to $\lim_{\epsilon\to 0}$ - the so-called vanishing viscosity solution. We will discuss this for non-linear equations in the next section.
\section{Burgers equation}
Let's move on to real nonlinear equations. We will consider equations of the type
\begin{figure}
\begin{center}
\pgfimage[width=.8\textwidth]{fig_chapter5/burgers1}
\end{center}
\caption{Solution to the Burgers equation with characteristics. Due to the nonlinearity the peak moves faster and becomes steeper.}
\label{fig:burgers1}
\end{figure}
\begin{figure}
\begin{center}
\pgfimage[width=.8\textwidth]{fig_chapter5/burgers2}
\end{center}
\caption{Solution to the Burgers equation for non-smooth data. As in Fig. \ref{fig:burgers1} the peak becomes faster.}
\label{fig:burgers2}
\end{figure}
\begin{figure}
\begin{center}
\pgfimage[width=.8\textwidth]{fig_chapter5/burgers3}
\end{center}
\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}
\end{figure}
- Finite Differenzen
- Finite Volumina