yt.data_objects.derived_quantities.TotalQuantity(data_source)[source]¶Calculates the sum of the field or fields.
| Parameters: | fields : field or list of fields
|
|---|
Examples
>>> ds = load("IsolatedGalaxy/galaxy0030/galaxy0030")
>>> ad = ds.all_data()
>>> print ad.quantities.total_quantity([("gas", "cell_mass")])
Attributes
Methods