Skip to content

ResampleWithDataset is unreliable with quadratic elements

I tried to interpolate fields from an UnstructuredGrid model to a node set with the ResampleWithDataset filter:

image

Interpolation fails at certain points:

image

Increasing the tolerance or changing the cell locator mode does not improve the result.

This problem seems linked to the type of cells used in the source mesh: if we use an "Extract Surface" filter to linearize the mesh, the problem seems to disappear.

It therefore seems that there is a problem with the robustness of the "Resample With Dataset" filter in the presence of quadratic elements.

Please find below the data to reproduce this issue:

dest_mesh.vtk source_mesh.vtu

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information