yt.fields.particle_fields module¶
- yt.fields.particle_fields.add_nearest_neighbor_field(ptype, coord_name, registry, nneighbors=64)[source]¶
- yt.fields.particle_fields.add_nearest_neighbor_value_field(ptype, coord_name, sampled_field, registry)[source]¶
This adds a nearest-neighbor field, where values on the mesh are assigned based on the nearest particle value found. This is useful, for instance, with voronoi-tesselations.
- yt.fields.particle_fields.add_particle_average(registry, ptype, field_name, weight=None, density=True)[source]¶
- yt.fields.particle_fields.add_union_field(registry, ptype, field_name, units)[source]¶
Create a field that is the concatenation of multiple particle types. This allows us to create fields for particle unions using alias names.
- yt.fields.particle_fields.particle_deposition_functions(ptype, coord_name, mass_name, registry)[source]¶