SPH
Public Member Functions | Public Attributes | List of all members
BarnesHutNode Struct Reference

#include <BarnesHut.h>

Inheritance diagram for BarnesHutNode:
KdNode Noncopyable

Public Member Functions

 BarnesHutNode (const Type &type)
 
- Public Member Functions inherited from KdNode
 KdNode (const Type &type)
 
INLINE bool isLeaf () const
 
- Public Member Functions inherited from Noncopyable
 Noncopyable ()=default
 
 Noncopyable (const Noncopyable &)=delete
 
 Noncopyable (Noncopyable &&)=default
 
Noncopyableoperator= (const Noncopyable &)=delete
 
Noncopyableoperator= (Noncopyable &&)=default
 

Public Attributes

Vector com
 Center of mass of contained particles. More...
 
MultipoleExpansion< 3 > moments
 Gravitational moments with a respect to the center of mass, using expansion to octupole order. More...
 
Float r_open
 
- Public Attributes inherited from KdNode
Type type
 
Box box
 Bounding box of particles in the node. More...
 

Additional Inherited Members

- Public Types inherited from KdNode
enum class  Type : Size { X , Y , Z , LEAF }
 Here X, Y, Z must be 0, 1, 2. More...
 

Detailed Description

Definition at line 21 of file BarnesHut.h.

Constructor & Destructor Documentation

◆ BarnesHutNode()

BarnesHutNode::BarnesHutNode ( const Type type)
inline

Definition at line 32 of file BarnesHut.h.

Member Data Documentation

◆ com

Vector BarnesHutNode::com

Center of mass of contained particles.

Definition at line 23 of file BarnesHut.h.

◆ moments

MultipoleExpansion<3> BarnesHutNode::moments

Gravitational moments with a respect to the center of mass, using expansion to octupole order.

Definition at line 26 of file BarnesHut.h.

◆ r_open

Float BarnesHutNode::r_open

Opening radius of the node; see Eq. (2.36) of Stadel PhD thesis

Todo:
can be stored as 4th component of com.

Definition at line 30 of file BarnesHut.h.


The documentation for this struct was generated from the following file: