NumMeth-22: Korrektur Übung 7 + Ralph-CWENO
This commit is contained in:
@@ -56,7 +56,7 @@ Following the Helmholtz theorem $\vec u$ can be decomposed into a curl-free and
|
||||
\begin{align}
|
||||
\vec \omega &= \nabla\times\vec u\\
|
||||
\vec u &= \nabla \times \Psi\\
|
||||
\Rightarrow \Delta \vec \Psi &= - \vec \mega
|
||||
\Rightarrow \Delta \vec \Psi &= - \vec \omega
|
||||
\end{align}
|
||||
The advantage of this formulation is that $\vec u$ is automatically divergence-free. Additionally $\vec \Psi$ and $\vec \omega$ become pseudo-scalars for the 2D case.
|
||||
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 53 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 9.7 KiB |
@@ -4077,6 +4077,109 @@ the Jacobi determinant for each point and determines the eigenvectors.
|
||||
eigenvectors. This makes the method considerably less
|
||||
more time-consuming than other approaches.
|
||||
|
||||
\subsection{The Two-Dimensional CWENO Scheme}
|
||||
|
||||
The multi-dimensional CWENO scheme is best illustrated via the example of the two-dimensional scheme. The only step in the scheme sometimes not easily extended to higher dimensions is the reconstruction of point values from the cell averages. This, however, will be the issue of the next section. The two-dimensional scheme will be applied to hyperbolic differential equations of the form:
|
||||
\begin{align}
|
||||
\partial_t \vec u + \partial_x f(\vec{u}) + \partial_y g(\vec u) = 0\label{eq:ralph3.2}
|
||||
\end{align}
|
||||
This equation is examined on a discrete spatial grid with cells given by:
|
||||
\begin{align}
|
||||
\left(x_i -\frac{\Delta x}{2}\dots x_i +\frac{\Delta x}{2} \right) \times \left( y_j -\frac{\Delta y}{2}\dots y_j +\frac{\Delta y}{2} \right)
|
||||
\end{align}
|
||||
For these individual cell the scheme will compute the average values of $\vec u$, which will from now on be termed as cell-averages of $\vec u$. Since the scheme has to deal with point values on the cell boundaries, too, these point values are evaluated from the cell averages by the application of a piecewise polynomial reconstruction – that is the spatial variation of $\vec u$ is approximated by a polynomial of the desired order. For the second-order version of the scheme one can, e.g., assume this reconstruction in the cell $C_{i, j}$ at time $t^n$ to be of the form:
|
||||
\begin{align}
|
||||
\vec{p}_{i,j}(\vec x, t^n) = \vec{p}_{i,j}^n(x,y) = \vec{u}_{0i,j} + \vec{u}_{xi,j}(x-x_i) + \vec{u}_{yi,j}(y-y_j)
|
||||
\end{align}
|
||||
While a cross-term containing both linear parts may also be added, it is not of any importance, because it cancels out due to the evaluation of these polynomials on the middle of the cell faces in the final form of the second order scheme (see below). One has to bear in mind that these polynomials are given for just one cell. Thus, there is an ambiguity at the cell boundaries as to which of these reconstructions is to be used. For this we introduce the notation $p^\pm$, where, e.g., $p^+_{i+1/2,j}$ is the point value at the upper x-boundary
|
||||
of cell $C_{i, j}$ with the reconstruction stemming from the next cell $C_{i+1, j}$.
|
||||
|
||||
From this one obtains the cell-averages via integration as:
|
||||
\begin{align}
|
||||
\bar{\vec u}_{i,j} = \frac{1}{\Delta x \Delta y} \int_{y_{j-1/2}}^{y_{j+1/2}}\dd y \int_{x_{i-1/2}}^{x_{i+1/2}}\dd x \vec{p}_{i,j}^n (x,y)
|
||||
\end{align}
|
||||
where $x_{i\pm 1/2}$ and $y_{j\pm 1/2}$ signify the cell boundaries in the corresponding directions. For further reference the point values evaluated using such a reconstruction at some specific points are getting labelled:
|
||||
\begin{align}
|
||||
\vec{u}_{i,j}:= \vec{p}_{i,j}^n(x_i,y_j), \quad \vec{u}^N_{i,j}:= \vec{p}_{i,j}^n(x_i,y_{j+1/2}), \quad \vec{u}^{NE}_{i,j}:= \vec{p}_{i,j}^n(x_{i+1/2},y_{j+1/2}),\\
|
||||
\vec{u}^{E}_{i,j}:= \vec{p}_{i,j}^n(x_{i+1/2},y_{j}),\quad \vec{u}^{SE}_{i,j}:= \vec{p}_{i,j}^n(x_{i+1/2},y_{j-1/2}),\quad \vec{u}^{S}_{i,j}:= \vec{p}_{i,j}^n(x_{i},y_{j-1/2}),\\
|
||||
\vec{u}^{SW}_{i,j}:= \vec{p}_{i,j}^n(x_{i-1/2},y_{j-1/2}),\quad \vec{u}^{W}_{i,j}:= \vec{p}_{i,j}^n(x_{i-1/2},y_{j}),\quad \vec{u}^{NW}_{i,j}:= \vec{p}_{i,j}^n(x_{i-1/2},y_{j+1/2}),
|
||||
\end{align}
|
||||
|
||||
With all this in mind the equations are basically solved by a spatial integration of the system in Eq.\eqref{eq:ralph3.2} over each cell and an integration in time from the actual to the next time step. There is, however, a problem inherent in this integration directly connected to the reconstruction. With every cell having in general an individual reconstruction polynomial there may occur a jump in the different polynomial reconstructions from one cell to another. The integration of Eq. \eqref{eq:ralph3.2} over each cell and over one time
|
||||
step results in:
|
||||
\begin{align}
|
||||
\bar{\vec u}_{i,j}^{n+1} = \bar{\vec u}_{i,j}^{n} -\dd x \int_{t^n}^{t^{n+1}} \dd \tau
|
||||
\left( f(\vec{u}(x_{i+1/2},y_j,\tau) - f(\vec{u}(x_{i-1/2},y_j,\tau) + g(\vec{u}(x_{i},y_{j+1/2},\tau) - g(\vec{u}(x_{i},y_{j-1/2},\tau) \right)
|
||||
\end{align}
|
||||
This equation does not look too bad but due to the discontinuities where the fluxes are to be evaluated, one would have to solve a generalised Riemann problem at these positions to obtain the temporal evolutions of the fluxes, which is a numerically very expensive task.
|
||||
|
||||
We can, however, make use of the fact that such a jump can only propagate with a finite velocity
|
||||
depending on the system of equations to be solved with the scheme. In general this maximum propagation velocity will change with space and time. Therefore, when we would like to integrate the system in Eq. \eqref{eq:ralph3.2}) over one cell and over the time-interval $[t^n, t^{n+1}]$ only the data near the cell boundaries as, e.g., illustrated in Fig. \ref{fig:ralph3.1} might be non-smooth at any time between $t^n$ and $t^{n+1}$. Thus, instead of integrating each entire cell we treat the smooth and non-smooth domains individually. This leads to a scheme, which
|
||||
does not have to utilise Riemann solvers, while still producing high-order results, since we average the non-smooth parts of the solutions over a domain as small as possible. This has to be seen in contrast to the Nessyahu-Tadmor scheme (Nessyahu and Tadmor 1990) where an integration is performed over a complete staggered cell.
|
||||
|
||||
\begin{figure}
|
||||
\begin{center}
|
||||
\pgfimage[width=.5\textwidth]{fig_chapter5/ralph3.1}
|
||||
\end{center}
|
||||
\caption{The area around the cell $x_i, y_j$ with the non-smooth regions hatched.}
|
||||
\label{fig:ralph3.1}
|
||||
\end{figure}
|
||||
|
||||
To perform the integration over the smooth and the non-smooth regions separately one needs an
|
||||
estimate for the form of these areas which also has to be able to reflect the order of the scheme. It will, however, become evident that the transfer into the semidiscrete framework simplifies things again. A semidiscrete scheme is one, which was derived utilising the fact that the time step $\dd t$ is small as compared to any characteristic time scale of the system of hyperbolic equations with regard to a single numerical cell. The use of the semidiscrete limit is motivated by the fact that a fully discrete scheme suffers from higher numerical dissipation. This results from an accumulation of excessive dissipation due to the small time steps needed in a fully discrete scheme. The size of these time steps is mainly determined by the CFL condition first introduced in one of the first papers on finite difference methods for partial differential equations by Courant et al. (1928). This is a necessary condition for the stability of a numerical scheme. It essentially states that a numerical method can only be convergent if its numerical domain of dependence contains the true domain of dependence of the actual partial differential equation. With respect to this condition a fully discrete scheme has to fulfil the restricted condition $\Delta t \propto (\Delta x)^2$ for the time step, whereas for the semidiscrete scheme it is possible to use the convective CFL condition see also Kurganov and Levy (2000). Apart from that we enjoy the fact that a semidiscrete scheme is much
|
||||
simpler than a fully discrete one.
|
||||
|
||||
|
||||
\begin{figure}
|
||||
\begin{center}
|
||||
\pgfimage[width=.5\textwidth]{fig_chapter5/ralph3.2}
|
||||
\end{center}
|
||||
\caption{High-order approximation for the non-smooth regions in the individual cells for the CWENO scheme}
|
||||
\label{fig:ralph3.2}
|
||||
\end{figure}
|
||||
|
||||
|
||||
An example for a high order estimation for the form of those regions of non-smooth data is illustrated in Fig. \ref{fig:ralph3.2}. In this figure we distinguish three types of regions. First there is the smooth region in the inner part of each cell. Secondly the light gray and the dark grey regions indicate regions possibly holding non-smooth data. The dark grey regions can, however, safely be neglected. This is due to the fact that we are using the semidiscrete form of the scheme, which says that we are solving the system of equations in the limit $\dd t \to 0$.
|
||||
|
||||
In the semidiscrete limit the size of the dark-grey regions can be estimated to be:
|
||||
\begin{align}
|
||||
D_{i+1/2,j+1/2} = (a^+_{i+1/2,j+1/2}+a^-_{i+1/2,j+1/2}+)(b^+_{i+1/2,j+1/2}+b^-_{i+1/2,j+1/2})\dd t^2+\mathcal{O}(\dd t^3)
|
||||
\end{align}
|
||||
where $D_{i+1/2,j+1/2}$ indicates the corresponding region in Fig. \ref{fig:ralph3.2}. Additionally, a± are the right- and left-handed maximum propagation velocities for discontinuities for the upper right corner in the x-direction respectively. In the same way b± corresponds to the signal propagation velocities in the y-direction. Like the equations describing the problem under consideration these velocities have to be specified corresponding to the problem. They are obtained from the Jacobian for each direction. The size of this region is of second order in time and can, therefore, safely be neglected in the semidiscrete limit.
|
||||
|
||||
As compared to this the light-grey areas can be estimated to have the size
|
||||
\begin{align}
|
||||
D_{i+1/2,j} = (a^+_{i+1/2,j+1/2}+a^-_{i+1/2,j+1/2}+)\dd t (\Delta y -(b^+_{i+1/2,j+1/2}+b^-_{i+1/2,j+1/2})\dd t)+\mathcal{O}(\dd t^3)
|
||||
\end{align}
|
||||
which is of the order $\dd t$, thus, showing that the dark-grey areas can indeed be neglected as compared to these. So, it is clear that we only have to discuss the light-grey areas and the undisturbed area in the centre of the cell.
|
||||
|
||||
As mentioned above, we have to integrate the system over the individual areas separately in order to avoid Riemann-solvers and to obtain the highest possible order. In turn we have to use some procedure to get from this distributed framework back to the original grid. The overall method can be split in three major steps:
|
||||
\begin{enumerate}
|
||||
\item Integration of the system over the light-grey and the undisturbed domains indicated in Fig. \ref{fig:ralph3.2} utilising a local polynomial reconstructions to obtain averages for all domains for the next time step.
|
||||
\item These averages are then used to obtain a reconstruction of all necessary point values at the next time step.
|
||||
\item This is then projected to the original grid, thus, finally yielding cell averages at time tn+1.
|
||||
\end{enumerate}
|
||||
|
||||
For step 1 the cell averages over the domains indicated in Fig. \ref{fig:ralph3.2} are designated as:
|
||||
\begin{align}
|
||||
\int_{D_{i,j}} \longrightarrow \bar{\omega}_{i,j},\quad \int_{D_{i+1/2,j}} \longrightarrow \bar{\omega}_{i+1/2,j},\quad \int_{D_{i,j+1/2}} \longrightarrow \bar{\omega}_{i,j+1/2}
|
||||
\end{align}
|
||||
From these cell averages given at time $t^n$ we compute local averages at time $t^{n+1}$. From these local average $\omega^{n+1}$ we compute local piecewise polynomial reconstructions $\tilde{\omega}^{n+1}$. The global pievewise polynomial reconstruction needed for the second step of the above procedure is the written as
|
||||
\begin{align}
|
||||
\tilde{\omega}^{n+1} (x,y) = \sum_{i,j}\left(\omega_{i,j}^{n+1} \chi_{i,j} + \tilde{\omega}^{n+1}_{i+1/2,j}\chi_{i+1/2,j} + \tilde{\omega}_{i,j+1/2}\chi_{i,j+1/2} \right)
|
||||
\end{align}
|
||||
Here the $\chi$s are the characteristic functions of the corresponding domains $D$.
|
||||
|
||||
The third step consists of the projection of this interpolant onto the original grid according to:
|
||||
\begin{align}
|
||||
\bar{\vec u}^{n+1} = \frac{1}{\Delta x \Delta y} \int_{y_{j-1/2}}^{y_{j+1/2}}\dd y \int_{x_{i-1/2}}^{x_{i+1/2}}\dd x \tilde{\omega}^{n+1}(x,y)
|
||||
\end{align}
|
||||
With these results we find when neglecting terms of order $\mathcal{O}(\dd t^2)$
|
||||
\begin{align}
|
||||
\frac{\dd}{\dd t}\bar{u}_{i,j}(t) &= \lim_{\Delta t \to 0} \frac{\bar{\vec{u}}^{n+1}_{i,j}-\bar{\vec{u}}^{n}_{i,j}}{\Delta t}\\
|
||||
&= \lim_{\Delta t \to 0} \left( \right)
|
||||
\end{align}
|
||||
|
||||
|
||||
\chapter{MHD equations}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user