POV-Ray : Newsgroups : povray.binaries.animations : Gravity fun! (510 kbbu) : Re: Gravity fun! (510 kbbu) Server Time
20 Jul 2024 07:23:26 EDT (-0400)
  Re: Gravity fun! (510 kbbu)  
From: Lutz-Peter Hooge
Date: 5 Dec 2001 12:16:46
Message: <MPG.1678753f4c64ddce9896c5@news.povray.org>
In article <3c0e39ec@news.povray.org>, run### [at] mobilixnetdk 
says...

> Of course I haven't tried it, but I think most (maybe all) will impact a
> planet but some might leave the system (that happened in some other tests).

Then you have a problem. They should't be able to do this (unless they 
have a high initial speed) because of energy-conservation.

I tried a similar thing (in C, but 2D), and had the problem that some 
partices that passed the gravity-source in small dinstance tend to gain a 
lot of speed, because the gravity force varies very much in a very small 
area, so the simulation gets unaccurate.

Or maybe some kind of "adaptive iteration step length" could help here.

Lutz-Peter


Post a reply to this message

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