Skip to content

Current Continuity in 1D PIC #5331

Discussion options

You must be logged in to vote

Hi @budjensen. Thanks for bringing this up!

I'm wondering if the time-centering of the currents might play a role here. How are you getting the individual J's? In WarpX at time $t_n$ the $x_n$ positions and $u_{n-1/2}$ velocities are known, so to get $J_{t=n}$ the velocities should be pushed forward by a half time step. An issue of this type would show smaller error with smaller $\Delta t$ as you observed and be more noticeable for the electrons since their velocities change more drastically over a single step.

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
1 reply
@budjensen
Comment options

Comment options

You must be logged in to vote
5 replies
@budjensen
Comment options

@roelof-groenewald
Comment options

@budjensen
Comment options

@roelof-groenewald
Comment options

@budjensen
Comment options

Answer selected by budjensen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
2 participants