Compute error between functions from different meshes? #916
Unanswered
gatling-nrl
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Unfortunately there is no way currently implemented. Technically one would need a subroutine which combines two meshes by creating a new "supermesh". Each triangle in the "supermesh" has its edges so that they do not cross any of the edges in the original meshes. Each triangle also needs to store which two original triangles it is part of. There is a Forran library (libsupermesh) for creating such combined meshes. Firedrake implements bindings to this library using Cython. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to compute the integral of the squared difference between one P0 function on a fine mesh and another P0 function on a different (usually coarser) mesh over the same region of space. The meshes are independent of each other (i.e., they don't share some subset of vertices).
I could brute force what I want to do using
.probes
to query the functions at a common set of coordinates (i.e. the quadrature points from the fine mesh). But is there a better way?Beta Was this translation helpful? Give feedback.
All reactions