Model.createreferencegeometry#

Model.createreferencegeometry(collection, name)#

Creates a reference geometry control volume.

Parameters:
  • collection (Collection) – The collection containing the node entities to create the reference geometry.

  • name (hwString) – Name of the reference geometry.

Example#

Create reference geometry ( called “ ref “ ) use selected elements#
import hm
import hm.entities as ent

model = hm.Model()

elements = hm.Collection(model, hm.FilterByEnumeration(ent.Element, list(range(1, 11))))

model.createreferencegeometry(collection=elements ,name="ref")