Problem
I have some simulation data (let's call it data_1
which is a scalar) over unstructured 3D coordinates mesh1
. I want to interpolate this data to a new set of unstructured coordinates mesh2
to get data_2
. I have already tried scipy.interpolate.griddata
as in
data_2 = griddata(mesh1, data_1, mesh2)
but it was painfully slow. It took about 7 minutes for a single interpolation! I should note that the length of my mesh is in the order of 100k points.
What other functions exist in python that can do this at a faster rate?
Background
I perform two thermal simulations with different mesh structures and I would like to compare the whole temperature profile at identical time frames. But since my mesh structures do not match, I need to take one of them as reference and interpolate the data of the other simulation over it. I would also be happy if there are any suggestion on how I could do this differently that would be faster.