PPs_energy_tracing
Hi,
In this commit I push some energy calculations for the Potential Particles code, along with a feature to monitor the ratio of sliding contacts to the number of all real contacts.
Also, I set a consistent value for the minimum contact area equal to pow(10,-15)
, since different values were assumed in different parts of this same contact law so far. This minimum contact area is used to handle cases where the contact volume is very small (practically a point). In the future, we could set this as an attribute of the contact law, for the user to decide, depending on the scale of their problems.
Last, I introduced a boolean parameter allowViscousAttraction
to set an upper limit to the normal viscous damping forces, so that their magnitude doesn't surpass the magnitude of the undamped normal contact force, like I did for the Potential Blocks a while ago.
All the best, Vasileios