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.
| |
|
|
|
|
|
|
|
|
|
| View previous topic :: View next topic |
| Author |
Message |
Lepton
1:41+ Arse Scratcher
|
Posted: Wed May 05, 2004 4:06 am Post subject: 1 |
|
|
| 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 |
|
 |
Dr. Borodog
Mad Scientist
|
Posted: Wed May 05, 2004 2:36 pm Post subject: 2 |
|
|
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 |
|
 |
Dr. Borodog
Mad Scientist
|
Posted: Wed May 05, 2004 2:49 pm Post subject: 3 |
|
|
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 |
|
 |
|
|
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
|
|
|
|