Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Several TrackParticles diags on one species #285

Open
juliencelia opened this issue Aug 24, 2020 · 2 comments
Open

Several TrackParticles diags on one species #285

juliencelia opened this issue Aug 24, 2020 · 2 comments
Labels
feature-request something that could be added to the code

Comments

@juliencelia
Copy link

Hi smilei team!

Hope everyone is fine;)
Just a requested that could be useful : it could be a good idea to allow to define 2 or more TrackParticle diagnostic for the same specie in a same simulation.

Don't know if it is complicated.

Cheers

Julien

@juliencelia juliencelia added the feature-request something that could be added to the code label Aug 24, 2020
@mccoys
Copy link
Contributor

mccoys commented Aug 24, 2020

Currently this is not possible because the particle ID has a special behavior in Smilei. If there is a filter in the tracking diagnostic, then particles do not have an initial ID. They only obtain the ID when they pass the filter. This means there is no point having another tracking diagnostic because it cannot create the ID anymore.

To have 2 diagnostics, there are 2 solutions:

  • We set all the particle IDs initially, but then we lose the ability to check whether a particle has been filtered already.
  • We set 2 different IDs for each particle (one ID for each diagnostic), but that would require a lot of work and memory.

In the end, it is not clear whether this is really helpful to have 2 diagnostics. You could make a clever filter and post-process the data in 2 groups of particles.

@juliencelia
Copy link
Author

Thanks Mccoys!
I have to think about that ;)

@mccoys mccoys changed the title Several TrackParticles diags on one specie Several TrackParticles diags on one species Aug 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request something that could be added to the code
Projects
None yet
Development

No branches or pull requests

2 participants