Hi all-
I have noticed that the energy conservation using fix npt is about three orders of magnitude worse than with fix nvt. Does anyone know why this is? I am using “fix_modify energy yes” to get the conserved quantity for the NPT and NVT ensembles. I am using the unstable version of lammps cloned from github today. Attached is an MWE (in.lj). The comment can be switched between lines 35 and 36 to switch between NPT and NVT, leaving everything else the same. Also attached is a plot of the mean squared deviation of the energy from its average value for both ensembles. This plot shows that the error is about three orders of magnitude worse using npt. Any thoughts?
Thanks, Steve
in.lj (744 Bytes)