H1 and L2 norms on Hermite space #3747
Unanswered
nadav7679
asked this question in
Firedrake support
Replies: 1 comment 1 reply
-
The derivative point evaluations are expressed in reference coordinates and need to be pulled back to physical space before you can use them in the way you are suggesting. They will be about 200 (L/N) times too small in the calculation. Notice that the L2 norm and your sum differ in the 6th significant figure. This is too large to be roundoff but is about consistent with adding the reference gradient. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm trying to calculate the H1 norm of functions on Hermite spaces (1D intervals) using the coefficients of the functions, i.e. using
dat.data
. The way I understand it, the coefficients indat.data
of a function in Hermite space consist of point-evaluations and derivative point-evaluations at edges of equidistant cells. Therefore, they can be used in Riemann sums to approximate both the L2 norm and the L2 norm of the derivative, so that we'd get the H1 norm.However, this does not seem to be the case when implementing:
Output:
Both the Riemann sum and the Firedrake L2 give a correct result for the L2 norm, i.e.$\sqrt{5}$ , and the H1 norm is correct as well (according to Wolfram).
I would have expected the Riemann sum to agree with the H1 norm, not the L2 one. I'm obviously missing something, so I'd be grateful if anyone can offer an explanation.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions