Skip to main content

Python interface for rainflow counting

Project description

rfcnt a rainflow counting algorithm Python package

"Rainflow Counting" consists of four main steps:

  1. Hysteresis Filtering

  2. Peak-Valley Filtering

  3. Discretization

  4. Four Point Counting Method:

                * D  
               / \       Closed, if min(B,C) >= min(A,D) && max(B,C) <= max(A,D)  
        B *<--/          Slope B-C is counted and removed from residue  
         / \ /  
        /   * C  
     \ /  
      * A  
    

These steps are fully documented in standards such as
ASTM E1049 "Standard Practices for Cycle Counting in Fatigue Analysis" [1]
This implementation uses the 4-point algorithm mentioned in [3,4] and the 3-point HCM method proposed in [2] as well as the ASTM E 1049 (2011) standard in [1]. To take the residue into account, you may implement a custom method or use some predefined functions.

Install

pip install {packagename}.tar.gz --no-build-isolation --no-deps

where {packagename} is the current package release, for example:

pip install rfcnt-0.4.7.tar.gz --no-build-isolation --no-deps

Test

rfcnt packages include some unit tests, which can be run:

python -m rfcnt.run_tests

Examples

For a quick introduction you can run and inspect a small example:

python -m rfcnt.run_examples


References:

[1] "Standard Practices for Cycle Counting in Fatigue Analysis."
ASTM Standard E 1049, 1985 (2011). West Conshohocken, PA: ASTM International, 2011.
[2] "Rainflow - HCM / Ein Hysteresisschleifen-Zaehlalgorithmus auf werkstoffmechanischer Grundlage"
U.H. Clormann, T. Seeger
1985 TU Darmstadt, Fachgebiet Werkstoffmechanik
[3] "Zaehlverfahren zur Bildung von Kollektiven und Matrizen aus Zeitfunktionen"
FVA-Richtlinie, 2010.
[https://fva-net.de/fileadmin/content/Richtlinien/FVA-Richtlinie_Zaehlverfahren_2010.pdf]
[4] Siemens Product Lifecycle Management Software Inc., 2018.
[https://community.plm.automation.siemens.com/t5/Testing-Knowledge-Base/Rainflow-Counting/ta-p/383093]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

rfcnt-0.5.0-cp311-cp311-win_amd64.whl (192.9 kB view details)

Uploaded CPython 3.11Windows x86-64

rfcnt-0.5.0-cp39-cp39-win_amd64.whl (192.8 kB view details)

Uploaded CPython 3.9Windows x86-64

File details

Details for the file rfcnt-0.5.0-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: rfcnt-0.5.0-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 192.9 kB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.9

File hashes

Hashes for rfcnt-0.5.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 c6ecfdeddfccf0b89eaeec960d70aaa8114f19bd19490eabcf97b654f80a7f65
MD5 e03f7c539719d2dd60fa7e05b8595873
BLAKE2b-256 99c99d65dfbb739d302f2856c0f585e56d4446263a54858465d57788b101a707

See more details on using hashes here.

File details

Details for the file rfcnt-0.5.0-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: rfcnt-0.5.0-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 192.8 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.9

File hashes

Hashes for rfcnt-0.5.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 23d680dd9afed2063190ae9180f692217c3ec20e74291953f2aecb111245c695
MD5 c9586281cf8d5772a9dbaffbdb879de6
BLAKE2b-256 50a9c0a759cdf61d5bd8ff92e842ebb01530e95bbf0306253883c430786cb97c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page