ElementsGroup
- class compas_fea2.model.ElementsGroup[source]
Bases:
_Group[Union[_Element,_Element1D,_Element2D,_Element3D]]Base class for elements groups.
- Parameters:
- elementslist[
compas_fea2.model.Element] The elements belonging to the group.
- elementslist[
- Attributes:
- elementslist[
compas_fea2.model.Element] The elements belonging to the group.
- part
compas_fea2.model._Part The part where the group is registered, by default None.
- model
compas_fea2.model.Model The model where the group is registered, by default None.
- elementslist[
Notes
ElementsGroups are registered to the same
compas_fea2.model.Partas its elements and can belong to only one Part.Inherited Methods
Converts the instance to a string.
Add a single member to the group.
Add multiple members to the group.
Clear all members from the group.
Make an independent copy of the data object.
Create a new group containing members that are in this group but not in another.
Construct an object of this type from a JSON file.
Construct an object of this type from a JSON string.
Group members into multiple subgroups based on a key function.
Create a new group containing only members that are present in both groups.
Remove a member from the group.
Remove multiple members from the group.
Compute a hash of the data for comparison during version control using the sha256 algorithm.
Return the members of the group sorted based on a custom key function.
Create a subgroup based on a given condition.
Convert an object to its native data representation and save it to a JSON file.
Convert an object to its native data representation and save it to a JSON string.
Return the members of the group as a list.
Create a new group containing all members from this group and another group.
Return a new group containing only unique members.
Validate the data against the object's data schema.