Fatigue Rainflow
fatigue_rainflowCounts fatigue cycles from stress or force histories using ASTM E1049 three-point rainflow, then estimates Miner damage with Basquin/Goodman-family corrections, histograms, and CSV artifacts.
Instructions
ASTM E1049 three-point rainflow with half-cycle residue, optional hysteresis gate, range histogram and range-mean matrix. Basquin/Goodman-family Miner damage, endurance cutoff or Haibach extension. Uniaxial stress or count-only force histories; at most 1,000,000 samples; CSV artifacts. Reports the history min/max and warns about a dominant cycle (over 50 % of the damage) or isolated single-sample spikes.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "fatigue_rainflow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| closed | No | True treats history as periodic: close and rotate to a global maximum; paired residue becomes full cycles. | |
| history | No | Flat JSON number list, e.g. '[0,100,-100,0]'; <=1,000,000 points, 24 MB; '' uses history_file. | |
| repeats | No | Number of identical history blocks, dimensionless >0..1e12, default 1; damage scales linearly. | |
| basquin_a | No | Fatigue Basquin coefficient A, e.g. '1000 MPa'; with b enables damage; '' omits or uses sn_points. | |
| basquin_b | No | Fatigue Basquin slope b, dimensionless -1..-0.00001; used with A; e.g. -0.1. | |
| mean_bins | No | Equal-width range-mean matrix mean bins, 1..128, default 20; matrix has at most 32768 cells. | |
| sn_points | No | Alternative two failure points 'stress,cycles;stress,cycles', e.g. '400 MPa,1000;200 MPa,1e6'; slope b>=-1; '' omits. | |
| below_knee | No | none (default endurance cutoff), elementary (same slope), or haibach (2m-1, m=-1/b) below the knee. | none |
| hysteresis | No | Peak-valley reversal gate, same dimension as samples, e.g. '2 MPa'; '' means zero, endpoints retained. | |
| range_bins | No | Equal-width histogram range bins, 1..256, default 20; edges include the maximum range. | |
| mean_method | No | Per-cycle correction: none, goodman, gerber, soderberg, morrow, swt or walker; compressive mean gives no benefit. | none |
| history_file | No | Numeric CSV path, one value column or time,value, optional header line, <=48 MB; '' uses inline history. | |
| history_kind | No | stress for stress counting/damage, force for count-only loads; selects the sample_scale dimension. | stress |
| sample_scale | No | Physical value of one history unit, e.g. '1 MPa' for stress or '1 N' for force; required in all modes. | |
| walker_gamma | No | Walker gamma on amplitude, dimensionless 0..1, default .5; used only for Walker per-cycle correction. | |
| reference_life | No | Cycles over which to distribute block damage as constant amplitude, e.g. '1e6 cycle'; '' omits equivalent range. | |
| yield_strength | No | Material tensile yield strength, e.g. '400 MPa'; Soderberg requires it, otherwise optional peak check; '' omits. | |
| endurance_limit | No | Optional S-N endurance amplitude, e.g. '150 MPa'; sets knee from A,b; '' means no knee. | |
| ultimate_strength | No | Material ultimate tensile strength, e.g. '600 MPa'; required by Goodman/Gerber; '' omits. | |
| fatigue_strength_coefficient | No | Morrow fatigue coefficient sigma_f', e.g. '900 MPa'; required by Morrow; '' omits. |