sdynpy.core.sdynpy_shape.shape_array

shape_array(coordinate=None, shape_matrix=None, frequency=1.0, damping=0.0, modal_mass=1.0, comment1='', comment2='', comment3='', comment4='', comment5='', structured_array=None)[source]

Creates a coordinate array that specify degrees of freedom.

Creates an array of coordinates that specify degrees of freedom in a test or analysis. Coordinate arrays can be created using a numpy structured array or two arrays for node and direction. Multidimensional arrays can be used.

Parameters
  • coordinate (CoordinateArray) – Array of coordinates corresponding to the last dimension of the shape_matrix

  • shape_matrix (ndarray) – Matrix of shape coefficients. If complex, then the shape will be made into a complex shape. Otherwise it will be real. The last dimension should be the “coordinate” dimension, and the first dimension(s) should be the shape dimension(s). Note that this is transposed from the typical modal approach, but it makes for better itegration with numpy.

  • frequency (ndarray) – Natural Frequencies for each shape of the array

  • damping (ndarray) – Fraction of Critical Damping (as proportion not percentage) for each shape of the array

  • modal_mass (ndarray) – Modal mass for each shape of the array

  • comment5 (comment1 -) – Comments for the universal file for each shape. Note that comment5 will not be stored to the universal file format.

  • structured_array (ndarray (structured)) – Alternatively to the above, a structured array can be passed with identical parameters to the above.

Returns

shape_array

Return type

ShapeArray