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.... 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/
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
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....
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@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
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
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
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....
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@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
Yup!
On Sun, Jul 26, 2015, 3:12 PM Brian O'Shea
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
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
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....
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@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
Excellent, I'll give this a whirl. Thank you!
Brian
On Sun, Jul 26, 2015 at 4:27 PM, Matthew Turk
Yup!
On Sun, Jul 26, 2015, 3:12 PM Brian O'Shea
wrote: 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
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
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....
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@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
participants (2)
-
Brian O'Shea
-
Matthew Turk