The quantities on the new grid are the integrals of those on the old grid. #4746
Unanswered
DSTxj
asked this question in
Firedrake support
Replies: 2 comments 6 replies
-
|
This isn't going to work for the simple reason that interpolating facet quantities never works. Interpolation basically depends on the ability to evaluate the source quantity at any point in space. Facet quantities are not defined on the interior of the cells, so the point evaluation fails. If you can provide the maths of what you are ultimately attempting to compute, there may be an alternative formulation that is actually computable. We may also be able to do something in this case based on the fact that the quantities share a topology. |
Beta Was this translation helpful? Give feedback.
6 replies
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment



Uh oh!
There was an error while loading. Please reload this page.
-
"""
g = Function(U)
new_mesh = Mesh(g)
"""
Hello, I'm here again to ask a question. It's about the issue from the previous grid replication. For a two-dimensional grid, when I created a new grid in the form of grid replication and moved the coordinates of the new grid, I then calculated the unit exterior normal vector n_vec1 = FacetNormal(new_mesh) on the new grid, as well as the area area_int2 = FacetArea(mesh2) of each face. I would like to ask if I can perform the inner product of these two quantities of the new grid on the old grid? For example, inner(n_vec1 *area_int2 )*dx(old_mesh) Because I found that these two expressions cannot be interpolated onto the old grid.
Beta Was this translation helpful? Give feedback.
All reactions