Error: too many groups.

Hi Axel

Here you can find a sample input with its required restart file.

I am wondering if there is any way to remove all implicit groups.

Thanks a lot for your attention,

Best Regards,
Saly

restart2,10M2014ONov25.10000000 (3.17 MB)

in (3.14 KB)

Hi Axel

Here you can find a sample input with its required restart file.

Restart files are useless for this since they are in general not portable across lammps versions and platforms.

Axel

With my data file I have no problem to handle this error. My problem is with my restart file. because it seems there are some groups implicitly in my restart file that I forgot them but I need to delete them to define some other groups.

Is there any way to remove all previous groups?

With my data file I have no problem to handle this error. My problem is with
my restart file. because it seems there are some groups implicitly in my
restart file that I forgot them but I need to delete them to define some
other groups.

please note that the restart documentation states that a restart
recreates all groups that were present at the time of the restart.
to avoid this, you'd have to use the write_data command and restart
from a data file.

axel.

With my data file I have no problem to handle this error. My problem is with
my restart file. because it seems there are some groups implicitly in my
restart file that I forgot them but I need to delete them to define some
other groups.

Is there any way to remove all previous groups?

you can use the "strings" command (on the command line) to view
strings embedded in binary files. if i do this on your provided
restart file, i get something like this:

17 Oct 2012
real
full
hexane
methyl
water
salt
BulkR
InterfaceL1
InterfaceL2
InterfaceL3
InterfaceL4
InterfaceR1
InterfaceR2
InterfaceR3
InterfaceR4
IntHydronL1
IntHydronL2
IntHydronL3
IntHydronL4
IntHydronR1
IntHydronR2
IntHydronR3
IntHydronR4
lj/charmm/coul/long/opt
-\`4 @d\] \-`4 @
?Zd;
harmonic
harmonic
multi/harmonic
@||Bv
waterdiff_store_state
store/state
hexanediff_store_state
store/state
soldiff_store_state
store/state
:

this tells me that you use a way outdated version of LAMMPS,
you have units "real" and atom style "full"
and that your predefined groups are likely called:

hexane
methyl
water
salt
BulkR
InterfaceL1
InterfaceL2
InterfaceL3
InterfaceL4
InterfaceR1
InterfaceR2
InterfaceR3
InterfaceR4
IntHydronL1
IntHydronL2
IntHydronL3
IntHydronL4
IntHydronR1
IntHydronR2
IntHydronR3
IntHydronR4

There is also a group delete command, which you

could invoke after reading your restart file.

Steve