Counters and Barycenters¶
particle_counter¶
Counts the number of particles per type in a region.
| Parameter | Description |
|---|---|
name |
output file, default ParticleCounter.txt |
types |
particle types, e.g. [0, 1, 2] (required) |
region |
region, default the whole domain |
Add it to the analyses batch (see example/polyhedra/analyses/particle_counter.msp):
With gnuplot:


particle_barycenter¶
Computes the barycenter of the particles of each type in a region.
| Parameter | Description |
|---|---|
name |
output file, default ParticleBarycenter.txt |
types |
particle types, e.g. [0, 1, 2] (required) |
region |
region, default the whole domain |
Add it to the analyses batch (see example/polyhedra/analyses/particle_barycenter.msp):
With gnuplot:

