Repository navigation
Precondition midpoint collision and diffusion - #28
Closed
rogeriojorge wants to merge 1 commit into
Closed
rogeriojorge wants to merge 1 commit into
rogeriojorge wants to merge 1 commit into
Conversation
rogeriojorge
marked this pull request as ready for review
July 13, 2026 14:58
rogeriojorge
force-pushed
the
agent/solvax-newton-midpoint
branch
from
July 16, 2026 14:13
5c23eb9 to
db8a2fe
Compare
rogeriojorge
force-pushed
the
agent/midpoint-collision-diffusion-preconditioner
branch
from
July 16, 2026 14:13
5b5bce8 to
934dc4e
Compare
Member
Author
|
Superseded by the x-streaming line preconditioner in #21, which includes collision and diffusion and needs ~25x fewer GMRES iterations than this diagonal (133 vs 3527 on the stiff Landau case). |
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.
Summary
The inverse action is local and matrix-free:
The electromagnetic residual is left unchanged. Users opt in with
ImplicitMidpoint(preconditioner=collision_diffusion_preconditioner).Depends on #27.
Why
Collisions are diagonal in Hermite space and diffusion is diagonal in Fourier
space, so their exact midpoint contribution is the cheapest physics-based
approximation to the full kinetic Jacobian. It requires no assembled matrix,
factorization, or communication and is compatible with local Hermite shards.
Validation
pytest -q: 7 passed65² / (28,4,4),dt=1e-3, 20 midpoint steps,D=1:1.96e-11inCk,1.55e-13inFk4.85e-16to1.21e-16D=0control:Ckdifference2.48e-15; energy agrees to roundoffDistributed nonlinear/Krylov inner products are intentionally left to a
separate PR after the midpoint and parallel stacks share a common base.