Skip to content

stress_range

Overview

Represent the difference between the maximum and minimum stress in each counted cycle.

The StressRange class

py_fatigue.stress_range.StressRange dataclass

Bases: FatigueStress

Stress range class.

Source code in py_fatigue/stress_range/stress_range.py
14
15
16
17
18
19
20
21
class StressRange(FatigueStress):
    """Stress range class."""

    category: ClassVar[str] = "range"

    def small_cycles_idx(self):
        """The index of the small cycles."""
        return np.where(self.full >= self.bin_lb)[0]

Methods:

small_cycles_idx

small_cycles_idx()

The index of the small cycles.

Source code in py_fatigue/stress_range/stress_range.py
19
20
21
def small_cycles_idx(self):
    """The index of the small cycles."""
    return np.where(self.full >= self.bin_lb)[0]