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.5.tar.gz (16.9 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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

Hashes for fatpack-0.7.5.tar.gz
Algorithm Hash digest
SHA256 42fdb1c0426f04b0d1452223d44b20666099287387b5143d1ebb56815ddb6fd3
MD5 adeef246c1cbabcfebd47816d2ea49aa
BLAKE2b-256 fcf26bb645dd92df72de46b208de7d89ad1347fe6d6c9f258c4960bb5dc7bfe8

See more details on using hashes here.

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

Hashes for fatpack-0.7.5-py3-none-any.whl
Algorithm Hash digest
SHA256 a937bd576ff5367692d65bd54fabd2e0ea302c5dfa9b9dd918b3293a736f4514
MD5 ae598ba33c18a404c25a0b2bf46cd94d
BLAKE2b-256 c20e41c836754cebe32e4ebaf9bf846be99db068da26339e5a635db46dfccf16

See more details on using hashes here.

Supported by

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