RigidPart
- class compas_fea2.model.RigidPart[source]
Bases:
_Part
Rigid part.Base class for Parts.
- Parameters:
- namestr, optional
Unique identifier. If not provided it is automatically generated. Set a name if you want a more human-readable input file.
- Attributes:
- namestr
Unique 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_nodeDict[str,
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_typesDict[
compas_fea2.model._Element
, List[compas_fea2.model._Element
]] Dictionary with the elements of the part for each element type.
- element_countint
Number of elements in 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.
Notes
Parts are registered to a
compas_fea2.model.Model
.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.