How Can Momentum Improve RK4 Integration in Vehicle Physics?

  • Thread starter Thread starter smythst
  • Start date Start date
  • Tags Tags
    Numerical Rk4
smythst
Messages
1
Reaction score
0
I'm writing a vehicle physics engine and am using an RK4 integrator which I wrote. But I am having huge problems with angular motion. Long story short I thing it might be to do with the fact that I'm integrating from accelerations. So I'm re-writing the integrator using momentum. However I'm very sketchy about momentum and how to handle it. Anyone know where I can see some good demos of a momentum based RK4, or perhaps anyone interested in having a look at my code to see if they can help?

Cheers.
 
Physics news on Phys.org
You may find some help in In this thread.

What is it you are trying to do?
 


It sounds like you are on the right track by considering using momentum instead of accelerations in your RK4 integrator. Momentum is a key concept in physics and can greatly improve the accuracy and stability of numerical integrators. I would recommend looking into some resources on numerical methods for solving differential equations, as they often cover the use of momentum in integrators.

As for demos or examples of momentum-based RK4 integrators, there are several available online that you can refer to for guidance. Additionally, there are many forums and communities dedicated to physics engines and numerical methods, where you can seek advice and feedback on your code. It may also be helpful to work with someone who has experience in this area to review your code and offer suggestions.

Overall, it is great that you are actively seeking solutions to improve your integrator and I am sure with some additional research and support, you will be able to successfully implement momentum in your code. Best of luck!
 
Thread 'Direction Fields and Isoclines'
I sketched the isoclines for $$ m=-1,0,1,2 $$. Since both $$ \frac{dy}{dx} $$ and $$ D_{y} \frac{dy}{dx} $$ are continuous on the square region R defined by $$ -4\leq x \leq 4, -4 \leq y \leq 4 $$ the existence and uniqueness theorem guarantees that if we pick a point in the interior that lies on an isocline there will be a unique differentiable function (solution) passing through that point. I understand that a solution exists but I unsure how to actually sketch it. For example, consider a...
Back
Top