[yt-users] Field based on neighbour cells

John ZuHone jzuhone at gmail.com
Fri Dec 19 08:31:24 PST 2014


Jose,

Presuming that you have sl_right and sl_center defined in your field already, you should be able to just substitute “gas” for ftype, since the velocity fields are “gas" fields.

Best,

John

> On Dec 19, 2014, at 11:04 AM, José Utreras <jutreras at das.uchile.cl> wrote:
> 
> Hi everyone,
> 
> I want to write a new field based on the neighbour cells like this:
> 
> vx = data[ftype, "velocity_x"][sl_right,sl_center,sl_center]
> 
> but I got " global name 'ftype' is not defined". I suppose that I have the same problem with sl_left, sl_right , sl_center.
> 
> Thanks,
> 
> Jose
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org

_______________________________________________
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