<div dir="ltr">Hi Madison,<div><br></div><div>You could try creating a metal_mass derived field as the product of the "metallicity" and the "cell_mass" fields.  Then use the derived quantity "TotalQuantity" to find the total of that field for your sphere object or your various components:</div><div><br></div><div>Derived field: <a href="http://yt-project.org/docs/dev/developing/creating_derived_fields.html">http://yt-project.org/docs/dev/developing/creating_derived_fields.html</a></div><div>Derived quantity: <a href="http://yt-project.org/docs/dev/analyzing/objects.html#processing-objects-derived-quantities">http://yt-project.org/docs/dev/analyzing/objects.html#processing-objects-derived-quantities</a></div><div><br></div><div>Cameron</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Dec 2, 2015 at 6:36 AM, Fitzgerald, Madison Lyn <span dir="ltr"><<a href="mailto:fitzg152@msu.edu" target="_blank">fitzg152@msu.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div style="word-wrap:break-word">
<div>Hello,</div>
<div><br>
</div>
<div>I’m trying to find the total mass of metals in the disk, halo, gas, and stars of a given galaxy with yt 3.2.2, but I’m not exactly sure how to do that. What I’ve done so far is sum the metals in each of these areas and then divide the total mass
 by that (I’ve isolated each location I do this with a series of ####### above and below: <a href="http://paste.yt-project.org/show/6086/" target="_blank">http://paste.yt-project.org/show/6086/</a>).</div>
<div><br>
</div>
<div>How do I, instead, sum up the mass of the metals?</div>
<div><br>
</div>
<div>Thank you,</div>
<div>
<div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word">
<div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word">
<div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word">
<div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word">
<div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word">
<div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word">
<div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word">
<div style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
<div>Madison Fitzgerald</div>
<div><br>
</div>
<div>Astrophysics | Lyman Briggs College</div>
<div>Women’s & Gender Studies | College of Arts & Letters</div>
<div>LGBTQ and Sexuality Studies Specialization</div>
<div>
<div>Women in Science, President</div>
<div>Undergraduate Teaching Assistant</div>
<div>Department of Physics and Astronomy</div>
</div>
<div>Honors College</div>
<div>Michigan State University</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
</div>

<br>_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" rel="noreferrer" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div>Cameron Hummels<div><span style="font-size:12.8000001907349px">NSF Postdoctoral Fellow</span></div><div><span style="font-size:12.8000001907349px">Department of Astronomy</span></div><div><span style="font-size:12.8000001907349px">California Institute of Technology</span><br></div><div><a href="http://chummels.org" style="font-size:12.8000001907349px" target="_blank">http://chummels.org</a><br></div></div></div></div>
</div>