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

Ability to Reconstruct Electromagnetic Fields from One Species of Macroparticle Data Post-Simulation #747

Open
strugglepanda opened this issue Oct 1, 2024 · 3 comments
Labels
feature-request something that could be added to the code

Comments

@strugglepanda
Copy link

The problem and the context

Dear developers, I am a user of Smilei for particle-in-cell (PIC) simulations and have greatly appreciated its capabilities in my research. In my recent work, I have completed simulations where I have access to the macroparticles' positions and moments at various timesteps. My goal is to reconstruct the electromagnetic fields induced specifically by one species of macroparticles and analyze these fields in detail.

Currently, I haven't found a built-in functionality in Smilei that allows for reconstructing electromagnetic fields solely from existing particle data of a specific species. This makes it challenging to analyze the electromagnetic fields corresponding to particular particle species configurations after the simulation has been completed. This feature could be helpful for many users.

@strugglepanda strugglepanda added the feature-request something that could be added to the code label Oct 1, 2024
@mccoys
Copy link
Contributor

mccoys commented Oct 1, 2024

Hi,
Unfortunately, I don't think there is a general way to do what you are asking. Generation of EM fields is a collective process involving all species. The only case where that makes sense is when all processes are small enough in amplitude to be linear. However, this case is so specific that I don't think there is a good reason to have a new feature. You can simply run another simulation with only 1 species to isolate its effect.

@strugglepanda
Copy link
Author

Hi, Unfortunately, I don't think there is a general way to do what you are asking. Generation of EM fields is a collective process involving all species. The only case where that makes sense is when all processes are small enough in amplitude to be linear. However, this case is so specific that I don't think there is a good reason to have a new feature. You can simply run another simulation with only 1 species to isolate its effect.

Dear Developer,

Thank you for your timely reply. Indeed, EM field generation inherently involves all species. In my study, I am trying to determine which species contribute most significantly to the radiation.

Since Smilei already allows for diagnosing the current of one species on the grid, I was wondering if it's possible to incorporate this current source with the FDTD solver to reconstruct the EM fields for a specific species in post-processing. Although this feature may only apply to specific cases, it would be very helpful for detailed physics analysis. Many users could benefit from this addition if it is feasible to implement.

Any of your suggestions or comments would be helpful!

@mccoys
Copy link
Contributor

mccoys commented Oct 1, 2024

Again, this only makes sense in the linear regime where species don't interact with each other. If your simulation is in this regime (which is probably not the case), you can simply run the simulation again with 1 species only. If your simulation is not in this regime, then isolating the role of 1 species does not make sense.

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