rainflow

Rainflow counting fatigue analysis.

Syntax

R = rainflow(signal,numbins,minrange,maxrange,output)

Inputs

signal
The stress history.
Type: double
Dimension: vector
numbins
Total number of bins specified.
Type: integer
Dimension: scalar
minrange
Minimum value a bin can have for its range of real time data.
Type: double
Dimension: scalar
maxrange
Maximum value a bin can have for its range of real time data.
Type: double
Dimension: scalar
output
Indicate the type of data returned.
The available options are as follows:
  • 0: Range
  • 1: Mean
  • 2: Z range/mean matrix
  • 3: Sum across range
  • 4: Sum across mean
Type: double
Dimension: scalar

Outputs

R
The reduced stress history.
Type: vector

Example

Compute the rainflow output of a stress history.

h = [0,1,2,3,4,5,6,5,4,3,4,5,6,7,8,9,10];
R = rainflow(h, 3, 2.5, 8.5, 1)
R = [Matrix] 1 x 3
3.50000  5.50000  7.50000

Comments

A gate input to control hysteresis slope reversal and remove points due to external noise is currently unsupported.