weac.core.slab module

This module defines the Slab class, which represents the snow slab and its properties.

class weac.core.slab.Slab(layers)[source]

Bases: object

Parameters of all layers assembled into a slab, provided as np.ndarray for easier access.

Coordinate frame: - z-axis points downward (first index: top layer, last index: bottom layer) - z = 0 is set at the mid-point of the slab’s thickness

Parameters:

layers (List[Layer])

zi_mid

z-coordinate of the layer i mid-point

Type:

np.ndarray

zi_bottom

z-coordinate of the layer i (boundary towards bottom)

Type:

np.ndarray

rhoi

densities of the layer i [t/mm^3]

Type:

np.ndarray

hi

thickness of the layer i [mm]

Type:

np.ndarray

Ei

Young’s modulus of the layer i [MPa]

Type:

np.ndarray

Gi

Shear Modulus of the layer i [MPa]

Type:

np.ndarray

nui

Poisson Ratio of the layer i [-]

Type:

np.ndarray

H

Total slab thickness (i.e. assembled layers) [mm]

Type:

float

z_cog

z-coordinate of Center of Gravity [mm]

Type:

float

qw

Weight Load of the slab [N/mm]

Type:

float

rhoi: ndarray
hi: ndarray
Ei: ndarray
Gi: ndarray
nui: ndarray
z0: float
zi_mid: ndarray
zi_bottom: ndarray
H: float
z_cog: float
qw: float
__init__(layers)[source]
Parameters:

layers (List[Layer])

Return type:

None

layers: List[Layer]
calc_vertical_center_of_gravity(phi)[source]

Vertical PSTs use triangular slabs (with horizontal cuts on the slab ends) Calculate center of gravity of triangular slab segments for vertical PSTs.

Parameters:

phi (float) – Slope angle [deg]

Returns:

  • x_cog (float) – Horizontal coordinate of center of gravity [mm]

  • z_cog (float) – Vertical coordinate of center of gravity [mm]

  • w (float) – Weight of the slab segment that is cut off or added [t]