sdynpy.core.sdynpy_coordinate.parse_coordinate_string

parse_coordinate_string(coordinate: str)[source]

Parse coordinate string into node and direction integers.

Parameters

coordinate (str) – String representation of a coordinate, e.g. ‘101X+’

Returns

  • node (int) – Integer representing the node number

  • direction (int) – Integer representing the direction, ‘X+’ = 1, ‘Y+’ = 2, ‘Z+’ = 3, ‘X-’ = -1, ‘Y-’ = -2, ‘Z-’ = -3