Point interpolation of shape function derivatives #3889
-
Is it possible to calculate the values of the shape function derivatives using vertex meshes? As suggested in #3782 and from the FWI example (https://www.firedrakeproject.org/demos/full_waveform_inversion.py.html), it is possible to obtain the shape function values as follows:
However, as the function spaces defined on vertex meshes may only be DG0, I was not able to assemble the gradient of the test functions. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 9 replies
-
Do you want a |
Beta Was this translation helpful? Give feedback.
-
I will try to be more specific in what I'm trying to achieve with the point interpolation feature. I'm trying to obtain the following functionality in the global mesh:
which gives the following for the reference triangle:
The motivation for this is to implement moment tensor sources in elastic wave propagation with a displacement formulation. This requires the values of |
Beta Was this translation helpful? Give feedback.
Yes. See the following code: