Dear All,
I have a system that only has water molecules. I modeled the water with TIP3P and TIP4P model. I am running NVT simulations using the command ‘fix 1 all nvt temp 10 10 0.01’ for tip3p and command ‘fix 1 all rigid/nvt molecule temp 10 10 0.01’ for tip4p. And I use ‘velocity all create 10 123456789 units box dist gaussian’ to generate the initial velocity after the fix command is issued. However, I noticed that the tip4p system is not generating the correct temperature at step zero while the tip3p system looks fine (see both outputs below). Additionally, in the tip4p case, there is a warning message “Cannot count rigid body degrees-of-freedom before bodies are fully initialized (…/fix_rigid.cpp:1144)” in the output file. Presumably, LAMMPS is not able to correctly account for the number of degrees of freedom in the system. This error in temperature evaluation is present not only at time zero but at all times and therefore impacts the dynamics through the thermostat. I would appreciate any advice anyone has on how to “fully initialize the bodies” so that LAMMPS properly accounts for the degrees of freedom.
Best,
Qianping
TIP4P******
LAMMPS (17 Jun 2013)
clear
atom_style full
units metal
dimension 3
boundary p p p
read_data tip4p.dat
3 = max bonds/atom
3 = max angles/atom
orthogonal box = (-1.1558 -1.1558 -1.1558) to (119.855 119.855 119.855)
1 by 1 by 1 MPI processor grid
184000 atoms
138000 bonds
138000 angles
3 = max # of 1-2 neighbors
2 = max # of 1-3 neighbors
2 = max # of 1-4 neighbors
3 = max # of special neighbors
Define interaction parameters
pair_style lj/cut/coul/long 15.0
kspace_style pppm 1.0e-6
pair_coeff * * 0 0 #all other pairs
pair_coeff 1 1 0.006722 3.154 #OW-OW
pair_coeff 1 2 0.000000 0.000 #OW-HW
pair_coeff 2 2 0.000000 0.000 #HW-HW
bond_style harmonic
bond_coeff 1 26.016 0.9572 #water oh bond(oplsrigid-updated)
bond_coeff 2 26.016 0.15 #water om bond(oplsrigid-updated)
angle_style harmonic
angle_coeff 1 3.252 104.52 #OPLS
angle_coeff 2 3.252 52.26 #OPLS
group water type 1 2 3
184000 atoms in group water
run_style verlet
fix 1 all rigid/nvt molecule temp 10 10 0.01
1 rigid bodies with 184000 atoms
neigh_modify delay 0 every 1 check yes page 200000 one 20000
velocity all create 10 123456789 units box dist gaussian
WARNING: Cannot count rigid body degrees-of-freedom before bodies are fully initialized (…/fix_rigid.cpp:1144)
compute h2o_inter water group/group water kspace yes
compute wintrape water pe/atom bond angle
compute h2o_intra water reduce sum c_wintrape
compute totpe all pe
compute h2o_ke water ke
thermo_style custom step temp c_h2o_ke c_h2o_inter c_h2o_intra c_totpe etotal press vol
thermo_modify lost warn flush yes line one
thermo 1000
dump mydump001 all xyz 1000 dump001.xyz
dump_modify mydump001 element O H Hm
run 100000
PPPM initialization …
G vector (1/distance) = 0.227608
grid = 120 120 120
stencil order = 5
estimated absolute RMS force accuracy = 1.50194e-05
estimated relative force accuracy = 1.04304e-06
using double precision FFTs
3d grid and FFT values/proc = 2048383 1728000
Memory usage per processor = 1359.37 Mbytes
Step Temp h2o_ke h2o_inte h2o_intr totpe TotEng Press Volume
0 19.193294 0.002480928 -34192.522 0.000911214 -34192.521 -34192.518 -182939.49 1772035.4