the problem of the command of "read_dump"

Dear all,

I have a problem of the command of “read_dump” in the keyword of “add” value
I want some atom insert into the original system with " replace no add yes"
but the atom can not be added in the system with the command of
read_dump cnt200.atom 10 x y z replace no add yes

my script and log file shown below:

in file
"units metal
boundary p p p
#lattice fcc 1.0
timestep 0.001
atom_style atomic
read_data cnt.data

group cnt type 1
group ni type 2

velocity cnt create 300.0 4928459 rot yes dist gaussian
velocity all set 0.0 0.0 0.0 units box

read_dump cnt200.atom 10 x y z box no replace no add yes

pair_style tersoff
pair_coeff * * NC.tersoff C N
…"

the content of cnt200.atom are shown below:

“ITEM: TIMESTEP
10
ITEM: NUMBER OF ATOMS
5
ITEM: BOX BOUNDS pp pp pp
-100 100
-100 100
-100 100
ITEM: ATOMS id type xs ys zs
1 1 15.6 10.2 10.2
2 2 10.480102 20.472613 10.50614
3 2 10.486231 20.469074 10.50614
4 2 10.489539 20.467805 10.5
5 1 10.496461 20.466333 10.5”

while for the log file in the read_dump part is shown:
“…
read_dump cnt200.atom 10 x y z replace no add yes
orthogonal box = (-100 -100 -100) to (100 100 100)
370 atoms before read
5 atoms in snapshot
0 atoms purged
0 atoms replaced
0 atoms trimmed
0 atoms added
370 atoms after read
…”

the program can recognize 5 atoms in the cnt200.atom file while it can not be added in the program

Is someone meet the same problem?
thanks so much for your great help!

Lu

Yes. I am meeting the problem of people not reading the documentation all the time.

Are the atom IDs in the dump that you want to read new to the system? It doesn't look like it.

The documentation clearly states that this is a requirement.

Axel.

yes, you are right, axel.
With the new ID of the insert atoms, it work so well.
sorry not reading the documentation carefully :frowning:
Thanks so much for your great help!

Lu