Computing potential energy of a particle system
During the execution of the simulation of particle system using a standard command.py script, I would like to compute the value of the potential energy of the whole particle system at every time step (in order to apply a test on it).
There is the exact equivalent to this function already implemented for the kinetic energy postpro_3D_GetKineticEnergy()
. Does the same function exist for the potential energy? (I haven't been able to find it, I have only seen the computation of the potential energy in the post-processing to file).
Many thanks in advance!