sbird / npfp

N-body Simulation code in python
MIT License
0 stars 0 forks source link

It's slow! #7

Open faezehakhlaghi opened 10 months ago

sbird commented 10 months ago

On Monday we will talk about: http://arborjs.org/docs/barnes-hut and here: https://arxiv.org/pdf/astro-ph/0505010.pdf

sbird commented 10 months ago

https://docs.scipy.org/doc/scipy/reference/generated/scipy.spatial.KDTree.html

faezehakhlaghi commented 10 months ago
  1. find your particles at r<r_0 with KDtree
  2. build KDtree masses
  3. use them for forces