Model.realizehmentity#
- Model.realizehmentity(collection, targetentitytype=hm.entities.elements.Element)#
Realizes HyperMesh entities. Constraints are realized to elements or groups based on
targetentitytype. Solvermasses are realized to nonstructural mass properties in Abaqus.- Parameters:
collection (Collection) – The collection containing the entities to realize. Currently supported entity types are constraints and solvermasses.
targetentitytype (EntityFullType) – The type of the target entity. Valid values are elements and groups. Currently only supported for
collectionof constraints.
Examples#
Realize all constraints to elements#import hm import hm.entities as ent model = hm.Model() model.realizehmentity(collection=hm.Collection(model, ent.Constraint))
Realize all solvermass entities#import hm import hm.entities as ent model = hm.Model() model.realizehmentity(collection=hm.Collection(model, ent.Solvermass))
Realize the solvermass entities with IDs 1,2#import hm import hm.entities as ent model = hm.Model() model.realizehmentity(collection=hm.Collection(model, ent.Solvermass, [1, 2]))