I also started writing the output from the temperature and pressure compute that ‘fix npt’ creates for the >barostat and thermostat. These temp/pressure values are identical to the global values created by default >by the thermo output.
good - that’s the right check
The barostat pressure set value is zero yet it is showing a constant positive value in the output,
so it seems that something is fighting the barostat.
Well, the barostat knows nothing about your system,
or rigid bodies, etc. All it knows is there is a target
pressure and a current pressure, which in your case
(iso) are both scalars. It simply adjusts the box
volume as a function of the difference between the
2 scalars. As long as the actual pressure responds
as expected (increases as volume shrinks), it should work.
Things that can mess it up: bad timestep, bad time
constant in fix npt, a system that responds in an unusual
way (e,g. a tiny change in volume produces a huge spike
in pressure, or a non-monotonic response for some reason).
Note that with rigid bodies, what you should see is when
the volume shrinks, the COMs of the bodies get close
together. But the size of the bodies does not shrink
(b/c they are rigid). So if somehow a small volume
shrink is inducing overlap in the outer atoms of 2 nearby
rigid bodies, that could look like a huge pressure spike.
Also, how noisy the pressure is around your target
value can be hard to interpret, and hard for fix npt to track.
But that is just the way pressure works, esp in solids.
Maybe you can monitor the volume and the pressure
on a fine timescale. I can not imagine how the pressure
could consistently stay below the target and the volume
not continually shrink until the pressure went above
the target. Or vice versa.
I’m CCing Aidan (npt author/expert). Maybe he has
other ideas on how this could occur, or ideas on
fix npt options to try (chains, etc). Info on your
units and time damp constant, also a plot of your
pressure vs time with the target pressure as a line,
would be helpful. Are you doing anything else non-equilibrium,
like shearing the system?
Steve