Skip to main content

logo_img

fatpack

https://zenodo.org/badge/113768119.svg

Python package for fatigue analysis of data series. The package requires numpy.

Installation

Either install from the github repository (latest version),

pip install git+https://github.com/gunnstein/fatpack.git

install from the python package index

pip install fatpack

or from the conda-forge:

conda install --channel=conda-forge fatpack

Usage

The package provides functionality for rainflow cycle counting, defining endurance curves, mean and compressive stress range correction and racetrack filtering. The code example below shows how fatigue damage can be calculated:

import numpy as np
import fatpack


# Assume that `y` is the data series, we generate one here
y = np.random.normal(0., 30., size=10000)

# Extract the stress ranges by rainflow counting
S = fatpack.find_rainflow_ranges(y)

# Determine the fatigue damage, using a trilinear fatigue curve
# with detail category Sc, Miner's linear damage summation rule.
Sc = 90.0
curve = fatpack.TriLinearEnduranceCurve(Sc)
fatigue_damage = curve.find_miner_sum(S)

An example is included (example.py) which extracts rainflow cycles, generates the rainflow matrix and rainflow stress spectrum, see the figure presented below. The example is a good place to start to get into the use of the package.

example_img

Additional examples are found in the examples folder.

Support

Please open an issue for support.

Contributing

Please contribute using Github Flow. Create a branch, add commits, and open a pull request.

Release files for fatpack 0.7.8

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

Source distribution (sdist)

Source distribution for fatpack 0.7.8
File Size Uploaded
fatpack-0.7.8.tar.gz 16.9 kB Details

Built distribution (wheel)

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

Total release size: 35.4 kB

Release files / fatpack-0.7.8.tar.gz

Download URL fatpack-0.7.8.tar.gz
Size 16.9 kB
Tags Source
SHA-256 checksum
How to use checksums
30d8679f5f91c54879da1058357b72ceb1f8b025410eb14fcb3cc69a17299659
BLAKE2b-256 checksum
How to use checksums
5735245f09133125e6de7b35224279bdc9ac6e46d44a3809cc951fa41544bc39
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.5

Release files / fatpack-0.7.8-py3-none-any.whl

Download URL fatpack-0.7.8-py3-none-any.whl
Size 18.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0c3346a22c59b3a47149315e607ac97008cb61f021fe520aa7793668075b75a2
BLAKE2b-256 checksum
How to use checksums
c43ce5c4476caa6e9019337484d998382da52f2ec987be276033491dd441c809
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.5

Release history Release notifications | RSS feed

This release

0.7.8 This release

2 release files

0.7.7

2 release files

0.7.5

2 release files

0.7.3

2 release files

0.7.2

2 release files

0.7.0

2 release files

0.6.2

2 release files

0.6.0

2 release files

0.5.8

2 release files

0.5.7

2 release files

0.5.6

2 release files

0.5.5

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