Hello,
I am using LAMMPS for the first time, and I want to make sure that the SPC Water model is fine, and also I am trying to get the Pair correlation function, but my data seems weird…
LMP File:
units real
atom_style full
dimension 3
boundary p p p
region box block 0.0 24.639 0.0 24.639 0.0 24.639 # ID, Type, lengths
create_box 2 box bond/types 1 angle/types 1 &
extra/bond/per/atom 2 extra/angle/per/atom 1 extra/special/per/atom 2 # nb types, ID, nb types
mass 1 15.9994
mass 2 1.008
pair_style lj/cut/coul/cut 10.0
pair_coeff 1 1 0.1553 3.166
pair_coeff 1 2 0.0 1.0
pair_coeff 2 2 0.0 1.0
bond_style zero
bond_coeff 1 1.0
angle_style zero
angle_coeff 1 104.5
molecule water spce.mol.txt
create_atoms 0 random 500 3454 NULL mol water 2537 overlap 1.33 # Randomly placed 1500 particules with Seed, molecule with name
fix rigid all shake 0.0001 10 10000 b 1 a 1
reset_timestep 0
velocity all create 300.0 5463576
fix integrate all nvt temp 294.0 394.0 100
#Compute RDF and save to file
compute myRDF all rdf 50 1 2
fix 1 all ave/time 100 1 100 c_myRDF[*] file tmp1.rdf mode vector
fix 2 all ave/time 100 1 100 c_myRDF[1] c_myRDF[2] c_myRDF[3] file tmp2.rdf mode vector
thermo_style custom step temp press etotal density pe ke
thermo 1000
run 10000 upto
write_data tip4p.data nocoeff
The mol file:
Water molecule. SPC/E geometry
3 atoms
2 bonds
1 angles
Coords
1 0.00000 -0.06461 0.00000
2 0.81649 0.51275 0.00000
3 -0.81649 0.51275 0.00000
Types
1 1 # O
2 2 # H
3 2 # H
Charges
1 -0.8476
2 0.4238
3 0.4238
Bonds
1 1 1 2
2 1 1 3
Angles
1 1 2 1 3
Shake Flags
1 1
2 1
3 1
Shake Atoms
1 1 2 3
2 1 2 3
3 1 2 3
Shake Bond Types
1 1 1 1
2 1 1 1
3 1 1 1
Special Bond Counts
1 2 0 0
2 1 1 0
3 1 1 0
Special Bonds
1 2 3
2 1 3
3 1 2