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

picmi.ElectrostaticSolver's B field solution is wrong when warpx_relativistic=True #5531

Open
jwestern opened this issue Jan 2, 2025 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@jwestern
Copy link
Contributor

jwestern commented Jan 2, 2025

I tested the magnetic field solution on a current loop on a 3D Cartesian grid. The solution is correct when warpx_magnetostatic=True, but is wrong when warpx_relativistic=True. Compared to the latter case, the solution also changes when both warpx_magnetostatic=True and warpx_relativistic=True. All the E fields are fine in all cases.

If more details are needed, or a reproducer is needed, let me know.

Image comparing Bx By Bz for warpx_relativistic=True vs warpx_magnetostatic=True:
image

Image comparing Bx By Bz for warpx_relativistic=True vs {warpx_relativistic=True & warpx_magnetostatic=True}:
image

@jwestern jwestern added the bug Something isn't working label Jan 2, 2025
@jwestern jwestern changed the title picmi.Electrostaticsolver's B field solution is wrong when warpx_relativistic=True picmi.ElectrostaticSolver's B field solution is wrong when warpx_relativistic=True Jan 2, 2025
@RemiLehe RemiLehe self-assigned this Jan 7, 2025
@RemiLehe
Copy link
Member

RemiLehe commented Jan 7, 2025

Thanks for raising this issue.

Could you share your WarpX input script for this setup? This would help us reproduce the issue and investigate why the relativistic solver gives incorrect results.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants