weac.utils.misc module

This module contains miscellaneous utility functions.

weac.utils.misc.decompose_to_normal_tangential(f, phi)[source]

Resolve a gravity-type force/line-load into its tangential (downslope) and normal (into-slope) components with respect to an inclined surface.

Parameters:
  • f (float) – is interpreted as a vertical load magnitude acting straight downward (global y negative).

  • phi (float) – Surface dip angle in degrees, measured from horizontal. Positive phi means the surface slopes upward in +x.

Returns:

f_norm, f_tan – Magnitudes of the tangential ( + downslope ) and normal ( + into-slope ) components, respectively.

Return type:

float

weac.utils.misc.get_skier_point_load(m)[source]

Calculate skier point load.

Parameters:

m (float) – Skier weight [kg].

Returns:

f – Skier load [N/mm].

Return type:

float

weac.utils.misc.load_dummy_profile(profile_id)[source]

Define standard layering types for comparison.

Parameters:

profile_id (Literal['a', 'b', 'c', 'd', 'e', 'f', 'h', 'soft', 'medium', 'hard', 'comp'])

Return type:

list[Layer]

weac.utils.misc.isnotebook()[source]

Check if code is running in a Jupyter notebook environment.

Returns:

True if running in Jupyter notebook, False otherwise.

Return type:

bool