Mass recording of a specific particle size

Submitted by Mishal on Tue, 04/05/2022 - 15:16

Hi Guys

I have a situation where I need to measure the mass of particles which are divided into two types, each type has a range of particles.
Below is the code which I developed. I have made a group called "large" which consists of type 1.
When I try and print out the mass of the type 1 particles and resulting csv file only has 0 values.

I do get results when changing the "large" to "all" when measuring the mass, however this does not help me.
Can someone please assist in explaining where I went wrong.

fix pts1 all particletemplate/sphere 15485863 atom_type 1 density constant 2800 radius constant 0.03175
fix pts2 all particletemplate/sphere 15485867 atom_type 1 density constant 2800 radius constant 0.0254
fix pts3 all particletemplate/sphere 32452843 atom_type 1 density constant 2800 radius constant 0.019
fix pts4 all particletemplate/sphere 32452867 atom_type 1 density constant 2800 radius constant 0.0127
fix pts5 all particletemplate/sphere 49979687 atom_type 2 density constant 2800 radius constant 0.00953
fix pts6 all particletemplate/sphere 49979693 atom_type 2 density constant 2800 radius constant 0.00635
fix pts7 all particletemplate/sphere 67867967 atom_type 2 density constant 2800 radius constant 0.00478
fix pts8 all particletemplate/sphere 67867979 atom_type 2 density constant 2800 radius constant 0.00335
fix pts9 all particletemplate/sphere 86028121 atom_type 2 density constant 2800 radius constant 0.00239

group large type 1

region undersizeblock block 0 3 -2 6 -2 6 units box
variable undersizemass equal mass(large,undersizeblock)
fix output all print 1000 "${undersizemass}" screen no file regionmeaurements.csv title "Undersize"

Mishal | Thu, 04/07/2022 - 08:36

Thanks, I figured it out yesterday, I am using multiple runs to capture data at specific points in time.

CiccyC0001 | Thu, 02/02/2023 - 17:00

Hello, I have the same problem, I need to output the quality of a specific group over time, could you tell me how you do it? I would be very thankful!