2
$\begingroup$

I'm implementing a finite-difference WENO scheme for a simple advection equation $$ \frac{\partial u}{\partial t} + \frac{\partial u}{\partial x} = 0 $$ with periodic boundary conditions.

I'm not quite sure my scheme is conventional since it is mixing ideas from finite-difference and finite-volume methods in the following way: a time step consists of the reconstruction step and the evolution step.

  • During the reconstruction step on the $i$-th interval the solution is approximated with $$ U_i(x) = \frac{\sum_{k=1}^3 \alpha_k \gamma_k(x) P_i^{(k)}(x)}{\sum_{k=1}^3 \alpha_k \gamma_k(x)} $$ where $P_i^{(k)}(x)$ are the quadratic interpolants for the $k$-th small stencil, $\gamma_k(x)$ are the blending functions, so $\sum_k \gamma_k(x)P_i^{(k)}(x)$ is the (unique) fourth order intepolant passing through the points $(x_{i-2}, u_{i-2}),\dots,(x_{i+2}, u_{i+2})$. Finally, $\alpha_k$ are related to the smoothness indicators $\beta_k$ as $$ \alpha_k = \frac{1}{(\beta_k + \epsilon)^2}. $$ Actually, the conventional $u_{i+1/2}$ is simply the value of $U_i(x)$ at $x = x_{i+1/2}$.
  • The evolution step is done in upwind manner using the first order Euler method: $$ \frac{u_i^{n+1} - u_i^n}{\Delta t} + \frac{U_i(x_{i+1/2}) - U_{i-1}(x_{i-1/2})}{\Delta x} = 0. $$ The CFL number $\frac{\Delta t}{\Delta x}$ was taken to be $0.15$.

In my numerical experiments I observe instability (in the right half of the plot). It occurs after different number of timesteps, depending on the number of spatial intervals and the CFL number. The number of intervals $N$ was taken to be $N = 100$ and $20N$ time steps was done.

I have a feeling that explicit first order Euler integrator is unstable for the problem. I recall similar behavior of DG methods where the Euler time integrator is unstable if the spatial polynomial degree is greater than 1. What time integrator is suitable for the problem? Is it sufficient to use third order TVD Runge-Kutta or I need a fifth order one?

Here is the code if someone is interested.

enter image description here enter image description here

$\endgroup$

1 Answer 1

1
$\begingroup$

I've found this article Linear Instability of the Fifth-Order WENO Method by Rong Wang and Raymond J. Spiteri. It is shown that explicit RK methods are not stable unless their stability region covers a segment $[-\mu i, \mu i], \mu > 0$ on the imaginary axis. I have successfully implemented 5-stage 4-th order strong stability preserving explicit RK method by Spiteri and Ruuth and the instability went away.

Also I've fount that mixing finite-volume and finite-difference approach results in at best second-order accurate method. So I've completely rewritten the method as finite-volume one, but it seems that simple (polynomial) $\gamma(x)$ exist only for FDM and for FVM they are rational functions. Anyway, $\gamma(x)$ were used only to plot piecewise-smooth WENO approximant and for the numerical method only values at endpoints $\gamma(x_{i\pm 1/2})$ are needed.

$\endgroup$
2
  • $\begingroup$ I don't think stability would be a problem in your case. WENO methods are too diffusive (u got diffused result) and has very low modified wave number compared to other schemes . I personally feel WENO is good for interpolation but not to calculate high "stiff" gradient problems. We have to improve that scheme a lot. It works well for non-linear problem with discontinuity thats why it is surviving . This is little bit mystery, since we are not having good tool to analyse non-linear problem. $\endgroup$
    – AGN
    Commented Feb 18, 2016 at 10:37
  • $\begingroup$ So I think making one comparison with WENO with compact or some other higher order scheme using wave equation is meaningless $\endgroup$
    – AGN
    Commented Feb 18, 2016 at 10:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.