[lammps-users] fix spring couple

Hi, LAMMPS users,

I wold like to use " fix ID group_ID spring couple group_ID2 K x y z R0". I am wondering if group_ID2 can be the same as group_ID. I have made a trial run, LAMMPS gives nan for energy and coordinates of particles even though I make the value of K is very very small.

All the best!

Dongsheng

Hi, LAMMPS users,

hi dongsheng,

I wold like to use " fix ID group_ID spring couple group_ID2 K x y z R0". I
am wondering if group_ID2 can be the same as group_ID. I have made a trial

please think about this. the distance between the same group is _always_ 0.
so a fix spring of a group coupling to itself makes no sense. please explain
what you want to achieve and perhaps somebody can suggest an alternative.

cheers,
   axel.

I agree with Axel - LAMMPS should flag this an input error - I'll add a check.

Steve