fatpack
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.
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.
Metadata
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)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| fatpack-0.7.8.tar.gz | 16.9 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|
Security for fatpack 0.7.8
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.