How to output the magnitude of the contact force?

Submitted by wangxiukai on

As we know, the following code can get the component of the contact force:

compute 1 all pair/gran/local force

but, how to get the magnitude of the contact force?

Thank you for your help.