DeformablePart.add_node

DeformablePart.add_node(node: Node) Node

Add a node to the part.

Note

By adding a Node to the part, this gets registered to this part.

Parameters:

node (compas_fea2.model.Node) – The node.

Returns:

compas_fea2.model.Node – The identifier of the node in the part.

Raises:

TypeError – If the node is not a node.

Examples

>>> part = DeformablePart()
>>> node = Node(1.0, 2.0, 3.0)
>>> part.add_node(node)