particle2 # orbit.p2 # small particle orbiting a more massive one m 1000 p .5 .5 0 0 # initial pos. & vel. of particle 0 m 10 p .7 .5 0 20 # initial pos. & vel. of particle 1 ########################################## # description of the particle2 file format # # The format is ascii, consisting of tokens separated by whitespace # (one or more space, tab, or newline). # The first token must be "particle2". # Comments extend from the character '#' to newline, and are ignored. # The commands are: # m - sets the current mass (default=1) # p - sets particle's initial position and veloc. # G - sets the gravitational constant (default=1) # # "p" use the mass set in the most recent "m" command when instantiating # a particle. In the example above, the first particle has mass 1000 and the # second has mass 10. # After the first, subsequent "particle2" commands are ignored. This permits # the union of particle sets simply by concatenating their particle2 files. # # Other commands we might consider adding to the format in the future: # c - set color of a particle (default=random) # r - set radius of a particle (default=sqrt(mass)) # t