sdynpy.core.sdynpy_geometry.element_array

element_array(id=1, type=None, color=1, connectivity=None, structured_array=None)[source]

Creates an array that specifies elements in the geometry

Creates an array of elements that specify connectivity of sensors in a test or analysis. Element 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)

  • type (ndarray) – Element types. See notes for type mapping

  • color (ndarray) – color of the elements as integers

  • connectivity (ndarray) – An object array of iterables defining the connectivity for each element.

  • 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

element_array

Return type

ElementArray

Notes

Here is a list of element types

11 : ‘Rod’, 21 : ‘Linear beam’, 22 : ‘Tapered beam’, 23 : ‘Curved beam’, 24 : ‘Parabolic beam’, 31 : ‘Straight pipe’, 32 : ‘Curved pipe’, 41 : ‘Plane Stress Linear Triangle’, 42 : ‘Plane Stress Parabolic Triangle’, 43 : ‘Plane Stress Cubic Triangle’, 44 : ‘Plane Stress Linear Quadrilateral’, 45 : ‘Plane Stress Parabolic Quadrilateral’, 46 : ‘Plane Strain Cubic Quadrilateral’, 51 : ‘Plane Strain Linear Triangle’, 52 : ‘Plane Strain Parabolic Triangle’, 53 : ‘Plane Strain Cubic Triangle’, 54 : ‘Plane Strain Linear Quadrilateral’, 55 : ‘Plane Strain Parabolic Quadrilateral’, 56 : ‘Plane Strain Cubic Quadrilateral’, 61 : ‘Plate Linear Triangle’, 62 : ‘Plate Parabolic Triangle’, 63 : ‘Plate Cubic Triangle’, 64 : ‘Plate Linear Quadrilateral’, 65 : ‘Plate Parabolic Quadrilateral’, 66 : ‘Plate Cubic Quadrilateral’, 71 : ‘Membrane Linear Quadrilateral’, 72 : ‘Membrane Parabolic Triangle’, 73 : ‘Membrane Cubic Triangle’, 74 : ‘Membrane Linear Triangle’, 75 : ‘Membrane Parabolic Quadrilateral’, 76 : ‘Membrane Cubic Quadrilateral’, 81 : ‘Axisymetric Solid Linear Triangle’, 82 : ‘Axisymetric Solid Parabolic Triangle’, 84 : ‘Axisymetric Solid Linear Quadrilateral’, 85 : ‘Axisymetric Solid Parabolic Quadrilateral’, 91 : ‘Thin Shell Linear Triangle’, 92 : ‘Thin Shell Parabolic Triangle’, 93 : ‘Thin Shell Cubic Triangle’, 94 : ‘Thin Shell Linear Quadrilateral’, 95 : ‘Thin Shell Parabolic Quadrilateral’, 96 : ‘Thin Shell Cubic Quadrilateral’, 101: ‘Thick Shell Linear Wedge’, 102: ‘Thick Shell Parabolic Wedge’, 103: ‘Thick Shell Cubic Wedge’, 104: ‘Thick Shell Linear Brick’, 105: ‘Thick Shell Parabolic Brick’, 106: ‘Thick Shell Cubic Brick’, 111: ‘Solid Linear Tetrahedron’, 112: ‘Solid Linear Wedge’, 113: ‘Solid Parabolic Wedge’, 114: ‘Solid Cubic Wedge’, 115: ‘Solid Linear Brick’, 116: ‘Solid Parabolic Brick’, 117: ‘Solid Cubic Brick’, 118: ‘Solid Parabolic Tetrahedron’, 121: ‘Rigid Bar’, 122: ‘Rigid Element’, 136: ‘Node To Node Translational Spring’, 137: ‘Node To Node Rotational Spring’, 138: ‘Node To Ground Translational Spring’, 139: ‘Node To Ground Rotational Spring’, 141: ‘Node To Node Damper’, 142: ‘Node To Gound Damper’, 151: ‘Node To Node Gap’, 152: ‘Node To Ground Gap’, 161: ‘Lumped Mass’, 171: ‘Axisymetric Linear Shell’, 172: ‘Axisymetric Parabolic Shell’, 181: ‘Constraint’, 191: ‘Plastic Cold Runner’, 192: ‘Plastic Hot Runner’, 193: ‘Plastic Water Line’, 194: ‘Plastic Fountain’, 195: ‘Plastic Baffle’, 196: ‘Plastic Rod Heater’, 201: ‘Linear node-to-node interface’, 202: ‘Linear edge-to-edge interface’, 203: ‘Parabolic edge-to-edge interface’, 204: ‘Linear face-to-face interface’, 208: ‘Parabolic face-to-face interface’, 212: ‘Linear axisymmetric interface’, 213: ‘Parabolic axisymmetric interface’, 221: ‘Linear rigid surface’, 222: ‘Parabolic rigid surface’, 231: ‘Axisymetric linear rigid surface’, 232: ‘Axisymentric parabolic rigid surface’