-
I'm trying to produce a continuous plasma beam. I was trying to use UniformFluxDistribution in PICMI, but I can't get it to run. I haven't been able to find any examples, and the only information I've seen for it is in the source code for pywarpx. Has this been implemented yet for the PICMI warpx code? Since it wasn't on the PICMI parameters section of the readme, I don't know if I can even implement it. This was my attempt at getting an electron beam to emit particles from the left side of the simulation, but it crashes immediately on startup. I'm assuming I'm missing parameters, but I don't know what else I would need to add. electron beamelectron_beam = picmi.UniformFluxDistribution(lower_bound=[-dX, None, -dZ], If there is a better way to implement an constant stream of particles using PICMI, then I'd happily add that to me simulation. Otherwise I may have to remake my python file into an input file and run using the nfluxpercell for emission. Thank You for any help. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hi, Also: do get any error message, when your simulation crashes at startup? |
Beta Was this translation helpful? Give feedback.
-
Thank you for the quick reply. I'm currently trying to get a small example working from the example you gave me, but I wasn't able to get it working immediately on Windows. Something with mpi4py is not working with my conda distribution of warpX. About the error message, here is what I run: And here is what I get: OMP initialized with 32 OMP threads I had assumed that I was using the UniformFluxDistribution wrong, and that the error was a result of incorrect parameters. |
Beta Was this translation helpful? Give feedback.
Hi,
We are in the process of adding an example that uses
UniformFluxDistribution
, as part of this PR:https://github.com/ECP-WarpX/WarpX/pull/4413/files#diff-a3f76b976bcab620a76e40fb49a17b2f8458a078331fe99893aa504b164b140fR197
Does this help?
Also: do get any error message, when your simulation crashes at startup?