Skip to content

Latest commit

 

History

History
222 lines (154 loc) · 5.6 KB

File metadata and controls

222 lines (154 loc) · 5.6 KB

Rainflow Documentation Index

Welcome to the comprehensive documentation for the Rainflow Counting library.

Getting Started

New to Rainflow counting? Start here:

  1. algorithm.rst - Understanding the rainflow algorithm
  2. installation.rst - Building and installing
  3. examples.rst - Quick code examples

Core Documentation

Algorithm & Methods

algorithm.rst
Core rainflow counting algorithm explanation with 4-point method
astm_method.rst
ASTM E 1049 3-point method vs. 4-point algorithm - algorithmic and residue handling comparison
residue_methods.rst
Methods for handling unclosed cycles (residue)

Implementation Guides

cpp_wrapper.rst
C++ wrapper guide - RAII, templates, STL integration
minimal_build.rst
Building minimal version for embedded systems (RFC_MINIMAL)
delegates.rst
Custom behavior via delegate functions
turning_points.rst
External turning point storage and management

Advanced Features

damage_history.rst
Tracking damage accumulation over time
spread_damage.rst
Transient damage distribution methods
tp_prune.rst
RFC_tp_prune() logic and usage

Reference Documentation

features.rst
Complete feature list and compile-time options
installation.rst
Platform-specific build instructions
examples.rst
Code examples in Python, C/C++, and MATLAB
references.rst
Bibliography and standards citations

Quick Reference

Compile-Time Options

# Full featured build
cmake -S. -Bbuild \
    -DRFC_TP_SUPPORT=1 \
    -DRFC_HCM_SUPPORT=1 \
    -DRFC_ASTM_SUPPORT=1 \
    -DRFC_DH_SUPPORT=1 \
    -DRFC_USE_DELEGATES=1

# Minimal build (embedded systems)
cmake -S. -Bbuild -DRFC_MINIMAL=1

Common Tasks

Enable ASTM counting:
See astm_method.rst
Track damage over time:
See damage_history.rst
Handle residue:
See residue_methods.rst
Custom memory allocation:
See delegates.rst
Prune turning points:
See tp_prune.rst

Documentation by Topic

By Use Case

Embedded Systems
Performance Optimization
Research & Analysis
Integration

By Programming Language

C
C++
Python

By Feature

RFC_MINIMAL
minimal_build.rst
RFC_TP_SUPPORT
turning_points.rst
RFC_HCM_SUPPORT
algorithm.rst (HCM section)
RFC_ASTM_SUPPORT
astm_method.rst
RFC_DH_SUPPORT
damage_history.rst
RFC_USE_DELEGATES
delegates.rst

Glossary

Rainflow Counting
Algorithm for extracting fatigue cycles from variable amplitude loading
Turning Point
Local maximum or minimum in the load signal
Residue
Unclosed cycles remaining after rainflow counting
Damage History
Per-sample damage increments attributed to each input sample when a cycle closes; apply a prefix sum (np.cumsum) to obtain cumulative damage over time
Wöhler Curve (S-N Curve)
Material fatigue properties relating stress to cycles-to-failure
Miner's Rule
Linear damage accumulation hypothesis
HCM
Hysteresis Counting Method (Clormann/Seeger)
ASTM E 1049
Standard for cycle counting in fatigue analysis
Delegate
User-provided callback function for custom behavior

Contributing

Found an error or want to improve documentation?

License

See the main repository for license information.

---

Last Updated: 2026-03-22 Documentation Version: 0.5.2