Model.interfaceadd#

Model.interfaceadd(name, main, collection, reverse)#

Creates interface elements.

Parameters:
  • name (hwString) – The name of the group into which the interface elements should be placed.

  • main (int) –

    0 - For secondary elements.

    1 - For main elements.

  • collection (Collection) – The collection containing the secondary node or element entities which should have main or secondary elements placed on them.

  • reverse (int) – A logical which determines if the secondary elements should be reversed when created.

Example#

Create a segment set in Abaqus profile and add elements with IDs 1 - 31 at it#
import hm
import hm.entities as ent

model = hm.Model()

# Creating a Set with cardimage="SURFACE_ELEMENT"
set = ent.Set(model, cardimage="SURFACE_ELEMENT", name="group2")

collection = hm.Collection(model, ent.Element, list(range(1, 32)))
model.interfaceadd(name="group2", main=0, collection=collection, reverse=0)