Create group of particles with specific radius

Submitted by axia277 on Tue, 05/26/2015 - 03:39

Hi all,

I am trying to create groups of particles with specfic radius. When I create particles I use:

#particle insertion
region factory block -1.4 -0.05 -3.2 -2.4 0.9 1.8 units box
fix pts1 all particletemplate/sphere 1 atom_type 1 density constant 3000 radius constant 0.005
fix pts2 all particletemplate/sphere 1 atom_type 2 density constant 3000 radius constant 0.0095
fix pts3 all particletemplate/sphere 1 atom_type 2 density constant 3000 radius constant 0.019
fix pts4 all particletemplate/sphere 1 atom_type 2 density constant 3000 radius constant 0.038
fix pdd1 all particledistribution/discrete 1. 4 pts1 0.01090 pts2 0.2281 pts3 0.3873 pts4 0.3737
fix ins all insert/rate/region seed 5330 distributiontemplate pdd1 nparticles 30000000 massrate 50 insert_every 1000 overlapcheck yes vel constant 0.0 0.0 -1.0 region factory ntry_mc 1000

I need to create a group of particles with radius 0.0095 in order to determine their velocity with vcm(_group_here_ ,z,region). Can anybody help me please

Regards,

Axia

NTT1508 | Tue, 05/26/2015 - 04:58

Hi mate,
Well, I think there are some simple ways: (1) use group with type. Just assign pts2 (D0.0095) a specific type of atom. (2) Group with specific range of ID might work too

Regards,