get_node_mass

opstool.pre.get_node_mass()[source]

Get nodal mass data from the OpenSees model, including the mass from the nodes and elements. Added in v0.1.15.

Return type:

dict

Returns:

node_massdict

Dictionary with node tags as keys and mass values as lists.

Examples:

>>> node_mass = get_node_mass()
>>> print(node_mass)
{1: [1.0, 1.0, 1.0], 2: [1.0, 1.0, 1.0], ...}