
Hi all, I am working with some Enzo data and trying to calculate the spherically averaged density contrast around each cell in yt, delta_2. I was unable to find a function for this in yt so I wrote one but it is quite slow. http://paste.yt-project.org/show/6389/ I know that this is an expensive operation, but is there any faster way to do this with yt? Thanks, Joe Tomlinson

Hi Joseph, I think this can be accomplished if you use a ghost zone stencil (via the ValidateSpatial validator) and don't include the corner zones. The example in the docs shows how to do averaged density; shouldn't be too bad not to then not include the corners, too, I think. On Tue, Apr 5, 2016 at 5:15 PM, Joseph Tomlinson <jmtomlinson95@gmail.com> wrote:
Hi all,
I am working with some Enzo data and trying to calculate the spherically averaged density contrast around each cell in yt, delta_2. I was unable to find a function for this in yt so I wrote one but it is quite slow.
http://paste.yt-project.org/show/6389/
I know that this is an expensive operation, but is there any faster way to do this with yt?
Thanks, Joe Tomlinson
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
participants (2)
-
Joseph Tomlinson
-
Matthew Turk