Skip to content
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

Merged
merged 6 commits into from
Mar 4, 2025

Conversation

dpgrote
Copy link
Member

@dpgrote dpgrote commented Feb 24, 2025

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.
energy_explicit_VandB
energy_explicit_Esirkepov

@dpgrote dpgrote added the enhancement New feature or request label Feb 24, 2025
@ax3l ax3l requested a review from JustinRayAngus February 25, 2025 00:06
@ax3l ax3l self-requested a review February 25, 2025 00:07
@JustinRayAngus
Copy link
Contributor

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.

@JustinRayAngus
Copy link
Contributor

We should also update the docs to reflect this PR.

https://warpx.readthedocs.io/en/latest/usage/parameters.html#particle-push-charge-and-current-deposition-field-gathering

Copy link
Contributor

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.

@JustinRayAngus JustinRayAngus self-requested a review February 27, 2025 01:13
Copy link
Contributor

@JustinRayAngus JustinRayAngus left a 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.

@dpgrote
Copy link
Member Author

dpgrote commented Feb 27, 2025

@ax3l You requested a self-review. Did you still want to review this PR?

@RemiLehe RemiLehe merged commit 546a972 into ECP-WarpX:development Mar 4, 2025
37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants