sajou.elements.spring2d module¶
Defines a 2-dimensional spring element
-
class
sajou.elements.spring2d.
Spring2D
(node1, node2, number)¶ Bases:
sajou.elements.element.Element
Defines a 2D spring element and all its methods
Parameters: - node1 (Node instance) – first node
- node2 (Node instance) – second node
- number (int) – number of the element
-
node1
¶ Node instance – first node
-
node2
¶ Node instance – second node
-
efs
¶ dict – Element freedom signature. Defines the degree of freedom active (dof) in each node.
-
nefmt
¶ dict – Node freedom map table of the element.
-
n_active_dof
¶ int – number of active dof
-
transformation_matrix
¶ ndarray – transformation matrix for the element, from local to global
-
assemble_Ke
()¶ Assemble the element stiffness matrix ‘Ke’ in local and global coordinates.
Returns: local stiffness matrix
-
assign_elastic_constant
(elastic_K)¶ Assigns the elastic constant to the spring element.
Parameters: elastic_K (float) – The elastic constant of the spring