This HTML automatically generated with rman for NEMO
Table of Contents

Name

snapipdist - some stats on interparticle distances

Synopsis

snapipdist [parameter=value]

Description

This program will brute force compute for each particle the distance to the nearest particle. It will report the two particle ID’s and the distance. Optionally the input coordinates can also be reported. By default the particle ID is just the ordinal (0..N-1), but with key=t the stored particle Key can be used instead.

In a future version we may offer more options. See also snapkmean(1NEMO) for finding clumps

Parameters

The following parameters are recognized in any order if the keyword is also given:
in=
Input file (snapshot) [???]
times=
Times of snapshot [all]
pos=t|f
Show x,y,z as well? [f]

Examples

If you want a sorted list of the nearest particle distance, sort the 3rd column:
mkplummer - 4 seed=123 | snapipdist - | sort -n +2
2 3 0.345923
3 2 0.345923
0 3 1.08003
1 2 4.58542
which shows that particles 2 and 3 are close neighbors.

See Also

snapstat(1NEMO) , snapkmean(1NEMO) , snapkey(1NEMO) , snapshot(5NEMO)

Author

Peter Teuben

Update History


24-Jun-20    V0.1 Created        PJT


Table of Contents