https://raw.githubusercontent.com/MatthewReid854/reliability/master/docs/images/logo.png

stress_strain_diagram

class reliability.PoF.stress_strain_diagram(K, n, E, max_strain=None, max_stress=None, min_stress=None, min_strain=None, print_results=True, initial_load_direction='tension')

This function plots the stress-strain diagram.

If you do not have the parameters K, n, but you do have stress and strain data then you can use the function ‘stress_strain_life_parameters_from_data’ to calculate K and n.

Parameters:
  • K (float, int) – The cyclic strength coefficient

  • n (float, int) – The strain hardening exponent

  • E (float, int) – The modulus of elasticity. Ensure this is in the same units for which K and n were obtained (typically MPa).

  • max_strain (float, int) – The maximum strain to use for cyclic loading when plotting the hysteresis loop.

  • max_stress (float, int) – The maximum stress to use for cyclic loading when plotting the hysteresis loop.

  • min_strain (float, int, optional) – If this is not -max_strain then specify it here. Optional input.

  • min_stress (float, int, optional) – Tf this is not -max_stress then specify it here. Optional input.

  • initial_load_direction (str, optional) – Must be ‘tension’ or ‘compression’. Default is tension.

Returns:

None – The plot is the only output. All calculated values are shown on the plot.

Notes

When specifying min and max stress or strain, Do not specify both stress and strain as the corresponding value will be automatically calculated. Only specify the min if it is not -max.