ECP-WarpX / WarpX

WarpX is an advanced electromagnetic & electrostatic Particle-In-Cell code.
https://ecp-warpx.github.io
Other
292 stars 188 forks source link

External Field and zinject_plane Change with time #4777

Open rl3418 opened 6 months ago

rl3418 commented 6 months ago

I'm trying to simulate an electron beam travelling through an external field with a python input. It seems that you can only have fixed lower and upper bounds for the applied field. Is there a way to define a moving boundary? (i.e. include time dependence for the bounds, x0=-beta*t)

rl3418 commented 6 months ago

Seems that fields applied to the particles allows the inclusion of time dependence.

Is it possible to do a similar thing with the injection plane?

.zinject_plane only takes float. In the boosted frame, a stationary boundary will be moving. Is it possible to define a moving injection plane?
RemiLehe commented 5 months ago

Thanks for your question. Right now, it is not possibility to have the zinject_plane change with time.

rl3418 commented 5 months ago

In a boosted frame simulation, a stationary boundary in the lab frame changes to a moving boundary in the boosted frame. Is that something that is not implemented yet?