How to save the maximum of contact force in LIGGGHTS
Dear all,
I am facing a problem about saving the maximum of contact force.
I first get the pair-force with:
compute fc all pair/gran/local force
variable fmag atom sqrt(c_fc[1]^2+c_fc[2]^2+c_fc[3]^2)
compute maxfmag all reduce max v_fmag
variable maxcm equal c_maxfmag
There seems no mistakes while operating the above code, however, when I tried to output the result using:
fix data_max all print 10000 "The maximum of contact force = ${maxcm}" file data.txt
Forums:
- Read more about How to save the maximum of contact force in LIGGGHTS
- 2 comments
- Log in or register to post comments