RigidPart

class compas_fea2.model.RigidPart[source]

Bases: _Part

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

modelcompas_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{gkeycompas_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_meshcompas.datastructures.Mesh

The outer boundary mesh enveloping the Part.

discretized_boundary_meshcompas.datastructures.Mesh

The discretized outer boundary mesh enveloping the Part.

Methods

add_element

from_boundary_mesh

from_gmsh

Inherited Methods

ToString

Converts the instance to a string.

add_elements

add_group

add_groups

add_node

add_nodes

contains_element

contains_group

contains_node

copy

Make an independent copy of the data object.

data

elements_by_dimension

find

find_closest_nodes_to_node

find_closest_nodes_to_point

find_element_by_key

find_elements_by_name

find_faces_on_plane

find_groups_by_name

find_node_by_key

find_nodes_around_node

find_nodes_around_point

find_nodes_by_attribute

find_nodes_by_name

find_nodes_in_polygon

find_nodes_on_plane

find_nodes_where

from_compas_lines

from_json

Construct an object of this type from a JSON file.

from_jsonstring

Construct an object of this type from a JSON string.

from_name

from_step_file

get_average_displacement_at_point

get_max_displacement

get_min_displacement

is_element_on_boundary

is_node_on_boundary

jobdata

remove_element

remove_elements

remove_node

remove_nodes

sha256

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

shell_from_compas_mesh

show

sorted_nodes_by_displacement

to_json

Convert an object to its native data representation and save it to a JSON file.

to_jsonstring

Convert an object to its native data representation and save it to a JSON string.

validate_data

Validate the data against the object's data schema.