DeformablePart
- class compas_fea2.model.DeformablePart(*args, **kwargs)[source]
Deformable part.
Note
Parts are registered to a
compas_fea2.model.Model
.- Parameters:
name (str, optional) – Uniqe identifier. If not provided it is automatically generated. Set a name if you want a more human-readable input file.
- Attributes:
name (str) – 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.nodes (Set[
compas_fea2.model.Node
]) – The nodes belonging to the part.materials (Set[
compas_fea2.model._Material
]) – The materials belonging to the part.sections (Set[
compas_fea2.model._Section
]) – The sections belonging to the part.elements (Set[
compas_fea2.model._Element
]) – The elements belonging to the part.releases (Set[
compas_fea2.model._BeamEndRelease
]) – The releases belonging to the part.nodesgroups (Set[
compas_fea2.model.NodesGroup
]) – The groups of nodes belonging to the part.elementsgroups (Set[
compas_fea2.model.ElementsGroup
]) – The groups of elements belonging to the part.facesgroups (Set[
compas_fea2.model.FacesGroup
]) – The groups of element faces belonging to the part.boundary_mesh (
compas.datastructures.Mesh
) – The outer boundary mesh enveloping the DeformablePart.Additional Attributes
———————
materials (Set[
compas_fea2.model._Material
]) – The materials belonging to the part.sections (Set[
compas_fea2.model._Section
]) – The sections belonging to the part.releases (Set[
compas_fea2.model._BeamEndRelease
]) – The releases belonging to the part.
Methods
Add a
compas_fea2.model._BeamEndRelease
to an element in the part.Add a material to the part so that it can be referenced in section and element definitions.
Add multiple materials to the part.
Add a section to the part so that it can be referenced in element definitions.
Add multiple sections to the part.
Verify that the part contains a specific material.
Verify that the part contains a specific section.
Find all materials with a given name.
Find all sections with a given name.
Creates a DeformablePart object from a a
compas.datastructures.Mesh
.Inherited Methods
Converts the instance to a string.
Add an element to the part.
Add multiple elements to the part.
Add a node or element group to the part.
Add multiple groups to the part.
Add a node to the part.
Add multiple nodes to the part.
Verify that the part contains a specific element.
Verify that the part contains a specific group.
Verify that the part contains a given node.
Make an independent copy of the data object.
Find the n closest nodes around a given node (excluding the node itself).
Find the n closest nodes within a distance of a given geometrical location.
Retrieve an element in the model using its key.
Find all elements with a given name.
Find the face of the elements that belongs to a given plane, if any.
Find all groups with a given name.
Retrieve a node in the model using its key.
Find all nodes around a given node (excluding the node itself).
Find all nodes with a given value for a the given attribute.
Find all nodes within a distance of a given geometrical location.
Find all nodes with a given name.
Find the nodes of the part that are contained within a planar polygon
Find all nodes on a given plane.
Find the nodes where some conditions are met.
Generate a part from a class:compas.geometry.Line.
Construct an object of this type from the provided data.
Construct an object from serialized data contained in a JSON file.
Construct an object from serialized data contained in a JSON string.
Create an instance of a class of the registered plugin from its name.
Compute the average displacement around a point
Retrieve the node with the maximum displacement
Retrieve the node with the minimum displacement
Check if a node is on the boundary mesh of the DeformablePart.
Compute a hash of the data for comparison during version control using the sha256 algorithm.
Creates a DeformablePart object from a
compas.datastructures.Mesh
.Return a list with the nodes sorted by their displacement
Convert an object to its native data representation.
Serialize the data representation of an object to a JSON file.
Serialize the data representation of an object to a JSON string.
Validate the object's data against its data schema.
Validate the object's data against its json schema.