<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Sep 8, 2016 at 1:07 PM, Cameron Hummels <span dir="ltr"><<a href="mailto:chummels@gmail.com" target="_blank">chummels@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">Thanks, Matt and Molly.  Very excited to see the kd-tree formulation that Meagan has implemented.  A couple additional questions:<div class="gmail_extra"><br><div class="gmail_quote"><span class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div> * Using the chosen SPH kernel (thanks to Bili Dong, we now have cubic, quartic, quintic, wendland2, wendland4, and wendland6), the smoothing is conducted on each cell by looking at all the nearest particles.  This is implemented in the process function on the class VolumeWeightedSmooth in yt/geometry/particle_smooth.py<wbr>x</div><div><br></div></div></blockquote></span><div>What is the default SPH kernel that is used for deposition?  Is it frontend specific (and if so, where is it defined for each frontend), or do we just use a cubic spline as default?</div></div></div></div></blockquote><div><br></div><div>I believe that unless an individual specifies the kernel in adding their own field, it uses cubic spline.  I have not worked on that aspect of the code, but perhaps Bili Dong can say.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div><br></div><div>Also, what value is used for the smoothing length of the particle deposition?  I believe most codes already have a smoothing_length field defined by the simulation.  Looking in VolumeWeightedSmooth, it seems to accept a smoothing_length field for the particles but I don't know if this is the simulation-defined field.</div></div></div></div></blockquote><div><br></div><div>If a smoothing length field is not provided by the simulation, it uses the N-th nearest neighbor; you can see this in the setting of hsml to the r2 value of the final particle.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>I may be wrong, but it seems to me that using the simulation-defined smoothing_length field is only applicable for the "scatter" deposition method.  I thought "gather" recalculates new smoothing lengths to address the fact that you may try to sample the fluid quantities a large distance away from the nearest particles, who all may have small smoothing lengths because of their proximity to each other.  But I may be mixed up here.</div></div></div></div></blockquote><div><br></div><div>The SPLASH paper defines the smoothing length to be a minimum computed between the cell and the smoothing length of the particle.  This is what yt does, except that we don't use fixed pixel (voxel) sizes, so the min is never needed.  If the particles have an inherent smoothing length, this is what is used (for instance, with Gadget datasets).  If they do not (for instance, Gasoline), the Nth nearest neighbor is used.</div><div><br></div><div>A result of this is that if you have a zoom simulation where the particles have smoothing lengths, if you are outside the maximum smoothing length distance from a particle in a region where there are no gas particles, the result is zero, because there are not particles that believe they contribute to that region.  With a simulation where the formalism is such that the Nth nearest neighbor defines the smoothing length, the result will not be zero.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span class="HOEnZb"><font color="#888888"><div><br></div><div>Cameron</div></font></span></div><span class=""><div><br></div>-- <br><div data-smartmail="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>
</span></div></div>
<br>______________________________<wbr>_________________<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/<wbr>listinfo.cgi/yt-dev-spacepope.<wbr>org</a><br>
<br></blockquote></div><br></div></div>