Warwick-Plasma / epoch

Particle-in-cell code for plasma physics simulations
https://epochpic.github.io
GNU General Public License v3.0
184 stars 58 forks source link

1D epoch simulation #681

Closed Khatua03 closed 2 months ago

Khatua03 commented 4 months ago

Dear all, I am simulating some 1D PIC using epoch to understand how it works. But, it is hard for me to understand the simulation as we are using only one dimension (let say x-axis), but all three velocity components. That's why we call it 1D3V PIC simulation. Can anyone please help me understand this? Why we need all 3 velocity components. I guess it is because of the gyroscopic motion of a charged particle in plasma and Ampere's law. If this is the reason, how do we limit the position of the particle only in the x-direction? Can someone please suggest some of the articles to understand 1D PIC? Can someone please suggest how exactly a 1D3V PIC simulation works?

I am also performing one 1D PIC simulation only with one electron. I found that the Ex field is moving only in one direction, i.e., along the direction of elctron motion, while Ey and Ez are symmetric, which is reasonable. My concern is that why Ex stays stationary at one position all the time while the charge is moving. I guess from the plot, it will be clear. I am attaching the plots of Ex, Ey, and Ez with the charge density and input.deck file. Can anyone please help me with this? In all the plots, the x-axis represents grid points, and the y-axis represents time in multiples of 5 fs. Cd Ex Ey Ez input.txt

Thanks, DP Khatua.

Status-Mirror commented 4 months ago

Hey DP Khatua,

For 1D PIC simulations, you can think about it like this. Imagine you have a laser propagating through your 1D line of cells, with a sinusoidal wave in $E_y$. From the Lorentz force, we know that electrons will accelerate in the $E$ direction, so they gain a $v_y$. This in turn generates a current density along $y$, which iteracts with the laser fields through Maxwell's equations. In this way, the laser interacts with the plasma.

By restricting the simulation to 1D, even though particles have $v_y$, there is no particle push in the $y$ direction. Particles don't have a $y$ co-ordinate. Physically, this is the same as modelling an infinite sheet of particles, with a uniform laser profile in $y$ and $z$. Whenever a particle moves up in $y$, it is replaced by the particle below, as all particles are in the same environment along $y$ and $z$.

Your single electron $E_x$ buildup is a different issue. On initialisation, EPOCH assumes each cell is neutral - the code thinks there's an immobile positive charge in the cell your electron starts in. As it moves away, a space-charge field is established from Gauss' law. This is what you're seeing here.

Hope this helps, Stuart

Khatua03 commented 4 months ago

Dear Stuart, Thank you for giving your insight into this issue. It helps a lot. Can you please suggest some publications to understand the 1D simulation in more detail? 3D and 2D are easier to understand. But to understand the working of 1D is a little more complicated.

Thanks, with best regards, DP Khatua

Status-Mirror commented 2 months ago

Hi @Khatua03,

There's no reference I'm aware of which discusses the limits of the 1D PIC approximation, or when it's best to use it. People run 1D simulations when they want a quick result, and they don't care about transverse structure. It's just uniform laser illumination of infinite area targets. Useful for tracking things like heat-flow in 1 dimension.

I'm going to mark this issue as closed for now, but let me know if you have any other questions about 1D PIC simulation.

Cheers, Stuart