How to calculate the magnitude and average of contact force?
Hi colleagues,
I am facing a problem about outputing the magnitude and average of contact force, but failed.
To obtain the contact force, I use command:
compute fc all pair/gran/local pos id force (the 10-12th values are the contact forces on x,y,z directions)
Then I use:
variable avefc atom sqrt(c_fc[10]^2+c_fc[11]^2+c_fc[12]^2)
to calculate the magnitude of contact force.