I was wondering if anyone had some thoughts on if it is possible to project a DG1 function into a Lagrange-2 function space but without having to solve a projection problem.
to obtain the gradient of a Lagrange-1 space function from a DG0 space based gradient interpolation evaluation.
As suggested by @dokken, the approach based on neighbor cell averaging avoids the introduction of Gibbs phenomena and works fine for the DG0 to L1 “projection” case.
However, once I want to apply this to the higher continuity Lagrange-2 element case, then I am not sure on how to apply this approach.
In this case, I guess I should take a DG1 space for interpolating the gradient of my Lagrange-2 functions right? How could I then map back the obtained gradient values into the degrees of freedom of a Lagrange-2 function?
Thanks a lot for the feedback. I took a look to the papers and I was able to use these. Thanks a lot!
Just as a side note, in the past I was using a radial basis function finite difference implementation to obtian these gradients but I always needed way much more neighbor points to obtain descent gradient results.