Add force to each atom

Hi all,

In my simulation I have 50 atoms.
And I wish to add different forces to them.
I was trying 'fix addforce' command to do that. There I was defining
the force for each groups ( where in a group I have single atom).
But, as per Lammps manual, I cant assign more than 32 groups as a whole.
Then how can it be done ?

Best,

Hi all,

In my simulation I have 50 atoms.
And I wish to add different forces to them.
I was trying ‘fix addforce’ command to do that. There I was defining
the force for each groups ( where in a group I have single atom).
But, as per Lammps manual, I cant assign more than 32 groups as a whole.
Then how can it be done ?

Use an atom style variable or fix external or write your own fix style.