Model.addicconnectivity#
- Model.addicconnectivity(entity, inode_entity, dependency_array)#
Updates the connectivity of an IC element.
- Parameters:
entity (Entity) – The object describing the IC element entity to update.
inode_entity (Entity) – The object describing the independent node entity.
dependency_array (hwIntList2) – The 2D integer list. The first list contains the IDs of the dependent nodes and the second list contains the associated DOF’s for each node. User can directly supply a 2D Python list (see example below).
Example#
Create an IC element and update the independent node to ID 15, and dependent nodes to ID [16,17,18,19] with DOF’s [123, 345, 1234, 123456]#import hm import hm.entities as ent model = hm.Model() # Create an IC element model.icelementcreate() model.addicconnectivity( entity=ent.Element(model, 1), inode_entity=ent.Node(model, 15), dependency_array=[[16, 17, 18, 19], [123, 345, 1234, 123456]], )