weights_from_xyz
- compas_tno.algorithms.weights_from_xyz(xyz, F, V0, V1, V2, thk=0.5, density=20.0)[source]
Compute the tributary weights based on the assembled sparse matrices linking the topology
- Parameters
xyz (array [n x 3]) – The XYZ coordinates of the thrust network
F (array [f x n]) – Linear transformation from
X
[n x 3] toc
[f x 3] with the position of the centroidsV0 (array [g x n]) – Mark the influence of the original point in the calculation
V1 (array [g x n]) – Mark the influence of the neighbor points the calculation
V2 (array [g x f]) – Mark the influence of the centroid points the calculation
thk (float, optional) – The thickness of the structure to compute the tributary volumes, by default 0.5
density (float, optional) – The density of the structure to compute the applied vertical loads, by default 20.0
- Returns
pz (array [n x 1]) – The vertical loads applied ar each node