yt.utilities.lib.basic_octree module

A refine-by-two AMR-specific octree

class yt.utilities.lib.basic_octree.Octree

Bases: object

add_array_to_tree()
add_grid_to_tree()
finalize()
find_binding_energy()

Find the binding energy of an ensemble of data points using the treecode method.

Note: The first entry of the vals array MUST be Mass. Any other values will be ignored, including the weight array.

get_all_from_level()
print_all_nodes()

Prints out information about all the nodes in the octree.

Parameters:None.

Examples

>>> octree.print_all_nodes()
(many lines of data)