GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - JackJamesDawson/fatigue-cycle-counting: Fast C++ implementations of fatigue cycle-counting algorithms with Python bindings.

BranchesTags
Open more actions menu

Latest commit

 

History

3 Commits
3 Commits

Folders and files

NameName
Last commit message
Last commit date
.zed
.zed
 
 
include/fatigue_cycle_counting
include/fatigue_cycle_counting
 
 
python/fatigue_cycle_counting
python/fatigue_cycle_counting
 
 
src
src
 
 
tests
tests
 
 
.clang-format
.clang-format
 
 
.clang-tidy
.clang-tidy
 
 
.clangd
.clangd
 
 
.editorconfig
.editorconfig
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
.python-version
.python-version
 
 
CMakeLists.txt
CMakeLists.txt
 
 
CMakePresets.json
CMakePresets.json
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
THIRD_PARTY_LICENSES
THIRD_PARTY_LICENSES
 
 
pyproject.toml
pyproject.toml
 
 
ruff.toml
ruff.toml
 
 
uv.lock
uv.lock
 
 

Repository files navigation

fatigue-cycle-counting

Fast fatigue cycle-counting algorithms implemented in modern C++ with Python bindings.

Warning

This project is under active development. Its public API is not yet stable, and it has not been independently validated or certified for safety-critical engineering use.

Overview

fatigue-cycle-counting seeks to deliver clear, efficient, and well-tested implementations of the ASTM E1049-85 fatigue cycle-counting methods.

The numerical core is written in C++20, with Python bindings provided through pybind11. The native implementation is being developed as a reusable library rather than embedding the counting logic directly within the Python interface.

The project is intended for engineers, researchers, and developers who need cycle-counting functionality without placing the performance-critical implementation in Python.

The principal design objectives are:

  • correct and explicitly described algorithm behaviour;
  • a small, typed Python interface;
  • a reusable native C++ core;
  • predictable memory use and minimal unnecessary copying;
  • comprehensive tests against independently derived reference cases; and
  • reproducible source builds and binary wheels across supported platforms.

Project status

The package is currently in early development. Packaging, native-module loading, typing infrastructure, and the build system are in place, but the public counting API is not yet stable.

The planned scope includes:

  • level-crossing counting;
  • restricted level-crossing counting;
  • peak counting;
  • simple-range counting;
  • range-pair counting;
  • rainflow counting; and
  • simple rainflow counting.

Supporting preprocessing operations, including the removal of consecutive duplicate values and the identification of reversals, will be implemented where required by the counting methods.

The scope, interfaces, and returned data structures may change during development. Production systems should not rely upon the current API without pinning an exact release and independently checking its behaviour.

Standards and validation

The project is intended as an independent implementation of cycle-counting methods described in the engineering literature and associated with ASTM E1049-85, Standard Practices for Cycle Counting in Fatigue Analysis.

ASTM International does not sponsor, approve or endorse this project. This repository does not reproduce the standard, and it is not a substitute for obtaining and reading the applicable edition from ASTM International.

Planned validation includes:

  • independently derived examples with analytically verifiable results;
  • comparison between native and Python-facing behaviour;
  • edge cases, including empty, constant, repeated-value, and minimal-length series;
  • malformed-input and non-finite-value handling;
  • conservation and consistency properties where applicable; and
  • cross-platform testing across supported compilers and Python versions.

Published tests demonstrate only the cases that have been tested. Test coverage does not establish that the software is suitable for a particular engineering assessment or that its behaviour is identical to every interpretation or implementation of the referenced methods.

Engineering and safety notice

Fatigue assessment can influence safety-critical decisions. Cycle counts produced by this software must be reviewed and independently validated by a suitably qualified person before being used for design, integrity management, remaining-life assessment, or any other decision where incorrect results could cause injury, loss of life, environmental damage, property damage, or financial loss.

Users are responsible for:

  • selecting an appropriate counting method;
  • understanding the assumptions and limitations of the selected method;
  • confirming input units, sign conventions, preprocessing, and sampling quality;
  • validating results against applicable standards, procedures, and independent calculations;
  • determining whether the software is suitable for the intended application; and
  • complying with all applicable engineering, legal, and regulatory requirements.

This notice supplements, but does not replace, the warranty and liability disclaimer in the licence.

Licence

Original project code is licensed under the permissive BSD 2-Clause License.

The Python extension contains pybind11 code under the BSD 3-Clause License. Its copyright notice and full licence text are provided in THIRD_PARTY_LICENSES.

Commercial use, modification, and redistribution are permitted subject to the applicable licence notices and conditions. See LICENSE and THIRD_PARTY_LICENSES for the complete terms.

Copyright (c) 2026 Jack James Dawson.

About

Fast C++ implementations of fatigue cycle-counting algorithms with Python bindings.

Topics

astm-e1049-85cmakecppcycle-countingfatiguepybind11pythonrainflow

Resources

Readme
BSD-2-Clause license
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.