<div dir="ltr">Hi Nathan,<div><br></div><div>Thank you for answering the questions during your vacation.</div><div><br></div><div>I would be happy to add the smoothing functionality to yt. But I have only very vague idea about the difference between "patch-based" and "octree-based" data and almost no experience on SPH smoothing. I am not sure how far I can go. Is there a good introduction/reference for the patch-based AMR?<br></div><div><br></div><div>I've tried the arbitrary_grid data object and can get the deposited array for an uniform resolution mesh! My question now is how to map this data object onto the AMR grid which has higher resolution in some regions since I have to do calculation using both the mesh and particle data. The easiest way might be converting my mesh data to a uniform, lower resolution array, but it would be great if I can do the other way around, i.e. mapping the deposited field in the arbitrary_grid to the AMR mesh.<br><br></div><div>Thank you!<br></div><div>Yi-Hao<br></div><div><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jul 22, 2015 at 6:43 PM, 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">After hitting send it occurred to me that this might be an oppudtunity to use the arbitrary_grid data object. This will allow you to create a uniform resolution grid to deposit particle quantities onto <span></span>that more closely matches your particle resolution.<span><br><br>On Wednesday, July 22, 2015, Nathan Goldbaum <<a href="mailto:nathan12343@gmail.com" target="_blank">nathan12343@gmail.com</a>> wrote:<br></span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>Hi Yi-Hao,<div><br></div><div>Enabling<span></span> more generic particle deposition operators for patch based datasets is a long term goal of mine. As you've discovered, something like SPH smoothing has not been implemented yet.</div><div><br></div><div>If you're interested in adding this functionality to yt, I would first bring this up on the dev mailing list to get some advice. Unfortunately I'm on vacation at the moment and don't have the bandwidth to offer more concrete advice.</div><div><br></div></span><div>Nathan<span><br><div><br>On Wednesday, July 22, 2015, Yi-Hao Chen <<a>ychen@astro.wisc.edu</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Dear yt-users,<br></div><div><br></div>I am working on FLASH datasets with particles. I have some self-defined fields (specifically Lorentz factors) that are stored in the particle data and would like to map them onto the mesh grid. I've been trying the "add_deposited_particle_field" that is in the dev version. Currently I use the "cic" method, in which a particle will populate the nearby 8 cells (in 3D). However, since my particles are sparser than the mesh cells, many of the cells do not have particles nearby and thus are empty. </div><div><br></div><div>I would like to find a way to interpolate for those empty cells, i.e. to smooth the particle field. Are there any suggestions or directions I should look into?</div><div><br></div><div><br></div><div>It would also be very helpful if I can get the list of N nearest neighbor particles for each cell. I've looked into the nearest neighbor function</div><div><a href="http://yt-project.org/docs/dev/analyzing/fields.html#computing-the-nth-nearest-neighbor" target="_blank">http://yt-project.org/docs/dev/analyzing/fields.html#computing-the-nth-nearest-neighbor</a><br></div><div><br></div><div>But it seems that it is implemented only for octree-based data objects (and can only perform in a particle-to-particle fashion?), while FLASH data are loaded into yt as "patch-based" data object.</div><div><a href="http://yt-project.org/doc/developing/creating_frontend.html#data-localization-structures" target="_blank">http://yt-project.org/doc/developing/creating_frontend.html#data-localization-structures</a><br></div><div><br></div><div>Is there any function that can get the nearest particle neighbors of each cell?</div><div><br></div><div>Thank you,</div><div>Yi-Hao</div><div><br></div><div><div><span style="color:rgb(153,153,153)">--</span></div><div><span style="color:rgb(153,153,153)">Yi-Hao Chen</span><br></div><div><font color="#999999">Graduate Student</font></div><div><span style="color:rgb(153,153,153)">Department of Astronomy</span></div><div><font color="#999999">University of Wisconsin-Madison</font></div></div><div><span style="color:rgb(153,153,153)"><br></span></div></div>
</blockquote></div></span></div>
</blockquote>
<br>_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org" target="_blank">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></div></div>