LoadUpdater
- class compas_tna.loads.LoadUpdater
Bases:
object
Class for constructing a callable for updating loads when geometry and selfweight change.
- Parameters:
- mesh
Mesh
A form diagram mesh.
- p0ndarray (number_of_vertices x 3)
The additional (fixed) loads at the vertices.
- thicknessndarray (number_of_vertices x 1) or float, optional
A thickness value per vertex. Or a single constant thickness value. Default is a constant thickness of
1.0
.- densityfloat, optional
The density for selfweight calculations. Default is
1.0
.
- mesh
Examples
>>> import numpy >>> xyz = numpy.array(form.vertices_attributes("xyz")) >>> p = numpy.array(form.vertices_attributes(["px", "py", "pz"])) >>> p0 = p.copy()
Construct a load updater with the (additional) point loads applied at the vertices. Note that these additional loads are often zero.
>>> updateloads = LoadUpdater(form, p0)
After the geometry changes, update the loads by recomputing selfweight.
>>> updateloads(p, xyz)
Methods
Compute the face matrix of the mesh.
Compute the tributary area per vertex.