RigidPart

class compas_fea2.model.RigidPart(*args, **kwargs)[source]

Rigid 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:

Methods

add_element

Add an element to the part.

from_boundary_mesh

from_gmsh

Inherited Methods

ToString

Converts the instance to a string.

add_elements

Add multiple elements to the part.

add_group

Add a node or element group to the part.

add_groups

Add multiple groups to the part.

add_node

Add a node to the part.

add_nodes

Add multiple nodes to the part.

contains_element

Verify that the part contains a specific element.

contains_group

Verify that the part contains a specific group.

contains_node

Verify that the part contains a given node.

copy

Make an independent copy of the data object.

data

find_closest_nodes_to_node

Find the n closest nodes around a given node (excluding the node itself).

find_closest_nodes_to_point

Find the n closest nodes within a distance of a given geometrical location.

find_element_by_key

Retrieve an element in the model using its key.

find_elements_by_name

Find all elements with a given name.

find_faces_on_plane

Find the face of the elements that belongs to a given plane, if any.

find_groups_by_name

Find all groups with a given name.

find_node_by_key

Retrieve a node in the model using its key.

find_nodes_around_node

Find all nodes around a given node (excluding the node itself).

find_nodes_by_attribute

Find all nodes with a given value for a the given attribute.

find_nodes_by_location

Find all nodes within a distance of a given geometrical location.

find_nodes_by_name

Find all nodes with a given name.

find_nodes_in_polygon

Find the nodes of the part that are contained within a planar polygon

find_nodes_on_plane

Find all nodes on a given plane.

find_nodes_where

Find the nodes where some conditions are met.

from_compas_line

Generate a part from a class:compas.geometry.Line.

from_data

Construct an object of this type from the provided data.

from_json

Construct an object from serialized data contained in a JSON file.

from_jsonstring

Construct an object from serialized data contained in a JSON string.

from_name

Create an instance of a class of the registered plugin from its name.

get_average_displacement_at_point

Compute the average displacement around a point

get_max_displacement

Retrieve the node with the maximum displacement

get_min_displacement

Retrieve the node with the minimum displacement

is_element_on_boundary

is_node_on_boundary

Check if a node is on the boundary mesh of the DeformablePart.

sha256

Compute a hash of the data for comparison during version control using the sha256 algorithm.

shell_from_compas_mesh

Creates a DeformablePart object from a compas.datastructures.Mesh.

sorted_nodes_by_displacement

Return a list with the nodes sorted by their displacement

to_data

Convert an object to its native data representation.

to_json

Serialize the data representation of an object to a JSON file.

to_jsonstring

Serialize the data representation of an object to a JSON string.

validate_data

Validate the object's data against its data schema.

validate_json

Validate the object's data against its json schema.