Model.createrollfold#
- Model.createrollfold(airbagComponents, nodesCollection, linestart, lineend, tooldimension=0.0, rotationnums=0, tooltype=0, bcsmovingside=0, bcsfixedside=0, exportdir='')#
Creates the Rolling fold entities and exports the deck for solver run to get the resulting folded state of airbag. A rolling fold is defined as the rolling of a tool (cylindrical or scale) till the stopping position. The folding table must be created using before running the function.
- Parameters:
airbagComponents (Collection) – The collection containing the airbag component entities. Valid values are 1 and 2.
nodesCollection (Collection) – The collection containing the node entities defining the stopping position. Valid values are 1 and 2.
linestart (hwTriple) – The coordinates of the start point of the rolling tool line.
lineend (hwTriple) – The coordinates of the end point of the rolling tool line. The positions linestart and lineend will define the rolling tool axis. This line should be parallel to the folding table (see Figure 1).
tooldimension (double) – The diameter if a cylindrical tool or the width of a scale tool (default 5.0 mm).
rotationnums (int) – The number of 180-degree rotations to be performed (default 10). The stopping position or the number of rotations define the stopping of the simulation, whichever comes first.
tooltype (int) –
The type of the rolling tool.
0 - Scale tool (default)
1 - Cylindrical tool
bcsmovingside (int) –
Controls the translational boundary condition on the nodes in the moving region in the direction parallel to rolling tool axis.
0 - Translational boundary condition not applied (default)
1 - Translational boundary condition applied
bcsfixedside (int) –
Controls the translational and rotational boundary condition on the nodes in the fixed region in all directions.
0 - Translational and rotational boundary condition not applied (default)
1 - Translational and rotational boundary condition applied
exportdir (hwString) – The directory path where the resulting solver deck is exported. User should have the write permission in this directory. Default is set to the location defined by the environment variable ALTAIR_HOME.
Example#
Define a rolling airbag fold:#import hm import hm.entities as ent model = hm.Model() comps = hm.Collection(model, ent.Component, populate=True) nodes = hm.Collection(model, ent.Node, [100]) model.createrollfold( airbagComponents=comps, nodesCollection=nodes, linestart=[-177.051258, -0.004989, -440.438409], lineend=[769.265355, -0.004989, -142.065930], tooldimension=5.0, rotationnums=10, tooltype=0, bcsmovingside=1, bcsfixedside=1, exportdir="E:\data" )
