Continuous particle injection in 2D3V (circular source in center) #6227
Replies: 2 comments
-
Thanks for this question @kolotinsky1998, and for your interest in WarpX! We unfortunately do not have this capability in WarpX currently (but you can potentially try to reproduce it with Python callback function). There are several capabilities that are close:
|
Beta Was this translation helpful? Give feedback.
-
Thanks a lot for the clarification @RemiLehe!
A follow-up question: regarding the Python callback approach — how efficient is it in terms of performance? This is critical for me, since I plan to run large-scale simulations using either MPI+OpenMP or GPU accelerators. Would it still be possible to achieve high performance with Python callbacks, or will the overhead be too significant in such cases? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello WarpX developers,
I have a question regarding continuous particle injection.
I am working in 2D3V (x–z plane, velocities in all 3 directions) and would like to implement a continuous source of electrons from a circular region in the center of the domain, defined by (x^2 + z^2 < R_inj^2). The injected electrons should have an initial velocity along the y axis (perpendicular to the simulation plane).
I tried the following approach using
do_continuous_injection = 1
, but it only injects particles at the first iteration and no new particles are added afterwards:Here is the animation of the simulated system:
And the full script for this example.
What is the recommended way in WarpX to implement such a continuous central source in 2D3V — e.g. a circular emission region with constant injection of particles every timestep?
Thank you very much for your help!
Best regards,
Daniil Kolotinskii
Beta Was this translation helpful? Give feedback.
All reactions