NodeGroupNamespace
NodeGroupNamespace
Create/retrieve point selections through model.group.node.
Methods:
| Name | Description |
|---|---|
from_points |
Construct and register a selection of assembled point indices. |
add |
Register a node selection, suffixing its name if already used. |
get |
Return a node group by exact registered name, or None when absent. |
get_all |
Return a shallow name-to-group snapshot with shared selection objects. |
Methods:
from_points
Construct and register a selection of assembled point indices.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name
|
str
|
Preferred label; duplicate labels receive numeric suffixes. |
required |
point_indices
|
ArrayLike
|
Nonempty nonnegative one-dimensional indices. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
group |
NodeGroup
|
Stored selection. Assembly existence and upper index bounds are not validated by this factory. |
add
Register a node selection, suffixing its name if already used.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
group
|
NodeGroup
|
Selection object to retain. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
group |
NodeGroup
|
Same object with its final registry name. No solver node-region tag or Tcl definition is generated by this registration. |
get
Return a node group by exact registered name, or None when absent.