帮助辛格积分器 [英] Help with symplectic integrators

查看:91
本文介绍了帮助辛格积分器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试进行物理模拟,我想实现四阶渐进积分方法.问题是我必须弄错了数学,因为使用辛辛积分器时,我的模拟根本无法工作(与四阶Runge-Kutta积分器相比,该模拟器工作得很好).我一直在搜寻这个问题,而我所能找到的都是关于该主题的科学文章.我试图改编文章中使用的方法,但是没有运气.我想知道是否有人拥有利用辛积分器进行仿真的源代码,最好模拟重力场,但是任何辛积分器都可以.来源所用的语言并没有太大关系,但是我希望使用C样式语法的语言.谢谢!

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 simulation is not working at all when using the symplectic integrator (as compared to a fourth-order Runge-Kutta integrator that works reasonably well for the simulation). I've been googling this forever and all I can find are scientific articles on the subject. I tried to adapt the method used in the articles, but am having no luck. I want to know if anyone has source code for a simulation that makes use of symplectic integrators, preferably to simulate a gravitational field but any symplectic integrator would do. What language the source is in doesn't matter too much, but I would appreciate a language using C-style syntax. Thanks!

推荐答案

如您所要求的源代码:来自

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.

修改

如果您使用Mathematica 可能也有帮助.

If you use Mathematica this may help too.

这篇关于帮助辛格积分器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆