[yt-users] What are the "x", "y" and "z" fields in a disk?

Matthew Turk matthewturk at gmail.com
Fri Jul 26 18:24:27 PDT 2013


Hi José,

Those are the cell centers. They seem to span the whole domain, but I think
that is because you need to divide by the conversion factors instead of
multiplying by them. So for instance,

450/pf["cm"]

-Matt
On Jul 26, 2013 5:50 PM, "José Utreras" <jutreras at das.uchile.cl> wrote:

> After defining a disk
>
> my_disk=pf.h.disk(sc, [0,0,1], 450.0*pc, 30.0*pc)
>
> I asked for the minimum and maximum values of these fields
>
>         xmin= my_disk["x"].min()
>         xmax= my_disk["x"].max()
>         ymin= my_disk["y"].min()
>         ymax= my_disk["y"].max()
>         zmin=my_disk["z"].min()
>         zmax=my_disk["z"].max()
>         print xmin,xmax,ymin,ymax,zmin,zmax
>
> and got
>
> 0.00390625 0.99609375 0.00390625 0.99609375 0.00390625 0.99609375
> xmin+xmax=ymin+ymax=zmin+zmax=1
>
> So I really don't know what actually are these fields
>
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20130726/2a280360/attachment.html>


More information about the yt-users mailing list