Model.createflattenfold#
- Model.createflattenfold(airbag_collection, exportdir='')#
Creates a flatten fold setup for solver run to get the resulting position of airbag.
- Parameters:
airbag_collection (Collection) – The collection containing the component entities of the airbag.
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 flatten airbag fold#import hm import hm.entities as ent model = hm.Model() comps = hm.Collection(model, ent.Component) model.createflattenfold(airbag_collection=comps, exportdir="E:/temp")
