Dumping of different atom types in different files

Submitted by RobertG on Tue, 10/28/2014 - 16:00

Hello,
I'm trying to model a mixer, which mixes two different particles. To improve the handling of the results, I'm trying to save the data of the particles/atoms in to different files.
Without any success ...

Here the basic situation:

:
create_box 2 reg
:
fix pts all particletemplate/sphere 1 atom_type 1 ...
fix pts2 all particletemplate/sphere 1 atom_type 2 ...
:
fix pdd all particledistribution/discrete ...
fix pdd2 all particledistribution/discrete ...
:
fix ins1 all insert/rate/region ...
fix ins2 all insert/rate/region ...
:
dump dmp all custom ...

I have read, that it is possible to modify the dump comand, by modifying the Group-ID "all".
But I didn't manage too make it work.

I hope somebody can help me.

Best regards
RobertG

ckloss's picture

ckloss | Thu, 10/30/2014 - 14:51

Hi RobertG,

I would simply do the following:

#do this at the very beginning when there are no particles in the simulation
group grp1 region reg
group grp2 region reg

#change groups for templates
fix pts grp1 particletemplate/sphere 1 atom_type 1 ...
fix pts2 grp1 particletemplate/sphere 1 atom_type 2 ...

#use 2 dumps with different groups
dump dmp1 custom grp1...
dump dmp2 custom grp2...

Best wishes
Christoph

RobertG | Thu, 10/30/2014 - 21:06

Dear Christoph,
thanks, that worked.

Best regards
RobertG