[lammps-users] calculate local pressure

Hi, everyone

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.


The error indicates your variable command is incorrect. Please
figure out which one it is, study the variable doc page, and if
it still doesn't make sense, then post that command and any
fixes/computes it accesses.