Skip to main content

Fatigue analysis in python

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fatpack-0.7.8.tar.gz (16.9 kB view details)

Uploaded Source

Built Distribution

fatpack-0.7.8-py3-none-any.whl (18.5 kB view details)

Uploaded Python 3

File details

Details for the file fatpack-0.7.8.tar.gz.

File metadata

  • Download URL: fatpack-0.7.8.tar.gz
  • Upload date:
  • Size: 16.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.5

File hashes

Hashes for fatpack-0.7.8.tar.gz
Algorithm Hash digest
SHA256 30d8679f5f91c54879da1058357b72ceb1f8b025410eb14fcb3cc69a17299659
MD5 8a25605543287b4f938e6e730533c305
BLAKE2b-256 5735245f09133125e6de7b35224279bdc9ac6e46d44a3809cc951fa41544bc39

See more details on using hashes here.

File details

Details for the file fatpack-0.7.8-py3-none-any.whl.

File metadata

  • Download URL: fatpack-0.7.8-py3-none-any.whl
  • Upload date:
  • Size: 18.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.5

File hashes

Hashes for fatpack-0.7.8-py3-none-any.whl
Algorithm Hash digest
SHA256 0c3346a22c59b3a47149315e607ac97008cb61f021fe520aa7793668075b75a2
MD5 35c33267bd8aa34331226647fabc896e
BLAKE2b-256 c43ce5c4476caa6e9019337484d998382da52f2ec987be276033491dd441c809

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page