# 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.

Note: 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’

Inputs: K - cyclic strength coefficient n - strain hardening exponent E - The modulus of elasticity. Ensure this is in the same units for which K and n were obtained (typically MPa) max_strain - the maximum strain to use for cyclic loading when plotting the hysteresis loop. max_stress - the maximum stress to use for cyclic loading when plotting the hysteresis loop. min_strain - if this is not -max_strain then specify it here. Optional input. min_stress - if this is not -max_stress then specify it here. Optional input.

*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

initial_load_direction - ‘tension’ or ‘compression’. Default is tension.

Outputs: The stress-strain plot will always be generated. Use plt.show() to show it.