Current Continuity in 1D PIC #5331
-
When I run the conditions for Turner's benchmark (https://doi.org/10.1063/1.4775084, but am unable to match power to electrons: My guess is that the root of this problem is that total current is not continuous across the device, as should be the case from the steady state continuity equations: Do you know what is leading to this non-continuous current in WarpX? I have ran Turner's benchmark on another code in the past and did not have issues with current continuity. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
Some possibly helpful information I've found since my initial post: Turner's benchmark utilizes a time step such that Thank you! |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
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$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.
J
's? In WarpX at time