Model.createcontrolvol#

Model.createcontrolvol(collection, name)#

Creates an airbag control volume.

Parameters:
  • collection (Collection) – The collection containing the element entities used to create control volumes.

  • name (hwString) – Name of the control volume.

Example#

Create a control volume called “airbag” using the elements that you selected#
import hm
import hm.entities as ent

model = hm.Model()

model.createcontrolvol(
    collection=hm.CollectionByInteractiveSelection(model, ent.Element), name="airbag"
)