Interpolating a scalar field in a 3D space

假装没事ソ 提交于 2019-11-30 19:12:35

There are quite a few options here...

In order to get your energy into your mesh, you'll need to use some form of interpolation. Shepard's method is a common, and reasonably simple, method to implement, and tends to work well if your data distribution is reasonable.

Once you have that done, you'll need to do some form of isosurface generation.

There are some libraries out there to make this easy. Most notably, VTK includes python wrappers and has all of the tools required to do both of these steps.

For details on how this could be done in VTK, you can check vtkShepardMethod and vtkContourFilter.

Since you have a spatial mesh with constant spacing, you can identify all neighbors on opposite sides of the isosurface. Choose some form of interpolation (q.v. Reed Copsey's answer) and do root-finding along the line between each such neighbor.

Why not try quadlinear interpolation?

extend Trilinear interpolation by another dimension. As long as a linear interpolation model fits your data, it should work.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!