[yt-users] DivV on region

Elizabeth Tasker tasker at astro1.sci.hokudai.ac.jp
Tue Jun 26 23:58:04 PDT 2012


Oops, sorry -- ignore that.

ValidateSpatial ensures the data is 3d, so it's fine. I forgot.

Elizabeth



On 27 June 2012 15:36, Elizabeth Tasker <tasker at astro1.sci.hokudai.ac.jp> wrote:
> Hi,
>
> Is the field such as DivV
>
> (or any field that uses the scheme
>
>
> sl_left = slice(None,-2,None)
> sl_right = slice(1,-1,None)
>
> f  = data["x-velocity"][sl_right,1:-1,1:-1]/ds
> f -= data["x-velocity"][sl_left ,1:-1,1:-1]/ds
>
> to average between adjoining cells)
>
> valid for objects such as regions, where the cells might not
> necessarily be adjoining?
>
> I'm thinking no...
>
> Elizabeth



More information about the yt-users mailing list