I am trying to implementing a nodal discontinuous Galerkin spectral element method for linear and non-linear systems of equations. The solution at each time step is given at N
nodes, which are located at the integration points for Legendre-Gauss/Legendre-Gauss-Lobatto quadrature.
For visualization purposes I would like to get the solution at M
equidistant visualization nodes, where typically M > N
. As far as I know, generally L2 projection is preferred to polynomial interpolation (albeit being more expensive), especially when going to higher degrees of freedom, since the projection gives the best approximation w.r.t. the L2 norm.
As far as I understand it, this is a rough outline of the steps I have to take:
- Assemble the Vandermonde matrix
V
for the old nodes. - Invert
V
. - Use
V
and the nodal values to get modal coefficients. - Project to new nodes.
- Assemble Vandermonde matrix
V'
for the new nodes. - Use
V'
and the modal coefficients to get the nodal values.
Finally, my question(s):
- a) Is this approach generally correct?
- b) Are there algorithmic simplifications for my specific problem, e.g.
- the inversion of
V
is trivial because I can use some properties of the used polynomials (Legendre) or nodes (L-Gauss/L-Gauss-Lobatto)? - the whole algorithm can be simplified because I already start out with a polynomial approximation and not an arbitrary exact function?
- the inversion of
Any suggestions or pointers to further reading material are highly appreciated.
Edit:
I am using Lagrangian basis functions for my computations, the GL/LGL nodes only come in for the purpose of numerical integration. So at the point where I want to get the solution at the new nodes, I do not have any information on the solution but the values at the old nodes.