Find Average nearest neighbour

Dear lammps users,

How can write output of average nearest neighbour at each MD step in dump file.I read lammps output section But I am not under stand how to write it please help me . If anyone know about please post this cammond

Thanks in advance

Abbas

If your structure is a cubic you can check out “compute cna/atom”. If it is something more complicated, you will have to use “compute cluster/atom” to output the number of neighbor for each of the atoms then do a post process on your own to get an average.

Ray