Hello people,
I have a puzzling problem with a cycle of fix_deposit runs.
I’m simulating a large number of ion impacts on a surface to study reflected vs. absorbed energy of the incoming ions. An ion impacts at the beginning of a simulation, the simulation runs for a short while until the ion has either reflected and escaped from the system or it has penetrated the surface and thermalised. Then the next short simulation starts from the same starting substrate, with the He being introduced at a different random location. And so on.
I’m passing a random seed from bash when invoking the lammps executable. The script I’m using for a short test of just 100 impacts looks as follows:
counter=1
while [ $counter -lt 101 ]; do
~/bin/lammps-Oct2014-USERMISC-mpi -var seed1 bash -c 'echo $RANDOM'
< in.WHe
mv dump dump.$counter
mv log.lammps log.lammps.$counter
let counter=counter+1
done
The problem is that while the x-y region where ions are supposed to be inserted is 64A x 64A, ions are introduced over the entire y-range, but only in an x-range of 0-17A, see attached tiff. I can’t figure out why. The surface is bcc (100) W, equally large and symmetrical in x and y. I checked if the simple bash random number generator was maybe producing very bad random numbers, but that was not the case. While the numbers produced weren’t perfectly evenly spread, they did cover the intended 0-32768 range without major gaps or strong concentrations in one value range, see second attached tiff picture. And I don’t see how bad random numbers would explain why things are ok in the y direction but wrong in the x direction.
My stripped-down in-file for an extremly short 1-impact run (just enough to introduce the He ion) is pasted below. An archive with all the relevant files (including the tiff figures, in case the tiffs don’t make it through to the mailing list post, plus the dump file lines of the introduced He’s called ‘He_lines’) is at
http://131.180.120.142/testdir.tar.gz
Would anyone have an idea why the ions are being introduced only over a part of the surface rather than evenly over the whole surface?
greets,
Peter
Pure W crystal
processors 1 1 1
units metal
atom_style atomic
dimension 3
boundary p p f
read_data begindata
lattice bcc 3.1983
region inserthere block EDGE EDGE EDGE EDGE 52.98 52.99
mass 1 183.84 # W
mass 2 4.0026 # He
pair_style hybrid eam/fs table spline 10000 table spline 10000
pair_coeff * * eam/fs Juslin_W_W.eam.fs W NULL
pair_coeff 2 2 table 1 Juslin_He_He.table HeHe
pair_coeff 1 2 table 2 Juslin_W_He.table.2 WHe
neighbor 1.50 bin
group Heatoms type 2
neigh_modify every 10 delay 10 check yes
fix keepE all nve
print "seed: {seed1}" fix Heflux Heatoms deposit 1 2 2 {seed1} region inserthere id next vx 0.0 0.0 vy 0.0 0.0 vz -538 -538 units box
dump mydump Heatoms custom 3 dump id type x y z vx vy vz fx fy fz
dump_modify mydump element W He
dump_modify mydump sort id
fix vartime all dt/reset 1 NULL NULL 0.025 units box
thermo_style custom step time temp etotal pe ke press pxx pyy
thermo_modify norm no
thermo 1
run 3