home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 10
/
aminetcdnumber101996.iso
/
Aminet
/
misc
/
sci
/
StarCollapse.lha
/
README
< prev
next >
Wrap
Text File
|
1995-11-14
|
3KB
|
125 lines
----------------------------------------
GRAV : THE COLLAPSING STAR CLUSTER SIMULATION
----------------------------------------
Hello all you budding cosmologists !
This is a very short description of what you just downloaded/got on a disk.
1. What ?
---------
GRAV Is a simple program that generates an animation data file (but won't
actually display it ! See below for how to display) of a collapsing cluster
of stars (OK. masses..).
2. Usage
--------
Invoke the program as follows:
GRAV <numframes> <nummasses>
For example: GRAV 500 100 >RAM:GRAV.DAT
This would start GRAV using a mass cloud numbering 100 masses and would loop
through the gravitation physics 500 times, outputting a temporal snapshot for
every loop (ie. a frame) to the file GRAV.DAT in your RAM: disk.
Note that the program needs the redirection because it simple writes to stdout!
In fact, GRAV can take more parameters, so check them out by calling up its
standard AmigaDOS usage template by giving "?" as the sole argument.
At the time of writing, GRAV's arguments template is
FRAMES/K,MASSES/K,DELAY/K,AUDIT/S,NODISPLAY/S
As you will see when you run the program, it does actually open a screen to
display the simulation, but only in 2-D (orthogonal projection).
To see the IMPRESSIVE simulation in full 3-D, see further down..
3. Displaying the animation
---------------------------
For this you either:
a) E-Mail me, and I'll send you my display program
b) write a file converter to convert the simulation data to some 3D
application's standard, and then display it using that program.
c) write your own renderer/animation replay software.
The file format is dead simple (number of frames, then number of vertices
for this frame, then list of x,y,z triplets per vertex...).
If you can't figure it out, E-Mail me and I'll send you a "formal"
description.
A plea for information
----------------------
I would love to hear from 68040/60 owners how long the simulation takes
for the following simulation runs:
a) GRAV 500 250
b) GRAV 500 500
c) GRAV 500 1000
I think even c) will have your machine on its knees... and FYI the program's
bottleneck is optimized FPU assembler !!
4. Afraid of Virusses ?
-----------------------
Source code included: so just recompile/assemble/link.
5. Author's name/address
------------------------
Laurence Vnahelsuwe
E-Mail: LVA@PING.BE