Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

8
  • $\begingroup$ Should f[x, y] only be defined on the mesh vertices, and therefore return unevaluated for other values of $(x,y)$, or do you want an Interpolation? $\endgroup$ Commented Jan 3, 2023 at 19:50
  • $\begingroup$ @MarcoB I want a (piecewise linear, for example) interpolation. (I edited the post for clarification). $\endgroup$ Commented Jan 3, 2023 at 19:51
  • 2
    $\begingroup$ Then Interpolation[Transpose[{vlis, fvlis}] should work $\endgroup$ Commented Jan 3, 2023 at 19:54
  • 2
    $\begingroup$ Perhaps ElementMeshInterpolation[] is what you are looking for $\endgroup$ Commented Jan 3, 2023 at 20:14
  • $\begingroup$ @Ulrich Neumann The solution withInterpolation worked for me, but of course it is always good to have several tools at hand. What could be the advantages of ElementMeshInterpolation? Is it faster? $\endgroup$ Commented Jan 3, 2023 at 20:34