_Element1D

class compas_fea2.model._Element1D[source]

Bases: _Element

Element with 1 dimension.

Parameters:
nodeslist[compas_fea2.model.Node]

Ordered list of nodes to which the element connects.

sectioncompas_fea2.model._Section

Section Object assigned to the element.

framecompas.geometry.Frame or list

Point defining the

implementationstr, optional

The name of the backend model implementation of the element.

rigidbool, optional

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

Attributes:
framecompas.geometry.Frame

Get the local frame of the object.

lengthfloat

Element length in the active length unit.

volumefloat

Element volume (area × length) in the active unit system.

Notes

1D elements are used to model beams, bars, and trusses. They connect two nodes and have a section assigned. The local frame is defined by the start node, the end node, and an optional orientation point. The local z-axis is aligned with the element axis (from start to end node), and the local y-axis is defined by the vector from the start node to the orientation point. The local x-axis is computed as the cross product of the local y and z axes, ensuring a right-handed coordinate system.

Methods

forces

Get the forces result for the element.

moments

Get the moments result for the element.

plot_section

plot_stress_distribution

Plot the stress distribution along the element.

section_forces_result

Get the section forces result for the element. Parameters ---------- step : compas_fea2.model.Step The analysis step.

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.