Model.alternatejointupdate#
- Model.alternatejointupdate(collection, type, n1, n2, orient1_node, orient2_node, orient1_x, orient1_y, orient1_z, orient2_x, orient2_y, orient2_z, set1, set2, typeflag, nodeflag, orient1flag, orient2flag, setflag)#
Updates elements contained in
collectionbased on the arguments specified below:- Parameters:
collection (Collection) – The collection containing the element entities to be updated.
type (unsigned int) –
Joint element type. Supported values are:
8 - Ball
9 - Fixed
10 - Revolute
11 - Translational
12 - Cylindrical
13 - Universal
14 - Constant velocity
15 - Planar
16 - Inline
17 - Perpendicular
18 - Parallel axes
19 - Inplane
20 - Orient
21 - Point to Curve
22 - Curve to Curve
23 - Point to Deformable Curve
24 - Point to Deformable Surface
n1 (Entity) – The object describing the first node entity of the joint element.
n2 (Entity) – The object describing the second node entity of the joint element.
orient1_node (Entity) – The first orientation node entity of the joint element.
orient2_node (Entity) – The second orientation node entity of the joint element.
orient1_x (double) – x-coordinate defining the first orientation vector.
orient1_y (double) – y-coordinate defining the first orientation vector.
orient1_z (double) – z-coordinate defining the first orientation vector.
orient2_x (double) – x-coordinate defining the second orientation vector.
orient2_y (double) – y-coordinate defining the second orientation vector.
orient2_z (double) – z-coordinate defining the second orientation vector.
set1 (Entity) – The object describing the first entity set used to define the MBD curve.
set2 (Entity) – The object describing the second entity set used to define the MBD curve.
typeflag (int) –
0 - Do not update this joint type.
1 - Update the joint type.
nodeflag (int) –
0 - Do not update the nodes of the joint.
1 - Update the nodes of the joint.
orient1flag (int) –
0 - Do not update.
1 - Update the first orientation of the joint.
orient2flag (int) –
0 - Do not update.
1 - Update the second orientation of the joint.
setflag (int) –
0 - Do not update entity sets.
1 - Update entity sets used to define the curves.
Example#
Update cylindrical type joint elements of ID ‘s 9 and 10 to be joints of type ball#import hm import hm.entities as ent model = hm.Model() input_col = hm.Collection(model, ent.Element, [9, 10]) model.alternatejointupdate( collection=input_col, type=8, n1=None, n2=None, orient1_node=None, orient2_node=None, orient1_x=0.0, orient1_y=0.0, orient1_z=0.0, orient2_x=0.0, orient2_y=0.0, orient2_z=0.0, set1=None, set2=None, typeflag=1, nodeflag=0, orient1flag=0, orient2flag=0, setflag=0, )