Model.createmultiplespotwelds#
- Model.createmultiplespotwelds(nodecol1_collection, nodecol2_collection, tolerance, length_given, length, systems, movenode, remesh, configval, property)#
Creates multiple spotwelds between a set of nodes on the finite element mesh for a given type of element, coordinate system, and property ID.
- Parameters:
nodecol1_collection (Collection) – The collection containing the indepedent node entities.
nodecol2_collection (Collection) – The collection containing the dependent node entities.
tolerance (double) – Search tolerance to pair the nodes.
length_given (int) – Specifies if a length has been given.
length (double) – Length of the spotweld element.
systems (int) –
Local coordinate system switch.
0 - Without coordinate system.
1 - With coordinate system.
movenode (int) – Moves dependent node.
remesh (int) – Remeshes dependent region.
configval (int) – Element type configuration value.
property (hwString) – Name of property collector. Retrieves property ID.
Example#
Create spotwelds (rod elements) between nodes with IDs 1 and 2 with the coordinate system, property collector named “name_prop” and the options movenode and remesh selected#import hm import hm.entities as ent model = hm.Model() model.createmultiplespotwelds( nodecol1_collection=hm.Collection(model,ent.Node,1), nodecol2_collection=hm.Collection(model,ent.Node,2), tolerance=0.05, length_given=0, length=0.0, systems=1, movenode=1, remesh=1, configval=61, property="name-prop", )