<div dir="ltr">Great work!  I am very excited about this development, as I've seen some of the results that Bili has created so far with this method.  I'm fully behind this idea!<div><br></div><div>Cameron<br><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Sep 10, 2016 at 10:44 AM, 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 came up with an idea to bring a particle approach to model Ray and AbsorptionSpectrum. But before I move on to implement it in yt, I'd like to let you know what it is and get feedbacks about it.</div><div><br></div><div>The situation is that I have an SPH simulation, and I want to model the Ray (in order to get the AbsorptionSpectrum) as accurately as possible. Currently when we create a Ray object, it's always created from the deposited grid. Although it is a good approximation to the true particle representation, it is still not the most accurate way. I'd like to be able to do it in the particle way (like in SPLASH). In the long term, I know that Matt and Meagan is working on a new system for particle dataset. The work I'm going to propose could be thought as lying on top of that, in that the method could be made faster utilizing Matt and Meagon's work, but the main infrastructure would stay the same.</div><div><br></div><div>To introduce what I plan to do, let's have a look at the first figure <a href="http://yt-project.org/docs/dev/analyzing/analysis_modules/light_ray_generator.html" target="_blank">here</a>. The core concept of a Ray object is the <b>path length</b>, <b>`dl`</b>. Basically, if we combine the normal fields with the `dl` field, we get a Ray object. Now imagine instead of a ray intersecting a lot of grid cells, we have a ray intersecting a lot of SPH particles. How do we define <b>`dl`</b> then? We could define it as the <b>integral of the SPH kernel along the intersection</b>! And that's the whole trick. From this  we could define a particle Ray that just looks the 'same' as the original grid Ray. Then any analysis built on top of the Ray object, AbsorptionSpectrum for example, don't need to change a lot. They will work in different ways simply when provided with different different kinds of Ray object.</div><div><br></div><div>The main difficulty in the implementation is the construction of the particle `dl` field. Currently I'm doing it brutal-forcedly by computing `dl` for all the particles and mask out those with zero values. Matt and Meagan's work will accelerate this by providing the neighboring information, so I could do the computation on a small set of particles then. The brutal-force method is not unbearably slow though. And the computation acceleration could be saved for future work.</div><div><br></div><div>I have an external implementation of the particle approach, and have used it in my current research. I have compared results using the particle method and those from Trident and they agree statistically as we expected (thanks Cameron for the help). Now that it looks mature, I'd like to implement it in yt.</div><div><br></div><div>If anyone has any comments, opinions and suggestions, I'd like to hear them.</div><div><br></div><div>Thanks for reading,</div><div><br></div><div>Bili</div></div>
<br>______________________________<wbr>_________________<br>
yt-dev mailing list<br>
<a href="mailto:yt-dev@lists.spacepope.org" target="_blank">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/lis<wbr>tinfo.cgi/yt-dev-spacepope.org</a><br>
<br></blockquote></div><br><br clear="all"><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>
</div></div></div>