4. Minimal pNbody object

A minimal pNbody object consists of a set of 4 numarray vectors :

and a set of default associated variables :

The variable npart gives the list of particles of each type. For example

>>> nb.npart
array([10, 20,  0, 10])
means that there are 4 particle types, 10 particles belongs to the first type, 20 to the second, 0 to the third and 10 to the fourth.

The value of the following variables are automatically set during intitialisation (using the values of npart,nbody and nb.mass), even if they are defined before (during the reading process) :

The user is free, when reading a specific file format, to add specific variables (for example, the time of the snapshot) and specific numarray vectors (density, specific energy, etc.). See the formats section for more details.

See About this document... for information on suggesting changes.