Time step of ux/uy/uz and Ex/Ey/Ez(Bx/By/Bz). #5094
-
I want to add a new pusher, but i don't know the time align of the physic variable. For example, is this boris method use the n - 1/2 step ux, uy, uz and n step Ex, Ey, Ez and Bx, By, Bz to get n + 1/2 step ux, uy, uz?
Is there anyway to get the ux, uy, uz at n - 1/2 and n + 1/2 timestep and x/y/z/Ex/Ey/Ez/Bx/By/Bz at n timestep. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You are correct: in the WarpX code, the boris method uses the The positions x, y, z are also known at the |
Beta Was this translation helpful? Give feedback.
You are correct: in the WarpX code, the boris method uses the
n - 1/2
step ux, uy, uz and then
step Ex, Ey, Ez and Bx, By, Bz to getn + 1/2
step ux, uy, uz. (In particular, in WarpX, even when using FDTD, the B field is known at then
step - because we perform to half-step push of B)The positions x, y, z are also known at the
n
step before callingPushXP
. They are known at then+1
step after callingPushXP
.