MassElement

class compas_fea2.model.MassElement[source]

Bases: _Element

A 0D element for concentrated point mass.

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.

outermesh

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.