Hi All,
I am very new to lammps so i am sorry to bother everyone but I have been stuck trying to modify a tip4p explicit water box to include salt. My intial guess was to use the explict water model example here and add in the lines for creating the salt atoms into the configuration given therein.
units real
atom_style charge
atom_modify map array
region box block 0 34 0 29 0 73
create_box 5 boxmass 1 15.9994
mass 2 1.008
mass 3 1.0e-100
mass 4 24.305
mass 5 35.453pair_style lj/cut/coul/cut 8.0
pair_coeff 1 1 0.1550 3.1536
pair_coeff 2 2 0.0 1.0
pair_coeff 3 3 0.0 1.0
pair_coeff 4 4 0.04690 2.43
pair_coeff 5 5 0.1500 4.04470 # ion Clfix mol all property/atom mol ghost yes
molecule water tip4p.mol
create_atoms 0 random 1600 34564 NULL mol water 25367 overlap 1.33
create_atoms 4 random 5 15154 NULL overlap 0.3 maxtry 500
create_atoms 5 random 5 15147 NULL overlap 0.3 maxtry 500set type 4 charge 1
set type 5 charge -1neigh_modify exclude molecule/intra all
timestep 0.5
fix integrate all rigid/small molecule langevin 300.0 300.0 100.0 2345634thermo_style custom step temp press etotal density pe ke
thermo 2000
run 40000
write_data Na-Cl-tip4p-explicit.data nocoeff
I know there is something fundamental that I am missing but I have not been able to figure out what.