Help getting started with a numerical solution

  • Context: Undergrad 
  • Thread starter Thread starter davidwinth
  • Start date Start date
  • Tags Tags
    Numerical
Click For Summary

Discussion Overview

The discussion revolves around solving a problem involving a hockey puck sliding on a flat, frictionless, and rotating surface. Participants explore both numerical and analytic approaches to determine the puck's motion over time, starting from given initial conditions and effective acceleration equations.

Discussion Character

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

Main Points Raised

  • One participant describes the effective acceleration of the puck in a rotating frame and seeks advice on coding a numerical solution using a 2D Euler method.
  • Another participant suggests that an analytic solution exists if approached from a non-rotating frame, although the specifics of this solution are not detailed.
  • A participant expresses skepticism about the existence of an analytic solution and asks for recommendations on numerical schemes.
  • One participant proposes finding an analytic solution in Cartesian coordinates and converting it to polar coordinates, questioning if any steps are missed.
  • Another participant shares their development of coupled second-order equations for the puck's motion and inquires whether these should be converted into first-order equations or if another method is preferable.
  • A participant reiterates that working in the rotating coordinate frame complicates the problem, suggesting that both higher-order and first-order equations could be valid approaches.

Areas of Agreement / Disagreement

Participants express differing views on the existence and approach to an analytic solution, with some advocating for numerical methods while others suggest analytic techniques. The discussion remains unresolved regarding the best method to pursue.

Contextual Notes

Participants note the complexity introduced by the rotating frame and the dependence of certain variables on time, which may affect the choice of numerical methods.

davidwinth
Messages
103
Reaction score
8
Hello,

I am trying to refresh my knowledge, and so I dug out my copy of Marion and Thornton to look through. I came across an example problem, 10.2, that involves a hockey puck sliding on a flat, frictionless and rotating surface. The example problem shows some solution plots for the puck position as a function of time that were found numerically, and so I tried to code this up to see if I could get the same answers but I am stuck on how to actually code this. The puck starts out at a certain location on the rotating merry-go-round and is given an initial velocity. The idea is to find the subsequent motion.

In the example, the authors give the effective acceleration as measured by an observer on the surface as,

##a_{eff} = -\omega \times (\omega \times r) - 2\omega \times v_r##

where ##v_r## is the velocity as measured in the rotating frame and ##\omega## is constant. Performing the cross product and breaking this into Cartesian components, I get

##a_{eff} =\langle 2 \omega v_{r_y} + r \omega^2cos(\theta),-2 \omega v_{r_x} + r \omega^2sin(\theta),0 \rangle##

Can this be solved with a 2D Euler method? I have never used such a method, so before I try to figure that out I want to see if anyone knows a simpler numerical scheme to solve this, or if I am over complicating things. I think the ## v_{r_x} ## term is going to be complicated to evaluate because ## \theta ## is a function of time too.

Thanks for any input!
 
Last edited:
Physics news on Phys.org
There is an analytic solution - quite easy to find if you start in a non-rotating frame (assuming the total rotation angle until time t has an analytic expression).

You can solve it numerically, of course. Everything will work, the accuracy depends on the method and step size.
 
Thanks, mfb. I don't see how there is an analytic solution possible, but I will take your word for it. Any insight into which numerical scheme I should look into for this?
 
Find an analytic solution in Cartesian coordinates (trivial without friction), convert it to non-rotating polar coordinates, convert it to the rotating polar coordinates. Or do I miss something?
davidwinth said:
Any insight into which numerical scheme I should look into for this?
That depends on what you want to do with the result.
 
I was looking to refresh my skills. It has been a long while since I wrote numerical solutions to problems like these and I thought this would be relatively simple. I am starting to think otherwise!

If anyone else has any input, I would like to hear that too. The way I see it, the task is to find the position as a function of time starting with the above acceleration as a function of position and velocity (it is not a constant).

Thanks.
 
After a little more work on this, I came up with the following coupled 2nd order equations.

##\frac{d^2x}{dt^2} = \omega^2 x + 2\omega\frac{dy}{dt} ##
##\frac{d^2y}{dt^2} = \omega^2 x - 2\omega\frac{dx}{dt} ##

Do I need to break this into 4 coupled 1st order equations, or is there another approach? Don't be shy! If you have a suggestion, please make it.
 
My suggestion was in post #4 above the quote.

You can work in the rotating coordinate frame (2 higher order equations or 4 1st order equations will equally work), it just makes everything much more complicated.
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 8 ·
Replies
8
Views
741
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 59 ·
2
Replies
59
Views
5K
  • · Replies 20 ·
Replies
20
Views
2K
Replies
4
Views
2K
  • · Replies 15 ·
Replies
15
Views
1K
Replies
3
Views
4K