How do I determine the linear part of a force-displacement curve?

41 views (last 30 days)
Moein M
Moein M on 19 Aug 2020
Commented: schilakwad on 15 Feb 2021
I have a force-displacement graph (the attached file) and I want to find out exactly at what point the linear portion of the graph ends. Please see the picture for more clarification.
I've already smoothed out the curve, so it is noiseless.
I did a quick search but couldn't find anything useful.
Any help would be highly appreciated.

Accepted Answer

Star Strider
Star Strider on 19 Aug 2020
Try this:
T1 = readtable('Moein M force-displacement.xlsx');
T1.Properties.VariableNames = {'Force','Displacement'};
ThrVal = 2.5E+11;
[TF,Sl,Ic] = ischange(T1.Displacement, 'linear','Threshold',ThrVal);
Idx = find(TF);
plot(T1.Force, T1.Displacement)
hold on
plot(T1.Force(Idx(1)), T1.Displacement(Idx(1)), '+r')
hold off
text(T1.Force(Idx(1)), T1.Displacement(Idx(1)), sprintf('\\leftarrowLinear Region End:\n Force = %10.8f\n Displacement = %10.2f', T1.Force(Idx(1)), T1.Displacement(Idx(1))), 'HorizontalAlignment','left', 'VerticalAlignment','top')
Experiment with ‘ThrVal’ to get the result you want. The value I chose appears to do what you want, however it may need some minor adjustments.
The ischange function was introduced in R2017b. Another option is the Signal Processing Toolbox findchangepts function (with different argumnents and behaviour), introduced in R2016a.

Sign in to comment.

More Answers (2)

John D'Errico
John D'Errico on 15 Feb 2021
Edited: John D'Errico on 15 Feb 2021
You have already accepted Star's answer, so you may not even see this answer. But in fact, there is no linear part of such a curve. A perfectly elastic material should show an initially linear behavior, true. So is this force-displacement curve representative of a perfectly linearly elastic material?
But now let us look more carefuly at that initial portion.
axis([0 .1 0 6e5])
So merely by viewing that portion where you think the curve is "linear", we see it does not look at all linear.
K = F<0.1;
mdl = fittype('a*F^2 + b*F','indep','F');
% Note that the model is linear in the parameters, but fit is too dumb to see that.
% so any starting values will eliminate the irritating warning message from fit
% about the lack of starting values.
mdlest = fit(F(K),D(K),mdl,'start',[1 1])
mdlest =
General model:
mdlest(F) = a*F^2 + b*F
Coefficients (with 95% confidence bounds):
a = -3.617e+07 (-3.623e+07, -3.611e+07)
b = 8.393e+06 (8.389e+06, 8.398e+06)
I chose a model with no constant term, since we know that when the force is zero, so must be the displacement.
What is important to see in that fit is the fit is remarkably good over that region, and that the quadratic coefficient is actually more non-zero than the linear coefficient.
hold on
xlabel 'Force'
ylabel 'Displacement'
And that leaves me with the claim this curve is not that of an perfectly elastic material (within bounds before it undergoes plastic deformation) but that of a nonlinearly elastic material. There is essentially NO linear section of the start of that curve.
At best, you may decide to approximate it with a linear section, but that would mistake the true behavior seen here. As well, if this really is the force-displacement curve (I wonder how much you smoothed the curve) I would look to see if the material undergoes plastic deformation, so after you stretch it by a small amount, and then release it, does that mateiral return to the original rest length?
Finally, there is a distinct possibility that whatever tool you used to "smooth" this curve was used inappropriately, causing the curve to APPEAR to be so strongly quadratic. I cannot know for certain if this is true, but it seems highly likely, as that section of the curve is clearly very strongly a quadratic polynomial. If that is the case, then your smoothing of the data made it impossible to truly understand the behavior of this material.

Sam Chak
Sam Chak on 19 Aug 2020
Edited: Sam Chak on 19 Aug 2020
From the Excel file, you can check and verify that the first 90 points (up to 0.089) are covered by the circled region. Please note that the region up to 0.027 can be approximated by a linear function with a high (R-squared) value.
  1 Comment
Moein M
Moein M on 19 Aug 2020
Thank you for your feedback.
The ellipse was just to give a rough estimation of where the linear portion of the graph lies. It's not exact.
Anyway, thanks again.

Sign in to comment.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!