yt.frontends.artio.data_structures.ARTIOOctreeSubset.deposit

ARTIOOctreeSubset.deposit(positions, fields=None, method=None)

Operate on the mesh, in a particle-against-mesh fashion, with exclusively local input.

This uses the octree indexing system to call a “deposition” operation (defined in yt/geometry/particle_deposit.pyx) that can take input from several particles (local to the mesh) and construct some value on the mesh. The canonical example is to sum the total mass in a mesh cell and then divide by its volume.

Parameters:

positions : array_like (Nx3)

The positions of all of the particles to be examined. A new indexed octree will be constructed on these particles.

fields : list of arrays

All the necessary fields for computing the particle operation. For instance, this might include mass, velocity, etc.

method : string

This is the “method name” which will be looked up in the particle_deposit namespace as methodname_deposit. Current methods include count, simple_smooth, sum, std, cic, weighted_mean, mesh_id, and nearest.

Returns:

List of fortran-ordered, mesh-like arrays. :