yt.utilities.lib.octree_raytracing module

class yt.utilities.lib.octree_raytracing.OctreeRayTracing(data_source)[source]

Bases: object

cast_rays(vp_pos, vp_dir)[source]

Cast the rays through the oct.

Parameters:
  • vp_pos (float arrays (Nrays, Ndim))

  • vp_dir (float arrays (Nrays, Ndim)) – The position (unitary) and direction of each ray

Returns:

  • cell_index (list of integer arrays of shape (Ncell)) – For each ray, contains an ordered array of cell ids that it intersects with

  • tvalues (list of float arrays of shape (Ncell, 2)) – The t value at entry and exit for each cell.

data_source = None
fields = None
log_fields = None
octree = None
set_fields(fields, log_fields, no_ghost, force=False)[source]
vertex_centered_data(field)[source]