Dear all
I am a beginner of lammps and I am trying to simulate the freezing process of water with TIP4P/2005 model.
Firstly, I tried to build a system with half water and half ice. After that I used nvt to control the temperature under its melting point. However the ice started to collapse and began to act weirdly since the nvt process have started. I am trying to find out what happened but have no clue. Maybe I have made a stupid mistake. Please help me with it.
here is my input file:
dimension 3
boundary p p p
units real
atom_style full
neighbor 3.0 bin
neigh_modify every 1 delay 0 check yes
pair_style lj/cut/tip4p/long 1 2 1 1 0.1546 10.0 8.5
bond_style harmonic
angle_style harmonic
kspace_style pppm/tip4p 0.0001
read_data tip3p.data
pair_coeff 1 1 0.1852 3.1589
pair_coeff 2 2 0.0 0.0
pair_coeff 1 2 0.0 0.0
bond_coeff 1 0.0 0.9572
angle_coeff 1 55.0 104.52
region WATER block INF INF INF INF INF 0.0 units box
group water region WATER
group ice subtract all water #all - water
timestep 1.0
velocity all create 100.0 123456 dist gaussian
thermo 1000
thermo_style custom step temp press etotal
dump 1 all custom 10000 testing-1.xyz id type x y z
fix 1 all shake 0.0001 20 0 b 1 a 1
fix 2 all npt temp 100.0 100.0 100.0 aniso 0.0 0.0 100.0
run 10000000
unfix 2
fix 3 water nvt temp 400.0 400.0 100.0
fix 4 ice spring/self 10.0
run 20000
unfix 3
unfix 4
fix 5 all recenter 0.0 0.0 0.0
fix ice6 ice nvt temp 100.0 100.0 100.0
fix water6 water nvt temp 100.0 100.0 100.0
run 15000000
here is part of my data file
576 atoms
384 bonds
192 angles
0 dihedrals
0 impropers
2 atom types
1 bond types
1 angle types
-7.688405550 7.751594450 xlo xhi
-7.762002600 6.737997400 ylo yhi
-13.373225400 13.316774600 zlo zhi
Masses
1 15.999400 # o*
2 1.007970 # h*
Atoms # full
1 1 1 -0.820000 -6.298405550 -5.362002600 -9.863225400 0 0 0 # o*
2 1 2 0.410000 -7.188405550 -5.712002600 -9.893225400 0 0 0 # h*
3 1 2 0.410000 -5.878405550 -5.712002600 -10.653225400 0 0 0 # h*
4 1 1 -0.820000 -2.478405550 -2.802002600 -12.153225400 0 0 0 # o*
5 1 2 0.410000 -3.368405550 -2.462002600 -12.123225400 0 0 0 # h*
6 1 2 0.410000 -2.058405550 -2.462002600 -11.363225400 0 0 0 # h*
Thanks and best wishes to you all
RX