NumMeth-22: Approximate Riemann

This commit is contained in:
2022-12-01 12:59:40 +01:00
parent 6885b19c15
commit 974c77c80f
+49 -5
View File
@@ -3702,7 +3702,7 @@ $U_j^{n +1}$ by an approximation to $U$ at the point $x_j - f^\prime(U_j^n )k$ o
\begin{figure}
\begin{center}
\pgfimage[width=.6\textwidth]{fig_chapter5/fig_leveque13.1}
\pgfimage[width=.6\textwidth]{fig_chapter5/leveque_13.1.png}
\end{center}
\caption{ In the CIR method, characteristics are traced back from $(x_j, t^{n+1})$ and linear interpolation used at time $t^n$.}
\label{fig:leveque_13.1}
@@ -3728,7 +3728,7 @@ solutions. This is illustrated in Figure \ref{fig:leveque_13.2}.
\begin{figure}
\begin{center}
\pgfimage[width=.6\textwidth]{fig_chapter5/fig_leveque13.2}
\pgfimage[width=.6\textwidth]{fig_chapter5/leveque_13.2.png}
\end{center}
\caption{Solution of independent Riemann problems for the piecewise constant data
$\bar{u}^n(x, t^n)$ in the case $m = 2$.}
@@ -3747,11 +3747,11 @@ In practice this algorithm is considerably simplified by observing that the cell
\begin{align}
\int_{x_{j-1/2}}^{x_{j+1/2}} \dd x \tilde{u}^n(x,t^{n+1}) = \int_{x_{j-1/2}}^{x_{j+1/2}} \dd x \tilde{u}^n(x,t^{n}) + \int_{t^n}^{t^{n+1}} \dd t f(\tilde{u}(x_{j-1/2},t)\\
- \int_{t^n}^{t^{n+1}} \dd t f(\tilde{u}(x_{j+1/2},t)
\label{eq:leveque13.6}
\end{align}
\end{align}
Dividing by $h$, using \eqref{eq:leveque13.6}, and noting that $\tilde{u}^n(x,t^n) = U_j^n$ over the cell $(x_{j-1/2},x_{j+1/2}$ this equation reduces to
\begin{align}
U_j^{n+1} = U_j^n - \frac{k}{h}\left[ F(U_j^n,U_{j+1}^n) - F(U_{j-1}^n,U_j^n) \right]
\label{eq:leveque13.7}
\end{align}
where the numerical flux function $F$ is given by
\begin{align}
@@ -3780,7 +3780,51 @@ For large $t$, of course, the solution may not remain constant at $x_{j+1/2}$ b
\end{align}
for all eigenvalues $\lambda_p$ at each $U_j^n$. The maximum of this quantity over the values of $u$ arising in a particular problem is called the \emph{Courant number}, a natural generalization from the linear problem.
Note that \eqref{eq:leveque13.11} allows the interaction of waves from neighboring problems during the time step, provided the interaction is entirely contained within a mesh cell.
Note that \eqref{eq:leveque13.11} allows the interaction of waves from neighboring problems during the time step, provided the interaction is entirely contained within a mesh cell. See Figure \ref{fig:leveque_13.3} for an example. In this case the solution $\tilde{u}^n (x,t)$ would be difficult or impossible to calculate. However, we never explicitly calculate the full solution, since all we require is the cell average \eqref{eq:leveque13.6}. This is still easy to compute because $\tilde{u}$ remains constant on each cell boundary.
\begin{figure}
\begin{center}
\pgfimage[width=.6\textwidth]{fig_chapter5/leveque_13.3.png}
\end{center}
\caption{Exact solution $\tilde{u}^n$ used in determining $U_j^{n+1}$ by Godunov's method. Note that $\tilde{u}^n$ is constant along the line segments $t^n < t < t^{n+1}$ at $x=x_{j-1/2}$ and $x=x_{j+1/2}$}
\label{fig:leveque_13.3}
\end{figure}
\section{Approximate Riemann solvers}
Godunov's method, and higher order variations of the method to be discussed later, require the solution of Riemann problems at every cell boundary in each time step. Although
in theory these Riemann problems can be solved, in practice doing so is expensive, and
typically requires some iteration for nonlinear equations.
Note that most of the structure of the resulting Riemann solver is not used in Godunov's method. The exact solution is averaged over each grid cell, introducing large
numerical errors. This suggests that it is not worthwhile calculating the Riemann solutions exactly and that we may be able to obtain equally good numerical results with an
approximate Riemann solution obtained by some less expensive means.
There are two distinct ways we could think of generalizing Godunov's method. One
is to start with the Codunov flux
\begin{align}
F(u_l,u_r) = f(u^*(u_l,u_r))
\end{align}
where $u^*(u_l,u_r)$ is the intermediate state $w(0)$ arising in the similarity solution $u(x,t)=w(x/t)$ of the Riemann problem, and replace the function $u^*(u_l,u_r)$ by some approximation $\hat{u}(u_l,u_r)$. This leads to the approximate Godunov method
\begin{align}
U_j^{n+1} = U_j^n -\frac{k}{h}\left[ f(\hat{u}^*(U_j^n,U_{j+1}^n) - f(\hat{u}^*(U_j^{n-1},U_{j}^n) \right]
\end{align}
Note that this method will be conservative and consistent for any choice of the function $\hat{u}^*$, provided it satisfies the natural condition that $\hat{u}^*(\bar u, \bar u) = \bar u$ with appropriate Lipschitz continuity.
We might define the function $\hat{u}^*$ by first defining an approximate Riemann solution $\hat{u}^*(x,t) = \hat{w}(x/t)$ and then setting $\hat{u}^*(u_l,u_r) = \hat{w}(0)$.
A second approach to generalizing Godunov's method is to go back to the original
description of the method, where $U_j^{n+1}$ is taken to be the cell average of $\tilde{u}^n (x,t^{n+1})$ and now replace $\tilde{u}^n (x, t)$ by an approximate solution $\hat{u}^n(x, t)$. This can be defined by simply piecing together approximate Riemann solutions at each cell interface, just as $\tilde{u}^n$ was defined for the exact Riemann solutions. This requires that we define an approximate Riemann solution $\hat w (x/t)$ with finite propagation speeds, so that
\begin{align}
\hat{w} (\zeta) = \begin{cases} u_l & \zeta < a_\text{min} \\ u_r & \zeta > a_\text{max} \end{cases}
\end{align}
where $a_\text{min}$ and $a_\text{max}$ are the minimum and maximum propagation speeds (which typically correspond closeloy to the range of Eigenvalues of $f^\prime(u_r)$ and $f^\prime(u_r)$). We need
\begin{align}
\left\vert \frac{a k}{h} \right\vert < \frac{1}{2}
\end{align}
in order for the construction of $\hat{u}^n(x,t)$ described above to work, but once we determine the corresponding flux function this can be relaxed to require only $|ak/h<1|$ as in Godunov's method with the exact Riemann solution.
%- Finite Differenzen
%- Finite Volumina