Skip to content

Commit 1692d81

Browse files
committed
fix the plm convergence plot -- wrong limiters were used
closes issue #2
1 parent bf6ae2d commit 1692d81

File tree

5 files changed

+16
-1
lines changed

5 files changed

+16
-1
lines changed

advection/advection.tex

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -837,6 +837,21 @@ \section{Errors and convergence rate}
837837
\hydroexdoit{\href{https://github.com/zingale/hydro_examples/blob/master/advection/advection.py}{advection.py}}}
838838
\end{figure}
839839

840+
\begin{figure}[ht]
841+
\centering
842+
\includegraphics[width=0.8\linewidth]{fv-gaussian-limiters} \\[1em]
843+
\includegraphics[width=0.8\linewidth]{fv-tophat-limiters}
844+
\caption[Effect of different limiters on evolution]
845+
{\label{fig:limiter_panel} The effect of different limiters on the
846+
evolution of a Gaussian initial profile (top) and a tophat initial
847+
profile (bottom), using $C = 0.8$ and 5 periods. \\
848+
\hydroexdoit{\href{https://github.com/zingale/hydro_examples/blob/master/advection/advection.py}{advection.py}}}
849+
\end{figure}
850+
851+
As seen in figure~\ref{fig:advnorm}, the choice of limiters can have a great
852+
effect on the accuracy. Figure~\ref{fig:limiter_panel} shows the Gaussian and
853+
tophat profiles with several different limiters.
854+
840855
\section{Multi-dimensional advection}
841856

842857
The two-dimensional linear advection equation is:

advection/fv-gaussian-limiters.pdf

18.3 KB
Binary file not shown.

advection/fv-tophat-limiters.pdf

16.3 KB
Binary file not shown.

advection/plm-converge.pdf

-742 Bytes
Binary file not shown.

burgers/burgers.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ \section{Burgers' equation}
202202

203203
\begin{exercise}[Simple Burgers' solver]
204204
{Extend your 1-d finite-volume solver for advection (from
205-
Exercise~\ref{adv:ex:fv}) to solver Burgers' equation. You will
205+
Exercise~\ref{adv:ex:fv}) to solve Burgers' equation. You will
206206
need to change the Riemann solver and use the local velocity in the
207207
construction of the interface states. Run the examples shown in
208208
Figures~\ref{fig:burgers-rarefaction} and \ref{fig:burgers-shock}}.

0 commit comments

Comments
 (0)