Counting particles moving through periodic boundary conditions

Submitted by FelixV on Mon, 01/20/2014 - 18:02

Dear all,

i'm fairly new to LIGGGHTS and i'm simulating particles flowing trough a pipe with periodic boundary conditions in flow direction. I would like to count the particles per iteration which are passing my periodic boundary. I'm able to do so by dumping particle positions to a file and check the passing by a script.
I was wondering if there is a way to do so using LIGGGHTS?

Best regards
Felix V.

FelixV | Tue, 01/21/2014 - 11:07

Dear Christian,

thx a lot, i'm looking into it right now.

Regards
Felix

ckloss's picture

ckloss | Mon, 02/17/2014 - 19:06

Hi Felix,

there is also a second possibility: The image flag of each particle (see dump command) always keeps track of which "image" the particle is in

Cheers
Christoph