PhysicalTrees.jl

Distributed physical tree interfaces for Julia
Author JuliaAstroSim
Popularity
1 Star
Updated Last
1 Year Ago
Started In
December 2019

PhysicalTrees.jl

codecov

Distributed Octree for Nbody simulation.

Install

]add PhysicalTrees

or

]add https://github.com/JuliaAstroSim/PhysicalTrees.jl

Usage

using Distributed
addprocs(1)

@everywhere using PhysicalTrees

# discrete points
pos = [PVector(1.0, 1.0, 1.0), PVector(-1.0, -1.0, -1.0),
       PVector(1.0, 0.0, -1.0), PVector(-1.0, 0.0, 1.0),
       PVector(0.0, 0.0, -1.0), PVector(-1.0, 0.0, 0.0)]

# Build octree from point data
tree1 = octree(pos)

# Or, build octree from particles
particles = [Massless() for i in 1:6]
assign_particles(particles, :Pos, pos)
tree2 = octree(particles, pids = [2])

References

Package ecosystem

Used By Packages

No packages found.