Comsol
Use a k-d tree to find the mesh nodes corresponding to the coordinates given in the list of potentials.
Implementation of the k-d tree copied/modified from kdtree2 by Matthew B Kennel:
Use a k-d tree to find the mesh nodes corresponding to the coordinates given in the list of potentials.
Implementation of the k-d tree copied/modified from kdtree2 by Matthew B Kennel: