[lammps-users] Regarding set charge on atoms

with respect,
I am using two particles in my simulation. Out of these two, one is argon another is proton( H+ ion). I used metal units, atomic style full and set charge on proton is 1.0 and both particles are generated randomly using create_atoms feature of the Lammps. Now, when I am writing down dump, in the dumpfile charge on proton is showing zero. You can find out other related information in the initial commands of the Lammps input file, which is written below.

units metal
dimension 3
boundary p p p
atom_style full
variable side equal 100
variable argon_s equal 1000

variable proton_s equal 100
region box block 0 {side} 0 {side} 0 {side} create_box 2 box create_atoms 1 random {argon_s} 199085 NULL
create_atoms 2 random ${proton_s} 456869 NULL
mass 1 39.94800
mass 2 1
set atom 2 charge 1.0
group argons type 1
group protons type 2
.
.
.

Now here I am writing down initial part of dump file for your reference.
ITEM: TIMESTEP
0
ITEM: NUMBER OF ATOMS
1100
ITEM: BOX BOUNDS pp pp pp
0.0000000000000000e+00 1.0000000000000000e+02
0.0000000000000000e+00 1.0000000000000000e+02
0.0000000000000000e+00 1.0000000000000000e+02
ITEM: ATOMS id type q x y z
246 1 0 2.25636 4.66606 1.02784
81 1 0 152.44 1.85872 0.238644
97 1 0 207.381 7.02469 0.956937
761 1 0 7.00071 28.74 9.54134
23 1 0 21.5885 31.3805 6.27906
681 1 0 61.5956 30.8162 2.58207
1063 2 0 63.5698 33.5208 0.0990556
805 1 0 68.2865 23.1121 1.09053
17 1 0 14.4104 37.0973 1.55575

.
.
.
Note: I have done bold and underline the corresponding output line and command as well.

Please kindly let me know why it is happening. Is there other way to set the charge on particular particle ?

Thanking you in advanced

Sincerely
Abhishek Sharma

you are changing the charge for the atom with the ID 2 in your set command, but you are looking at the atom with the type 2 in the dump file (which has the ID 1063).

with respect,
Thank you so much for your kind attention as you always do.
Now I am using following command to set the charge on proton (which is particle 2 in simulation)
set type 2 charge 1.0
Please do the comment is it right way or not. If there is another way to set charge please let me know the same.

Sincerely
Abhishek Sharma