Fatigue analysis in python
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file fatpack-0.7.5.tar.gz
.
File metadata
- Download URL: fatpack-0.7.5.tar.gz
- Upload date:
- Size: 16.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42fdb1c0426f04b0d1452223d44b20666099287387b5143d1ebb56815ddb6fd3 |
|
MD5 | adeef246c1cbabcfebd47816d2ea49aa |
|
BLAKE2b-256 | fcf26bb645dd92df72de46b208de7d89ad1347fe6d6c9f258c4960bb5dc7bfe8 |
File details
Details for the file fatpack-0.7.5-py3-none-any.whl
.
File metadata
- Download URL: fatpack-0.7.5-py3-none-any.whl
- Upload date:
- Size: 18.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a937bd576ff5367692d65bd54fabd2e0ea302c5dfa9b9dd918b3293a736f4514 |
|
MD5 | ae598ba33c18a404c25a0b2bf46cd94d |
|
BLAKE2b-256 | c20e41c836754cebe32e4ebaf9bf846be99db068da26339e5a635db46dfccf16 |