Model.mapgroupelementsfromshellstosolids#

Model.mapgroupelementsfromshellstosolids(collection)#

Maps base elements of group main/secondary elements from shells to associated solids.

Parameters:

collection (Collection) – The collection containing the group entities to map.

Example#

Map main elements in group “test” from shell elements to associated solid elements. Take for example the case is that shell elements with IDs 1-4 completely overlap with a face of solid elements with IDs 5-8, each sharing 4 common nodes. The group “test” has main elements created on shell elements with IDs 1-4#
import hm
import hm.entities as ent

model = hm.Model()

model.mapgroupelementsfromshellstosolids(
    collection=hm.Collection(model, ent.Group, "name=test")
)