sdynpy.core.sdynpy_geometry.node_array
- node_array(id=1, coordinate=array([0, 0, 0]), color=1, def_cs=1, disp_cs=1, structured_array=None)[source]
Creates an array that specifies nodes in the geometry
Creates an array of nodes that specify positions of sensors in a test or analysis. Node arrays can be created using a numpy structured array or individual arrays for each attribute. Multidimensional arrays can be used.
- Parameters
id (ndarray) – Integer array corresponding to the id of the node. Input will be cast to an integer (i.e. 2.0 -> 2, 1.9 -> 1)
coordinate (ndarray) – Positions of the nodes in space
color (ndarray) – color of the nodes as integers
def_cs (ndarray) – Coordinate system where the node’s position is defined
disp_cs (ndarray) – Coordinate system where the node’s displacements are defined
structured_array (ndarray (structured)) – Alternatively to the individual attributes, a single numpy structured array can be passed, which should have the same name as the inputs to the function listed above.
- Returns
node_array
- Return type