<div dir="ltr">Hi Nathan,<div><br></div><div>Thanks for getting back to me.</div><div><br></div><div>That is odd, because then if my region includes all the particles I have equal elements in cell_volume and all the other gas quantities?</div>

<div><br></div><div>Kind Regards,<br>Daniel</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 9 July 2014 15:06, Nathan Goldbaum <span dir="ltr"><<a href="mailto:nathan12343@gmail.com" target="_blank">nathan12343@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Daniel,<div><br></div><div>The cell_volume field is an alias for ('gas, 'cell_volume'), which for Gadget data corresponds to the volume of octree cells. In general there will be fewer octree cells than particles.  I'm a little surprised the numbers are so close since the default option is to refine octree cells when more than 64 particles are in a cell, <span></span>although the precise structure of the octree will depend on the particle distribution.</div>

<span class="HOEnZb"><font color="#888888">
<div><br></div></font></span><div><span class="HOEnZb"><font color="#888888">Nathan</font></span><div><div class="h5"><br><br>On Wednesday, July 9, 2014, Daniel <<a href="mailto:cunnama@gmail.com" target="_blank">cunnama@gmail.com</a>> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Hi there,<div><br></div><div>I am extracting a region from a Gadget dataset using the sphere function and then attempting to access the "cell_volume" field.</div><div><br></div><div>For some reason the number of elements in the cell volume field is not equal to the number of particles in the region.</div>




<div><br></div><div>For example I have 4341760 particles but only 4228930 cell volume elements.</div><div><br></div><div>I have extracted a sphere which encompassed all the particles and the number of cell volume elements is then equal.</div>




<div><br></div><div>Any ideas or advice would be greatly appreciated.</div><div><br></div><div>Kind Regards,</div><div>Daniel</div></div>
</blockquote></div></div></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" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
<br></blockquote></div><br></div>