I'm trying to figure out the dynamics of the system below:
Two masses connected to an inverted parabola, free to slide. They are connected by a spring of constant . Both masses are identical in every way and are of same weight (); they slide down/up the parabola at the same time.
The natural length of the spring is ; gravitational acceleration ; and the frictional coefficient of the parabola is .
So, I'm trying to find out the dynamics of the system using code.
Please, if you can, provide a source code that simulates the dynamics of the system.
The physics behind the simulation:
Tangential Forces
There are 3 forces acting on the block, tangential to the ramp.
The tangential gravitational force is given by:
Where is the unit tangent vector and is the angle of the tangent.
Tangential spring force can be resolved using ; it is given by .
And then we have the frictional force which acts opposite to the movement of the mass. To calculate this we have to calculate the normal forces.
Normal Forces
There are two forces which contribute to the total normal force; gravitational and spring.
The normal force by gravitation on a ramp is given by .
The spring part of the normal force is orthogonal to the tangent, and can also be resolved using :
.
Total Force
Once these normal forces are calculated, we can calculate the frictional force:
So, total force:
So guys, the main problem is that the tangential spring force is too small and the gravitational tangential force always pulls the object down and it never goes back up or undergoes oscillatory motion. The tangential ramp angle goes off to 90 degrees, which I don't think it should be doing; the spring doesn't seem to be bringing it back up. As a result of the ramp angle increasing to 90 degrees, there is almost no spring force to bring it back into oscillatory motion.
The question I would like to ask is:
Does the above system oscillate? Is the code producing a realistic result at all?
Easy Math Editor
This discussion board is a place to discuss our Daily Challenges and the math and science related to those challenges. Explanations are more than just a solution — they should explain the steps and thinking strategies that you used to obtain the solution. Comments should further the discussion of math and science.
When posting on Brilliant:
*italics*
or_italics_
**bold**
or__bold__
paragraph 1
paragraph 2
[example link](https://brilliant.org)
> This is a quote
\(
...\)
or\[
...\]
to ensure proper formatting.2 \times 3
2^{34}
a_{i-1}
\frac{2}{3}
\sqrt{2}
\sum_{i=1}^3
\sin \theta
\boxed{123}
Comments
The spring is very beautiful.
Log in to reply
Lol yeah; drew it in class using preview on mac lmao
Ok; so what do you think about my physics/newtonian diagram? Is it correct? You don't have to look at the code if you don't want to.
I will take a closer look after some time. Thanks for sharing this. Looks interesting.
Log in to reply
Yeah. Thanks mate :)
Did you create any simulation code for this problem? If so, please share the code with me. Thanks.
Log in to reply
No, I have not yet attempted this. I will when I can and respond to this thread. Thanks for your patience.
Log in to reply
Log in to reply
@Krishna Karthik, hii bro, is there any analytical way to find the area of this figure 16(x+y)2+9(x−y)2=1
Thanks in advance.
Log in to reply
Log in to reply
@Krishna Karthik I didn't know how to parametrise it?
Log in to reply
Log in to reply
@Krishna Karthik No. It is a jee problem.
Log in to reply
And the minor axis:
2.121
So the area is 18.85 units squared
Log in to reply
@Krishna Karthik How do you find length of major and minor axis?
Log in to reply
By doing some algebraic manipulation (Maybe applying a rotation matrix to it, you can find that with the equation:
2.8282(xcos(a)−ysin(a))2+2.1212(xsin(a)+ycos(a))2=1
When α=−3.8 it provides the desired equation.
Log in to reply
@Krishna Karthik after that?
Log in to reply
If you can visualise that the function is a rotated ellipse, you can use Pythagoras' Theorem like so:
Major axis: 1.52+1.52=2.121
Minor axis: 22+22=8=2.828
There is an alternative way of finding the major and minor axis.
If you can find an expression for x2+y2, and maximise the expression, or minimise the expression (minor axis) using calculus, you can find the major and minor axes.
When the above expression is minimum, you can find the minor axis; when the above expression is maximum, you can find the major axis.
However, either approach is hard. Are you not allowed to look at the graph of the equation? If you look at the graph of the equation, the problem gets way easier.
@Lil Doug Please let me know if you're allowed to visualise the graph of the function.
p2, distance from minor axis p1, length of semi-major axis a and length of semi minor axis b is
Equation of an ellipse having points with distance from major axisa2p12+b2p22=1
Here, p1=2x+y and p2=2x−y. Putting, we get
8(2x+y)2+4.5(2x−y)2=1
So, we get a=8 and b=4.5. So, area of ellipse is π(8)(4.5).
Log in to reply
@Karan Chatrath
If you're free, could you maybe take a look at my newest problem, simulating dynamics 5.0? Thanks mate. Let me know if the solution's correct or not.
Log in to reply
Sorry that I did not look into the problem in this discussion. I will attempt the new problem when possible.
Log in to reply
Inspiration:
Spring on parabola (Steven Chase)
Graphical Mechanics (Aryan Sanghi)
Log in to reply
Thanku for mentioning my problem. Your logic and code seems fine to me. @Krishna Karthik. :)
Sidenote: You could put link text in [] brackets and link address in () bracket to get a link. Example-[Spring Parabola] + (https://brilliant.org/discussions/thread/a-programming-issue-i-need-help-with-simulation/?ref_id=1600309) without + sign gives Spring Parabola
Log in to reply
Yeah. Thanks mate. The logic for the problem seems fine to me, but what I can't seem to trouble shoot is values shooting off to infinity in the MATLAB code. Thanks for verifying the physical correctness.
Log in to reply
Log in to reply
x=0, I basically put in an if statement to handle the exception. What I find weird is that the simulation code actually shows the mass falling down forever; another weird thing is that the sin() function for the tangential spring force is actually really small; the tangential spring force is too small for it to go back up when in reality it should. I think some angles may be resolved wrong.
Hmmm. To stop the atan function to shoot off to infinity atLog in to reply
Log in to reply
@Aryan Sanghi
Actually, I'm seriously doubting something. Is the above system even meant to be in oscillatory motion? Or is that just a preconceived notion that I'm having? Please let me know when you're free. Thanks bro.
Log in to reply
@Krishna Karthik
It will be a oscillatory motion as at one point, the spring will be stretched so much that it has to again return. But, if you give much initial velocity, it might happen that it will leave the parabola in its upward journey, which can be a trouble. So, you've to give a limited initial velocity. Maybe I'll post a similar question if you permit, I'll give you ye credits.Log in to reply
@Lil Doug
I've posted the problem in the calculus section. I hope you don't mind. Thanks bro.
To be honest, I wouldn't have solved the problem if I hadn't seen what the figure looked like.
Log in to reply
@Krishna Karthik oh Fuck. Bro i just clicked on Dicussed solution instead on Type answer.
Please repost the problem. It will take you 1 minute only.
Log in to reply
Sure.No problem my dude :)
Ok; it's reposted.