Node

class compas_fea2.model.Node[source]

Bases: FEAData

Class representing a Node object.

Parameters:
xyzlist[float, float, float] | compas.geometry.Point

The location of the node in the global coordinate system.

massfloat, tuple, or list, optional

Lumped nodal mass. If float, same value is used in x,y,z. If sequence of length 3, interpreted as (mx,my,mz). All values in the active unit system (“mass”). Default None.

temperaturefloat, optional

Initial temperature at the node, in the active unit system (“temperature”).

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.

masstuple

Lumped nodal mass (mx,my,mz) in active mass units.

keystr, read-only

The identifier of the node.

xyzlist[float]

Coordinates [x,y,z] in active length units.

xfloat

The X coordinate.

yfloat

The Y coordinate.

zfloat

The Z coordinate.

gkeystr, read-only

The geometric key of the Node.

dofdict

Dictionary with the active degrees of freedom.

on_boundarybool | None, read-only

True if the node is on the boundary mesh of the part, False otherwise, by default None.

is_referencebool, read-only

True if the node is a reference point of compas_fea2.model.RigidPart, False otherwise.

partcompas_fea2.model._Part, read-only

The Part where the Node is registered.

modelcompas_fea2.model.Model, read-only

The Model where the element is assigned.

pointcompas.geometry.Point

The Point equivalent of the Node.

temperaturefloat

Get the temperature of the node at a given step.

Notes

Nodes are registered to a compas_fea2.model.Part object and can belong to only one Part. Every time a node is added to a Part, it gets registered to that Part.

All physical attributes are interpreted in the active unit system.

Examples

>>> node = Node(xyz=(1.0, 2.0, 3.0), mass=10.0, temperature=293.15)

Methods

displacement

Get the displacement of the node at a given step.

displacements

Get the displacements of the node for all steps in the model.

from_compas_point

Create a Node from a compas.geometry.Point.

reaction

Get the reaction of the node at a given step.

reactions

Get the reactions of the node for all steps in the model.

temperature

Get the temperature of the node at a given step.

temperatures

Get the temperatures of the node for all steps in the model.

transform

Transform the node using a transformation matrix.

transformed

Return a copy of the node transformed by a transformation matrix.

Inherited Methods

ToString

Converts the instance to a string.

copy

Make an independent copy of the data object.

from_json

Construct an object of this type from a JSON file.

from_jsonstring

Construct an object of this type from a JSON string.

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.