Skip to content

Current Continuity in 1D PIC #5331

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 Δ 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

You must be logged in to vote
1 reply
@budjensen

You must be logged in to vote
5 replies
@budjensen

@roelof-groenewald

@budjensen

@roelof-groenewald

@budjensen

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