|
|
>> I wonder how fast it would be in C++ :-)
>
> Go ahead, knock yourself out. ;-)
>
>> Are the three attractors just applying a 1/r^2 force on each particle?
>
> Nope. Currently just 1/r for the "magnets", plus an r force for "gravity".
>
>> What resolution are you running this at? "a few thousand" sounds like
>> 64x64 or something.
>
> It's 1,728 x 972 pixels. (And one particle per pixel, obviously.)
OK so I quickly modified my existing RK4 code to do integration steps on
1728*972 particles in 2D with 4x 1/r attractors. So it takes about 2.5
seconds per integration step, does this compare with your results?
Post a reply to this message
|
|