The Grey Labyrinth is a collection of puzzles, riddles, mind games, paradoxes and other intellectually challenging diversions. Related topics: puzzle games, logic puzzles, lateral thinking puzzles, philosophy, mind benders, brain teasers, word problems, conundrums, 3d puzzles, spatial reasoning, intelligence tests, mathematical diversions, paradoxes, physics problems, reasoning, math, science.

   
The Grey Labyrinth Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups    RegisterRegister  
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

N-Body Simulations

 
Reply to topic    The Grey Labyrinth Forum Index -> Science, Art, and Culture
View previous topic :: View next topic  
Author Message
Lepton
1:41+ Arse Scratcher



PostPosted: Wed May 05, 2004 4:06 am    Post subject: 1 Reply with quote

Does anyone have experience with these? I am considering writing some code on my spare time this summer, and N-body seems like an appropriate avenue. Specifically, I'd like to model galactic collisions using a few thousand randomly-distributed point masses. Do I have any easy alteratives to the Leapfrog method for orbits? Is the softening factor really necessary?
Back to top
View user's profile Send private message Send e-mail AIM Address
Dr. Borodog
Mad Scientist



PostPosted: Wed May 05, 2004 2:36 pm    Post subject: 2 Reply with quote

You may be able to download some excellent codes that do just that if you don't want to reinvent the wheel.



------------------
You will respect my philosophai.
Back to top
View user's profile Send private message
Dr. Borodog
Mad Scientist



PostPosted: Wed May 05, 2004 2:49 pm    Post subject: 3 Reply with quote

If you do intend to write your own code, made sure you use an energy-conserving finite difference method such as Euler-Cromer, rather than something like plain Euler. Regular Euler methods do not conserve energy, and your point masses will spiral away from your galactic centers.

The Euler-Cromer method uses the previous values of position and velocity to update the velocity, and the previous values of position and the NEW values of velocity to update the position.

If you need more details, let me know.




------------------
You will respect my philosophai.
Back to top
View user's profile Send private message
Display posts from previous: by   
Reply to topic    The Grey Labyrinth Forum Index -> Science, Art, and Culture All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Site Design by Wx3