_vegetation module¶
Vegetation class for pyrockfall¶
This module defines the Vegetation class, which represents the canopy geometry
above a slope. A vegetation is defined by:
Nodes: coordinates of the geometry (mandatory).
Elements: connectivity between nodes (optional; if omitted, sequential connectivity is assumed).
Drag: the drag coefficient that dissipates energy when block moves through vegetation.
The class supports stochastic perturbation of nodes, material assignment, combination of contiguous slopes, and efficient queries.
- class pyrockfall._vegetation.Drag(name: str = '', coefficient: Distribution | SupportsToDistribution | Real | np.floating | np.integer | float | int = 0.0)[source]¶
Bases:
object- property coefficient: Distribution¶