Help with symplectic integrators

前端 未结 3 1565
盖世英雄少女心
盖世英雄少女心 2021-02-03 11:00

I\'m trying to develop a physics simulation and I want to implement a fourth-order symplectic integration method. The problem is that I must be getting the math wrong, since my

3条回答
  •  执念已碎
    2021-02-03 11:08

    As you asked for source code: From HERE you can download MATLAB and FORTRAN code for symplectic methods for Hamiltonian systems and symmetric methods for reversible problems. And a lot of other methods for dealing with diff equations too.

    And in THIS paper you can find the description of the algorithms.

    Edit

    If you use Mathematica this may help too.

提交回复
热议问题