Structure.check_element_exists

Structure.check_element_exists(nodes=None, xyz=None, virtual=False)[source]

Check if an element already exists based on nodes or centroid.

Parameters
  • nodes (list) – Node numbers the element is connected to.

  • xyz (list) – Direct co-ordinates of the element centroid to check.

  • virtual (bool) – Is the element to be checked a virtual element.

Returns

int – The element index if the element already exists, None if not.

Notes

  • Geometric key check is made according to self.tol [m] tolerance.