Skip to main content

HLrainflow

HLrainflow

A simple and efficient implementation of the Rainflow counting algorithm for fatigue analysis in Python.

Features

  • Rainflow cycle counting for fatigue analysis
  • Lightweight and dependency-free
  • Supports peak-valley sequences or raw time-series input
  • Easy to test and extend

Installation

You can install the package via pip:

pip install HLrainflow

Usage

ASTM E1049-85(2017) Rainflow Counting Example
Refer to Astm e 1049 85 standard practice for cycle counting in fatigue analysis

from HLrainflow import rainflow
Sample1=[-2,1,-3,5,-1,3,-4,4,-2]
peak=Sample1
hl=rainflow.HL()
hl.SetPeak(peak)
halfR,halfM=hl.hloop()
print('half range=',halfR)
print('half mean=',halfM)  

Example Output

half range= [4.0, 4.0, 3.0, 4.0, 8.0, 9.0, 8.0, 6.0]
half mean= [1.0, 1.0, -0.5, -1.0, 1.0, 0.5, 0.0, 1.0]

License

This project is licensed under the MIT License - see the LICENSE file for details.

Release files for HLrainflow 0.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for HLrainflow 0.0.5
File Size Uploaded
hlrainflow-0.0.5.tar.gz 4.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for HLrainflow 0.0.5
File Interpreter ABI Platform
hlrainflow-0.0.5-py3-none-any.whl Python 3 none any Details

Total release size: 9.0 kB

Release files / hlrainflow-0.0.5.tar.gz

Download URL hlrainflow-0.0.5.tar.gz
Size 4.4 kB
Tags Source
SHA-256 checksum
How to use checksums
dc04b2e6e798b7135794d17be0e083865653aa455983ab690aa5980cce663ad4
BLAKE2b-256 checksum
How to use checksums
d3b64664c500a0808a9ae31c23c71233c51adb795aa1277d8279248f9375c41d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.13

Release files / hlrainflow-0.0.5-py3-none-any.whl

Download URL hlrainflow-0.0.5-py3-none-any.whl
Size 4.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
67470b2636fa2cebef7aa8671b2855f91074726dc5b9f60156d1cb30645fea8c
BLAKE2b-256 checksum
How to use checksums
c8673cb6a7b0bcd63955899188e86d40edca901726bb56f93ecf42de6e9390f9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.13

Release history Release notifications | RSS feed

This release

0.0.5 This release

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page