Fatigue analysis in python
Project description
fatpack
Python package for fatigue analysis of data series. The package requires numpy.
Installation
Either download the repository to your computer and install, e.g. by pip
pip install .
or install directly from the python package index.
pip install fatpack
Usage
The package provides functions for rainflow cycle counting and defining endurance curves, which can easily be combined with a damage accumulation rule to determine the fatigue damage in a component. The code example below shows how fatigue damage can be calculated:
import numpy as np
import fatpack
# Assume that `x` is the data series, we generate one here
x = np.random.normal(0., 30., size=10000)
# Extract the stress ranges by rainflow counting
S = fatpack.find_rainflow_ranges(x)
# 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.
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.6.2.tar.gz
.
File metadata
- Download URL: fatpack-0.6.2.tar.gz
- Upload date:
- Size: 12.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 18075374c11997d83252ff67c6e4c639c736ac5d80c422021280818fae678657 |
|
MD5 | 5e755694afc019c382fda7e64191aae1 |
|
BLAKE2b-256 | d8e9b234702e0d07963e8dd97605c5c4622e4e6418c448e2f91adf541767475b |
File details
Details for the file fatpack-0.6.2-py2.py3-none-any.whl
.
File metadata
- Download URL: fatpack-0.6.2-py2.py3-none-any.whl
- Upload date:
- Size: 13.2 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b011282d3d6bd2f166c1bcf7c4955d91f51d6a58a33f1d2c37947559491f3a50 |
|
MD5 | 9794c622c67c016d68753a65acf22861 |
|
BLAKE2b-256 | 2735b85206def68a15e7b2bd3e6c411b88d5fc471ac6a09a3498369fcdcc350c |