<div dir="ltr">Hi Bili,<div><br></div><div>I've looked into this, and I think the issue is that a given oct is refined based on the numebr of particles in it, but the way that the count is done is based on the number of cells.  If you change to over_refine_factor=0 (so that the number of cells is the same as the number of octs) then you get n_p mean of about 16, which should be okay.</div><div><br></div><div>My check of this can be seen here, where I experimented with setting it to 2, instead of 1 (default) or 0.</div><div><br></div><div><a href="http://paste.yt-project.org/show/6218/">http://paste.yt-project.org/show/6218/</a><br></div><div><br></div><div>-Matt</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 4, 2016 at 12:57 PM, Bili Dong - Gmail <span dir="ltr"><<a href="mailto:qobilidop@gmail.com" target="_blank">qobilidop@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi all,<div><br></div><div>I'm looking at the number of particles per octree node (n_p hereafter) (a.k.a. the ('deposit', 'all_count') field) and find the results confusing. To my understanding, an octree node is refined (into 8 sub-nodes) only when n_p (of that node) > n_ref, so eventually n_p.mean (the average value of n_p) should be greater than n_ref/8. But the number I get is much smaller. When n_ref = 64, I get n_p.mean approximately 2 for all my tests.</div><div><br></div><div>I'm wondering if my understanding of the octree refining process if correct? And if so, how to explain the weird distribution of n_p?</div><div><br></div><div>Here's the link to my tests: <a href="https://nbviewer.jupyter.org/gist/qobilidop/d8f4cb85f1b465770854" target="_blank">https://nbviewer.jupyter.org/gist/qobilidop/d8f4cb85f1b465770854</a></div><div><br></div><div>Thanks,</div><div>Bili</div></div>
<br>_______________________________________________<br>
yt-dev mailing list<br>
<a href="mailto:yt-dev@lists.spacepope.org">yt-dev@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org" rel="noreferrer" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org</a><br>
<br></blockquote></div><br></div>