Skip to content

Add FullOrbitAdaptative model and correct SIMSOPT tracing comparison#45

Merged
EstevaoMGomes merged 1 commit into
uwplasma:eg/analysisfrom
Tejas7007:fix/simsopt-comparison
Jul 17, 2026
Merged

Add FullOrbitAdaptative model and correct SIMSOPT tracing comparison#45
EstevaoMGomes merged 1 commit into
uwplasma:eg/analysisfrom
Tejas7007:fix/simsopt-comparison

Conversation

@Tejas7007

Copy link
Copy Markdown

Adds an adaptive full-orbit model and fixes the SIMSOPT comparison scripts so the tracing benchmark is like-for-like.

FullOrbitAdaptative : full orbit was fixed-step only (Boris needs constant Δt). This adds an adaptive option so the comparison can use matched step control and Boris path is unchanged.

Comparison scripts : the plain GuidingCenter/FullOrbit/FieldLine models ignored atol/rtol (no stepsize controller → ConstantStepSize), and the default solver was Dopri8 while scripts labelled it Dopri5. Scripts now use the Adaptative models with solver=diffrax.Dopri5() on both sides, matched output points, and working atol/rtol/num_steps.

Rebased on eg/analysis (post-#42). Verified the scripts run on the merged base.

ESSOS is faster where only B is evaluated (full orbit, field lines) and slower for guiding centre where ∇|B| is autodiffed, as expected given the analytical-vs-autodiff gradient difference the paper already documents.

@EstevaoMGomes
EstevaoMGomes self-requested a review July 17, 2026 13:51

@EstevaoMGomes EstevaoMGomes left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Simple PR that I think is ready to be merged

…ive and correct simsopt tracing comparison (adaptive models, Dopri5, matched output points). Verified: 12 examples FAIL->PASS, zero regressions.
@Tejas7007
Tejas7007 force-pushed the fix/simsopt-comparison branch from e142c34 to c2a0280 Compare July 17, 2026 14:17
@EstevaoMGomes EstevaoMGomes added the benchmark Benchmarks the code agains another label Jul 17, 2026
@EstevaoMGomes
EstevaoMGomes merged commit 66e2dcd into uwplasma:eg/analysis Jul 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

benchmark Benchmarks the code agains another

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants