Repository navigation
§9.5 notebook: shoot with Lorenz63, plot via to_pyleo, resolve TODOs - #62
Merged
Merged
Conversation
- Periodic-orbit shooting now integrates the Lorenz63 critter itself (DOP853, rtol = atol = 1e-12 through integrate's method/kwargs) instead of a bare scipy RHS, possible since #56. The cycle branch is unchanged to 2e-11; the whole notebook runs in ~20 s. - The solver check re-integrates the cycles with RK45, an independent scheme, rather than checking the critter against itself. - y(t) figures (9.5.3, 9.5.5, sensitivity) go through Output.to_pyleo, overriding pyleoclim's default 'years CE' time label with xlabel='$t$' (the workaround from #53). - Remove the TODO cell: #51 done, #53 closed as not planned, #52 noted where the shoot/continue_cycle prototypes live; paper figures are styled in the paper repo. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Notebooks changed:
Review visual diffs and comment on any notebook cell. All comments sync back to this PR. Powered by ReviewNB |
Drop the equations and the close paraphrase of the book's discussion. Keep short descriptions of what each figure reproduces, and point to the book (Sections 9.2 and 9.5) for definitions such as C+/C- and r_H. Only markdown changes; code and outputs are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Pass a compiled cc.forcing.Ramp sequence as rho (22 -> 26 -> 22 over 2 x 4000 time units) and plot x against r for the up- and down-sweeps. The trajectory leaves C+ at r = 25.6 going up and settles at r = 23.05 going down, which brackets the bistable range [24.06, r_H]. The caption explains the extra width (delayed Hopf, long chaotic transients) and notes that a 4x slower ramp narrows the loop to [23.72, 25.17]. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- One rcParams block in the setup cell, adapted from borehole_val's journal style: left/bottom spines only, light dotted grid, Arial for both text and math, bold titles, frameless legends, and a small palette (BLUE, RED, ORANGE, INK) used throughout. - Hysteresis figure: C+ and C- labelled on the plot, swept trajectories drawn in front of the dashed fixed-point curves, panel labels moved clear of the data and colored to match their curves. - Sensitivity plot: C+/C- labelled at the right end of their lines. Fig. 9.5.2: white backing behind the C+ label inside the spiral. Fig. 9.5.1: 'strange attractor' split over two lines so it isn't clipped. - Reference lines sit behind the data (zorder=0). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Follow-up to #55, now that #56 is merged. Resolves the notebook's TODO list.
Changes to
notebooks/applications/strogatz_9.5_lorenz_parameter_space.ipynbflow()now integratesLorenz63(sigma, rho=r, beta)viaintegrate(method='DOP853', kwargs={'rtol': 1e-12, 'atol': 1e-12})instead of a baresolve_ivpRHS. The orbits for Fig. 9.5.1(b) come from the critter'soutput_timesampling.Output.to_pyleo(Figs 9.5.3, 9.5.5 and the sensitivity plot), with pyleoclim's defaultyears CEtime label overridden byxlabel='$t$'. This is the workaround noted when Output.to_pyleo mislabels dimensionless model time as 'years CE' #53 was closed.shoot/continue_cycleprototypes for it live.The notebook is committed executed; 0 errors.
🤖 Generated with Claude Code