iwfm.in_element

iwfm.in_element(e_nodes, e_nos, d_nodexy, x, y)[source]

Return the element containing the point (x,y), or 0 if not in any element.

Parameters:
  • e_nodes (list) – element numbers and corresponding nodes

  • e_nos (list) – element numbers

  • d_nodexy (dictionary) – key=nodes, values=coordinates

  • x (float) – X coordinate

  • y (float) – Y coordinate

Return type:

Integer element number of element containing point, or 0 if none