tree-d-3d
Tree Dynamics in 3D computes particle fields with Barnes–Hut trees and fast multipole methods, using NumPy, CuPy, or Apple GPU backends.
The package offers a flat quadtree for point- and line-charge fields, a direct all-pairs reference calculation, and an electrostatic particle simulation with magnetic fields and absorbing boundaries. The fast multipole method accelerates line-charge field calculations to linear complexity.
It also supplies open-boundary field calculations for particle-in-cell codes.
Documentation: max-models.github.io/tree-d-3d