Model.seatbelttensioning#
- Model.seatbelttensioning(seatbelth3dfile, seatbelt_entity, beltendtopull='', seatbeltextension=0.0, seatbeltcutend='')#
Updates the nodes of a seatbelt with the specified ID using an H3D file that contains the node positions of the referenced seatbelt subjected to a tension force.
It can update the seatbelt to any intermediate/final configuration stored in the H3D file. It can remove the seatbelt elements that extended completely beyond the layer of initially pulled edge nodes to maintain the seatbelt length and remove slack.
- Parameters:
seatbelth3dfile (hwString) – The absolute path to the H3D file containing the tensioning output of the seatbelt.
seatbelt_entity (Entity) – The object describing the seatbelt entity to be updated.
beltendtopull (hwString) – The side of the seatbelt, which has been subjected to the tension force. Valid values are start and end.
seatbeltextension (double) – This value is used to read a specific configuration from the H3D file. The valid range of the value is between 0.0 and 100.0.
seatbeltcutend (hwString) – The option specifies if the seat belt elements need to be cut. For example, if the seat belt length is to be maintained or not. Valid values are on and off.
Examples#
Update the seatbelt with ID 2 and tension force applied on its * start * edge , to its final configuration contained in * C:/tensionedbelt.h3d * without maintain its length#import hm import hm.entities as ent model = hm.Model() model.seatbelttensioning( seatbelth3dfile="C:/tensionedbelt.h3d", seatbelt_entity=ent.Seatbelt(model, 2), beltendtopull="start", seatbeltextension=100.0, seatbeltcutend="off", )
Update the seatbelt with ID 3 and tension force applied on its * end * edge , to the middle configuration contained in * C:/tensionedbelt.h3d * while maintain its length#import hm import hm.entities as ent model = hm.Model() model.seatbelttensioning( seatbelth3dfile="C:/tensionedbelt.h3d", seatbelt_entity=ent.Seatbelt(model, 3), beltendtopull="end", seatbeltextension=50.0, seatbeltcutend="on", )