I got stuck with Hestaven/Warburton's dG-FEM matlabMatlab code.
Starting with the file AdvecRHS1D.m
, we see in line 11
du(:) = (u(vmapM)-u(vmapP)).*(a*nx(:)-(1-alpha)*abs(a*nx(:)))/2;
which calculates the jump $[u]$ between adjacent elements and multiplies it with some factor, giving
$$du=[u]\frac{an-(1-\alpha)|an|}{2}=[u]a\frac{n-(1-\alpha)}{2}, n\in \{-1,1\},\\ a>,\ 1\geq\alpha\geq 0$$
which looks very similar to the numerical flux described as
$$(au)^*=\{\{u\}\} + a\frac{1-\alpha}{2}[u]$$ if
if we leave out the average $\{\{u\}\}$. Yet these terms are obviously not the same. Then
Then, for the computation of the right hand side of the PDE, this happens:
rhsu = -a*rx.*(Dr*u) + LIFT*(Fscale.*(du));
rhsu = -a*rx.*(Dr*u) + LIFT*(Fscale.*(du));
which is supposed to calculate the integral
$$\left[l^k(x)(au^k_h) - (au)^* \right]_{x_l^k}^{x_r^k} = \oint_{\delta D^k}\hat{n}(au_h - (au)^*)l_i(r)$$
But i dontI don't understand how this line of code is expressing this.
EDIT:
I found a paper, see p.5, that gives some explanation on the calculation of rhsu
. But still, it remains pretty unclear to me.