Element/ node interaction
Once you structures will get more and more complex, it will become harder to keep count of element id and node ids. The SystemElements class therefore has several methods that help you:
Find a node id based on a x- and y-coordinate
Find the nearest node id based on a x- and y-coordinate
Get all the coordinates of all nodes.
Find node id based on coordinates
- SystemElements.find_node_id(vertex, tolerance=1e-09)[source]
Find the ID of a certain location.
- Args:
vertex (Union[Vertex, Sequence[float]]): Vertex_xz, [x, y], (x, y) tolerance (float): Tolerance for matching existing node locations (length units). Defaults to 1e-9.
- Raises:
TypeError: vertex must be a list, tuple or Vertex
- Returns:
Optional[int]: id of the node at the location of the vertex