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 or tuple, optional

Lumped nodal mass, by default None. If float, the same value is used in all 3 directions. if you want to specify a different mass for each direction, provide a tuple as (mass_x, mass_y, mass_z) in global coordinates.

temperaturefloat, optional

The temperature at the Node.

namestr, optional

Uniqe identifier. If not provided it is automatically generated. Set a name if you want a more human-readable input file.

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.

Examples

>>> node = Node(xyz=(1.0, 2.0, 3.0))
Attributes:
namestr

Uniqe identifier. If not provided it is automatically generated. Set a name if you want a more human-readable input file.

masstuple

Lumped nodal mass in the 3 global directions (mass_x, mass_y, mass_z).

keystr, read-only

The identifier of the node.

xyzlist[float]

The location of the node in the global coordinate system.

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 element is assigned.

modelcompas_fea2.model.Model, read-only

The Model where the element is assigned.

pointcompas.geometry.Point

The Point equivalent of the Node.

temperaturefloat

The temperature at the Node.

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.