Hello,
I am attempting to do MD simulation of a glycine zwitterion in water using the C++ Sept 2010 version of Lammps. When I use “fix NPT” then the MD simulation runs fine, but instead when I use “fix NVE” along with Berendsen thermostat and barostat, then I get the following error:
“Out of range atoms - cannot compute PPPM”
I am using AMBER force field, PPPM for electrostatics and shake for hydrogen atoms. Timestep is 2fs.
I am unable to figure out the problem. I was wondering if someone could help me. Below is the segment of the script that works (using fix NPT) and the script that does not (fix NVE with Berendsen thermostat and barostat)
(A) the script that works:
units real
atom_style full
pair_style lj/cut/coul/long 10.0 9.0
bond_style harmonic
angle_style harmonic
dihedral_style charmm
improper_style cvff
special_bonds amber
read_data data.add1_800
pair_modify mix arithmetic
kspace_style pppm 1.0e-4
neigh_modify delay 0 every 1 check yes
group hydro type 2 4 8
timestep 2.0
fix 2 hydro shake 0.0001 20 0 b 1 3 6 7 a 9
group water type 7 8
fix 3 all npt temp 300.0 300.0 500.0 iso 1.0 1.0 500
run 1000000
timestep 2.0
fix 5 all momentum 1000 linear 1 1 1
(B) the script that does not work
units real
atom_style full
pair_style lj/cut/coul/long 10.0 9.0
bond_style harmonic
angle_style harmonic
dihedral_style charmm
improper_style cvff
special_bonds amber
read_data data.add1_800
pair_modify mix arithmetic
kspace_style pppm 1.0e-4
neigh_modify delay 0 every 1 check yes
group hydro type 2 4 8
timestep 2.0
fix 2 hydro shake 0.0001 20 0 b 1 3 6 7 a 9
group water type 7 8
fix 1 all nve
fix 6 all temp/berendsen 300.0 300.0 500
fix 7 all press/berendsen iso 1.0 1.0 500
run 1000000
timestep 2.0
fix 5 all momentum 1000 linear 1 1 1
Also, the script still gives the same error when I use Berendsen barostat and Nose Hoover thermostat.
Thanks for the help
Sumit Sharma