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.

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_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_meshcompas.datastructures.Mesh

The outer boundary mesh enveloping the Part.

discretized_boundary_meshcompas.datastructures.Mesh

The discretized outer boundary mesh enveloping the Part.

Notes

Parts are registered to a compas_fea2.model.Model.

Methods

add_element

from_boundary_mesh

from_gmsh

Inherited Methods

ToString

Converts the instance to a string.

add_elements

add_group

add_groups

add_material

add_materials

add_node

add_nodes

add_section

add_sections

compute_nodal_masses

contains_element

contains_material

contains_node

contains_section

copy

Make an independent copy of the data object.

elements_by_dimension

extract_clustered_planes

extract_submeshes

find_boudary_faces

find_boundary_meshes

find_closest_nodes_to_node

find_closest_nodes_to_point

find_element_by_key

find_element_by_name

find_faces_in_polygon

find_faces_on_plane

find_group_by_name

find_material_by_name

find_material_by_uid

find_materials_by_name

find_node_by_key

find_node_by_name

find_node_by_uid

find_nodes_in_polygon

find_nodes_on_plane

find_section_by_name

find_section_by_uid

find_sections_by_name

from_brep

from_compas_lines

from_hdf5

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_hdf5

to_hdf5_data

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.

transform

transformed

validate_data

Validate the data against the object's data schema.

visualize_node_connectivity

visualize_pyvis