NumMeth 22: Jetzt mit weniger Fehlern
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 57 KiB |
@@ -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
|
We will study explicit 2-level methods almost exclusively, and introduce some special
|
||||||
notation for such methods, writing
|
notation for such methods, writing
|
||||||
\begin{align}
|
\begin{align}
|
||||||
U^{n+1} = \mathscript{H}_k(U^n)
|
U^{n+1} = \mathcal{H}_k(U^n)
|
||||||
\end{align}
|
\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
|
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}
|
\begin{align}
|
||||||
U_j^{n+1} =\mathscript{H}_k(U^n; j)
|
U_j^{n+1} =\mathcal{H}_k(U^n; j)
|
||||||
\end{align}
|
\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}
|
\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}
|
\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.
|
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
|
the difference equations gives an indication of how well the exact solution of the difference
|
||||||
equations satisfies the differential equation.
|
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.
|
provided $k/h$ is sufficiently small, as we will see later.
|
||||||
|
|
||||||
We first write this method in the form
|
We first write this method in the form
|
||||||
\begin{align}
|
\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}
|
\end{align}
|
||||||
so that it appears to be a direct discretization of the PDE. If we now replace each $U_j^n$ by
|
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
|
the exact solution at the corresponding point, we will notget zero exactly. What we get
|
||||||
instead is defined to be thelocal truncation error
|
instead is defined to be thelocal truncation error
|
||||||
\begin{align}
|
\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}
|
\end{align}
|
||||||
In computing the local truncation error we always assume smooth solutions, and so we
|
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)$.
|
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)$):
|
Doing this and collecting terms gives (with $u=u(x,t)$):
|
||||||
\begin{align}
|
\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)
|
&= \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}
|
\end{align}
|
||||||
Since we assume that $u(x,t)$ is the exact solution $\partial_t u +A\partial_x u =0i$ we find that
|
Since we assume that $u(x,t)$ is the exact solution $\partial_t u +A\partial_x u =0i$ we find that
|
||||||
|
|||||||
Reference in New Issue
Block a user