Repository navigation
Document the adaptive integrators' largest step and tolerances - #1679
Conversation
schaubh
left a comment
There was a problem hiding this comment.
Thanks for this documentation improvement. I like making this explicit for the two variable time step RK integrators we provide.
The long explanation for the RK78 is too much. Such a longer discussion would make more sense in an example script, say scenarioVariableTimeStepIntegrators.py?
|
Thank you for the review. I agree the detailed discussion is better suited to an example than to the documentation page, so I have replaced it and the table with a short explanation that the task rate sets the largest step, followed by a warning that the default tolerances may not suit all orbit regimes and should be set appropriately. The same change is made on the RKF45 page, and the release note is shortened to match. On your question about integration errors being reported: the sentence was meant to say that the integrator accepts the full step without any indication, not that it should report an error. With that paragraph removed, the point no longer arises. If it would be useful, I would be glad to open a follow-up pull request adding |
schaubh
left a comment
There was a problem hiding this comment.
Just a minor thing. If you could please squash the 2nd commit with the first to yield a clean branch, then we are ready to merge this PR>
b934201 to
75b514f
Compare
|
Thank you. The two commits are now squashed into one, and the branch has been force-pushed. |
Description
Adds a "Step Size and Tolerances" section to the RKF78 and RKF45 integrator pages. It explains that each task update starts with a step equal to the task period and never takes a longer one, so the task period is the largest step and the tolerances govern accuracy only below it, and that at the default
relTolof 1e-4 a full task period can be accepted through the periapsis of a highly eccentric orbit without the error being reported. The RKF78 page includes measured errors for an e = 0.95 orbit at two task periods and three tolerance settings. A release-note snippet is added.Verification
Documentation only; no code or tests change. The behaviour described matches
svIntegratorAdaptiveRungeKutta.hondevelop(the first trial step is the whole task period, and later steps are capped at the time remaining in it). The table was measured with Basilisk 2.12.2 against a 40-digit solution of Kepler's equation computed independently of Basilisk, using Basilisk's own value of Earth's GM. The new sections parse as valid reStructuredText.Documentation
svIntegratorRKF78.rst and svIntegratorRKF45.rst.
Future work
None planned.