POV-Ray : Newsgroups : povray.off-topic : I think I did something wrong with RK4... : Re: I think I did something wrong with RK4... Server Time
2 Nov 2024 23:15:29 EDT (-0400)
  Re: I think I did something wrong with RK4...  
From: John VanSickle
Date: 8 Apr 2008 07:41:41
Message: <47fb59f5@news.povray.org>
Chambers wrote:
> John VanSickle wrote:
>> The last time I did a physics simulator (springs and weights), I found 
>> that calculating the change in acceleration, and figuring that into 
>> the new location and velocity data, greatly reduced the error that 
>> accumulates.
> 
> That's why I'm calculating forces :)

Well, yeah.  But whereas force goes to the second derivative of location 
over time, it's also helpful to calculate the third derivative over 
time, and figure that into the updates for both position and velocity.

The differential calculus behind it isn't that hard, and provides a 
better solution than dampening to the wild oscillations produced by sims 
that only go to the second derivative over time.

Regards,
John


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.