reset.cm | R Documentation |
Routine, designed to reset the center of mass (CM) of the initial conditions (ICs) of an N-body simulation. The CM position and velocity are both shifted to (0,0,0).
reset.cm(sim)
sim |
list of m, x, v or list with a sublist "ics", made of m, x, v, where
|
Returns a structure of the same format as the input argument, but with re-centered positions and velocities.
Danail Obreschkow
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.