autopdex.geometry.select_elements_on_line

autopdex.geometry.select_elements_on_line(x_nodes, surface_elements, x_p1, x_p2)[source]

Select the indices of elements that lie on a line segment defined by two points.

Parameters:
  • x_nodes (jnp.ndarray) – Array of nodes of the elements.

  • surface_elements (jnp.ndarray) – Array of surface elements.

  • x_p1 (jnp.ndarray) – The starting point of the line segment.

  • x_p2 (jnp.ndarray) – The ending point of the line segment.

Returns:

Array of indices of elements that lie on the line segment.

Return type:

jnp.ndarray