Helpers#
- xara.helpers.find_node(model, x=None, y=None, z=None, tol=1e-08)#
Return the tag of the first node that matches the specified coordinates within a given tolerance. If no match is found, returns None.
- Parameters:
- model: opensees.openseespy.Model
The model object containing nodes.
- x: float, optional
X-coordinate to match (if None, no X match is required).
- y: float, optional
Y-coordinate to match (if None, no Y match is required).
- tol: float
Matching tolerance for coordinates.
- Returns:
The tag of the first matching node, or None if not found.
- Return type:
int or None
- xara.helpers.find_nodes(model, x=None, y=None, z=None, tol=1e-08)#
Return an iterator of node tags that match the specified coordinates within a given tolerance.
- Parameters:
- model: opensees.openseespy.Model
The model object containing nodes.
- x: float, optional
X-coordinate to match (if None, no X match is required).
- y: float, optional
Y-coordinate to match (if None, no Y match is required).
- tol: float
Matching tolerance for coordinates.
- Yields:
int – The tag of each matching node.