sdynpy.core.sdynpy_shape.rigid_body_fix_node_orientation

rigid_body_fix_node_orientation(geometry, rigid_shapes, suspect_nodes, new_cs_ids=None, gtol=1e-08, xtol=1e-08)[source]

Solves for the best sensor orientation in the geometry to minimize the residual

This function uses a nonlinear optimizer to solve for the orientation of the specified nodes that provide the best estimate of a rigid body shape. This can be used to try to figure out the true orientation of a sensor in a test.

Parameters
  • geometry (Geometry) – Geometry from which analytic rigid body shapes will be created

  • rigid_shapes (ShapeArray) – ShapeArray consisting of nominally rigid shapes from which errors are to be corrected

  • suspect_nodes (np.ndarray) – A set of node ids to investigate. The coordinate system of each of these will be modified.

  • new_cs_ids (np.ndarray, optional) – Id numbers to give the newly added coordinate systems. The default is None, which simply increments the maximum coordinate system for each suspect node

  • gtol (float, optional) – Global tolerance for convergence for the nonlinear optimizer. The default is 1e-8.

  • xtol (TYPE, optional) – Relative tolerance for convergence for the nonlinear optimizer. The default is 1e-8.

Returns

corrected_geometry – A geometry with coordinate systems modified to be consistent with the rigid body shapes supplied.

Return type

Geometry