Model.updatereferencegeometry#

Model.updatereferencegeometry(collection, name)#

Updates a reference geometry control volume.

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

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

Example#

Update the reference geometry ( called “ ref “ ) use user - selected elements#
import hm
import hm.entities as ent

model = hm.Model()

# Creating a collection that contains the user-selected elements.
selected_elements_collection = hm.CollectionByInteractiveSelection(model, ent.Element)

model.updatereferencegeometry(collection=selected_elements_collection, name="ref")