Rainflow-counting Algorithm - The Algorithm

The Algorithm

  1. Reduce the time history to a sequence of (tensile) peaks and (compressive) troughs.
  2. Imagine that the time history is a template for a rigid sheet (pagoda roof).
  3. Turn the sheet clockwise 90° (earliest time to the top).
  4. Each tensile peak is imagined as a source of water that "drips" down the pagoda.
  5. Count the number of half-cycles by looking for terminations in the flow occurring when either:
    1. It reaches the end of the time history;
    2. It merges with a flow that started at an earlier tensile peak; or
    3. It flows opposite a tensile peak of greater magnitude.
  6. Repeat step 5 for compressive troughs.
  7. Assign a magnitude to each half-cycle equal to the stress difference between its start and termination.
  8. Pair up half-cycles of identical magnitude (but opposite sense) to count the number of complete cycles. Typically, there are some residual half-cycles.

Read more about this topic:  Rainflow-counting Algorithm