NodalLoad#
- class xara.NodalLoad(model, loads, tag: int | None = None, persist: bool = True)#
Define nodal loads for a model.
- Parameters:
- model: xara.Model
The model to which the loads are applied.
- loads: Iterable[Tuple[int, Sequence[float]]]
An iterable of tuples containing node tags and force vectors.
Examples#
from xara.load import NodalLoads
model = xara.Model(ndm=3, ndf=6)
# Create the nodal loads
loads = NodalLoads(model, {3: [0, 0, 1.0, 0, 0, 0]})
# Create a load pattern with the nodal loads
pattern = xara.StaticPattern(loads)
# Add the load pattern to the model
model.pattern(pattern)