-
-
Notifications
You must be signed in to change notification settings - Fork 70
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
Symplectic SRK #181
Comments
Hello, as said here, how can we best work on this? Has someone already started? Do you have some literature? Thank you. |
The literature is in the link above. The implementation would be very similar to the implementation of the SymplecticEuler method of OrdinaryDiffEq.jl. That's done via: It would need to be on the dynamical SDE form, which exists but is not documented yet since there's not specific solvers for it: https://github.com/SciML/SciMLBase.jl/blob/master/src/problems/sde_problems.jl#L169-L194 How to add it is similar to the ODE case, which is showcased in the devdocs: http://devdocs.sciml.ai/latest/contributing/adding_algorithms/ |
Great, thank you, will try to do this. |
Hi @ChrisRackauckas, |
I just realized, we do have a method for Hamiltonian systems. You might want to give BAOBB a try. https://github.com/SciML/StochasticDiffEq.jl/blob/v6.49.1/test/sde/sde_dynamical.jl We haven't documented it yet, but it follows the same pattern as the dynamical ODE function definition. |
Great, thank you, perfect timing, will now take a look. I think I didn't specify that our diffusion matrix looks like this, so we are dealing with nondiagonal noise: function σ_3bp(du,u,p,t)
r = sqrt(u[1]^2 + u[2]^2)
du[1,1] = 0.0
du[1,2] = 0.0
du[2,1] = 0.0
du[2,2] = 0.0
du[3,1] = σ_r*u[1]/r
du[3,2] = -σ_theta*u[2]
du[4,1] = σ_r*u[2]/r
du[4,2] = σ_theta*u[1]
end |
Oh you'd need to take a look at the paper if it can be done for non-diagonal noise systems. I'm not sure that method extends. |
Ok, will do, thank you |
https://www.cambridge.org/core/journals/communications-in-computational-physics/article/construction-of-symplectic-rungekutta-methods-for-stochastic-hamiltonian-systems/B09EE7BFE177D4B79DCB7C840F599319
The text was updated successfully, but these errors were encountered: