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(level, pxs, pys, pzs, pvals, pweight_vals, treecode=0)¶
- add_grid_to_tree(level, start_index, pvals, wvals, cm)¶
- finalize(treecode=0)¶
- find_binding_energy(truncate, kinetic, root_dx, opening_angle=1.0)¶
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(level, count_only=0)¶
- print_all_nodes()¶
Prints out information about all the nodes in the octree.
- Parameters:
None.
Examples
>>> octree.print_all_nodes() (many lines of data)