Compute pressure with different keywords gives same results

Dear Lammps users,
I am carrying out a simulation in which I deform the simulation box at a constant rate along one direction while maintaining NPT conditions on the other two directions. I am using Stillinger Weber potential, Buckingham potential and Coulomb potential. I am using compute pressure command to calculate the pressure. I get the same results when I use different keywords in compute pressure command. I am not sure why this happens. Is it because of the potentials that I am using? Kindly clarify on the same.

These are few lines from the code:

fix 2 all npt temp 300 300 0.001 y 0.0 0.0 0.005 z 0.0 0.0 0.005 drag 2.0
fix 3 all deform 1 x erate .0002

compute deftemp all temp/deform
compute 4 all pressure deftemp "keyword"

thermo 10000
thermo_style custom step temp etotal pxx pyy pzz press vol lx ly lz

I tried with all possible keywords (pair, bond, angle, dihedral, improper, kspace, ke, fix).
All are giving the same results. Any guidance on this issue will be of great help.

Thanking you.

Dear Lammps users,
I am carrying out a simulation in which I deform the simulation box at a
constant rate along one direction while maintaining NPT conditions on the
other two directions. I am using Stillinger Weber potential, Buckingham
potential and Coulomb potential. I am using compute pressure command to
calculate the pressure. I get the same results when I use different keywords
in compute pressure command. I am not sure why this happens. Is it because
of the potentials that I am using? Kindly clarify on the same.

i don't see anywhere where you output the result from compute "4". the
"press" thermo output is created from a *different*, automatically
created compute.

axel.

Which is explained on the thermo_style doc page.

Steve

Sir,
I would like to know if there is a way to get contribution of pressure from different potentials separately like we get for energies (Epair, Ecoulomb, etc).

Thanks and regards,
B.S.Sindu

Sir,
I would like to know if there is a way to get contribution of pressure from
different potentials separately like we get for energies (Epair, Ecoulomb,
etc).

not in that way, but you can define multiple compute pressure
instances, where you can select which contributions to consider (pair,
bond, ke, kspace, etc.). please see the documentation for the compute
pressure command for more details.

please note that epair includes ecoul, and ecoul and evdwl are
contributions from the same pair style. LAMMPS as such doesn't know
whether a pair style encompasses one or more potential contributions.
with most manybody potentials, epair also includes contributions from
bonded interactions, for example, yet they are not tallied into ebond
or eangle.

axel.

Ok sir, thank you.