simdesign.rcmrf.bnsm.baselib.node
This module provides the class used to represent any structural node within the BNSM layer. Unlike other classes in baselib, this class does not require abstraction.
- class simdesign.rcmrf.bnsm.baselib.node.Node(tag, coordinates, masses=None)[source]
Bases:
objectStructural node representation in the BNSM layer. It provides methods to define the node in the OpenSees domain and to export equivalent Python and Tcl commands.
- Parameters:
tag (int)
coordinates (List[float])
masses (List[float])
- tag
Unique identifier of the node.
- Type:
int
- coordinates
Node coordinates [x, y, z].
- Type:
List[float]
- masses
Nodal masses associated with each degree of freedom: [Mx, My, Mz, RMx, RMy, RMz].
- Type:
List[float]
- nodal_mass
If True, masses are assigned directly to the node in OpenSees.
- Type:
bool, default=True
- add_to_ops()[source]
Adds the node object to OpenSees domain.
The node is created using the
ops.nodecommand. Ifnodal_massis True and at least one mass component is non-zero, nodal masses are assigned using the-massoption.- Return type:
None