-
Notifications
You must be signed in to change notification settings - Fork 200
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Villasenor and Buneman current deposition with explicit scheme #5700
Add Villasenor and Buneman current deposition with explicit scheme #5700
Conversation
This looks good Dave. Have you tried running with explicit yet? There is a WARPX_ALWAYS_ASSERT_WITH_MESSAGE in WarpX.cpp that prevents using Villasenor with explicit. That can be removed. |
We should also update the docs to reflect this PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need a minor update here on line 2257 as well to reflect villasenor option below.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
Thanks Dave.
@ax3l You requested a self-review. Did you still want to review this PR? |
The Villasenor and Buneman current deposition was moved to a separate kernel routine and added implicit and explicit callers.
A test case is a 2D uniform plasma, run for a number of plasma periods. The images below show the relative change in the energgy for the parts of the system. The total energy is conversed to roughly 1.e-5. The results are shown for both the Villasenor and the Esirkepov current deposition. The results are essentially the same, with the differences in the two cases below the resolution of the images.

