serial version of elegant renumbers particleID values
Posted: 25 Oct 2019, 15:03
A lot of my post-processing revolves around picking an individual particle in a bunch and seeing its trajectory, or looking at lost particles and seeing where they started, etc. The only way I know how to do this is to use a WATCH element and track particles by their particleID. For Pelegant, this seems to work fine, but when using serial elegant the particleID values get altered after particle losses so they always take the range 1..npart, where npart is the current # of particles. This breaks my postprocessing, and it also makes me worry that maybe in certain conditions I cannot rely on the particleID remaining constant during a simulation even when using Pelegant.
In theory I could use the lost particles file to figure out how the particleID values are being reassigned, assuming they are just being shifted. But that is complicated and I was wondering if there is a flag I can set to prevent particleID from changing during a run. Is there a better way to label the particles to keep them distinct?
I am currently using the 2019.1.1 version of elegant.
Thanks,
Gregg
In theory I could use the lost particles file to figure out how the particleID values are being reassigned, assuming they are just being shifted. But that is complicated and I was wondering if there is a flag I can set to prevent particleID from changing during a run. Is there a better way to label the particles to keep them distinct?
I am currently using the 2019.1.1 version of elegant.
Thanks,
Gregg