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

using tracking sentence at inization script #394

Open
ilikeelec opened this issue Sep 9, 2023 · 1 comment
Open

using tracking sentence at inization script #394

ilikeelec opened this issue Sep 9, 2023 · 1 comment

Comments

@ilikeelec
Copy link

hi, when I use tracking , I find that the date from the ionization script the tracking sentence always asking for the argument var_list. But it is not at pre-ionization paticles
image
image

@RemiLehe
Copy link
Member

RemiLehe commented Oct 4, 2023

Hi @ilikeelec,
It seems that the issue is that the openPMD file does not contain the ID data for the particles (the ID data is required by openPMD-viewer in order to be able to track particles).
It looks like you were maybe using FBPIC here, is that correct? If yes, than you can store the particle ID by using the track method: https://fbpic.github.io/api_reference/particles.html#fbpic.particles.fbpic.particles.Particles.Particles.track
as shown in this example:
https://github.com/fbpic/fbpic/blob/dev/docs/source/example_input/ionization_script.py#L152

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants