Model.createinflatorinsertfold#

Model.createinflatorinsertfold(aribagComponents, inflatorComponents, holesElements, translate, thickness, exportdir='')#

A dummy flattened inflator is created from the inflator and moved between the airbag layers. Then through the solver run the dummy nodes are driven to the initial inflator nodes positions to fit the airbag layers around the inflator. Elements of the airbag can be removed from the interface between the airbag and the dummy inflator in order to allow the inflator studs to go through the airbag.

Parameters:
  • aribagComponents (Collection) – The collection containing the airbag component entities.

  • inflatorComponents (Collection) – The collection containing the inflator component entities.

  • holesElements (Collection) – The collection containing the element entities of the airbag which are removed from the interface between the dummy inflator and the airbag.

  • translate (hwTriple) – The translation vector to apply to the flattened dummy inflator in order to position it in inside the airbag layers.

  • thickness (double) – The thickness of the flattened dummy inflator created.

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

Insert an inflator inside an airbag#
import hm
import hm.entities as ent

model = hm.Model()

comps1 = hm.Collection(model, hm.FilterByEnumeration(ent.Component, list(range(1, 23))))

comps2 = hm.Collection(
    model, hm.FilterByEnumeration(ent.Component, list(range(25, 31)))
)

elems = hm.Collection(
    model,
    hm.FilterByEnumeration(
        ent.Element,
        list(14851, 14852, 14905, 14906, range(15759, 15763), range(15963, 15971)),
    ),
)

model.createinflatorinsertfold(
    aribagComponents=comps1,
    inflatorComponents=comps2,
    holesElements=elems,
    translate={7.0, 6.0, -11.5},
    thickness=0.5,
    exportdir="exportdir=H:/InflatorInsertion",
)