Atom creation with different id

Submitted by sourav0921 on Fri, 04/26/2019 - 08:16

Hi all,
I want to create two particles with two different id using the following command
create_atoms 1 single 0.95 0.4 0.5
set atom 1 type 1 diameter 0.02 density 2500 vx 2 vy 0 vz 0
create_atoms 2 single 0.99 0.4 0.5
set atom 1 type 2 diameter 0.02 density 2500 vx 0 vy 0 vz 0

but when I trying to compile the script file it says
ERROR: Invalid atom type in create_atoms command (../create_atoms.cpp:102)

Can anyone please enlighten me that waht I am doing wrong?

Thanks and regards,
Sourav

sourav0921 | Fri, 04/26/2019 - 09:07

Hi richti83,
I am new in LIGGGHTS. Can you please tell me why it shows invalid atom type?

Thanks and regards,
Sourav