[yt-users] Controlling grid deposition method

Brian O'Shea bwoshea at gmail.com
Sun Jul 26 13:12:48 PDT 2015


Hi Matt,

Thanks for the quick reply!  Just to make sure I understand what you're
saying - assuming I create my region with:

my_reg = ds.arbitrary_grid(left, right, dims=[800,1, 800])

if I were to do:

dmdens = my_reg[("deposit", "all_density")]

gets me a NGP-deposited density of all particles, and

dmdens = my_reg[("deposit", "all_cic")]

will get me the CIC-deposited density?

Brian





On Sun, Jul 26, 2015 at 4:08 PM, Matthew Turk <matthewturk at gmail.com> wrote:

> Hi Brian,
>
> "density" as a suffix instead of "cic" will go to NGP.
>
> Matt
>
> On Sun, Jul 26, 2015, 2:48 PM Brian O'Shea <bwoshea at gmail.com> wrote:
>
>> Hi folks,
>>
>> I'm making a movie of dark matter density from an Enzo simulation, and am
>> doing so using the arbitrary_grid mechanism.  However, when I'm making the
>> movies, I get some annoying flickering in the color map at early times.  As
>> an example, look at the first 3 Gyr or so of this movie (warning: 122 mb):
>>
>>
>> http://galactica.pa.msu.edu/~bwoshea/data/cosmo_zoom_movies/dm_dens_x_algae.mp4
>>
>> I am pretty sure that the flickering is due to an unfortunate interplay
>> between whatever grid deposition is being used by the arbitrary_grid
>> functionality and a moving image center.  I'd like to test this theory by
>> forcing the particles to be deposited in a different way - say, by
>> nearest-grid-point instead of cloud-in-cell.  Is it possible to do this?  I
>> can't find anything in the documentation that makes it clear how to do this
>> with the arbitrary_grid mechanism, but on the other hand there are other
>> places in yt (the particle plotting tools, for example) where one can
>> specify ngp vs. cic.
>>
>> Any suggestions would be greatly appreciated!
>>
>> Thanks,
>> Brian
>>
>> p.s. If anybody's interested, the (hacktacular and ugly) script I'm using
>> to generate movie frames can be found here:
>> http://paste.yt-project.org/show/5746/
>>
>>
>> _______________________________________________
>> 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/20150726/9301a503/attachment.htm>


More information about the yt-users mailing list