A Continuous Solution for Mass/Spring w/ Friction

Click For Summary

Discussion Overview

The discussion revolves around a mass-spring system with friction, specifically focusing on the formulation of the governing ordinary differential equation (ODE) and potential solutions. Participants explore the implications of kinetic friction on the system's behavior and consider various approaches to analyze the motion, including comparisons to damped harmonic oscillators and iterative methods.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • One participant proposes an ODE for the mass-spring system that incorporates a frictional force dependent on velocity using the Heaviside Step Function.
  • Another participant questions the appropriateness of modeling the system as a damped harmonic oscillator due to the nature of the friction force.
  • Some participants discuss the constant magnitude of kinetic friction and its implications for the direction of the frictional force based on the mass's velocity.
  • Literature references are provided to support the discussion, suggesting alternative approaches and solutions to similar problems.
  • One participant suggests using Green's Functions for iteration, expressing uncertainty about convergence.
  • Another participant raises a concern about the computation and utilization of a variable related to the number of oscillation cycles in a referenced solution.
  • A different approach is suggested that involves solving the equation piecewise, considering the sign of the velocity and the corresponding friction force.

Areas of Agreement / Disagreement

Participants express differing views on the formulation of the governing equation and the nature of the frictional force. There is no consensus on the best approach or solution method, and multiple competing views remain throughout the discussion.

Contextual Notes

Some participants note limitations in the original equation's formulation and the need for careful consideration of initial conditions and the differences between dynamic and static friction. The discussion also highlights the complexity of the system's behavior as it transitions between different states of motion.

erobz
Gold Member
Messages
4,459
Reaction score
1,846
1694545955085.png


Suppose we have mass ##m## attached to spring with constant ##k##, and some coefficient of kinetic friction ##\mu## between the mass and the surface. Its displaced from equilibrium by some distance ##x## at ## t = 0 ##. I've come up with the following ODE to described ##x(t)## using the Heavyside Step Function to capture the changing in direction of the frictional force as a function of ##\dot x ##:

$$ m \ddot x = - kx + \mu m g \left( 1 - \frac{2}{1+ e^{- \beta \dot x}} \right) $$

where ##\beta## is some arbitrarily large positive constant.

I don't suspect that to have an analytical solution, but what are the alternatives for this type of problem?
 
Physics news on Phys.org
erobz said:
what are the alternatives for this type of problem?
Why not a damped harmonic oscillator?
 
Frabjous said:
Why not a damped harmonic oscillator?
I suppose because of the lack of dependency of the friction force on ##\dot x ##?
 
erobz said:
I suppose because of the lack of dependency of the friction force on ##\dot x ##?
How do you mean that? The damped harmonic oscillator equation is $$m\ddot x =-c\dot x-kx.$$
 
kuruman said:
How do you mean that? The damped harmonic oscillator equation is $$m\ddot x =-c\dot x-kx.$$
Because the force of kinetic friction is constant in magnitude. The "kink" I'm asking about is the changing direction of that force depending on whether the mass is heading to the left or right. Thats why I introduce the Heavyside function.
 
Frabjous said:
I am not sure that you wrote your equation correctly in the OP.
I didn't catch anything.

if ##\dot x = 0 ## the entire factor (in parenthesis) on the last term is ##\approx 0## ( for an instant )

if ## \dot x > 0 ## ( mass heading to the right ) the factor is ##\approx -1## (friction pointing to the left).

if ##\dot x < 0 ## ( mass heading to the left ) the factor is ##\approx 1## (friction pointing to the right )

What did I miss?
 
Last edited:
erobz said:
What did I miss?
That I am an idiot.
 
  • Skeptical
Likes   Reactions: erobz
Frabjous said:
That I am an idiot.
I know better than that!
 
  • Haha
Likes   Reactions: Frabjous
  • #11
You could iterate with Green‘s Functions. I do not know if the solution converges.
 
  • #12
Frabjous said:
You could iterate with Green‘s Functions. I do not know if the solution converges.
I'd have to go back to school for that!
 
  • #13
erobz said:
Because the force of kinetic friction is constant in magnitude. The "kink" I'm asking about is the changing direction of that force depending on whether the mass is heading to the left or right.
See, e.g., this 2007 article from The Physics Teacher: An Oscillating System with Sliding Friction
The author considers the damped oscillator equation:$$m\ddot{x}=-k\left(x-x_{0}\right)\pm f$$where ##m## is the oscillator mass, ##k## the spring constant, ##x_0## the equilibrium position and ##f## is the constant magnitude of the friction force. With the initial condition that the spring is released from rest at the right turning-point ##A_0##, the solution is found to be:$$x\left(t\right)=\left(A_{0}-\frac{f}{k}\left(2n+1\right)\right)\cos\left(\omega_{0}t\right)+\left(-1\right)^{n}\frac{f}{k}+x_{0}$$ Here, ##\omega_{0}\equiv\sqrt{\frac{k}{m}}## is the oscillation frequency and ##n## counts the number of half-cycles of motion. Note that this solution ceases to apply when the motion stops; i.e., when the spring force is insufficient to overcome static friction at a turning point.
 
  • Like
Likes   Reactions: vanhees71 and erobz
  • #14
renormalize said:
See, e.g., this 2007 article from The Physics Teacher: An Oscillating System with Sliding Friction
The author considers the damped oscillator equation:$$m\ddot{x}=-k\left(x-x_{0}\right)\pm f$$where ##m## is the oscillator mass, ##k## the spring constant, ##x_0## the equilibrium position and ##f## is the constant magnitude of the friction force. With the initial condition that the spring is released from rest at the right turning-point ##A_0##, the solution is found to be:$$x\left(t\right)=\left(A_{0}-\frac{f}{k}\left(2n+1\right)\right)\cos\left(\omega_{0}t\right)+\left(-1\right)^{n}\frac{f}{k}+x_{0}$$ Here, ##\omega_{0}\equiv\sqrt{\frac{k}{m}}## is the oscillation frequency and ##n## counts the number of half-cycles of motion. Note that this solution ceases to apply when the motion stops; i.e., when the spring force is insufficient to overcome static friction at a turning point.
I don't understand how ##n## is computed or utilized. is it ##n=1## the e.o.m up to the first turning point? Then ##n = 2 ## between the first and second turning points? It's no big deal, I'm probably not to shell out $200 to read the paper though.
 
  • #15
erobz said:
I don't understand how ##n## is computed or utilized. is it ##n=1## the e.o.m up to the first turning point? Then ##n = 2 ## between the first and second turning points? It's no big deal, I'm probably not to shell out $200 to read the paper though.
##n=0## at ##t=0## and then increments by ##+1## every time the oscillator passes through a subsequent turning point. So the overall amplitude ##A_{0}-\frac{f}{k}\left(2n+1\right)## gets smaller each half-cycle (i.e., the oscillator is being damped) as time progresses:
1694555204251.png

And as I did, you can google "oscillation sliding friction" to find a wealth of free resources.
 
  • Like
Likes   Reactions: Motore and erobz
  • #16
If I was playing with data, I would try correcting A (=√(2E/k)) with Edissipated=Ffriction times distance travelled
 
  • #17
renormalize said:
See, e.g., this 2007 article from The Physics Teacher: An Oscillating System with Sliding Friction
The author considers the damped oscillator equation:$$m\ddot{x}=-k\left(x-x_{0}\right)\pm f$$where ##m## is the oscillator mass, ##k## the spring constant, ##x_0## the equilibrium position and ##f## is the constant magnitude of the friction force. With the initial condition that the spring is released from rest at the right turning-point ##A_0##, the solution is found to be:$$x\left(t\right)=\left(A_{0}-\frac{f}{k}\left(2n+1\right)\right)\cos\left(\omega_{0}t\right)+\left(-1\right)^{n}\frac{f}{k}+x_{0}$$ Here, ##\omega_{0}\equiv\sqrt{\frac{k}{m}}## is the oscillation frequency and ##n## counts the number of half-cycles of motion. Note that this solution ceases to apply when the motion stops; i.e., when the spring force is insufficient to overcome static friction at a turning point.
That's the correct equation of motion! I'd have written, however
$$m \ddot{x}=-k (x-x_0) -f \sign(\dot{x}).$$
You have to solve it piecewise starting from the initial conditions. You get harmonic motion in each interval, where ##\dot{x}## stays positive or negative. At times, where ##\dot{x}## changes sign also the friction force does, and that's why the harmonic motion changes according to this changed sign.
 
  • #18
vanhees71 said:
That's the correct equation of motion! I'd have written, however
$$m \ddot{x}=-k (x-x_0) -f \sign(\dot{x}).$$
You have to solve it piecewise starting from the initial conditions. You get harmonic motion in each interval, where ##\dot{x}## stays positive or negative. At times, where ##\dot{x}## changes sign also the friction force does, and that's why the harmonic motion changes according to this changed sign.
I did that not too long ago. However, I added one more condition to be able to consider the difference between dynamic friction and static friction. Setting both values to be the same so it's closer to OP causes this result for the following initial conditions.
##m=1##; ##\mu_{dyn}=\mu_{stat}=0.5##; ##g=10##; ##x_0=6##; ##v_0=0##; ##k=5##
(I know, ##g=10m/s^2## feels bad. But the computer goes crazy otherwise. I'll show you what happens later if I try that).
1695245381229.png

1695245392710.png

1695245399580.png

1695245406435.png

1695245414681.png
If I try to write ##g=9.8## (or many other inputs) it seems the computer doesn't have enough precision when the mass is almost stopped because the friction force pushes it too far from equilibrium and it starts bouncing like crazy around that point. I could totally code that behavior out of the equations but I didn't do it. All plots are the same except those showing acceleration.
1695245565057.png
Lastly, as I said I added a condition to be able to catch the difference in static and dynamic friction. As a result, for some initial conditions, the mass can come to a stop at a point different than ##x=0##.
##m=1##; ##\mu_{dyn}=0.5##; ##\mu_{stat}=1.5##; ##g=10##; ##x_0=6##; ##v_0=0##; ##k=5##
1695245750331.png

1695245757301.png
1695245772504.png


1695245797625.png


By the way, I'm not sure about the results I got. I suspect there might be some minor bugs about the point where the mass changes direction but the results feel right on a first look. Feedback is welcome.

erobz said:
I don't suspect that to have an analytical solution, but what are the alternatives for this type of problem?
I hope this approach helps.
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 76 ·
3
Replies
76
Views
7K
  • · Replies 59 ·
2
Replies
59
Views
5K
  • · Replies 63 ·
3
Replies
63
Views
4K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 15 ·
Replies
15
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 13 ·
Replies
13
Views
2K