[yt-users] DivV on region
Elizabeth Tasker
tasker at astro1.sci.hokudai.ac.jp
Tue Jun 26 23:36:32 PDT 2012
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