The program snapspecks
converts a NEMO snapshot to specks format
that can be read in directly by partiview. The default viewing variables
are x,y,z,m
, but you can add and changed them by
using the options= keyword.
In fact, arbitrary bodytrans expressions can be used
for output. In the following example a 32-body Plummer sphere is
created, which is then given a power-law mass spectrum (with slope -2)
between 0.5 and 10 mass units, and animated:
% mkplummer - 32 |\
snapmass - - massname='n(m)' masspars=p,-2 massrange=0.5,10 |\
hackcode1 - run1.dat
% snapspecks run1.dat > run1.tab
% partiview run1.cf
% cat run1.cf
read run1.tab
eval labels off
eval lum lum 0 1
eval polylumvar point-size .1 area
texturevar 4
eval psize 5000
eval slum 5
eval every 1