Classes | |
| struct | Point |
| struct | Octree |
| A node in an octree is either an internal node or a body (leaf). More... | |
| struct | OctreeInternal |
| struct | Body |
| struct | BoundingBox |
| struct | Config |
| struct | BuildOctree |
| struct | ComputeCenterOfMass |
| struct | ComputeForces |
| struct | AdvanceBodies |
| struct | ReduceBoxes |
| struct | Deref |
Typedefs | |
| typedef std::vector< Body > | Bodies |
Functions | |
| std::ostream & | operator<< (std::ostream &os, const Point &p) |
| std::ostream & | operator<< (std::ostream &os, const Body &b) |
| std::ostream & | operator<< (std::ostream &os, const BoundingBox &b) |
| int | getIndex (const Point &a, const Point &b) |
| void | updateCenter (Point &p, int index, double radius) |
| double | nextDouble () |
| void | generateInput (Bodies &bodies, int nbodies, int seed) |
| Generates random input according to the Plummer model, which is more realistic but perhaps not so much so according to astrophysicists. | |
| boost::transform_iterator < Deref< Body > , Bodies::iterator > | wrap (Bodies::iterator it) |
| void | run (int nbodies, int ntimesteps, int seed) |
Variables | |
| const char * | name = "Barnshut N-Body Simulator" |
| const char * | description |
| const char * | url = "barneshut" |
| const char * | help = "<numbodies> <ntimesteps> <seed>" |
| Config | config |
| void anonymous_namespace{Barneshut.cpp}::generateInput | ( | Bodies & | bodies, | |
| int | nbodies, | |||
| int | seed | |||
| ) |
Generates random input according to the Plummer model, which is more realistic but perhaps not so much so according to astrophysicists.
| int anonymous_namespace{Barneshut.cpp}::getIndex | ( | const Point & | a, | |
| const Point & | b | |||
| ) | [inline] |
| double anonymous_namespace{Barneshut.cpp}::nextDouble | ( | ) |
| std::ostream& anonymous_namespace{Barneshut.cpp}::operator<< | ( | std::ostream & | os, | |
| const BoundingBox & | b | |||
| ) |
| std::ostream& anonymous_namespace{Barneshut.cpp}::operator<< | ( | std::ostream & | os, | |
| const Body & | b | |||
| ) |
| std::ostream& anonymous_namespace{Barneshut.cpp}::operator<< | ( | std::ostream & | os, | |
| const Point & | p | |||
| ) |
| void anonymous_namespace{Barneshut.cpp}::run | ( | int | nbodies, | |
| int | ntimesteps, | |||
| int | seed | |||
| ) |
| void anonymous_namespace{Barneshut.cpp}::updateCenter | ( | Point & | p, | |
| int | index, | |||
| double | radius | |||
| ) | [inline] |
| boost::transform_iterator<Deref<Body>, Bodies::iterator> anonymous_namespace{Barneshut.cpp}::wrap | ( | Bodies::iterator | it | ) |
| const char* anonymous_namespace{Barneshut.cpp}::description |
"Simulation of the gravitational forces in a galactic cluster using the " "Barnes-Hut n-body algorithm\n"
| const char* anonymous_namespace{Barneshut.cpp}::help = "<numbodies> <ntimesteps> <seed>" |
| const char* anonymous_namespace{Barneshut.cpp}::url = "barneshut" |
1.6.3