I’m in trouble of which function I can use to calculate the pressure of part of the model. I tried fix ave/atom to calculate force component, and then used variable atom. But the error ERROR: Mismatched fix in variable formula. I can’t figure out what the problem is, and also I don’t know which function I can use. It puzzled me long time. Thanks a lot.