Skip to content

Time step of ux/uy/uz and Ex/Ey/Ez(Bx/By/Bz). #5094

Closed Answered by RemiLehe
zhazhajust asked this question in Q&A
Discussion options

You must be logged in to vote

You are correct: in the WarpX code, the boris method uses the n - 1/2 step ux, uy, uz and the n step Ex, Ey, Ez and Bx, By, Bz to get n + 1/2 step ux, uy, uz. (In particular, in WarpX, even when using FDTD, the B field is known at the n step - because we perform to half-step push of B)

The positions x, y, z are also known at the n step before calling PushXP. They are known at the n+1 step after calling PushXP.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by zhazhajust
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants