The NEMO convention is to store the SPH particles first in arrays where SPH and pure N-body particles are stored.
For a more general ASCII conversion program, see tabtos(1NEMO)
NOBJ number of bodies [integer] NDIM number of dimensions [integer] TIME time of snapshot [real] MASS(i) particle masses, i = 1...NOBJ [real] . . . . . X(i) Y(i) Z(i) particle positions, i = 1...NOBJ [real] . . . . . VX(i) VY(i) VZ(i) particle velocities, i = 1...NOBJ [real] . . . . . PSI(i) particle potentials, i = 1...NOBJ [real] . . . . . AX(i) AY(i) AZ(i) particle accelerations, i = 1..NOBJ [real] . . . . .
The SPH file format is as follows:
NOBJ NGAS number of bodies, gas particles [integer] NDIM number of dimensions [integer] TIME time of snapshot [real] MASS(i) particle masses, i = 1...NOBJ [real] . . . . . (the first NGAS particles are the SPH particles) X(i) Y(i) Z(i) particle positions, i = 1...NOBJ [real] . . . . . VX(i) VY(i) VZ(i) particle velocities, i = 1...NOBJ [real] . . . . . RHO(i) gas densities, i = 1...NGAS [real] . . . . . TEMP(i) gas temperatures, i = 1...NGAS [real] . . . . . HSPH(i) gas smoothings, i = 1...NGAS [real] . . . . . PSI(i) particle potentials, i = 1...NOBJ [real] . . . . . AX(i) AY(i) AZ(i) particle accelerations, i = 1..NOBJ [real] . . . . .
Subsets of these full data files may be read by setting the right combination of options. However, all data arrays present in the input must be specified, and the ordering is fixed as shown here. These formats may be repeated until end-of-file.
For upward compatibility the header elements (NOBJ [NGAS] NDIM and TIME) can now appear in the order,
23-Mar-87 V 1.0: created PJT 11-May-88 V 2.0: created JEB 01-July-88 V 2.1: hexpack flag JEB 27-Sep-88 V 2.2: options phi, acc PJT 01-Dec-88 V 2.3: SPH options JEB 28-Mar-89 V 2.4: error checking JEB 17-sep-90 V 2.6: header logic improved PJT 15-may-97 V3.0: added binary= keywords PJT