Rainflow Counting

Simulation
Introduced by
Tatsuo Endo
Year
1974
Type
Cycle counting algorithm
Family
Fatigue analysis

What does it do?

Rainflow counting is a cycle-counting procedure that reduces an irregular stress or strain history to a set of closed cycles, each with a stress range and a mean stress, so that a fatigue damage model can be applied to them.

It is commonly paired with Miner's linear cumulative damage hypothesis (Miner, 1945). ASTM E1049-21, Standard Practices for Cycle Counting in Fatigue Analysis, is a published standard practice for cycle counting in fatigue analysis.

The intuition behind the method

A stress history under variable loading is a jagged signal that is hard to interpret directly. Fatigue damage depends on the size of each excursion, but a simple peak count loses information about which reversals belong together. Rainflow counting pairs each stress reversal with a matching reversal, so that smaller excursions nested inside larger ones are counted as separate cycles rather than being double-counted or ignored. A common way to picture the pairing is rain running down a roof with peaks and valleys: each drip follows the slope until it meets a valley or a level equal to where it started. The result is a list of cycles intended to reflect the actual sequence of loading.

History

The rainflow procedure addresses fatigue under variable-amplitude loading, which is common in practice. Its linear damage use is usually combined with Miner's 1945 cumulative damage analysis, which proposed that damage accumulates as the fraction of life used at each stress level and that failure occurs when the total reaches 100 per cent. ASTM E1049-21 is a published practice for cycle counting in fatigue analysis.

When to use it

Choose rainflow counting when the loading is variable in amplitude or irregular in time, such as service load histories, vibration records, or wind and wave loads, and when the question concerns fatigue damage under that history. It is a counting step, so it is useful whenever a damage model will be applied to a non-constant-amplitude record. Do not use it for constant-amplitude loading, where a simple cycle count is sufficient. Avoid it, or filter the record carefully first, when the signal is dominated by measurement noise that cannot be separated from real reversals. The counting procedure does not itself require a ductile material; the ductility and linear-damage assumptions belong to the damage model applied afterwards and must be checked separately. For brittle fracture or crack growth governed by a different mechanism, select a method built for that mechanism.

Limitations and considerations

  • Damage is estimated after counting with Miner's linear summation. Miner (1945) concluded that a simple and conservative analysis is possible using the cumulative damage concept, on tests of an aluminium alloy. The linear sum is not an exact law, and load-sequence and interaction effects are not captured by the count itself.
  • The cycle list depends on the turning points extracted, so small changes in the record, including noise, can add or remove reversals and change the counted cycles.
  • Each cycle is summarised by a range and a mean, so the count does not by itself include the mean-stress correction that many materials require.
  • The procedure is a counting step and does not describe brittle fracture or crack growth; its output needs a damage model suited to the material and failure mechanism.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Handles irregular histories: it extracts closed cycles from an arbitrary sequence of reversals, so it applies to random and non-stationary records where a simple amplitude count is ambiguous.
  • Order-aware: the pairing depends on the sequence of reversals and not only on their magnitudes, so the cycle list reflects when larger excursions occur relative to smaller ones.
  • Deterministic for a fixed rule: for the same turning-point sequence and the same stated pairing variant, the cycle list is fixed, so analysts applying that variant should obtain the same count. Different variants can give different counts.

Applications

  • Automotive durability: counting stress cycles in vehicle structures from measured load histories to assess design life.
  • Aerospace structures: counting fatigue cycles in flight-load and gust records for wing and fuselage components.
  • Wind energy: counting blade load cycles under turbulent wind to estimate fatigue damage.
  • Railway components: counting load cycles from acceleration, braking and curve forces on wheels and axles.
  • Marine structures: counting cycles in irregular wave-induced loads on mooring lines and hulls.
  • Electronics: counting thermal cycle reversals to estimate fatigue damage in solder joints and leads.

How it works

How it works

1

Record a time history of stress or strain at the location of interest under representative operating or test loading. The sampling must capture the reversals that matter for fatigue, and the record is used in its original time order.

2

Reduce the record to its turning points, the alternating local peaks and valleys. If measurement noise would create spurious reversals, filter or smooth the record first, while checking that real small reversals are not removed.

3

Scan the turning-point sequence in time order and apply the four-point procedure: an inner range is closed as a full cycle when it is bounded by neighbouring ranges that are not smaller than it, and it is then removed from the sequence. Reversals left unpaired at the end of the scan are counted as half-cycles. Variants of the pairing rule exist, so the exact rule used should be stated when results are reported.

4

Assign each extracted cycle its stress range and mean stress, and pass them to a damage model such as an S-N curve combined with Miner's rule. Rainflow counting supplies the cycles but not the damage per cycle. A common mean-stress correction is Goodman's relation, which converts a non-zero mean stress into an equivalent fully reversed stress amplitude: σa,eq = σa / (1 − σm/σu), where σa is the stress amplitude, σm the mean stress and σu the ultimate tensile strength. Its applicability depends on the material and the loading, so the correction chosen should be justified for the material at hand.

5

Sum the damage fractions ni/Ni over all counted cycles, using Miner's linear hypothesis, where ni is the count at stress range i and Ni the S-N life at that range. Following Miner's concept, failure is predicted when the total reaches 100 per cent, that is D = 1. The result is a model-based estimate that inherits the assumptions of the damage model and of the mean-stress treatment, so it should be read as a comparative design indicator rather than a direct measure of remaining life.

Formula
D = \sum_{i} \frac{n_i}{N_i}

Common pitfalls

  • Counting high-frequency noise as turning points inflates the cycle count and the predicted damage. Filter or smooth the record first, and check that the filter does not remove real small reversals that contribute to damage.
  • Treating Miner's linear summation as exact: sequence effects and load interaction can make the linear sum misleading, so a total near the failure criterion should not be read as a precise prediction of life.
  • Ignoring mean stress: rainflow counts ranges and means, but the fatigue strength of many materials depends on a static offset, so the damage model must include a mean-stress treatment; otherwise damage may be under- or overestimated.

Frequently asked questions

How does rainflow counting differ from peak-and-valley or level-crossing counting?

Peak-and-valley counting records successive peaks and valleys without matching them. Level-crossing counting records how often the signal crosses chosen levels. Rainflow pairs reversals by the rule described in the next answer, so smaller excursions nested inside larger ones are separated into their own cycles. For irregular histories this usually gives a more faithful cycle list, but the damage estimate still depends on the damage model applied afterwards.

What is the 'rain-flow' rule exactly?

Picture rain running down a roof with peaks and valleys: each drip follows the slope until it meets a valley or a level equal to its starting height. In the algorithm, the reversals are scanned in time order. An inner range is closed as a full cycle when it is bounded by neighbouring ranges that are not smaller than it, and the remaining unpaired reversals are counted as half-cycles. Several variants of this rule exist, and the variant used should be stated when results are reported. The four-point description above is one such form.

Do I need to smooth the stress history before rainflow counting?

Yes, if the data contain noise. High-frequency oscillations or measurement noise create spurious peaks and valleys, which inflate cycle counts and damage predictions. Apply a low-pass filter or smoothing step before extracting turning points. Be careful, however, not to remove small real reversals that contribute to fatigue, and check how sensitive the cycle count is to the filter setting.

Can rainflow counting be used for corrosion-fatigue or fatigue-crack propagation?

Rainflow counting is independent of the damage model. The extracted cycles can be passed to a crack-growth law such as the Paris equation instead of an S-N curve with Miner's rule. Crack growth is nonlinear and sequence-dependent, so the linear summation may not hold. For corrosion-fatigue, a common practical approach is to use S-N data that reflect the corrosive environment, which typically means lower fatigue strength.

How do I interpret the rainflow output for design decisions?

Rainflow gives a list of cycle ranges and mean stresses, often summarised as a histogram. Each cycle is compared with the S-N curve (or a mean-stress diagram such as the Goodman diagram) for the material at the relevant stress level, and the damage fractions are summed with Miner's rule. A sum reaching 1 indicates predicted failure under the model. Treat the result as a comparative design tool to size components, select materials, or reduce design stresses, not as a guarantee of life.

Related methods

Sources

  1. Goodman, J. (1899). Mechanics Applied to Engineering. Longman, Green and Co.

    Open publication reference
  2. Miner, M. A. (1945). Cumulative damage in fatigue. Journal of Applied Mechanics, 12(3), 159-164.

    Open DOI reference
  3. Endo, T., Matsumoto, T., Hasebe, T., & Mori, K. (1974). Damage evaluation of metals for random or varying loading. Proceedings of the Symposium on Mechanical Behavior of Materials.

    Open publication reference
  4. ASTM International (2021). E1049-21: Standard Practices for Cycle Counting in Fatigue Analysis.

    Open publication reference