_Element2D

class compas_fea2.model._Element2D[source]

Bases: _Element

Element with 2 dimensions.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.

rigidbool, optional

Define the element as rigid (no deformations allowed) or not. Defaults to False.

heatbool, optional

Define the element as a heat transfer element. Defaults to False.

framecompas.geometry.Frame, optional

Optional local reference frame. If not provided, the GLOBAL frame is assumed (via Frameable).

Attributes:
keyint, read-only

Identifier of the element in the parent part.

nodeslist[compas_fea2.model.Node]

Return the list of nodes to which the element is connected.

nodes_keystr, read-only

Identifier based on the connected nodes.

sectioncompas_fea2.model._Section

Return the section object assigned to the element.

implementationstr

Return the implementation name of the element.

partcompas_fea2.model.Part | None

Return the part to which the element is registered.

on_boundarybool | None

Return whether the element has a face on the boundary mesh.

modelcompas_fea2.model.Model, read-only

Return the model to which the element belongs.

areafloat, read-only

Return the element area in the active unit system.

volumefloat, read-only

Pseudo-volume (area × thickness) in the active unit system.

rigidbool, read-only

Return whether the element is rigid.

heatbool, read-only

Return whether the element is a heat transfer 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.

Methods

stress_results

Get the stress results for the element.

Inherited Methods

ToString

Converts the instance to a string.

clear_frame

Clear the local frame, reverting to GLOBAL_FRAME.

copy

Make an independent copy of the data object.

direction_cosines

Return local axes expressed as global vectors (x, y, z).

from_json

Construct an object of this type from a JSON file.

from_jsonstring

Construct an object of this type from a JSON string.

is_axis_aligned

Return True if local frame coincides with GLOBAL frame within tolerance.

sha256

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

to_global_point

Convert a local point to the global frame.

to_global_vector

Convert a local vector to the global frame.

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.

to_local_point

Convert a global point to the local frame.

to_local_vector

Convert a global vector to the local frame.

transform_to

Get the transformation from this object's local frame to another frame.

validate_data

Validate the data against the object's data schema.