Model.stackreverse#

Model.stackreverse(collection, size)#

Reverses the stack direction of selected entities. Currently only supported for Abaqus continuum shell elements.

Parameters:
  • collection (Collection) – The collection containing the entities to reverse. Valid entities are elements and components.

  • size (double) – The size in model units of the stack display.

Example#

Reverse the stack direction of elements with IDs 1 - 10 use a size of 10.0#
import hm
import hm.entities as ent

model = hm.Model()

# Creating a collection that contains the elements with IDs 1-10
filter_elements = hm.FilterByEnumeration(ent.Element, list(range(1, 11)))
elements_collection = hm.Collection(model, filter_elements)

model.stackreverse(collection=elements_collection, size=10.0)