apply_load_distribution¶
- opstool.pre.apply_load_distribution(node_tags=None, coord_axis='z', load_axis='x', dist_type='triangle', sum_normalized=True, plot=False)[source]¶
Apply load distribution along specified coordinate axis.
Note
The load is applied to the
OpenSeesPydomain. If sum_normalized=True, The sum of the loads for all nodes is 1.0. If sum_normalized=False, The maximum load is set to 1.0.Parameters:¶
- node_tagslist, tuple, int, optional
The node tags where the load will be applied. If None, the function will apply the load to all nodes.
- coord_axisstr, default=’z’
The coordinate axis along which the load is distributed (‘x’, ‘y’, or ‘z’).
- load_axisstr, default=’x’
The load direction (‘x’, ‘y’, or ‘z’).
- dist_typestr, default=’triangle’
Type of distribution (‘triangle’, “parabola”, ‘half_parabola_concave’, ‘half_parabola_convex’, ‘uniform’).
- sum_normalizedbool, default=True
If True, the loads are normalized to ensure their sum is 1.0. If False, the maximum load is set to 1.0.
- plotbool, optional
If True, plots the load distribution graph.
Returns:¶
- node_loadsdict
A dictionary containing the node tags and the corresponding normalized loads.