Blank electric field option for implicit solvers - #7224
Open
JustinRayAngus wants to merge 14 commits into
Open
Conversation
dpgrote
reviewed
Aug 31, 2026
dpgrote
reviewed
Sep 1, 2026
| const amrex::IntVect ncomp_zz = m_ncomp_zz; | ||
|
|
||
| if (!m_blank_electric_field[0]) { | ||
| amrex::ParallelFor( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is the first of two PRs adding the capability to not evolve ("blank") user-specified components of the electric field when using the electromagnetic implicit solvers. This PR introduces the basic functionality, while a follow-on PR will exploit the blanking options to improve the efficiency of the implicit solve.
In 1D geometry, this feature enables the electromagnetic implicit solvers to be used as the energy-conserving electrostatic model described in https://doi.org/10.1016/j.jcp.2011.05.031, in which the electric field is advanced via Ampère's law. This approach has been used in the following works:
In 2D XZ and RZ geometries, this feature can be used to disable evolution of the out-of-plane y-component of the electric field. This is suitable for problems with symmetries for which only in-plane currents are relevant (e.g. m=0 modes in a Z-pinch).
When symmetries permit field blanking, there is potential to significantly improve the efficiency of the implicit solvers. For example, when the y-component of the electric field can be ignored, the number of required mass matrices is reduced from 9 to 4: only
sigma_xx,sigma_xz,sigma_zx, andsigma_zzare needed.TODO list: