[yt-users] TotalMass

Yong Zheng yz2505 at columbia.edu
Mon Jul 21 14:00:46 PDT 2014


Hi,

I am trying to calculate the total mass of an object, but found the result
slightly different when I use different methods. To explain the question, I
use the test data set in $YT_DEST/src/yt-hg/tests:

pf = load("DD0010/moving7_0010")

dd = pf.h.all_data()


then dd["TotalMassMsun"].sum() returns 1.25198e12 Msun, but
dd.quantities["TotalMass"]() returns 1.22517e12 Msun

The document says that the first method returns the total mass of baryon
and dark matter, while the second returns the total mass of baryon and
particles. I wonder what is the difference here? In this data, there is
only type of particle (particle_type = 1), so supposedly particle mass
should represent the dark matter mass, right?

Thanks for your help!
Yong
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20140721/58d17621/attachment.htm>


More information about the yt-users mailing list