diff --git a/nummeth-ws22/fig_chapter3/multigrid.jpg b/nummeth-ws22/fig_chapter3/multigrid.jpg new file mode 100644 index 0000000..b52dedf Binary files /dev/null and b/nummeth-ws22/fig_chapter3/multigrid.jpg differ diff --git a/nummeth-ws22/skript.tex b/nummeth-ws22/skript.tex index 8ab2fd4..b15a07d 100644 --- a/nummeth-ws22/skript.tex +++ b/nummeth-ws22/skript.tex @@ -3122,15 +3122,15 @@ they require special start up procedures, since initially only one level of data We will study explicit 2-level methods almost exclusively, and introduce some special notation for such methods, writing \begin{align} - U^{n+1} = \mathscript{H}_k(U^n) + U^{n+1} = \mathcal{H}_k(U^n) \end{align} Here $U^{n+1}$ represents the vector of approximations $U_j^{n+1}$ at time $t^{n+1}$. The value $U_j^{n+1}$ at a particular point $j$ typically depends on several values from the vector $U^n$ (depending on how large the stencil is), and so we write \begin{align} - U_j^{n+1} =\mathscript{H}_k(U^n; j) + U_j^{n+1} =\mathcal{H}_k(U^n; j) \end{align} -to signify that $U^{n+1}_j$ depends on the full vector $U^n$. For example, the $\mathscript{H}_k$ operator for method \eqref{eq:leveqie10.7} takes the form +to signify that $U^{n+1}_j$ depends on the full vector $U^n$. For example, the $\mathcal{H}_k$ operator for method \eqref{eq:leveqie10.7} takes the form \begin{align} -\mathscript{H}_k(U^n;k) = U_j^n - \frac{k}{2 h}(U_{j+1}^n - U_{j-1}^n) +\mathcal{H}_k(U^n;k) = U_j^n - \frac{k}{2 h}(U_{j+1}^n - U_{j-1}^n) \end{align} A list of often used discretizations is given here. This list is not exhaustive, but gives a rough idea of what is used in the wild. The graphics provide an idea of the stencil in space and time. @@ -3237,24 +3237,24 @@ PDE is only an approximate solution of the difference equations, and how well it the difference equations gives an indication of how well the exact solution of the difference equations satisfies the differential equation. -As anexample, consider the Lax-Priedrichs method. This method is similar to the unstable method \eqrefd{eq:leveque10.7} but replaces $U_j^n$ by $1/2(U_{j-1}^n+U_{j+1}^n)$ and is stable +As an example, consider the Lax-Priedrichs method. This method is similar to the unstable method \eqref{eq:leveque10.7} but replaces $U_j^n$ by $1/2(U_{j-1}^n+U_{j+1}^n)$ and is stable provided $k/h$ is sufficiently small, as we will see later. We first write this method in the form \begin{align} - \frac{1}{k}\left( U_j^{n+1} - \frac{1}{2}(U_{j-1}^n + U_{j+1}^n)\right +\frac{1}{2h} A (U_{j+1}^n - U_{j-1}^n) = 0 + \frac{1}{k}\left( U_j^{n+1} - \frac{1}{2}(U_{j-1}^n + U_{j+1}^n\right) +\frac{1}{2h} A (U_{j+1}^n - U_{j-1}^n) = 0 \end{align} so that it appears to be a direct discretization of the PDE. If we now replace each $U_j^n$ by the exact solution at the corresponding point, we will notget zero exactly. What we get instead is defined to be thelocal truncation error \begin{align} - L_k(x,t) = \frac{1}{k}\left( u(x,t+k) - \frac{1}{2}(u(x-h,t)+u(x+h,t))\right +\frac{1}{2h} A (u(x+h,t) - u(x-h,t)) + L_k(x,t) = \frac{1}{k}\left( u(x,t+k) - \frac{1}{2}(u(x-h,t)+u(x+h,t)\right) +\frac{1}{2h} A (u(x+h,t) - u(x-h,t)) \end{align} In computing the local truncation error we always assume smooth solutions, and so we can expand each term on the right hand side in a Taylor series about $u(x,t)$. Doing this and collecting terms gives (with $u=u(x,t)$): \begin{align} - L_k(x,t) &= \frac{1}{k}\left( (u+k\partial_t u +\frac{1}{2} k^2 \partial_t^2 u+\dots) - (u +\frac{1}{2}h^2 \partial_x^2 u+\dots)\right +\frac{1}{2h} A (2 h \partial_x u +\frac{1}{3}\partial_x^3 u+\dots)\\ + L_k(x,t) &= \frac{1}{k}\left( (u+k\partial_t u +\frac{1}{2} k^2 \partial_t^2 u+\dots) - (u +\frac{1}{2}h^2 \partial_x^2 u+\dots)\right) +\frac{1}{2h} A (2 h \partial_x u +\frac{1}{3}\partial_x^3 u+\dots)\\ &= \partial_t u + A\partial_x u +\frac{1}{2}\left(k\partial_t^2 u -\frac{h^2}{k} \partial_x^2 u \right) + \mathcal{O}(h^2) \end{align} Since we assume that $u(x,t)$ is the exact solution $\partial_t u +A\partial_x u =0i$ we find that