stress_strain_life_parameters_from_data(strain, stress, E, cycles=None, print_results=True, show_plot=True)¶
This function will use stress and strain data to calculate the stress-strain parameters: K, n. If cycles is provided it will also produce the strain-life parameters: sigma_f, epsilon_f, b, c. You cannot find the strain-life parameters without stress as we use stress to find elastic strain.
Note: If you already have the parameters K, n, sigma_f, epsilon_f, b, c, then you can use the function ‘stress_strain_diagram’
Inputs: strain - an array or list of strain stress - an array or list of stress E - The modulus of elasticity. Ensure this is in the same units as stress (typically MPa) cycles - the number of cycles to failure. Optional input. Required if you want to obtain the parameters sigma_f, epsilon_f, b, c print_results - True/False. Default is True. show_plot - True/False. Default is True.
Outputs: The stress-strain plot will a be generated if show_plot is True. Use plt.show() to show it. The results will be printed in the console if print_results is True. K - the cyclic strength coefficient n - the cyclic strain hardening exponent sigma_f - the fatigue strength coefficient. Not generated if cycles is not provided. epsilon_f - the fatigue strain coefficient. Not generated if cycles is not provided. b - the elastic strain exponent. Not generated if cycles is not provided. c - the plastic strain exponent. Not generated if cycles is not provided.