-
-
Notifications
You must be signed in to change notification settings - Fork 214
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added FineRKN5
Algorithm
#1948
Added FineRKN5
Algorithm
#1948
Conversation
… Algorithm added. The perform_step! function is not yet written. The Nystrom5 algorithm is based on "Fine, Jerry Michael. "Low order practical Runge-Kutta-Nyström methods." Computing 38.4 (1987): 281-297".
… place and out of place ODEs however the convergence test is not passt for order >1.
… function so that coefficients with the value of zero are excluded.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great, thanks a lot! This looks already quite good to me. Interpolants and error estimators can be added later in another PR.
Could you please add FineRKN5
to docs/src/dynamical/nystrom.md
to include it in the docs.
Co-authored-by: Hendrik Ranocha <[email protected]>
Co-authored-by: Hendrik Ranocha <[email protected]>
Co-authored-by: Hendrik Ranocha <[email protected]>
Co-authored-by: Hendrik Ranocha <[email protected]>
Thanks! The PR looks good so far but convergence tests are failing? |
The convergence tests failing is strange. The only things changed or added in this PR is related to the algorithm
grants I just checked the PR #1949 and it looks like it is failing the same tests with the same error message. |
@ChrisRackauckas Is this a known issue? I can't debug it locally right now... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! This looks good to me. The test failures are not related to this PR. May be fixed by merging current master
into this PR?
src/algorithms.jl
Outdated
In case the ODE does not depend on the first derivative, consider using | ||
[`Nystrom5VelocityIndependent`](@ref) to increase performance. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We shouldn't call out this specific method because it's not guaranteed to not change, so this information is non-local. Instead just say that this method requires that the acceleration equation needs to be independent of the velocity.
yes it looks like it was an unrelated regression #1956 |
Thanks! |
Added the 5th order Nyström-Method presented by J. M. Fine in the article "Low Order Practical Runge-Kutta-Nyström Methods" (Also linked here: #677). The embedded method is not yet implemented however I am working on it.
The method passes the convergence tests. Using the harmonic oscillator, the error is plotted below for the solution
u
att=3.0
for different timesteps.JuliaFormatter has been used.
CC @ranocha