home *** CD-ROM | disk | FTP | other *** search
/ AMOS PD CD / amospdcd.iso / sourcecode / various / galaxies.doc < prev    next >
Text File  |  1990-04-07  |  3KB  |  84 lines

  1. Colliding Galaxies Simulation Amiga Version 1.0
  2. Original program in BBC Basic by Andrew Rankin 1989
  3. Amiga Version translated into AMOS Basic by Jeff Tullin 1991
  4.  
  5.  
  6. If you are reading this Andrew - where are you now?
  7.  
  8. Overview (Hugely simplified for thickies like me!!)
  9.  
  10. The shape and form of most galaxies can be divided into 3 main
  11. categories:
  12.   Elliptical - which have no evident internal structure.
  13.   Spiral - a central core surrounded by a thin disc of trailing
  14.            arms - like our own,
  15.   Irregular - those which do not fit into either of these groups.
  16.  
  17. There has been much conjecture about how these forms of galaxy
  18. have arisen, and whether one form, through interaction with an
  19. external mass, can change into another.
  20.  
  21. Now, Andrew's original article about the laws of physics, gravity
  22. galactic structural change, and black holes is a very good read
  23. if you are interested, and I recommend that you dig out a back 
  24. edition of Acorn User (July 1989) to examine it in more detail.
  25. BUT, the fact is, most people just want to see what the program
  26. does!
  27.  
  28. So-
  29.  
  30. INSTRUCTIONS:
  31.  
  32. The computer will simulate the collision of two galaxies, using a
  33. very simplified map of their starfields, and a much simplified
  34. view of Newtonian physics as an algorithm.
  35. The mass of each galaxy is assumed to exist as a point at the
  36. centre of the cluster.
  37. The whole star field is represented by a number of rings of
  38. stars.
  39.  
  40. You will be asked to enter how many rings of stars you wish to
  41. use. Try a low number like 3 for your first attempts, as the time
  42. factor for each calculation increases alarmingly for every added
  43. star. The same logic applies to the next question, regarding how
  44. many stars each ring contains. Try 10 or so until you know you
  45. have an interesting pattern.
  46.  
  47. The next parameter is the mass of the intruder galaxy, as a % of
  48. the target. So, 100 entered here would mean both galaxies had the
  49. same mass. 10 would mean that the intruder was 1/10 of the mass.
  50.  
  51. The position of the intruder is entered in Cartesian form, and
  52. is relative to the centre of the target galaxy.
  53. So: X =20 Y=-10 Z=10  puts the intruder North, West, and above.
  54. The velocity in each plane is expressed in the same terms.
  55. Note, if the starting X position is , say, 20, then you will need
  56. to use a negative velocity like -0.02 to ensure that the intruder
  57. actually did some intruding. A positive value would have meant it
  58. span off further away into space!
  59.  
  60. Some sample data for you to try:
  61.  
  62. MASS %            Position           Velocity 
  63.               X      Y      Z       X     Y      Z
  64. 100         7.5      0     35       0     0     -1
  65. 25           40     10     10      -1     0      0
  66. 25          -30     30      0       0  -0.34   -0.34
  67. 100           0     30     10       0     0    -0.35
  68.  
  69.  
  70. While the program is running, it is possible to halt the flow
  71. by pressing a key.
  72. You get 3 options - continue from where you halted,
  73.                     restart,
  74.                 or  save the screen as an IFF file, for later
  75.                     manipulation/printing.
  76.  
  77. Th-th-th-thats all folks!
  78.  
  79. The original program was based on an article by
  80. MC Schroeder and NF Cumins in the December 1988 ASTRONOMY mag.
  81.  
  82.  
  83. Have fun.  
  84.