DeformablePart
- class compas_fea2.model.DeformablePart[source]
Bases:
_Part
Deformable part.Base class for Parts.
- Parameters:
- namestr, optional
Uniqe identifier. If not provided it is automatically generated. Set a name if you want a more human-readable input file.
Notes
Parts are registered to a
compas_fea2.model.Model
.- Attributes:
- namestr
Uniqe identifier. If not provided it is automatically generated. Set a name if you want a more human-readable input file.
- model
compas_fea2.model.Model
The parent model of the part.
- nodesSet[
compas_fea2.model.Node
] The nodes belonging to the part.
- nodes_countint
Number of nodes in the part.
- gkey_node{gkey
compas_fea2.model.Node
} Dictionary that associates each node and its geometric key}
- materialsSet[
compas_fea2.model._Material
] The materials belonging to the part.
- sectionsSet[
compas_fea2.model._Section
] The sections belonging to the part.
- elementsSet[
compas_fea2.model._Element
] The elements belonging to the part.
- element_types{
compas_fea2.model._Element
[compas_fea2.model._Element
]] Dictionary with the elements of the part for each element type.
- element_countint
Number of elements in the part
- nodesgroupsSet[
compas_fea2.model.NodesGroup
] The groups of nodes belonging to the part.
- elementsgroupsSet[
compas_fea2.model.ElementsGroup
] The groups of elements belonging to the part.
- facesgroupsSet[
compas_fea2.model.FacesGroup
] The groups of element faces belonging to the part.
- boundary_mesh
compas.datastructures.Mesh
The outer boundary mesh enveloping the Part.
- discretized_boundary_mesh
compas.datastructures.Mesh
The discretized outer boundary mesh enveloping the Part.
Methods
Inherited Methods
Converts the instance to a string.
Make an independent copy of the data object.
Construct an object of this type from a JSON file.
Construct an object of this type from a JSON string.
Compute a hash of the data for comparison during version control using the sha256 algorithm.
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.
Validate the data against the object's data schema.