Skip to content

GroupManager

GroupManager

GroupManager(mesh_maker: Model)

Own named selections through model.group.

Attributes:

Name Type Description
element ElementGroupNamespace

Cell selections and exportable element groups.

node NodeGroupNamespace

Point selection records.

Groups preserve explicit mesh indices; they are not live geometry queries. Rebuild them if assembly changes cell/point order. The node and element namespaces maintain independent names and do not provide identical Tcl support.

Example
from femora import Model

model = Model()
group = model.group.element.from_cells("selected_cells", [0, 1])
assert group.element_tags([10, 11, 12]) == [10, 11]
assert model.group.element.get("selected_cells") is group

This illustrates index-to-tag mapping, not validation of an actual mesh. Prefer from_meshparts after assembly when selecting whole components.

Methods:

Name Description
clear

Empty both selection registries without modifying mesh geometry.

Methods:

clear

clear() -> None

Empty both selection registries without modifying mesh geometry.

Previously held group objects keep their names/tags/indices. This method does not remove solver regions from already exported or running models.