Rotating Spring-Mass system ODE45 function
조회 수: 5 (최근 30일)
이전 댓글 표시
I need to plot the motion of a mass sliding in a slot in a circular disk(gravity into page) while connecting to a spring centered at the center of the disk. The plot is supposed to show x vs y rather than the x or y components vs time. Does anyone know the proper x and y equations of motion that would apply here?
댓글 수: 1
Jan
2021년 3월 19일
The description as text is not clear enough. Did you made a drawing already?
Creating the equations on motion is not a Matlab problem, so it is off-topic in this forum.
Do you want to solve this by a DAE with depending coordinates or an ODE with independent coordinates?
답변 (1개)
William Rose
2021년 3월 28일
Find x(t) and y(t) then plot x vs y.
You did not mention friction so we assume there is none. So the equations of motion could be written
The forces include the inward spring force and the centrifugal force in this rotating frame of reference.
The spring force and centrifugal force are radial. Therefore, rather than trying to develop the equations above, I would express both forces in terms of r, and solve the differential equation for r(t).

where %20=%20f_spring(r)%20+%20f_centrifugal(r).png)
You did not say if the angular velocity is constant. The angular velocity versus time will determine what the centrifugal force looks like and will determine theta versus time. Once you know r(t) and theta(t), convert to x(t) and y(t) in the standard way. If the angular velocity is constant then it is pretty easy. If the initial angle is not specified, you might as well assume angle theta=0 at t=0.
That should be enough hints to get you going.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Ordinary Differential Equations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!