Model.createzigzagfold#

Model.createzigzagfold(airbagComponents, nodes, linestart, lineend, method=1, nplies=10, distplates=50.0, fixedsidewidth=50.0, exportdir='')#

Creates a zigzag fold setup and exports the deck for solver run to get the resulting folded position of the airbag. A zigzag fold is defined as the folding of the side using vertical plates to get the zigzag type of structure as shown in Figure 1. The folding table must be created using before running the function.

image1

Parameters:
  • airbagComponents (Collection) – The collection containing the airbag Component entities.

  • nodes (Collection) – The collection containing the node entities defining which side of the airbag from the folding line will be folded.

  • linestart (hwTriple) – The coordinates of the start point of the folding line.

  • lineend (hwTriple) – The coordinates of the end point of the folding line.

  • method (int) –

    Defines the motion of the zigzag plates:

    1 - Both lower and upper plates move towards the center. (default)

    2 - Only the lower plates move upwards.

  • nplies (int) – The number of plates to be created on each side of the airbag. It must be a positive integer value (default 10).

  • distplates (double) – The lateral distance between 2 consecutive plates (default 50.0 mm). This distance is also equal to the height of the zigzag plates, also minimum resulting distance from both the criterion nplies and distplates will be considered.

  • fixedsidewidth (double) – The width of the rigid plates in mm to hold the fixed side of airbag between upper and lower fixed rigid plates (default 50.0 mm).

  • 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.

    image2

Example#

Define a zigzag 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,[225855])

model.createzigzagfold(
    airbagComponents=comps,
    nodes=nodes,
    linestart=[-232.193279, -0.004989, -291.824185],
    lineend=[719.186521, -0.004989, -10.012642],
    method=1,
    nplies=10,
    distplates=50.0,
    fixedsidewidth=100.0,
    exportdir="E:/data",
)