Hello everybody. It’s my first week using LAMMPS, so I am still wrapping my mind on it. I am writing a pretty simple script to simulate a bunch of particles interacting through Coulomb potential, but it doesn’t matter which particular combination of coefficient I use, I am unable to get a useful result. We are talking about a very linear setting: a box, few particles together, pair_style could/cut, and let them interact! But nope, what happens here is that after a few steps (about 200), 99% of the particles freeze and a few of them run wildly through the space. I am posting here the script, hoping that someone would be kind to knock me over it pointing at the very dumb mistake I am doing.
3D Coulomb melt
units lj
atom_style charge
dimension 3
boundary p p p
lattice fcc 0.2
region box block 0 50 0 50 0 50
create_box 2 box
region droplet sphere 25 25 25 10
create_atoms 1 random 20 12345 droplet # anion
create_atoms 2 random 20 54321 droplet # cation
Mass to atoms
mass 1 1.0
mass 2 1.05
Charges to atoms
group g1 type 1
group g2 type 2
set group g1 charge -0.8
set group g2 charge 0.8
velocity all create 0.5 87287
pair_style lj/cut/coul/cut 5.0 8.0
pair_coeff * * 5.0 3.0
neighbor 0.2 bin
neigh_modify every 20 delay 0 check yes
fix 1 all nvt temp 0.05 0.05 1.0
dump id all atom 50 dump.lammpstrj
thermo 100
run 100000
dump m1 all movie 1000 movie.avi type type size 640 480