yt.fields.particle_fields module

These are common particle fields.

yt.fields.particle_fields.add_nearest_neighbor_field(ptype, coord_name, registry, nneighbors=64)[source]
yt.fields.particle_fields.add_particle_average(registry, ptype, field_name, weight='particle_mass', 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.add_volume_weighted_smoothed_field(ptype, coord_name, mass_name, smoothing_length_name, density_name, smoothed_field, registry, nneighbors=64, kernel_name='cubic')[source]
yt.fields.particle_fields.get_angular_momentum_components(ptype, data, spos, svel)[source]
yt.fields.particle_fields.particle_deposition_functions(ptype, coord_name, mass_name, registry)[source]
yt.fields.particle_fields.particle_scalar_functions(ptype, coord_name, vel_name, registry)[source]
yt.fields.particle_fields.particle_vector_functions(ptype, coord_names, vel_names, registry)[source]
yt.fields.particle_fields.standard_particle_fields(registry, ptype, spos='particle_position_%s', svel='particle_velocity_%s')[source]