_Element

class compas_fea2.model._Element[source]

Bases: FEAData

Initialises a base Element object.

Parameters:
nodeslist[compas_fea2.model.Node]

Ordered list of node identifiers to which the element connects.

sectioncompas_fea2.model._Section

Section Object assigned to the element.

implementationstr, optional

The name of the backend model implementation of the element.

Warning

When an Element is added to a Part, the nodes of the elements are also added and registered to the same part. This might change the original registration of the nodes!

Notes

Elements and their nodes are registered to the same compas_fea2.model._Part and can belong to only one Part.

Attributes:
keyint, read-only

Identifier of the element in the parent part.

nodeslist[compas_fea2.model.Node]

Nodes to which the element is connected.

nodes_keystr, read-only

Identifier based on the conntected nodes.

sectioncompas_fea2.model._Section

Section object.

implementationstr

The name of the backend model implementation of the element.

partcompas_fea2.model.DeformablePart | None

The parent part.

on_boundarybool | None

True it the element has a face on the boundary mesh of the part, False otherwise, by default None.

partcompas_fea2.model._Part, read-only

The Part where the element is assigned.

modelcompas_fea2.model.Model, read-only

The Model where the element is assigned.

areafloat, read-only

The area of the element.

volumefloat, read-only

The volume of the element.

rigidbool, read-only

Define the element as rigid (no deformations allowed) or not. For Rigid elements sections are not needed.

Inherited Methods

ToString

Converts the instance to a string.

copy

Make an independent copy of the data object.

data

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

jobdata

sha256

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

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.