yt.data_objects.derived_quantities.BulkVelocity

class yt.data_objects.derived_quantities.BulkVelocity(data_source)[source]

Calculates the bulk velocity, using gas and/or particles.

The bulk velocity is the mass-weighted mean velocity.

Parameters:

use_gas : bool

Flag to include gas in the calculation. Gas is ignored if not present. Default: True

use_particles : bool

Flag to include particles in the calculation. Particles are ignored if not present. Default: True

Examples

>>> ds = load("IsolatedGalaxy/galaxy0030/galaxy0030")
>>> ad = ds.all_data()
>>> print ad.quantities.bulk_velocity()

Attributes

Methods