Question: Data = DataRead [ ' Data ' ] In the 2 D array 'Data', rows correspond to data points, 1 s t to 5 t
DataDataReadData
In the D array 'Data', rows correspond to data points, to columns correspond to time, strain E strain L stress S and stress S respectively. and stand for two directions in the biaxial test. For the following questions, use builtin functions whenever possible.
Using linear spline interpolation, find strain values E when stress S is at kPa and kPa Repeat the same process and find strain values E when stress S is at kPa and kPa Print the results with an informative statement. pts
Find the slope of the strainstress curve ES when stress S is at kPa and kPa Repeat the same process and find the slope of the strainstress curve ES when stress S is at kPa and kPa Hint: We may not have stress data at exactly kPa and kPa But we can find the closest point by calculating the distance between the array containing stress data and kPa or kPa Consider finding the index of the minimum distance using npargmin'. npargmin' returns the index of the minimum value in an array
Print the calculated slopes slopes in total with an informative statement. pts
Plot the data points, linear spline interpolation curves, and the slope lines at kPa and kPa Plot ES and ES in the same graph. Adjust the range of the slope line so the shape of the original stressstrain curves looks like the letter J The result should look like the granh helow von may use different colors pts
Strain energy density can be obtained by integrating stress wrt strain. ie where ET E are strains at time T Using a for loop, compute the strain energy density at each time point with trapezoidal and Simpson's rule, then plot the strain energy density versus E Calculate the relative percentage error between trapezoidal and Simpson's rule using the last data point and print the error on the graph. The result should look like the graph below you may use different colors pts
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
