# palmgren_miner_linear_damage

class reliability.PoF.palmgren_miner_linear_damage(rated_life, time_at_stress, stress)

Uses the Palmgren-Miner linear damage hypothesis to calculate the outputs.

Parameters:
• rated life (array, list) – How long the component will last at a given stress level.

• time_at_stress (array, list) – How long the component is subjected to the stress that gives the specified rated_life

• stress (float, int) – What stress the component is subjected to. This is not used in the calculation but is required for printing the output. Ensure that the time_at_stress and rated life are in the same units as the answer will also be in those units

Returns:

None – The printed results are the only output.

Notes

The output will print the results to the console. The printed results include:

• Fraction of life consumed per load cycle

• service life of the component

• Fraction of damage caused at each stress level

Example usage: Ball bearings are fail after 50000 hrs, 6500 hrs, and 1000 hrs, after being subjected to a stress of 1kN, 2kN, and 4kN respectively. If each load cycle involves 40 mins at 1kN, 15 mins at 2kN, and 5 mins at 4kN, how long will the ball bearings last?

```from reliability.PoF import palmgren_miner_linear_damage
palmgren_miner_linear_damage(rated_life=[50000,6500,1000], time_at_stress=[40/60, 15/60, 5/60], stress=[1, 2, 4])

'''
Palmgren-Miner Linear Damage Model results:
Each load cycle uses 0.01351 % of the components life.
The service life of the component is 7400.37951 load cycles.
The amount of damage caused at each stress level is:
Stress =  1 , Damage fraction = 9.86717 %.
Stress =  2 , Damage fraction = 28.463 %.
Stress =  4 , Damage fraction = 61.66983 %.
'''
```