autopdex.geometry.subelems_in_elems

autopdex.geometry.subelems_in_elems(subelems_to_find, in_elems)[source]

Find the elements that contain given sub-elements (one elem per sub_elem).

Can be used for detecting the domain elements that belong the given surface elements.

Parameters:
  • subelems_to_find (jnp.ndarray) – Array of sub-elements to be found.

  • in_elems (jnp.ndarray) – Array of elements to be checked.

Returns:

Array of elements that contain the sub-elements.

Return type:

jnp.ndarray