Model.weld#
- Model.weld(independent, dependent, length, systems, movenode)#
Creates a weld element between two nodes.
- Parameters:
independent (Entity) – The independent node.
dependent (Entity) – The dependent node.
length (double) – The length of the weld.
systems (int) –
Determines if systems should be built at the end of the node:
0 - No
1 - Yes
movenode (int) – Set to 1 to move the node perpendicular to the surface of the elements, otherwise set to 0.
Example#
Create a weld element between nodes with IDs 100 and 101 with length 1.0 and without systems be built at the ends of the weld element#import hm import hm.entities as ent model = hm.Model() model.weld( independent=ent.Node(model, 100), dependent=ent.Node(model, 101), length=1.0, systems=0, movenode=0, )