pyCATHY.meshtools.find_nearest_node

pyCATHY.meshtools.find_nearest_node#

pyCATHY.meshtools.find_nearest_node(node_coord, meshIN_nodes_coords, threshold=0.1, **kwargs)[source]#

Find nearest mesh node between two meshes

Parameters:
  • node_coord (np.array)

  • meshIN_nodes_coords (np.array)

  • threshold (float) – if distance > threshold –> closest = nan

Returns:

  • closest_idx (list) – Node indice in the mesh_node.

  • closest (list) – Node coordinate in the mesh_node.