Source

yt.geometry_tests / cell_mass.py

Full commit
1
2
3
4
5
from yt.mods import *
pf = load("DD0039/output_0039")
sp = pf.h.sphere("c", (100.0, 'pc'))
print sp["CellMassMsun"]
print sp["x"]