<div dir="ltr">Hi, <div><br></div><div>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 <span class="" style="line-height:22.399999618530273px;text-align:justify;margin:0px;padding:0px;color:rgb(187,96,213)">$YT_DEST</span><span style="color:rgb(0,0,0);line-height:22.399999618530273px;text-align:justify">/src/yt-hg/tests: </span></div>
<div><br></div><div><pre style="margin-top:0px;margin-bottom:0px;padding:0px;text-align:justify"><pre style="margin-top:0px;margin-bottom:0px;padding:0px"><font color="#000000"><span style="line-height:22.399999618530273px">pf = load("DD0010/moving7_0010")<br>
</span></font></pre><pre style="margin-top:0px;margin-bottom:0px;padding:0px"><font color="#000000"><span style="line-height:22.399999618530273px">dd = pf.h.all_data()</span></font></pre></pre></div><div><br></div><div>then dd["TotalMassMsun"].sum() returns 1.25198e12 Msun, but dd.quantities["TotalMass"]() returns 1.22517e12 Msun</div>
<div><br></div><div>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? </div>
<div><br></div><div>Thanks for your help! </div><div>Yong</div></div>