Model.createsimplefold#

Model.createsimplefold(airbagComponents, node, linestart, lineend, angle, linestart2=hwTriple(0.0, 0.0, 0.0), lineend2=hwTriple(0.0, 0.0, 0.0), interfriction=0.500000, envelopelementsize=0.0, numsideelems=0.0, heightratioenvelopelems=0.0, createvoidcomp=False, heightratiovoidelems=0.0, exportdir='')#

Creates a simple fold setup for solver run to get the resulting position of airbag. A simple fold is an airbag folding process in which a portion of the airbag is rotated by some degrees around a folding line by creating the envelopes to contain and fix the airbag perfectly. The folding table must be created using model.createfoldingtable() before running the function.

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

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

  • angle (double) – The angle in degrees with which the moving side should be rotated. Provided value must be in the range 0 to 180.0 (default 180.0).

  • linestart2 (hwTriple) – The coordinates of the start point of the symmetric line.

  • lineend2 (hwTriple) – The coordinates of the end point of the symmetric line.

  • interfriction (double) – The friction coefficient between the envelope and airbag fabric used in Type19 contact.

  • envelopelementsize (double) – The element size used to create the envelope.

  • numsideelems (double) – The number of elements connecting the upper and lower envelopes.

  • heightratioenvelopelems (double) –

    The extension length of the moving envelope (limiter) which prevents buckling of the external side of the airbag between the moving and fixed envelope (see Figure 1). The ratio determines the relation of the limiter lateral height to the envelope lateral height. Valid values are from 0.0 to 1.0 (default 0.0).

    image1

  • createvoidcomp (bool) –

    Controls the creation of the void component between fixed and moving envelope (see Figure 2).

    False - Void component is not created (default)

    True - Void component is created

    image2

  • heightratiovoidelems (double) – The height ratio till which depth vertical elements on void component are to be created, Valid values are from 0.0 to 1.0.

  • 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 simple airbag fold#
import hm
import hm.entities as ent

model = hm.Model()

model.createsimplefold(
    airbagComponents=hm.Collection(model, ent.Component, Populate=True),
    node=hm.Collection(model, ent.Node, list(range(1, 101))),
    linestart=[-213.5, -0.01, -298.6],
    lineend=[732.8, -0.01, -0.3],
    angle=180.0,
    interfriction=0.5,
    numsideelems=0.0,
    exportdir="E:/temp",
)