[yt-users] Efficient spherical average

Matthew Turk matthewturk at gmail.com
Wed Apr 6 12:28:20 PDT 2016


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 at 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 at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>


More information about the yt-users mailing list