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

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

pip install rfcnt-0.4.3.tar.gz

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 Distribution

rfcnt-0.4.3.tar.gz (90.7 kB view details)

Uploaded Source

Built Distribution

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

rfcnt-0.4.3-cp39-cp39-win_amd64.whl (59.4 kB view details)

Uploaded CPython 3.9Windows x86-64

File details

Details for the file rfcnt-0.4.3.tar.gz.

File metadata

  • Download URL: rfcnt-0.4.3.tar.gz
  • Upload date:
  • Size: 90.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.12

File hashes

Hashes for rfcnt-0.4.3.tar.gz
Algorithm Hash digest
SHA256 8caa57078db96d293a78e27df695e11d94c67a5b982c74ba618719430b7f1231
MD5 45afa7c99e53d329344725d4a52fd611
BLAKE2b-256 d09f71085112a834a3c42fc37359c2034e2c38c8bb7deff08688430d47a64d80

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rfcnt-0.4.3-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 59.4 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.12

File hashes

Hashes for rfcnt-0.4.3-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 ef8e4a34b409ac3e6b9ca07da67554f8b4de394c506fd732c18751de3dec5a1e
MD5 db37e676c06851e81569e25fab57b46c
BLAKE2b-256 58e12f5080dd9c1a8e99ded801b9e4cb76facc0d0de0f7319903205cddc285df

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