[yt-users] Mapping Particle Velocities to a Field

Alex Bogert bogart.alex at gmail.com
Sat Sep 21 12:32:32 PDT 2013


Thank you for your help John.

Alex


On Sat, Sep 21, 2013 at 12:21 PM, John ZuHone <jzuhone at gmail.com> wrote:

> Hi Alex,
>
> Something like the following field definitions at the top of this notebook
> are probably what you're looking for:
>
> Raw notebook: https://hub.yt-project.org/go/vjn5x2
>
> View as HTML: https://hub.yt-project.org/nb/vjn5x2
>
> (you'll get a certificate warning but you can ignore it--it's the yt
> website and it's safe)
>
> These field definitions use CICDeposit_3 to cloud-in-cell deposit particle
> quantities onto grid cells. This is how the "particle_density" field is
> generated. As you can see, what I actually deposit into the grid cells is
> the particle momentum and then divide that by the gridded particle mass. I
> also have to call numpy.nan_to_num to take care of the places where there
> are no particles and we have 0/0.
>
> I illustrated what this looks like on a FLASH dataset of two galaxy
> clusters colliding. The problem here is that in yt we only map particles to
> grids that are owned by that specific grid, so contributions from particles
> on neighboring grids are left out. What you'll end up with is gaps at grid
> boundaries which are sometimes noticeable where portions of the particle
> mass have simply been clipped out. They'll probably only really be
> noticeable in slices, but that might be annoying enough.
>
> This is an oversight, but one that would not be trivial to correct. If
> you're interested in taking a whack at that problem, I can help you have a
> look at it.
>
> Best,
>
> John Z
>
> On Sep 18, 2013, at 7:22 PM, Alex Bogert <bogart.alex at gmail.com> wrote:
>
> > Hi all,
> >
> > I was wondering if yt has the ability to map particle velocities to an
> evenly divided field or grid. I was unable to resolve this using resources
> on the website. Does anyone have any suggestions on how to accomplish this
> using yt?
> >
> > Thanks,
> > Alex
> > _______________________________________________
> > yt-users mailing list
> > yt-users at lists.spacepope.org
> > http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20130921/b5efac38/attachment.html>


More information about the yt-users mailing list