weac.components.segment module

This module defines the Segment class, which represents a segment of the snowpack.

class weac.components.segment.Segment(*, length=5000.0, has_foundation=True, m=0)[source]

Bases: BaseModel

Defines a snow-slab segment: its length, foundation support, and applied loads.

Parameters:
  • length (Annotated[float, Ge(ge=0)])

  • has_foundation (bool)

  • m (Annotated[float, Ge(ge=0)])

length

Segment length in millimeters [mm].

Type:

float

has_foundation

Whether the segment is supported (foundation present) or cracked/free-hanging (no foundation).

Type:

bool

m

Skier mass at the segment’s right edge [kg].

Type:

float

length: float
has_foundation: bool
m: float
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].